bug修改

This commit is contained in:
qiudan 2023-10-29 22:24:48 +08:00
parent ab89a21ac3
commit 33ea88f35e
1 changed files with 19 additions and 7 deletions

View File

@ -978,9 +978,9 @@ export default {
},
//
showPerception(val) {
if (val == 1) {
this.$message.warning('必须填写完整感知编码!');
}
// if (val == 1) {
// this.$message.warning('!');
// }
this.switchValue = val;
this.perception.scene = ''; //
this.perception.position = ''; //
@ -1323,7 +1323,7 @@ export default {
},
//
analysisData() {
var ip = window.location.host.split(":")[0];
var ip = window.location.host.split(':')[0];
// var ip = '172.16.1.168'; //http://172.16.1.168
console.log('ip', ip);
getAnalysisData(this.$route.query.id, ip).then((res) => {
@ -1363,7 +1363,7 @@ export default {
//
postTraffic() {
var ip = window.location.host.split(":")[0];
var ip = window.location.host.split(':')[0];
// var ip = '172.16.1.168'; //http://172.16.1.168:5000
console.log('ip', ip);
getAnalysisData(this.$route.query.id, ip).then((res) => {
@ -1530,10 +1530,10 @@ export default {
const temp = utf8decoder.decode(u8arr); //
var detId = [];
const msgN = JSON.parse(temp);
console.log("周期统计实时累计数据主题",msgN)
console.log('周期统计实时累计数据主题', msgN);
this.cycleAccumulateData = msgN;
} catch (error) {}
break;
break;
case 'VideoStatusData':
try {
const utf8decoder = new TextDecoder();
@ -1710,6 +1710,12 @@ export default {
}
});
});
} else {
let startSectionArr = [];
this.sectionals.forEach((items) => {
startSectionArr.push(items.graphicName);
});
this.componentForm.startSection = startSectionArr;
}
if (res.data.data.endSectionIds != '') {
console.log('endSectionIds', res.data.data.endSectionIds);
@ -1726,6 +1732,12 @@ export default {
}
});
});
} else {
let endSectionArr = [];
this.sectionals.forEach((items) => {
endSectionArr.push(items.graphicName);
});
this.componentForm.endSection = endSectionArr;
}
if (this.componentForm.presentationForm != '') {
var arr = [];