瀏覽代碼

bug修复

chenrui 3 年之前
父節點
當前提交
b2e26138db
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      src/views/reportData/allocationOrderTotal/list.vue

+ 13 - 1
src/views/reportData/allocationOrderTotal/list.vue

@@ -26,7 +26,14 @@
             </a-col>
             <a-col :md="5" :sm="24">
               <a-form-model-item label="操作员">
-                <a-select id="allocationOrderTotalList-creatorId" v-model="queryParam.creatorId" placeholder="请选择操作员" allowClear >
+                <a-select
+                  id="allocationOrderTotalList-creatorId"
+                  allowClear
+                  v-model="queryParam.creatorId"
+                  placeholder="请选择操作员"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
                   <a-select-option v-for="item in operatorList" :key="item.sn" :value="item.sn">{{ item.name }}</a-select-option>
                 </a-select>
               </a-form-model-item>
@@ -225,6 +232,11 @@ export default {
           this.operatorList = []
         }
       })
+    },
+    filterOption (input, option) {
+      return (
+        option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+      )
     }
   },
   beforeRouteEnter (to, from, next) {