|
|
|
@ -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,7 +200,8 @@ export default {
|
|
|
|
originalColumns,
|
|
|
|
originalColumns,
|
|
|
|
tmpDataColumn,
|
|
|
|
tmpDataColumn,
|
|
|
|
materialInfoList,
|
|
|
|
materialInfoList,
|
|
|
|
idx
|
|
|
|
idx,
|
|
|
|
|
|
|
|
dataRowsList
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
@ -334,8 +335,10 @@ 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;
|
|
|
|
@ -512,8 +515,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(localStorage.getItem('EditView' + saveId));
|
|
|
|
let cacheDataList = JSON.parse(this.dataRowsList);
|
|
|
|
let allTypeSelected = true
|
|
|
|
let allTypeSelected = true
|
|
|
|
this.dataList.forEach((row, index) => {
|
|
|
|
this.dataList.forEach((row, index) => {
|
|
|
|
let cache = cacheDataList[index];
|
|
|
|
let cache = cacheDataList[index];
|
|
|
|
@ -573,7 +576,8 @@ 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('保存成功');
|
|
|
|
|