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 @@ - +