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

update:更新数据关系栏

上级 df4c63e0
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
<#if ctrl.render??> <#if ctrl.render??>
${ctrl.render.code} ${ctrl.render.code}
<#else> <#else>
<layout class='app-dr-bar<#if ctrl.getPSSysCss?? && ctrl.getPSSysCss()??><#assign singleCss = ctrl.getPSSysCss()> ${singleCss.getCssName()}</#if>'> <div class='app-dr-bar<#if ctrl.getPSSysCss?? && ctrl.getPSSysCss()??><#assign singleCss = ctrl.getPSSysCss()> ${singleCss.getCssName()}</#if>' :style="{ width: <#noparse>`${width}px`</#noparse> }">
<sider :width="width"> </div>
<el-menu <el-menu
:mode="menuDir"
:default-openeds="defaultOpeneds" :default-openeds="defaultOpeneds"
:default-active="items[0].id" :default-active="items[0].id"
@select="onSelect" @select="onSelect"
...@@ -12,22 +13,6 @@ ...@@ -12,22 +13,6 @@
@close="onClose"> @close="onClose">
<app-sider-menus :menus="items"></app-sider-menus> <app-sider-menus :menus="items"></app-sider-menus>
</el-menu> </el-menu>
</sider>
<content <#noparse>:style="{ width: `calc(100% - ${this.width + 1}px)` }"</#noparse>>
<div class='main-data' v-show="Object.is(this.selection.id, 'form')">
<slot></slot>
</div>
<component
v-if="!Object.is(this.selection.id, 'form') && this.selection.view && !Object.is(this.selection.view.viewname, '')"
:is="selection.view.viewname"
class="viewcontainer2"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(selection.data)"
:viewparam="JSON.stringify(selection.param)"
:key="this.$util.createUUID()">
</component>
</content>
</layout>
</#if> </#if>
</template> </template>
<#ibizinclude> <#ibizinclude>
...@@ -38,6 +23,14 @@ ...@@ -38,6 +23,14 @@
../@MACRO/FUNC/MACRO.ftl ../@MACRO/FUNC/MACRO.ftl
</#ibizinclude> </#ibizinclude>
/**
* 菜单方向
* @type {('horizontal' | 'vertical')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop({ default: 'vertical' }) public menuDir?: 'horizontal' | 'vertical';
/** /**
* 获取多项数据 * 获取多项数据
* *
...@@ -89,13 +82,6 @@ ...@@ -89,13 +82,6 @@
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = [ public items: any[] = [
<#if view.hasPSControl('form')>
{
text: "主表单",
disabled: false,
id: "form",
},
</#if>
<#list ctrl.getPSDEDataRelation().getPSDEDRDetails() as item> <#list ctrl.getPSDEDataRelation().getPSDEDRDetails() as item>
{ {
text: "${item.getCaption()}", text: "${item.getCaption()}",
......
...@@ -13,7 +13,4 @@ ...@@ -13,7 +13,4 @@
</#list> </#list>
</#if> </#if>
@closeview="closeView($event)"> @closeview="closeView($event)">
<#if view.hasPSControl('form')>
${P.getCtrlCode('form', 'CONTROL.html').code}
</#if>
</view_${ctrl.getName()}> </view_${ctrl.getName()}>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册