Explorar o código

添加是否检验判断

wyq %!s(int64=4) %!d(string=hai) anos
pai
achega
604981f072
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/base/LtModal.vue

+ 2 - 2
src/components/base/LtModal.vue

@@ -299,9 +299,9 @@ export default {
         return;
       }
       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;