弹框修改
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
></drag-canvas>
|
||||
</div>
|
||||
<!-- 弹框 -->
|
||||
<iframeDia :steadyState="dataList" ref="iframeDiaRef"></iframeDia>
|
||||
<iframeDia :steadyState="dataList" ref="iframeDiaRef" @lineListChange="indicator"></iframeDia>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -704,9 +704,9 @@ storedSelectedId = localStorage.getItem('selectedId') || ''
|
||||
|
||||
// 当前点击的元素lineId 通过mt-edit/render-core/index.vue传过来的click事件
|
||||
const handleElementClick = (elementId: string, lineName: string) => {
|
||||
iframeDiaRef.value .showNextCorner(elementId, lineName)
|
||||
iframeDiaRef.value.showNextCorner(elementId, lineName)
|
||||
// 保存当前点击的设备ID
|
||||
indicator(['00B78D0171091', '00B78D0171092'])
|
||||
// indicator(['00B78D0171091', '00B78D0171092'])
|
||||
// currentClickedElementId.value = elementId
|
||||
// const item = done_json.value.find(item => item.lineId === elementId)
|
||||
// if (item && item.events && item.events.some(event => event.type === 'click')) {
|
||||
@@ -869,8 +869,7 @@ const setMqtt = async () => {
|
||||
// 设置消息接收回调
|
||||
mqttClient.value.onMessage((subscribe: string, message: any) => {
|
||||
const msg: any = uint8ArrayToObject(message)
|
||||
console.log('🚀 ~ 接受消息:', subscribe, msg)
|
||||
if (subscribe.split('/')[2] === 'askCSConfigRtData') {
|
||||
if (subscribe.split('/')[2] === 'csConfigRtData') {
|
||||
// 指标数据
|
||||
dataList.value = JSON.parse(msg.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user