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