From b574bd137f8f70e0b902338461e3750cb08b0fbf Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Thu, 19 Sep 2024 08:47:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B6=88=E9=98=B2=E6=A3=80=E6=9F=A5=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../firefighting/points/components/list.vue | 26 +++++-------------- static/qrcode/views/bsbw/point_list.html | 2 +- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/views/firefighting/points/components/list.vue b/src/views/firefighting/points/components/list.vue index 6c39660..dcb120d 100644 --- a/src/views/firefighting/points/components/list.vue +++ b/src/views/firefighting/points/components/list.vue @@ -269,8 +269,11 @@ export default { handleShowQr(ROW) { this.dialogFormShow = true this.qrInfo = ROW - this.qrcodeStr = this.config.weburlWaiwang + 'static/qrcode/views/bsbw/point_list.html?id=' + ROW.FIRE_POINT_ID - }, + this.qrcodeStr = JSON.stringify({ + MANAGER_TYPE: 'fireListManager', + FIRE_POINT_ID: ROW.FIRE_POINT_ID + }) + }, handleShowRecordQr(ROW) { this.dialogFormShow = true // 确保qrInfo绑定了需要显示的数据字段 @@ -288,24 +291,7 @@ export default { } const jsonStr = JSON.stringify(json) this.qrcodeStr = jsonStr - }, - handleShowRecordQr(ROW) { - this.dialogFormShow = true; - // 确保qrInfo绑定了需要显示的数据字段 - this.qrInfo = { - FIRE_REGION_NAME: ROW.FIRE_REGION_NAME, // 消防区域 - FIRE_POINT_NAME: ROW.FIRE_POINT_NAME, // 消防点位 - DEPARTMENT_NAME: ROW.DEPARTMENT_NAME, // 负责部门 - USERNAME: ROW.USERNAME // 负责人 - }; - const json = { - MANAGER_TYPE: 'checkRecordManager', - USER_ID: ROW.USER_ID, - DEPARTMENT_ID: ROW.DEPARTMENT_ID, - FIRE_POINT_ID: ROW.FIRE_POINT_ID - }; - const jsonStr = JSON.stringify(json); - this.qrcodeStr = jsonStr; + console.info(this.qrcodeStr) }, handleEdit(FIRE_POINT_ID) { this.$parent.FIRE_POINT_ID = FIRE_POINT_ID diff --git a/static/qrcode/views/bsbw/point_list.html b/static/qrcode/views/bsbw/point_list.html index 19cfd1e..38cff36 100644 --- a/static/qrcode/views/bsbw/point_list.html +++ b/static/qrcode/views/bsbw/point_list.html @@ -116,7 +116,7 @@ - +