diff --git a/src/views/main/DjyTenantConfig/addForm.vue b/src/views/main/DjyTenantConfig/addForm.vue index 504aa5e..29c4ce3 100644 --- a/src/views/main/DjyTenantConfig/addForm.vue +++ b/src/views/main/DjyTenantConfig/addForm.vue @@ -38,7 +38,13 @@ - + {{ item.cnName }} @@ -81,6 +87,9 @@ export default { }, mounted() {}, methods: { + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, // 初始化方法 add(record) { this.data = record diff --git a/src/views/main/DjyTenantConfig/editForm.vue b/src/views/main/DjyTenantConfig/editForm.vue index 9314d9f..ffc75b6 100644 --- a/src/views/main/DjyTenantConfig/editForm.vue +++ b/src/views/main/DjyTenantConfig/editForm.vue @@ -39,7 +39,13 @@ - + {{ item.cnName }} @@ -82,6 +88,9 @@ export default { }, mounted() {}, methods: { + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, // 初始化方法 edit(record, loadData) { console.log(record) diff --git a/src/views/main/DjyTenantConfig/index.vue b/src/views/main/DjyTenantConfig/index.vue index 53fcaa2..fe78acc 100644 --- a/src/views/main/DjyTenantConfig/index.vue +++ b/src/views/main/DjyTenantConfig/index.vue @@ -54,6 +54,10 @@ :align="item.align" :show-overflow="true" > +