Compare commits

..

No commits in common. '4bd7b9a2af7caf0f76e0f4e488e4f8250fde0ccb' and '643e11a3c340a4ee26617c3ef04f1d23b8cc8570' have entirely different histories.

@ -347,6 +347,7 @@ export default {
}); });
let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID; let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID;
localStorage.setItem('EditView' + saveId, JSON.stringify(_data.rows));
this.editColumn = editColumn; this.editColumn = editColumn;
let $this = this; let $this = this;
this.dataList = _data.rows.map(function (item) { this.dataList = _data.rows.map(function (item) {
@ -470,9 +471,11 @@ export default {
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));
console.log('cacheDataList', cacheDataList); console.log('cacheDataList', cacheDataList);
let allTypeSelected = true; let allTypeSelected = true;
this.dataList.forEach((row, index) => { this.dataList.forEach((row, index) => {
let cache = cacheDataList[index];
let dataObj = {}; let dataObj = {};
if (row["FTypeID1"] == -1 || row["FTypeID2"] == -1 || row["FTypeID1"] == '' || row["FTypeID2"] == '') { if (row["FTypeID1"] == -1 || row["FTypeID2"] == -1 || row["FTypeID1"] == '' || row["FTypeID2"] == '') {
layer.msg("请先为所有物料选择分类", { icon: 2, time: 1000 }); layer.msg("请先为所有物料选择分类", { icon: 2, time: 1000 });

Loading…
Cancel
Save