【中汽测试】树状结构加查询
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user