Compare commits

..

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

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

Loading…
Cancel
Save