Merge branch 'dev' into pet
commit
1ac1777da3
|
@ -5,7 +5,7 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.90",
|
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.151.75",
|
||||||
"start": "npm run dev",
|
"start": "npm run dev",
|
||||||
"unit": "jest --config test/unit/jest.conf.js --coverage",
|
"unit": "jest --config test/unit/jest.conf.js --coverage",
|
||||||
"e2e": "node test/e2e/runner.js",
|
"e2e": "node test/e2e/runner.js",
|
||||||
|
|
|
@ -186,11 +186,11 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="title">检查码</div>
|
<div class="title">检查码</div>
|
||||||
<div class="qr">
|
<div class="qr">
|
||||||
<vue-qr :text="qrcodeStr" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
<vue-qr :text="qrcodeStr_jianchama" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="title">查询码</div>
|
<div class="title">查询码</div>
|
||||||
<div class="qr">
|
<div class="qr">
|
||||||
<vue-qr :text="qrcodeStr1" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
<vue-qr :text="qrcodeStr_chaxunma" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -210,13 +210,13 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="title">检查码</div>
|
<div class="title">检查码</div>
|
||||||
<div class="qr">
|
<div class="qr">
|
||||||
<vue-qr :text="qrcodeStr" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
<vue-qr :text="qrcodeStr_jianchama" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="title">查询码</div>
|
<div class="title">查询码</div>
|
||||||
<div class="qr">
|
<div class="qr">
|
||||||
<vue-qr :text="qrcodeStr1" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
<vue-qr :text="qrcodeStr_chaxunma" :margin="0" :size="280" color-dark="#000" color-light="#fff"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -287,8 +287,8 @@ export default {
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
dialogFormShow: false,
|
dialogFormShow: false,
|
||||||
dialogRecordFormShow: false,
|
dialogRecordFormShow: false,
|
||||||
qrcodeStr: '',
|
qrcodeStr_jianchama: '',
|
||||||
qrcodeStr1: '',
|
qrcodeStr_chaxunma: '',
|
||||||
tabsActive: 'horizontal',
|
tabsActive: 'horizontal',
|
||||||
recordQrcodeStr: '',
|
recordQrcodeStr: '',
|
||||||
qrInfo: {},
|
qrInfo: {},
|
||||||
|
@ -352,46 +352,18 @@ export default {
|
||||||
this.getTreeData()
|
this.getTreeData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleShowQr(ROW) {
|
|
||||||
this.dialogFormShow = true
|
|
||||||
this.qrInfo = ROW
|
|
||||||
this.qrcodeStr = JSON.stringify({
|
|
||||||
MANAGER_TYPE: 'fireListManager',
|
|
||||||
FIRE_POINT_ID: ROW.FIRE_POINT_ID
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleShowRecordQr(ROW) {
|
|
||||||
console.log(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)
|
|
||||||
},
|
|
||||||
handleShowNotificationCard(ROW) {
|
handleShowNotificationCard(ROW) {
|
||||||
this.dialogFormShow = true
|
this.dialogFormShow = true
|
||||||
this.qrInfo = ROW
|
this.qrInfo = ROW
|
||||||
// 检查码
|
// 检查码
|
||||||
this.qrcodeStr = JSON.stringify({
|
this.qrcodeStr_chaxunma = JSON.stringify({
|
||||||
MANAGER_TYPE: 'checkRecordManager',
|
MANAGER_TYPE: 'checkRecordManager',
|
||||||
USER_ID: ROW.USER_ID,
|
USER_ID: ROW.USER_ID,
|
||||||
DEPARTMENT_ID: ROW.DEPARTMENT_ID,
|
DEPARTMENT_ID: ROW.DEPARTMENT_ID,
|
||||||
FIRE_POINT_ID: ROW.FIRE_POINT_ID
|
FIRE_POINT_ID: ROW.FIRE_POINT_ID
|
||||||
})
|
})
|
||||||
// 查询码
|
// 查询码
|
||||||
this.qrcodeStr1 = JSON.stringify({
|
this.qrcodeStr_jianchama = JSON.stringify({
|
||||||
MANAGER_TYPE: 'fireListManager',
|
MANAGER_TYPE: 'fireListManager',
|
||||||
FIRE_POINT_ID: ROW.FIRE_POINT_ID
|
FIRE_POINT_ID: ROW.FIRE_POINT_ID
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue