1. 添加网络判断
2. 去除发送电子钥匙时空昵称判断
This commit is contained in:
parent
329f9bb594
commit
456f21be75
@ -100,14 +100,6 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if ((type === 'temporary' && this.temporaryName === '') || (type === 'permanent' && this.permanentName === '')) {
|
||||
uni.showToast({
|
||||
title: '名称不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if(type === 'temporary' && this.temporaryValidTime >= this.temporaryInvalidTime) {
|
||||
uni.showToast({
|
||||
title: '失效时间必须大于生效时间',
|
||||
|
||||
@ -163,9 +163,13 @@
|
||||
...mapActions(useLockStore, ['getLockList', 'updateLockList', 'getRole', 'getTimeLimit', 'updateLockSearch', 'getPowerIcon']),
|
||||
...mapActions(useBluetoothStore, ['getBluetoothStatus', 'initAndListenBluetooth', 'updateCurrentLockInfo',
|
||||
'checkSetting', 'updateKeyId', 'resetDevice']),
|
||||
...mapActions(useBasicStore, ['routeJump', 'getDeviceInfo']),
|
||||
...mapActions(useBasicStore, ['routeJump', 'getDeviceInfo', 'getNetworkType']),
|
||||
async deleteLock(lock, groupIndex, lockIndex) {
|
||||
const that = this
|
||||
const netWork = await this.getNetworkType()
|
||||
if(!netWork) {
|
||||
return
|
||||
}
|
||||
|
||||
that.$refs['swipeItem' + groupIndex][lockIndex].closeHandler()
|
||||
if(lock.userType !== 110301 && lock.keyRight === 1) {
|
||||
|
||||
@ -214,7 +214,7 @@ export const useBasicStore = defineStore('basic', {
|
||||
title: message,
|
||||
icon: 'none'
|
||||
})
|
||||
}, 200)
|
||||
}, 300)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user