diff --git a/src/views/main/CommondbVessellist/index.vue b/src/views/main/CommondbVessellist/index.vue index cd9ae93..0b9edb0 100644 --- a/src/views/main/CommondbVessellist/index.vue +++ b/src/views/main/CommondbVessellist/index.vue @@ -10,7 +10,21 @@ - + + + + + + + + + + {{ item.name }} + + + + + + + + - + diff --git a/src/views/main/PrinttemplateRight/addForm.vue b/src/views/main/PrinttemplateRight/addForm.vue index ee590bf..ae0f2f9 100644 --- a/src/views/main/PrinttemplateRight/addForm.vue +++ b/src/views/main/PrinttemplateRight/addForm.vue @@ -18,7 +18,7 @@ show-search :default-active-first-option="false" :show-arrow="false" - :filter-option="false" + :filter-option="filterOption" :not-found-content="null" v-decorator="['userIdList', { rules: [{ required: true, message: '请选择用户!' }] }]" > @@ -104,6 +104,9 @@ export default { }) }, methods: { + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, handleSearch(value) { console.log(value) let Rdata = [] diff --git a/src/views/main/PrinttemplateRight/index.vue b/src/views/main/PrinttemplateRight/index.vue index a4c87b0..22f6eef 100644 --- a/src/views/main/PrinttemplateRight/index.vue +++ b/src/views/main/PrinttemplateRight/index.vue @@ -13,7 +13,20 @@ - + + {{ item.name }} @@ -171,6 +184,9 @@ export default { this.init() }, methods: { + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, RMain(data) { let Text = '' if (data.type == 'FastReport') {