浏览代码

修改结果判断

wyq 4 年之前
父节点
当前提交
253413cbd0
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/components/base/LtModal.vue

+ 7 - 3
src/components/base/LtModal.vue

@@ -202,8 +202,8 @@ export default {
       tableData: [],
       mapList: [],
       getIndex: 6,
-      ty:this.type,
-      searchType:''
+      ty: this.type,
+      searchType: ''
     };
   },
   created() {
@@ -275,7 +275,11 @@ export default {
       api.retrievalSearch(params).then(res => {
         this.showDrop = false;
         if (res.data.code === '0') {
-          this.uniqueNameList = res.data.data.nameList;
+          if (this.ty == 2) {
+            this.uniqueNameList = res.data.data.lisDetailNames;
+          } else {
+            this.uniqueNameList = res.data.data.nameList;
+          }
         }
       });
     },