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) { showPerception(val) {
if (val == 1) { // if (val == 1) {
this.$message.warning('必须填写完整感知编码!'); // this.$message.warning('!');
} // }
this.switchValue = val; this.switchValue = val;
this.perception.scene = ''; // this.perception.scene = ''; //
this.perception.position = ''; // this.perception.position = ''; //
@ -1323,7 +1323,7 @@ export default {
}, },
// //
analysisData() { 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 // var ip = '172.16.1.168'; //http://172.16.1.168
console.log('ip', ip); console.log('ip', ip);
getAnalysisData(this.$route.query.id, ip).then((res) => { getAnalysisData(this.$route.query.id, ip).then((res) => {
@ -1363,7 +1363,7 @@ export default {
// //
postTraffic() { 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 // var ip = '172.16.1.168'; //http://172.16.1.168:5000
console.log('ip', ip); console.log('ip', ip);
getAnalysisData(this.$route.query.id, ip).then((res) => { getAnalysisData(this.$route.query.id, ip).then((res) => {
@ -1530,7 +1530,7 @@ export default {
const temp = utf8decoder.decode(u8arr); // const temp = utf8decoder.decode(u8arr); //
var detId = []; var detId = [];
const msgN = JSON.parse(temp); const msgN = JSON.parse(temp);
console.log("周期统计实时累计数据主题",msgN) console.log('周期统计实时累计数据主题', msgN);
this.cycleAccumulateData = msgN; this.cycleAccumulateData = msgN;
} catch (error) {} } catch (error) {}
break; break;
@ -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 != '') { if (res.data.data.endSectionIds != '') {
console.log('endSectionIds', 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 != '') { if (this.componentForm.presentationForm != '') {
var arr = []; var arr = [];