lex-xin 3 years ago
parent
commit
897f45cf55

+ 5 - 8
src/components/VueFormMaking/components/GenerateForm.vue

@@ -173,7 +173,6 @@ export default {
     data: {
       deep: true,
       handler(val) {
-        console.log('true')
         this.generateModle(val.list);
       }
     },
@@ -186,7 +185,6 @@ export default {
   },
   created() {
     this.itemOrganList = this.organList;
-    console.log(this.data)
     this.templateData = this.data.list
     this.generateModle(this.templateData);
 
@@ -195,13 +193,14 @@ export default {
       let tempData = this.templateData;
       let hiddenFormList = this.getSelectValueObject(tempData);
       this.formStatus = hiddenFormList;
-      console.log(tempData, hiddenFormList, this.formStatus, '111')
       this.relationFormChange();
     } else {
       let tempData = this.templateData
+      let hiddenFormList = this.getSelectValueObject(tempData);
+      this.formStatus = hiddenFormList;
       let ids = this.getSelectValueObject(tempData, true)
+
       const values = this.models[ids.model]
-      console.log(ids, 1111111111111, this.models, values)
       let relationArray = []
       ids.options && ids.options.options.forEach(item => {
           if(values == item.value) {
@@ -209,11 +208,9 @@ export default {
               relationArray.push(...tempRelation)
           }
       })
-      console.log(relationArray, 'relationArray')
       if(relationArray.length > 0) {
           this.relationFormChange(relationArray)
       }
-      console.log(this.templateData, 'templateData')
     }
   },
   mounted() {},
@@ -301,6 +298,7 @@ export default {
         }
         // 子表单  不支持子表单,根据不同的类型显示不同
         if (item.type == "subform") {
+          let childList = item.columns || []
           (item.columns || []).forEach(child => {
             if (child.list.length > 0) {
               child.list.forEach(c => {
@@ -326,7 +324,7 @@ export default {
           });
           // 重置数据
           let subForm = this.$refs.subform;
-          subForm.forEach(item => {
+          subForm && subForm.forEach(item => {
             item.reSetFormData();
           });
           let subFormStatus = true;
@@ -422,7 +420,6 @@ export default {
       this.$refs.generateForm.resetFields();
     },
     async onInputChange(value) {
-      console.log(value, "onInputChange");
       if (!value || this.selectOrganId.includes(value)) {
         return;
       }

File diff suppressed because it is too large
+ 0 - 0
web/index.html


File diff suppressed because it is too large
+ 0 - 0
web/static/web/js/chunk-1cc2a003.65486d37.js


Some files were not shown because too many files changed in this diff