mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
This commit is contained in:
commit
f67093d1ba
@ -29,7 +29,9 @@ export const messages = {
|
||||
face: 'Face',
|
||||
key: 'Key',
|
||||
qrcode: 'QR Code',
|
||||
password: 'Password'
|
||||
password: 'Password',
|
||||
appRemote: 'Remote',
|
||||
other: 'Other'
|
||||
},
|
||||
state: {
|
||||
success: 'Success',
|
||||
@ -67,7 +69,9 @@ export const messages = {
|
||||
face: '人脸开门',
|
||||
key: '钥匙开门',
|
||||
qrcode: '二维码开门',
|
||||
password: '密码开门'
|
||||
password: '密码开门',
|
||||
appRemote: '远程开门',
|
||||
other: '其他'
|
||||
},
|
||||
state: {
|
||||
success: '开门成功',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="access-control-inout-container">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
@ -73,8 +73,7 @@
|
||||
<el-table-column prop="name" :label="$t('accessControlInout.table.userName')" align="center" />
|
||||
<el-table-column prop="openTypeCd" :label="$t('accessControlInout.table.openType')" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.openTypeCd === '1000' ? $t('accessControlInout.openType.face') :
|
||||
$t('accessControlInout.openType.other') }}
|
||||
{{ getOpenTypeName(scope.row.openTypeCd) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="tel" :label="$t('accessControlInout.table.tel')" align="center" />
|
||||
@ -116,7 +115,8 @@ export default {
|
||||
{ openTypeName: this.$t('accessControlInout.openType.face'), openTypeCd: '1000' },
|
||||
{ openTypeName: this.$t('accessControlInout.openType.key'), openTypeCd: '2000' },
|
||||
{ openTypeName: this.$t('accessControlInout.openType.qrcode'), openTypeCd: '3000' },
|
||||
{ openTypeName: this.$t('accessControlInout.openType.password'), openTypeCd: '4000' }
|
||||
{ openTypeName: this.$t('accessControlInout.openType.password'), openTypeCd: '4000' },
|
||||
{ openTypeName: this.$t('accessControlInout.openType.appRemote'), openTypeCd: '5000' }
|
||||
],
|
||||
total: 0,
|
||||
records: 1,
|
||||
@ -184,6 +184,10 @@ export default {
|
||||
this.accessControlInoutInfo.conditions.openTypeCd = openType.openTypeCd
|
||||
this._queryAccessControlInoutMethod()
|
||||
},
|
||||
getOpenTypeName(openTypeCd) {
|
||||
const item = this.accessControlInoutInfo.openTypeCds.find(v => v.openTypeCd === openTypeCd)
|
||||
return item ? item.openTypeName : this.$t('accessControlInout.openType.other')
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.page.size = val
|
||||
this._listAccessControlInouts(this.page.current, this.page.size)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user