消防安全检查添加检查记录二维码逻辑

hyx_2024-9-25_tongbu
WenShiJun 2024-09-14 10:04:58 +08:00
parent 40ff86424f
commit c6406f8191
1 changed files with 27 additions and 1 deletions

View File

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