优化字典类
This commit is contained in:
@@ -111,10 +111,7 @@ export default {
|
||||
this.$message.success('更新成功')
|
||||
this.getDevices()
|
||||
}
|
||||
this.btnLoading = false
|
||||
}).catch(() => {
|
||||
this.btnLoading = false
|
||||
})
|
||||
}).finally(() => this.btnLoading = false)
|
||||
},
|
||||
handleNodeClick(data) {
|
||||
this.$emit('select', data)
|
||||
@@ -124,13 +121,13 @@ export default {
|
||||
return !this.search.bind ? true : data.deviceStatus === this.search.bind
|
||||
}
|
||||
|
||||
return data?.name?.indexOf(v) > -1 && (!this.search.bind ? true : data.deviceStatus === this.search.bind)
|
||||
return data?.name?.indexOf(v) > -1 && (!this.search.bind ? true : data.deviceStatus === this.search.bind)
|
||||
},
|
||||
handleTreeFilter(v) {
|
||||
this.$refs.deviceTree?.filter(v)
|
||||
},
|
||||
|
||||
onChange () {
|
||||
onChange() {
|
||||
this.$refs.deviceTree?.filter(this.search.name)
|
||||
}
|
||||
},
|
||||
@@ -200,6 +197,7 @@ export default {
|
||||
height: 28px;
|
||||
background: #3E4A69;
|
||||
}
|
||||
|
||||
::v-deep .el-button:hover {
|
||||
border: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user