bug修复

This commit is contained in:
hongchao 2025-09-08 18:03:21 +08:00
parent 342f59d360
commit 15b0bca36a
2 changed files with 8 additions and 5 deletions

View File

@ -35,6 +35,7 @@
>
<el-option
v-for="dict in dict.type.cost_status"
v-if="dict.value !== '2'"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@ -534,4 +535,4 @@ export default {
text-align: center;
border-left: 1px solid #9c9c9c;
}
</style>
</style>

View File

@ -1497,10 +1497,12 @@ export default {
console.log('🚀 ~ deviceTypeChange ~ val:', val)
// this.cascaderDisabled = true
let nodes = null
nodes =
this.$refs.deviceTypeCascader.getCheckedNodes().length > 0
? this.$refs.deviceTypeCascader.getCheckedNodes()
: [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
// nodes =
// this.$refs.deviceTypeCascader.getCheckedNodes().length > 0
// ? this.$refs.deviceTypeCascader.getCheckedNodes()
// : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
nodes = [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
console.log("xxxxxxxx",nodes)
if (nodes[0].level != 4) {
return
}