|
@@ -1884,16 +1884,9 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
const { EdbInfoList } = res.Data;
|
|
const { EdbInfoList } = res.Data;
|
|
-
|
|
|
|
- this.tableData.forEach((item) => {
|
|
|
|
- let edbData = EdbInfoList.find(_ => _.EdbInfoId===item.EdbInfoId);
|
|
|
|
- item.DataList = edbData.DataList;
|
|
|
|
- //更新起始时间和最近更新时间
|
|
|
|
- item.StartDate = edbData.StartDate;
|
|
|
|
- item.ModifyTime = edbData.ModifyTime;
|
|
|
|
-
|
|
|
|
- if(edbData.EdbInfoCategoryType===1) item.MoveLatestDate = edbData.MoveLatestDate;
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ //更新表格数据
|
|
|
|
+ this.tableData = _.cloneDeep(EdbInfoList);
|
|
},
|
|
},
|
|
|
|
|
|
/* 搜索 */
|
|
/* 搜索 */
|
|
@@ -2170,34 +2163,7 @@ export default {
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
- /* 图表未保存时更新图表数据 */
|
|
|
|
- refreshTarget() {
|
|
|
|
- for (let i in this.tableData) {
|
|
|
|
- let params = {
|
|
|
|
- EdbInfoId: this.tableData[i].EdbInfoId,
|
|
|
|
- DateType: this.year_select,
|
|
|
|
- StartDate:
|
|
|
|
- this.year_select === 5 || this.year_select === 6
|
|
|
|
- ? this.select_date[0]
|
|
|
|
- : '',
|
|
|
|
- EndDate: this.year_select === 5 ? this.select_date[1] : '',
|
|
|
|
- EdbInfoType: this.tableData[i].EdbInfoType,
|
|
|
|
- LeadValue: this.tableData[i].EdbInfoType
|
|
|
|
- ? 0
|
|
|
|
- : this.tableData[i].LeadValue,
|
|
|
|
- LeadUnit: this.tableData[i].EdbInfoType
|
|
|
|
- ? ''
|
|
|
|
- : this.tableData[i].LeadUnit,
|
|
|
|
- };
|
|
|
|
- dataBaseInterface.edbinfoDetail(params).then((res) => {
|
|
|
|
- if (res.Ret === 200) {
|
|
|
|
- let newData = res.Data.EdbInfo;
|
|
|
|
- this.tableData[i].DataList = newData.DataList;
|
|
|
|
- if(newData.EdbInfoCategoryType===1) this.tableData[i].MoveLatestDate = newData.MoveLatestDate;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
/* 年份改变 重新刷新图表接口 保存当前的图表配置和上下限 只改变图表 */
|
|
/* 年份改变 重新刷新图表接口 保存当前的图表配置和上下限 只改变图表 */
|
|
changeYear(item) {
|
|
changeYear(item) {
|
|
this.year_select = item.value;
|
|
this.year_select = item.value;
|