|
|
@@ -1091,58 +1091,58 @@ export default {
|
|
|
);
|
|
|
} else {
|
|
|
// 如果存在子页签,则进入到新建的界面
|
|
|
- if (_self.window.tabs != undefined && _self.window.tabs.length > 1) {
|
|
|
- var currPage = _self.pagination.current_page;
|
|
|
- var currIndex = (currPage - 1) * Common.pageSize + index + 1;
|
|
|
- var totalCount = _self.pagination.total;
|
|
|
+ // if (_self.window.tabs != undefined && _self.window.tabs.length > 1) {
|
|
|
+ var currPage = _self.pagination.current_page;
|
|
|
+ var currIndex = (currPage - 1) * Common.pageSize + index + 1;
|
|
|
+ var totalCount = _self.pagination.total;
|
|
|
|
|
|
|
|
|
- _self.dynamicComponentParam = {
|
|
|
- viewType: 'edit',
|
|
|
- curdWindowNo: _self.windowNo,
|
|
|
- tabIndex: _self.tabIndex,
|
|
|
- modelDataId: modelData.id,
|
|
|
- currentPage: currPage,
|
|
|
- currentIndex: currIndex,
|
|
|
- totalRecords: totalCount,
|
|
|
- isRestoreData: _self.isRestoreData,
|
|
|
- uuid: _self.uuid,
|
|
|
- };
|
|
|
- _self.dynamicComponent = 'CurdWindowModal';
|
|
|
- _self.dynamicComponentOpen = true;
|
|
|
+ _self.dynamicComponentParam = {
|
|
|
+ viewType: 'edit',
|
|
|
+ curdWindowNo: _self.windowNo,
|
|
|
+ tabIndex: _self.tabIndex,
|
|
|
+ modelDataId: modelData.id,
|
|
|
+ currentPage: currPage,
|
|
|
+ currentIndex: currIndex,
|
|
|
+ totalRecords: totalCount,
|
|
|
+ isRestoreData: _self.isRestoreData,
|
|
|
+ uuid: _self.uuid,
|
|
|
+ };
|
|
|
+ _self.dynamicComponent = 'CurdWindowModal';
|
|
|
+ _self.dynamicComponentOpen = true;
|
|
|
|
|
|
|
|
|
- // this.$router.push(
|
|
|
- // 'window-edit/edit/' +
|
|
|
- // this.windowNo +
|
|
|
- // '/' +
|
|
|
- // this.tabIndex +
|
|
|
- // '/' +
|
|
|
- // modelData.id +
|
|
|
- // '?currPage=' +
|
|
|
- // currPage +
|
|
|
- // '&currIndex=' +
|
|
|
- // currIndex +
|
|
|
- // '&totalCount=' +
|
|
|
- // totalCount +
|
|
|
- // '&uuid=' +
|
|
|
- // this.uuid +
|
|
|
- // '&isRestoreData=' +
|
|
|
- // _self.isRestoreData,
|
|
|
- // );
|
|
|
- } else {
|
|
|
- if (!modelData.editMode) {
|
|
|
- modelData.editMode = true;
|
|
|
- } else {
|
|
|
- this.saveTabData(modelData, index, true);
|
|
|
- }
|
|
|
- modelData.changed = true;
|
|
|
- _self.dataChanged = true;
|
|
|
- let index1 = this.modelDatas.indexOf(modelData);
|
|
|
- if (index1 != -1) {
|
|
|
- this.modelDatas[index1] = modelData;
|
|
|
- }
|
|
|
- }
|
|
|
+ // this.$router.push(
|
|
|
+ // 'window-edit/edit/' +
|
|
|
+ // this.windowNo +
|
|
|
+ // '/' +
|
|
|
+ // this.tabIndex +
|
|
|
+ // '/' +
|
|
|
+ // modelData.id +
|
|
|
+ // '?currPage=' +
|
|
|
+ // currPage +
|
|
|
+ // '&currIndex=' +
|
|
|
+ // currIndex +
|
|
|
+ // '&totalCount=' +
|
|
|
+ // totalCount +
|
|
|
+ // '&uuid=' +
|
|
|
+ // this.uuid +
|
|
|
+ // '&isRestoreData=' +
|
|
|
+ // _self.isRestoreData,
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // if (!modelData.editMode) {
|
|
|
+ // modelData.editMode = true;
|
|
|
+ // } else {
|
|
|
+ // this.saveTabData(modelData, index, true);
|
|
|
+ // }
|
|
|
+ // modelData.changed = true;
|
|
|
+ // _self.dataChanged = true;
|
|
|
+ // let index1 = this.modelDatas.indexOf(modelData);
|
|
|
+ // if (index1 != -1) {
|
|
|
+ // this.modelDatas[index1] = modelData;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -1202,13 +1202,13 @@ export default {
|
|
|
readRecord: function (isRead, modelData, index) {
|
|
|
this.nowModelIndex = index + 1;
|
|
|
var _self = this;
|
|
|
- const readModelData = !_self.checkDatas ? modelData : _self.checkDatas.modelData;
|
|
|
+ const readModelData = modelData;
|
|
|
if (readModelData.editMode == true) {
|
|
|
return;
|
|
|
}
|
|
|
if (isRead) {
|
|
|
var currPage = _self.pagination.current_page;
|
|
|
- var currIndex = (currPage - 1) * Common.pageSize + _self.checkDatas.index + 1;
|
|
|
+ var currIndex = (currPage - 1) * Common.pageSize + index + 1;
|
|
|
var totalCount = _self.pagination.total;
|
|
|
|
|
|
var customerWindowUrl = _self.tab.customerWindowUrl;
|
|
|
@@ -1236,13 +1236,15 @@ export default {
|
|
|
if (readModelData.data['category']) {
|
|
|
categoryValue = readModelData.data['category'];
|
|
|
displayValue = categoryValue['displayValue'];
|
|
|
+ categoryNo = displayValue[displayValue.length - 1];
|
|
|
} else if (readModelData.data['assetCategory']) {
|
|
|
categoryValue = readModelData.data['assetCategory'];
|
|
|
displayValue = categoryValue['displayValue'];
|
|
|
+ categoryNo = displayValue[displayValue.length - 1];
|
|
|
} else {
|
|
|
categoryNo = this.windowNo;
|
|
|
}
|
|
|
- categoryNo = displayValue[displayValue.length - 1];
|
|
|
+
|
|
|
|
|
|
_self.dynamicComponentParam = {
|
|
|
viewType: 'view',
|