【中汽测试】树状结构加查询

This commit is contained in:
赵霄
2023-11-10 17:21:59 +08:00
parent 66ba1745d6
commit 1b40fbaef0
14 changed files with 252 additions and 542 deletions
@@ -39,6 +39,7 @@
v-model="queryParam.responsibleDepartment"
:maxTagCount="1"
:show-search="true"
:filterTreeNode="filterTreeOption"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
@@ -256,7 +257,11 @@ export default {
},
handleDepartsChange () {
this.$forceUpdate()
}
},
filterTreeOption (input, option) {
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
}
</script>