Browse Source

处理审批单表单加载异常问题

lph 1 năm trước cách đây
mục cha
commit
3633a33fdc

+ 3 - 2
zkqy-ui/src/components/FormGroup/Approve.vue

@@ -230,8 +230,9 @@ export default {
           item.template.defaultValue[toUnderline(key)] =
             item.template.defaultValue[key];
         }
-        let tableName = (this.defaultValueObj[item.tableName] =
-          item.template.defaultValue);
+        let tableName = (this.defaultValueObj[
+          item.tableName || item.template.dfTableName
+        ] = item.template.defaultValue);
         // this.$nextTick(() => {
         //   Object.assign(this.defaultValue, item.template.defaultValue);
         // });

+ 7 - 1
zkqy-ui/src/views/bussiness/OAMange.vue

@@ -406,7 +406,13 @@ export default {
             });
           }
         } else {
-          this.formList = res.data;
+          this.times = 0;
+          this.formList = res.data.map((item) => {
+            return {
+              template: item.template,
+              tableName: item.template.dfTableName,
+            };
+          });
           this.tableName = res.data[0].template.dfTableName;
           this.nodeLogList = row.nodeLog.slice(1);
           this.show = true;