lph пре 1 година
родитељ
комит
7aab031c74

+ 5 - 2
zkqy-ui/src/views/bussiness/dialogCompments/Mec/PersonalDistribution.vue

@@ -557,10 +557,13 @@ export default {
     initData(nval) {
       // this.form = JSON.parse(JSON.stringify(nval?.resultMap));
       Object.assign(this.form, nval?.resultMap);
-      this.form.personnelList.forEach((element) => {
+      console.log(this.form);
+      this.form.personnelList?.forEach((element) => {
         element.isEdit = false;
       });
-      this.oldTableData = JSON.parse(JSON.stringify(this.form.personnelList));
+      this.oldTableData = JSON.parse(
+        JSON.stringify(this.form.personnelList || [])
+      );
       this.checked = this.form.task1 == "true" ? true : false;
       // this.$set(this.form, 'card', nval?.resultMap.qualityControlCard);
       this.$set(this.form, "state", nval?.resultMap.taskNnodeOtherState);