提交 82824559 编写于 作者: Mosher's avatar Mosher

update:更新

上级 1aab2653
...@@ -75,6 +75,7 @@ export default class EditView2Engine extends EditViewEngine { ...@@ -75,6 +75,7 @@ export default class EditView2Engine extends EditViewEngine {
public drBarSelectionChange(data: any): void { public drBarSelectionChange(data: any): void {
if (data) { if (data) {
this.view.drItem = data; this.view.drItem = data;
this.setNavPosData(data);
if (this.getDRBar()) { if (this.getDRBar()) {
this.setViewState2({ tag: this.getDRBar().name, action: 'change', viewdata: data }); this.setViewState2({ tag: this.getDRBar().name, action: 'change', viewdata: data });
} }
...@@ -119,6 +120,24 @@ export default class EditView2Engine extends EditViewEngine { ...@@ -119,6 +120,24 @@ export default class EditView2Engine extends EditViewEngine {
} }
} }
/**
* 设置导航数据
*
* @protected
* @param {*} data
* @return {*}
* @memberof EditView2Engine
*/
protected setNavPosData(data: any) {
if (!this.view.layoutModelDetails) {
return;
}
const navPos: any = Object.values(this.view.layoutModelDetails).find((item: any) => {
return item.predefinedType === "NAV_POS";
});
navPos.navData = data;
}
/** /**
* 获取关系 * 获取关系
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册