caojunjie 4 lat temu
rodzic
commit
e310b6e468
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      src/views/jiGang/index.vue

+ 10 - 1
src/views/jiGang/index.vue

@@ -458,7 +458,7 @@
               filterable
               :disabled="disabled"
               remote
-              :remote-method="corpsRemoteMethod"
+              :remote-method="corpsRemote"
               placeholder="客户名称"
             >
               <el-option
@@ -707,6 +707,15 @@ export default {
       listCorps(queryParams).then((response) => {
         console.log(response)
         this.fMblnoOptions = response.rows
+      })
+    },
+    corpsRemote(name) {
+      if (name == null || name === '') {
+        return false
+      }
+      let queryParams = {pageNum: 1, fName: name, type: 2}
+      listCorps(queryParams).then((response) => {
+        console.log(response)
         this.blnoOptions = response.rows
       })
     },