|
|
|
|
@ -254,21 +254,22 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
let columnsList = [];
|
|
|
|
|
let col7 = dataColumn.filter(s => s.fieldType == 7) || [];
|
|
|
|
|
|
|
|
|
|
_data.rows.forEach((item, i) => {
|
|
|
|
|
|
|
|
|
|
columnsList = _data.columns.map(function (items) {
|
|
|
|
|
let str = _data.infos[i][items.key + "Type"];
|
|
|
|
|
if (typeof (str) != "undefined") {
|
|
|
|
|
switch (str) {
|
|
|
|
|
case "1":
|
|
|
|
|
return items.cellClass = items.cellClass + " one";
|
|
|
|
|
case "2":
|
|
|
|
|
return items.cellClass = items.cellClass + " twe";
|
|
|
|
|
case "3":
|
|
|
|
|
return items.cellClass = items.cellClass + " three";
|
|
|
|
|
case "4":
|
|
|
|
|
return items.cellClass = items.cellClass + " four";
|
|
|
|
|
let info = _data.infos[i]
|
|
|
|
|
if (info) {
|
|
|
|
|
let str = info[items.key + "Type"];
|
|
|
|
|
if (typeof (str) != "undefined") {
|
|
|
|
|
switch (str) {
|
|
|
|
|
case "1":
|
|
|
|
|
return items.cellClass = items.cellClass + " one";
|
|
|
|
|
case "2":
|
|
|
|
|
return items.cellClass = items.cellClass + " twe";
|
|
|
|
|
case "3":
|
|
|
|
|
return items.cellClass = items.cellClass + " three";
|
|
|
|
|
case "4":
|
|
|
|
|
return items.cellClass = items.cellClass + " four";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -295,18 +296,31 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
item.FTypeID1 = (item.FTypeID1 == 0 || item.FTypeID1 == -1) ? "" : item.FTypeID1;
|
|
|
|
|
item.FTypeID2 = (item.FTypeID2 == 0 || item.FTypeID2 == -1) ? "" : item.FTypeID2;
|
|
|
|
|
|
|
|
|
|
if (this.dataInfoObj.FCanEdit == 2) {
|
|
|
|
|
let fType1 = this.typeList[0].find((t) => {
|
|
|
|
|
return t.FID === item.FTypeID1
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let fType2 = this.typeList[1].find((t) => {
|
|
|
|
|
return t.FID === item.FTypeID2
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
item.FTypeID1 = fType1.FName;
|
|
|
|
|
item.FTypeID2 = fType2.FName;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let saveId = this.dataInfoObj.FViewType + "_" + this.dataInfoObj.FID;
|
|
|
|
|
localStorage.setItem('EditView' + saveId, JSON.stringify(_data.rows));
|
|
|
|
|
|
|
|
|
|
console.log('editColumn', editColumn);
|
|
|
|
|
this.editColumn = editColumn;
|
|
|
|
|
this.dataList = _data.rows;
|
|
|
|
|
this.dataColumn = dataColumn;
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
this.originalColumns = this.deepCopy(dataColumn);
|
|
|
|
|
this.getFreezingColumns();
|
|
|
|
|
|
|
|
|
|
debugger
|
|
|
|
|
this._changeType(_data.rows[0],2);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
layer.close(idx);
|
|
|
|
|
@ -465,7 +479,6 @@ export default {
|
|
|
|
|
if (updateLog != "") {
|
|
|
|
|
delete updateObj.LogList
|
|
|
|
|
// 发送保存请求
|
|
|
|
|
debugger
|
|
|
|
|
console.log('updateObj', updateObj);
|
|
|
|
|
let _result = await updateBatchById3(updateObj);
|
|
|
|
|
if (_result.Code === 200) {
|
|
|
|
|
|