ymy 1 년 전
부모
커밋
c60cfc3f2c
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/benyun/components/moduleView/moduleView.vue

+ 6 - 3
src/benyun/components/moduleView/moduleView.vue

@@ -135,13 +135,14 @@ export default class ModuleView extends ModuleViewHandle {
   }
   //清除搜索条件
   clearSearch(){
-    (this.$refs[this.searchID] as any).clearValue();
+    if(this.$refs[this.searchID]){
+      (this.$refs[this.searchID] as any).clearValue();
+    }
   }
   resert(){
     this.resertHandle()
   }
   clickHandle(e:string){
-    
     if(e == 'onAdd'){
       this.modalShow = true;
     }
@@ -161,7 +162,9 @@ export default class ModuleView extends ModuleViewHandle {
   modalHandle(e:string){
     if(e == 'onReturn'){
       this.modalShow = false;
-      (this.$refs[this.formID] as any).clearValue();
+      if(this.$refs[this.formID]){
+        (this.$refs[this.formID] as any).clearValue();
+      }
       this.$emit('backHandle')
     }else{
       this.$emit('modalHandle',e)