This commit is contained in:
chengdandan 2023-02-05 09:43:43 +08:00
parent 350c45f887
commit dab3ceaffb
1 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@
</div>
</el-tab-pane>
<el-tab-pane label="数据看板" name="second">
<dataBoard :activeName="activeName" :triggerData="triggerData"></dataBoard>
<dataBoard :activeName="activeName" :triggerData="triggerData" :triggerListData="triggerListData"></dataBoard>
</el-tab-pane>
<el-tab-pane label="分析配置" name="third">
<analysisConfiguration :analysisConfigurationdata="analysisConfigurationdata"></analysisConfiguration>
@ -338,6 +338,7 @@ export default {
analysisConfigurationdata: {},
//
triggerData: [],
triggerListData:[],
//
videoType: '',
videoAnalysisShow: false,
@ -405,7 +406,7 @@ export default {
/** 创建mqtt */
createMqtt() {
//
this.topicSends = ['stream' + this.number, 'trajectory' + this.number, 'detection' + this.number,'trigger'+ this.$route.query.id];
this.topicSends = ['stream' + this.number, 'trajectory' + this.number, 'detection' + this.number,'trigger-'+ this.$route.query.id];
window.PubScribe(this.topicSends, this.number, this.realInfo);
// mqtt = mqttConfig;
/*mqtt = new mqttConfig(this.topicSends);
@ -600,15 +601,16 @@ export default {
}
} catch (error) {}
break;
case 'trigger'+this.$route.query.id:
case 'trigger-'+this.$route.query.id:
try {
// console.log("trigger_msgN",message)
const utf8decoder = new TextDecoder();
const u8arr = new Uint8Array(message);
const temp = utf8decoder.decode(u8arr); //
var detId = [];
const msgN = JSON.parse(temp);
console.log("trigger_msgN",msgN)
this.triggerListData = msgN;
} catch (error) {}
break;
}