ymy 1 yıl önce
ebeveyn
işleme
c60cfc3f2c

+ 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)