Luolei 6 anni fa
parent
commit
699461c5c6
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/components/icss/PubTemplateGroup.vue

+ 3 - 3
src/components/icss/PubTemplateGroup.vue

@@ -172,18 +172,18 @@ export default {
         }else{
         }else{
           this.sonLis = []
           this.sonLis = []
           if(!this.form.id){
           if(!this.form.id){
-            this.getTypes()
             this.form.region4 = ''
             this.form.region4 = ''
             this.form.region1 = ''
             this.form.region1 = ''
+            this.getTypes()
           }
           }
         }
         }
       }
       }
     },
     },
     tmpOwnTo(newVal, preVal){
     tmpOwnTo(newVal, preVal){
-      if(newVal != preVal){
+      if(newVal&&newVal != preVal){
           if(!this.form.id){
           if(!this.form.id){
-            this.getTypes()
             this.form.region1 = ''
             this.form.region1 = ''
+            this.getTypes()
           }
           }
           if(this.form.isCopy){
           if(this.form.isCopy){
             this.getTypes('copy')
             this.getTypes('copy')