fix: BUG修改

This commit is contained in:
kun 2024-05-23 13:54:17 +08:00
parent b95136ae36
commit 04f22c0aca
7 changed files with 48 additions and 24 deletions

View File

@ -4,8 +4,8 @@ NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用)
# 后端本地
# VITE_API_URL = 'http://192.168.34.221:19111'
VITE_API_URL = 'http://192.168.34.221:9111'
# VITE_API_URL = 'http://192.168.34.221:28888'
# VITE_API_URL = 'http://192.168.34.221:9111'
VITE_API_URL = 'http://192.168.34.221:28889'
# VITE_API_URL = 'http://121.196.214.246/api'
# VITE_API_URL = 'http://jxj.zhgdyun.com:100'
# VITE_API_URL = 'http://192.168.34.221:12360'

View File

@ -27,10 +27,10 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
// export const COMPANY: string = "zhzrf"; //中海·臻如府
// export const COMPANY: string = "zsbf"; //中水北方
// export const COMPANY: string = "as"; //鞍山项目
export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏
// export const COMPANY: string = "slx"; //苏立信项目
// export const COMPANY: string = "hfqc"; //合肥启程项目
export const COMPANY: string = "hfqc"; //合肥启程项目
// export const COMPANY: string = "jsyc"; // 江苏盐城项目
// export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页)
// export const COMPANY: string = "jxwjj"; //嘉兴王江泾公用码头项目 (需要去src\routers\modules\staticRouter.ts更换首页)

View File

