新建OD组件传值有问题
This commit is contained in:
parent
0445b6a18f
commit
171574b13a
|
@ -1152,9 +1152,9 @@ export default {
|
||||||
'stream' + this.number,
|
'stream' + this.number,
|
||||||
'trajectory' + this.number,
|
'trajectory' + this.number,
|
||||||
'detection' + this.number,
|
'detection' + this.number,
|
||||||
|
'img' + this.number,
|
||||||
'TargetAnalysisStatusData',
|
'TargetAnalysisStatusData',
|
||||||
'TrafficAnalysisStatusData',
|
'TrafficAnalysisStatusData',
|
||||||
'img' + this.number
|
|
||||||
];
|
];
|
||||||
// console.log('在test1/index视频页面number-',this.number)
|
// console.log('在test1/index视频页面number-',this.number)
|
||||||
window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id);
|
window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id);
|
||||||
|
@ -1162,10 +1162,15 @@ export default {
|
||||||
//数据看板需要订阅的主题
|
//数据看板需要订阅的主题
|
||||||
dataBoardTopicSends() {
|
dataBoardTopicSends() {
|
||||||
this.topicSends = [
|
this.topicSends = [
|
||||||
|
'stream' + this.number,
|
||||||
|
'trajectory' + this.number,
|
||||||
|
'detection' + this.number,
|
||||||
|
'TargetAnalysisStatusData',
|
||||||
|
'TrafficAnalysisStatusData',
|
||||||
'trigger-' + this.$route.query.id,
|
'trigger-' + this.$route.query.id,
|
||||||
'cycle_time-' + this.$route.query.id,
|
'cycle_time-' + this.$route.query.id,
|
||||||
'cycle_statistics-' + this.$route.query.id,
|
'cycle_statistics-' + this.$route.query.id,
|
||||||
'cycle_accumulate-' + this.$route.query.id
|
'cycle_accumulate-' + this.$route.query.id,
|
||||||
];
|
];
|
||||||
// console.log('在test1/index视频页面number-',this.number)
|
// console.log('在test1/index视频页面number-',this.number)
|
||||||
window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id);
|
window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id);
|
||||||
|
@ -1798,6 +1803,7 @@ export default {
|
||||||
startSectionArr.push(items.graphicName);
|
startSectionArr.push(items.graphicName);
|
||||||
});
|
});
|
||||||
this.componentForm.startSection = startSectionArr;
|
this.componentForm.startSection = startSectionArr;
|
||||||
|
this.handleCheckedStartSection(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);
|
||||||
|
@ -1820,6 +1826,7 @@ export default {
|
||||||
endSectionArr.push(items.graphicName);
|
endSectionArr.push(items.graphicName);
|
||||||
});
|
});
|
||||||
this.componentForm.endSection = endSectionArr;
|
this.componentForm.endSection = endSectionArr;
|
||||||
|
this.handleCheckedendSection(endSectionArr)
|
||||||
}
|
}
|
||||||
if (this.componentForm.presentationForm != '') {
|
if (this.componentForm.presentationForm != '') {
|
||||||
var arr = [];
|
var arr = [];
|
||||||
|
@ -2321,7 +2328,7 @@ export default {
|
||||||
},
|
},
|
||||||
//编辑组件
|
//编辑组件
|
||||||
onSubmitComponent(componentForm) {
|
onSubmitComponent(componentForm) {
|
||||||
//console.log(componentForm, 'ffffffffff');
|
// console.log(componentForm, 'ffffffffff');
|
||||||
if (componentForm.timeMode != '实时触发' && componentForm.company == '') {
|
if (componentForm.timeMode != '实时触发' && componentForm.company == '') {
|
||||||
this.$message.warning('请选择必选项');
|
this.$message.warning('请选择必选项');
|
||||||
return false;
|
return false;
|
||||||
|
@ -2543,7 +2550,7 @@ export default {
|
||||||
},
|
},
|
||||||
//改变起点
|
//改变起点
|
||||||
handleCheckedStartSection(value) {
|
handleCheckedStartSection(value) {
|
||||||
//console.log('改变起点', value);
|
// console.log('改变起点', value);
|
||||||
var startSectionIdArr = [];
|
var startSectionIdArr = [];
|
||||||
var startSectionNameArr = [];
|
var startSectionNameArr = [];
|
||||||
value.forEach((item) => {
|
value.forEach((item) => {
|
||||||
|
|
Loading…
Reference in New Issue