Преглед на файлове

Merge branch 'termLink0615' into test

wyq преди 4 години
родител
ревизия
56b5b34d80
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/components/common/LtModal.vue

+ 3 - 3
src/components/common/LtModal.vue

@@ -260,9 +260,9 @@ export default {
     },
     btn(row) {
       const { hisName, hisDetailName } = this.form;
-      if (hisName !== '' && hisDetailName === '') {
+      if (hisName !== '' && hisDetailName === '' && this.type == 1) {
         this.ty = 1;
-      } else if (hisName !== '' && hisDetailName !== '') {
+      } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
         this.ty = 2;
       }
       this.searchType = this.ty;
@@ -294,7 +294,7 @@ export default {
       const { hisName, hisDetailName } = this.form;
       if (hisName !== '' && hisDetailName === '' && this.type == 1) {
         this.ty = 1;
-      } else if (hisName !== '' && hisDetailName !== '') {
+      } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
         this.ty = 2;
       }
       this.searchType = this.ty;