@ -58,7 +58,7 @@ import { watch, ref, onMounted } from "vue";
import { alarmRecordList } from "@/api/modules/highFormwork";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
const props = defineProps(["selectPoint"]);
const props = defineProps(["selectObj"]);
const pageNo = ref(1 as any);
const pageSize = ref(15 as any);
const refScrollbar = ref(null as any); //
@ -152,7 +152,8 @@ const timeChange = () => {
const getAlarmRecord = async (type: any) => {
let requestData: any = {
projectSn: store.sn,
measurePointNumber: props.selectPoint,
measurePointNumber: props.selectObj.measurePointNumber,
acquisitionInstrumentNumber: props.selectObj.acquisitionInstrumentNumber,
pageNo: pageNo.value,
pageSize: pageSize.value
};
@ -174,7 +175,7 @@ const getAlarmRecord = async (type: any) => {
}
};
watch(
() => props.selectPoint,
() => props.selectObj,
newVal => {
// console.log(newVal, "newVal");
if (newVal) {

View File

@ -8,7 +8,7 @@
v-for="(item, index) in pointList"
:key="index"
:label="item.measurePointName"
:value="item.measurePointNumber"
:value="item.id"
/>
</el-select>
</div>
@ -324,7 +324,17 @@ function drawChart() {
}
//
const getCountTransform = async () => {
const res: any = await countTransform({ projectSn: store.sn, measurePointNumber: selectPoint.value });
let requestData:any = {
projectSn: store.sn
}
let findItem = pointList.value.find((item:any) => {
return item.id == selectPoint.value
})
if(findItem){
requestData.measurePointNumber = findItem.measurePointNumber
requestData.acquisitionInstrumentNumber = findItem.acquisitionInstrumentNumber
}
const res: any = await countTransform(requestData);
console.log("获取高支模累计变形量", res);
option.value.series = []; //
for (let i = 0; i < typeList.value.length; i++) {
@ -353,7 +363,7 @@ const getMonitorViewPoint = async () => {
console.log("获取测点数据", res);
pointList.value = res.result.records;
if (res.result.records && res.result.records.length > 0) {
selectPoint.value = res.result.records[0].measurePointNumber;
selectPoint.value = res.result.records[0].id;
}
};
onMounted(async () => {

View File

@ -70,7 +70,7 @@ import { ref, onMounted, watch } from "vue";
import { realMonitorList } from "@/api/modules/highFormwork";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
const props = defineProps(["selectPoint"]);
const props = defineProps(["selectObj"]);
const pageNo = ref(1 as any);
const pageSize = ref(15 as any);
const refScrollbar = ref(null as any); //
@ -163,7 +163,8 @@ const timeChange = () => {
const getMonitorViewPoint = async (type: any) => {
let requestData: any = {
projectSn: store.sn,
measurePointNumber: props.selectPoint,
measurePointNumber: props.selectObj.measurePointNumber,
acquisitionInstrumentNumber: props.selectObj.acquisitionInstrumentNumber,
pageNo: pageNo.value,
pageSize: pageSize.value
};
@ -185,7 +186,7 @@ const getMonitorViewPoint = async (type: any) => {
}
};
watch(
() => props.selectPoint,
() => props.selectObj,
newVal => {
// console.log(newVal, "newVal");
if (newVal) {

View File

@ -67,7 +67,7 @@ import { watch, ref, onMounted } from "vue";
import { realMonitorList } from "@/api/modules/highFormwork";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
const props = defineProps(["selectPoint"]);
const props = defineProps(["selectObj"]);
const pageNo = ref(1 as any);
const pageSize = ref(15 as any);
const refScrollbar = ref(null as any); //
@ -155,9 +155,11 @@ let formworkOption = ref([
const list = ref([] as any);
//
const getMonitorViewPoint = async (type: any) => {
console.log(props.selectObj,777888)
const res: any = await realMonitorList({
projectSn: store.sn,
measurePointNumber: props.selectPoint,
measurePointNumber: props.selectObj.measurePointNumber,
acquisitionInstrumentNumber: props.selectObj.acquisitionInstrumentNumber,
pageNo: pageNo.value,
pageSize: pageSize.value
});
@ -174,7 +176,7 @@ const getMonitorViewPoint = async (type: any) => {
}
};
watch(
() => props.selectPoint,
() => props.selectObj,
newVal => {
// console.log(newVal, "newVal");
if (newVal) {

View File

@ -64,19 +64,19 @@
</div>
</div>
<div class="select-project">
<el-select v-model="selectPoint" style="width: 90%; margin-right: 5%" size="small">
<el-option v-for="(item, index) in pointList" :key="index" :label="item.measurePointName" :value="item.measurePointNumber" />
<el-select v-model="selectPoint" style="width: 90%; margin-right: 5%" size="small" @change="selectPointChange">
<el-option v-for="(item, index) in pointList" :key="index" :label="item.measurePointName" :value="item.id" />
</el-select>
</div>
<div class="monitor-list">
<div class="realTime-list" v-if="tabIndex == 1">
<real-time-list :selectPoint="selectPoint"></real-time-list>
<real-time-list :selectObj="selectObj"></real-time-list>
</div>
<div class="history-list" v-if="tabIndex == 2">
<history-list :selectPoint="selectPoint"></history-list>
<history-list :selectObj="selectObj"></history-list>
</div>
<div class="alarm-list" v-if="tabIndex == 3">
<alarm-list :selectPoint="selectPoint"></alarm-list>
<alarm-list :selectObj="selectObj"></alarm-list>
</div>
</div>
</div>
@ -97,7 +97,8 @@ const selectView = ref("");
const viewList = ref([] as any);
const monitorTimeText = ref("");
const planViewData = ref<any>();
const selectPoint = ref("" as any);
const selectPoint = ref({} as any);
const selectObj = ref({} as any);
const pointList = ref([] as any);
let tabIndex = ref(1 as any);
let topText = ref([
@ -105,7 +106,15 @@ let topText = ref([
{ id: 2, title: "历史数据", isActive: false },
{ id: 3, title: "报警记录", isActive: false }
]);
const selectPointChange = () => {
let findItem = pointList.value.find((item:any) => {
return item.id == selectPoint.value
})
console.log(findItem,888999)
if(findItem){
selectObj.value = findItem;
}
}
function getStyle(item: any) {
if (item.isActive) {
let choiseStyle = {
@ -170,7 +179,8 @@ const getMonitorViewPoint = async () => {
list.value = res.result
pointList.value = res.result
if(res.result && res.result.length > 0){
selectPoint.value = res.result[0].measurePointNumber
selectPoint.value = res.result[0].id
selectObj.value = res.result[0]
}
};
onMounted(async () => {