2213980799@qq.com 1 год назад
Родитель
Сommit
57dbc39415

+ 1 - 0
src/views/inspectionPlan/components/edit.vue

@@ -372,6 +372,7 @@ export default {
           : '详情';
       this.type = type;
       if (this.type != 'add') {
+        row.accessory=row.accessory||[]
         this.form = JSON.parse(JSON.stringify(row));
         if (this.form.groupId) {
           this.getUserList({ groupId: this.form.groupId });

+ 0 - 1
src/views/inspectionPoint/components/edit.vue

@@ -187,7 +187,6 @@ export default {
         }
         delete this.form.createTime
         // this.form.inspectionId = this.$refs.inspectionProjectRef.getValue();
-        console.log(this.form);
         // return;
         let URL = this.type == 'add' ? save : update;
         URL(this.form)

+ 1 - 0
src/views/inspectionStandard/components/edit.vue

@@ -300,6 +300,7 @@ export default {
       this.title = type == 'add' ? '新增' : '编辑';
       this.type = type;
       if (this.type == 'edit') {
+        row.linePoints=row.linePoints||[]
         if (!row.parameterStandards) {
           row.parameterStandards = [];
         } else {

+ 2 - 0
src/views/inspectionWork/components/edit.vue

@@ -312,6 +312,8 @@ export default {
       this.title = type == 'add' ? '新增' : type == 'edit' ? '报工' : '详情';
       this.type = type;
       if (this.type != 'add') {
+        row.accessory=row.accessory||[]
+
         this.form = JSON.parse(JSON.stringify(row));
         if (this.form.groupId) {
           this.getUserList({ groupId: this.form.groupId });