소스 검색

添加是否检验判断

wyq 4 년 전
부모
커밋
604981f072
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;