From 8acd4872010cbdf759dc8a55076d28de6549cdc3 Mon Sep 17 00:00:00 2001 From: cjp <3096114695@qq.com> Date: Thu, 11 Jan 2024 17:51:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectAdmin/dataBoard/index.vue | 1 + .../projectAdmin/fourEngin/govComp/Col4.vue | 29 +++++++++++++++++- .../smartBeamField/pedestalManage.vue | 29 ++++++++++++++---- .../toxicGasDetection/gasMonitoringData.vue | 30 ++++++++++++++----- .../tunnelPositioning/tunnelConfiguration.vue | 22 ++++++++++---- .../workTicketManage/riskInventory.vue | 4 +-- 6 files changed, 94 insertions(+), 21 deletions(-) diff --git a/src/views/projectAdmin/dataBoard/index.vue b/src/views/projectAdmin/dataBoard/index.vue index b0b24846..c8502e2e 100644 --- a/src/views/projectAdmin/dataBoard/index.vue +++ b/src/views/projectAdmin/dataBoard/index.vue @@ -46,6 +46,7 @@ autoplay controls loop + muted >
{ const foundObject = this.processOption.find(obj => obj.id === id) return foundObject || [] // 如果未找到匹配的对象,返回 null @@ -271,6 +271,22 @@ export default { }) }, + // 回显工序下拉 + getCurrentProcess(listId) { + let data = { + projectSn: this.projectSn, + smartBeamFieldMakeBeamPedestalId: listId + } + beamFieldProcessList(data).then(res => { + console.log('回显工序列表', res) + if (res.result.length > 0) { + this.processOptionValue = res.result.map(item => item.id) + this.cardForm.processList = res.result + } + console.log('回显工序列表', this.processOptionValue) + }) + }, + // 查询制梁台座列表 getPointList() { let data = { @@ -293,11 +309,12 @@ export default { }, editBtn(obj) { console.log('编辑的信息', obj) - if (obj.pedestalProcess.length > 0) { - const dataArray = obj.pedestalProcess.split(',').map(item => item.trim()) - // console.log(dataArray,"绑扎台序") - this.processOptionValue = dataArray - } + // if (obj.pedestalProcess.length > 0) { + // const dataArray = obj.pedestalProcess.split(',').map(item => item.trim()) + // console.log(dataArray,"回显台座") + // this.processOptionValue = dataArray + // } + this.getCurrentProcess(obj.id) this.cardDialog = true this.isAdding = true diff --git a/src/views/projectFront/toxicGasDetection/gasMonitoringData.vue b/src/views/projectFront/toxicGasDetection/gasMonitoringData.vue index f59e134a..c269be5b 100644 --- a/src/views/projectFront/toxicGasDetection/gasMonitoringData.vue +++ b/src/views/projectFront/toxicGasDetection/gasMonitoringData.vue @@ -47,13 +47,11 @@ - +