From 250c5e379dced31d400319b500a1782c3be1e6bf Mon Sep 17 00:00:00 2001 From: chengdandan <2549057906@qq.com> Date: Thu, 22 Jan 2026 13:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=810122?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/view/index.vue | 84 ++++++++++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 30 deletions(-) diff --git a/src/views/view/index.vue b/src/views/view/index.vue index 805ed25..a1023f4 100644 --- a/src/views/view/index.vue +++ b/src/views/view/index.vue @@ -1735,7 +1735,7 @@ export default { iotDBRInfo: {}, nowTime: '', searchForm: { - area: '2', + area: '1', editable: '2', }, treeData: [], @@ -3037,29 +3037,29 @@ const deviceTypeList = ["11","13","14","19"] }, warnPlanClick(row) { var that = this - if (that.statusTimer) { - clearTimeout(that.statusTimer) - that.statusTimer = null - } + // if (that.statusTimer) { + // clearTimeout(that.statusTimer) + // that.statusTimer = null + // } - that.dataForm = {} + // that.dataForm = {} that.planLoading = false that.planSuccess = false that.warnDetailShow = true - that.planDetailMap = { - 11: [], - 13: [], - 14: [], - // 15: [], - 19: [], - } + // that.planDetailMap = { + // 11: [], + // 13: [], + // 14: [], + // // 15: [], + // 19: [], + // } that.planForm = JSON.parse(JSON.stringify(row)) console.log("that.planForm",that.planForm) that.deviceIds = [] that.deviceIds15 = [] - that.templateObj = '' - that.mediaObj = null - that.listMedia = [] + // that.templateObj = '' + // that.mediaObj = null + // that.listMedia = [] deviceList1( { area: that.searchForm.area, editable: '2',} @@ -3068,13 +3068,13 @@ const deviceTypeList = ["11","13","14","19"] if (res.status == 200) { // if (res.data.retCode == 0) { - that.planDetailMap = { - 11: [], - 13: [], - 14: [], - // 15: [], - 19: [], - } + // that.planDetailMap = { + // 11: [], + // 13: [], + // 14: [], + // + // 19: [], + // } var km1 = that.planForm.PILENUMSHOW.replace('K', '').replace('+', '.') res.data.data.forEach((item) => { const deviceType = item.deviceType; @@ -3125,30 +3125,54 @@ const deviceTypeList = ["11","13","14","19"] } // console.log(" obj", obj) that.planDetailMap[deviceType].push(obj) - that.deviceIds.push(item.deviceId) + // that.deviceIds.push(item.deviceId) /*that.planDetailData.push({ type:item.deviceType, data:p[key] })*/ + }else { // console.log(`设备类型 ${deviceType} 不在处理范围内`); } }) // that.loadinfoBoardTemplate(2) // console.log("that.planDetailMap",that.planDetailMap) - setTimeout(() => { + that.loadWarnMarker(that.warnMap[that.searchForm.area]) + if (!that.main2DShow) { + that.main2DShow = true + that.deviceClose() + } + var form = that.pileNumMap[that.searchForm.area] + var km1 = form.left.replace('K', '').replace('+', '.') + var km2 = form.right.replace('K', '').replace('+', '.') + console.log('form', form) + var num = that.pileNumMap[that.searchForm.area].n + var average = (Number(km2) - Number(km1)) / num + that.pileNumList = [] + for (var i = 0; i < num; i++) { + let a = (Number(km1) + i * average).toFixed(3) + that.pileNumList.push('K' + a.replace('.', '+')) + } + that.pileNumList.push(form.right) + /*var a = (Number(km1) + average).toFixed(3) + that.pileNumList = [form.left,'K'+a.replace(".", "+"),form.right]*/ + console.log('that.pileNumList', that.pileNumList) + that.scale = (form.width - 304) / 1000 / (Number(km2) - Number(km1)) + that.loadTable() + } else { + that.$message.warning(res.data.message) + } + // setTimeout(() => { // if (that.warnList.length > 0) { // that.warnShow = true // } else { // that.warnShow = false // } - that.tunnelClick(this.searchForm.area) - }, 400) - } else { - that.$message.warning(res.data.message) - } + + // }, 400) // } }) + // 预案处置中广播的下拉列表暂时屏蔽 // getMediaList().then((res) => { // if (res.status == 200) {