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

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
@@ -26,6 +26,8 @@
style="width: 100%"
:tree-data="countriesInvolvedOptions"
:label-in-value="false"
show-search
:filterTreeNode="filterTreeOption"
:placeholder="$t('pleaseSelect')+$t('docTool.customComparison.countriesInvolved')" />
</a-form-item>
</a-col>
@@ -187,7 +189,11 @@ export default {
this.$refs.modalForm.edit(id)
this.$refs.modalForm.title = this.$t('details')
this.$refs.modalForm.disableSubmit = false
}
},
filterTreeOption (input, option) {
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
}
</script>
@@ -39,6 +39,8 @@
:replace-fields="{key: 'value'}"
:label-in-value="false"
disabled
show-search
:filterTreeNode="filterTreeOption"
:placeholder="$t('pleaseSelect')+$t('docTool.customComparison.countriesInvolved')" />
</a-form-item>
<!--是否公开-->
@@ -610,6 +612,10 @@ export default {
compareResult: record.compareResult
}
this.$refs.resultModal.open(params)
},
filterTreeOption (input, option) {
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
}
}