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

update:更新

上级 b1525b12
......@@ -10,7 +10,7 @@
<#-- END:视图顶部视图消息 -->
<#if view.hasPSControl('toolbar')>
<#assign selfToolbarRender>
<template v-if="Object.is(this.selection.id, 'form')">
<template v-if="Object.is(drItem.id, 'form')">
${P.getCtrlCode('toolbar', 'CONTROL.html').code}
</template>
</#assign>
......@@ -28,7 +28,7 @@
<layout class="content-container edit-view2">
<sider class="edit-view2-drbar" :width="<#if view.hasPSControl('drbar') && view.getPSControl('drbar').getWidth?? && view.getPSControl('drbar').getWidth()?? && view.getPSControl('drbar').getWidth() gt 240>${view.getPSControl('drbar').getWidth()?c}<#else>240</#if>">
<#if view.hasPSControl('drbar') && view.hasPSControl('form')>
<div :class="['edit-view2-drbar__caption', 'is-active': !(drItem && drItem.id && drItem.id !== 'form')]" @click="drBarChange">
<div :class="{'edit-view2-drbar__caption': true, 'is-active': !(drItem && drItem.id && drItem.id !== 'form')}" @click="drBarChange">
<span><#if view.getPSControl('drbar').getEditItemCaption?? && view.getPSControl('drbar').getEditItemCaption()??>${view.getPSControl('drbar').getEditItemCaption()}</#if></span>
</div>
<#if view.hasPSControl('drbar')>
......
......@@ -11,12 +11,12 @@
</#ibizinclude>
/**
* 选中数据
* 关系项
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
public selection: any = {};
public drItem: any = {};
/**
* 表单数据
......@@ -26,6 +26,12 @@
*/
public formData:any = {};
public drBarChange() {
if (this.engine) {
this.engine.drBarSelectionChange({ id: 'form' });
}
}
<#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册