Przeglądaj źródła

fix: 报告问题

zhangjie 7 miesięcy temu
rodzic
commit
34c8cc82dd

+ 3 - 3
src/modules/target/components/target-statistics/DetailTargetStatistics.vue

@@ -454,7 +454,7 @@ import {
   targetStatisticsChangeCheck,
 } from "../../api";
 import { downloadByApi } from "@/plugins/download";
-import { calcSum, toPrecision } from "@/plugins/utils";
+import { calcSum, deepCopy, toPrecision } from "@/plugins/utils";
 import timeMixin from "@/mixins/timeMixin";
 import { omit } from "lodash";
 
@@ -627,7 +627,7 @@ export default {
         index = index === -1 ? 0 : index;
       }
       this.curReportId = this.dataList[index].id;
-      this.buildData(this.dataList[index]);
+      this.buildData(deepCopy(this.dataList[index]));
     },
     async reportChange() {
       this.resetData();
@@ -637,7 +637,7 @@ export default {
       );
       if (!rowData) return;
 
-      this.buildData(rowData);
+      this.buildData(deepCopy(rowData));
     },
     async checkChange() {
       const res = await targetStatisticsChangeCheck({