提交 147742b8 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 feb86829
......@@ -543,7 +543,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.name) {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
......@@ -556,26 +556,20 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
return dataArea;
}
xData = getDataArea(curLayoutModel);
<#if view.getXDataControlName?? && view.getXDataControlName() != ''>
// 获取激活部件
if (!xData && this.layoutCtrls.length > 0) {
const getActionCtrl = (cLayoutModel: any): any => {
let actionCtrl = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.name) {
parentLayoutModel = pLayoutModel;
actionCtrl= parentLayoutModel.details.find((ctrlName: string) => {
return this.layoutCtrls.indexOf(ctrlName) !== -1;
})
}
})
if (!actionCtrl && parentLayoutModel) {
actionCtrl = getActionCtrl(parentLayoutModel);
if (!xData) {
const xDataControlName = "${view.getXDataControlName()}";
let xDataControl = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name.toLowerCase() == xDataControlName.toLowerCase()) {
xDataControl = layoutModel;
return
}
return actionCtrl;
}
xData = getActionCtrl(curLayoutModel);
})
xData = xDataControl;
}
</#if>
}
// 获取当前视图
if (!xData) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册