提交 d8434b72 编写于 作者: tony001's avatar tony001

面板detailType转化成itemType

上级 b8e44c70
...@@ -28,7 +28,7 @@ export class PanelDetailModel { ...@@ -28,7 +28,7 @@ export class PanelDetailModel {
* @type {string} * @type {string}
* @memberof PanelDetailModel * @memberof PanelDetailModel
*/ */
public detailType: string = ''; public itemType: string = '';
/** /**
* 面板对象 * 面板对象
...@@ -80,7 +80,7 @@ export class PanelDetailModel { ...@@ -80,7 +80,7 @@ export class PanelDetailModel {
*/ */
constructor(opts: any = {}) { constructor(opts: any = {}) {
this.caption = !Object.is(opts.caption, '') ? opts.caption : ''; this.caption = !Object.is(opts.caption, '') ? opts.caption : '';
this.detailType = !Object.is(opts.detailType, '') ? opts.detailType : ''; this.itemType = !Object.is(opts.itemType, '') ? opts.itemType : '';
this.panel = opts.panel ? opts.panel : {}; this.panel = opts.panel ? opts.panel : {};
this.name = !Object.is(opts.name, '') ? opts.name : ''; this.name = !Object.is(opts.name, '') ? opts.name : '';
this.$visible = opts.visible ? true : false; this.$visible = opts.visible ? true : false;
......
...@@ -46,7 +46,7 @@ export class PanelTabPageModel extends PanelDetailModel { ...@@ -46,7 +46,7 @@ export class PanelTabPageModel extends PanelDetailModel {
if (!this.panel) { if (!this.panel) {
return null; return null;
} }
const tabPanels: any[] = Object.values(this.panel.detailsModel).filter((model: any) => Object.is(model.detailType, 'TABPANEL')); const tabPanels: any[] = Object.values(this.panel.detailsModel).filter((model: any) => Object.is(model.itemType, 'TABPANEL'));
let index = tabPanels.findIndex((tabPanel: any) => { let index = tabPanels.findIndex((tabPanel: any) => {
return tabPanel.tabPages.some((tabPag: any) => Object.is(tabPag.name, this.name)); return tabPanel.tabPages.some((tabPag: any) => Object.is(tabPag.name, this.name));
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册