瀏覽代碼

fix: 报告问题

zhangjie 7 月之前
父節點
當前提交
34c8cc82dd
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/modules/target/components/target-statistics/DetailTargetStatistics.vue

+ 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({