消防安全检查添加检查记录二维码逻辑
parent
40ff86424f
commit
c6406f8191
|
@ -73,7 +73,7 @@
|
||||||
<el-tag v-else type="danger">否</el-tag>
|
<el-tag v-else type="danger">否</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="380">
|
<el-table-column label="操作" width="450">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button
|
<el-button
|
||||||
v-show="true"
|
v-show="true"
|
||||||
|
@ -97,6 +97,14 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleDelete(row)">删除
|
@click="handleDelete(row)">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 新增按钮:检查记录二维码 -->
|
||||||
|
<el-button
|
||||||
|
class="tiffany-btn"
|
||||||
|
icon="el-icon-document"
|
||||||
|
type="info"
|
||||||
|
size="mini"
|
||||||
|
@click="handleShowRecordQr(row)">检查记录二维码
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -255,6 +263,24 @@ export default {
|
||||||
// const jsonStr = JSON.stringify(json)
|
// const jsonStr = JSON.stringify(json)
|
||||||
// this.qrcodeStr = jsonStr
|
// 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;
|
||||||
|
},
|
||||||
handleEdit(FIRE_POINT_ID) {
|
handleEdit(FIRE_POINT_ID) {
|
||||||
this.$parent.FIRE_POINT_ID = FIRE_POINT_ID
|
this.$parent.FIRE_POINT_ID = FIRE_POINT_ID
|
||||||
this.$parent.activeName = 'Edit'
|
this.$parent.activeName = 'Edit'
|
||||||
|
|
Loading…
Reference in New Issue