Compare commits

..

No commits in common. 'b1980ae61e0ba3e0b31ded82658640dd7701bc06' and 'e0cf0921e5ab6de110d74b8e806e5e8b00b503db' have entirely different histories.

@ -179,7 +179,7 @@ export default {
const idx = ref([]); const idx = ref([]);
const materialInfoList=ref([]); const materialInfoList=ref([]);
const dataRowsList=ref("");
return { return {
dataColumn, dataColumn,
dataList, dataList,
@ -200,8 +200,7 @@ export default {
originalColumns, originalColumns,
tmpDataColumn, tmpDataColumn,
materialInfoList, materialInfoList,
idx, idx
dataRowsList
}; };
}, },
props: { props: {
@ -335,10 +334,8 @@ export default {
item.FTypeID2 = (item.FTypeID2 == 0 || item.FTypeID2 == -1) ? "" : item.FTypeID2; item.FTypeID2 = (item.FTypeID2 == 0 || item.FTypeID2 == -1) ? "" : item.FTypeID2;
}); });
// let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID; let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID;
// localStorage.setItem('EditView' + saveId, JSON.stringify(_data.rows)); localStorage.setItem('EditView' + saveId, JSON.stringify(_data.rows));
this.dataRowsList=JSON.stringify(_data.rows)
this.editColumn = editColumn; this.editColumn = editColumn;
let $this=this; let $this=this;
@ -515,8 +512,8 @@ export default {
FTeamID: this.dataInfoObj['FTeamID'], FTeamID: this.dataInfoObj['FTeamID'],
FViewType: this.dataInfoObj.FViewType FViewType: this.dataInfoObj.FViewType
}; };
//let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID; let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID;
let cacheDataList = JSON.parse(this.dataRowsList); let cacheDataList = JSON.parse(localStorage.getItem('EditView' + saveId));
let allTypeSelected = true let allTypeSelected = true
this.dataList.forEach((row, index) => { this.dataList.forEach((row, index) => {
let cache = cacheDataList[index]; let cache = cacheDataList[index];
@ -576,8 +573,7 @@ export default {
}, "OperateLog"); }, "OperateLog");
let $this = this; let $this = this;
//$this.initPage(); //$this.initPage();
//localStorage.setItem('EditView' + saveId, JSON.stringify(this.dataList)); localStorage.setItem('EditView' + saveId, JSON.stringify(this.dataList));
this.dataRowsList=JSON.stringify(this.dataList);
setTimeout(function () { setTimeout(function () {
layer.close(idx); layer.close(idx);
layer.msg('保存成功'); layer.msg('保存成功');

Loading…
Cancel
Save