[新增功能](hyx_门口门禁):

- 新增门口门禁相关页面
hyx_门口门禁
huangyuxuan 2025-01-14 09:56:01 +08:00
parent f51ac24f46
commit 08b7954ffb
2 changed files with 23 additions and 2 deletions

View File

@ -42,7 +42,7 @@
{{ getType(row.IS_AUDIT) }}
</template>
</el-table-column>
<el-table-column label="操作" align="left" width="110">
<el-table-column label="操作" align="left" width="300">
<template slot-scope="{row}">
<el-button type="success" icon="el-icon-view" size="mini" @click="detail(row)"></el-button>
<el-button v-if="row.IS_AUDIT === '0' || row.IS_AUDIT == null" type="success" icon="el-icon-view" size="mini"
@ -216,6 +216,7 @@ export default {
console.log(data)
console.log(config.fileUrl)
this.fileList = data.filingList
this.form.MOTORCADE_ID = ''
})
},
getRowKey() {

View File

@ -47,7 +47,7 @@
</el-table-column>
<el-table-column label="操作" align="left" width="110">
<template slot-scope="{row}">
<el-button v-if="row.IS_AUDIT === '0'" type="success" icon="el-icon-view" size="mini" @click="approve(row)"></el-button>
<el-button v-if="checkButton(row)" type="success" icon="el-icon-view" size="mini" @click="approve(row)"></el-button>
</template>
</el-table-column>
</el-table>
@ -71,6 +71,7 @@ export default{
page: 1,
limit: 10
},
IS_POLICE: '',
areaList: [], //
placeList: [],
listLoading: true,
@ -94,8 +95,19 @@ export default{
},
created() {
this.getList()
this.getPermissions()
},
methods: {
checkButton(row){
console.log('---------------------')
console.log('row.IS_AUDIT:', row.IS_AUDIT); //
console.log('this.IS_POLICE:', this.IS_POLICE); //
if (row.IS_AUDIT === '0' && this.IS_POLICE === '1'){
return true
}else {
return false
}
},
approve(row) {
this.$refs.sendUtil.init(row)
},
@ -144,6 +156,14 @@ export default{
}).catch((e) => {
this.listLoading = false
})
},
getPermissions(){
requestFN(
'/mkmjManagement/getPermissions'
).then((data) => {
this.IS_POLICE = data.pageData.IS_POLICE
console.log('IS_POLICE:', this.IS_POLICE)
})
}
}