提交 446b00d6 编写于 作者: ShineKOT's avatar ShineKOT

feat: 更新编辑视图

上级 c75066e2
...@@ -47,22 +47,12 @@ ${P.getCtrlCode('form', 'CONTROL.html').code} ...@@ -47,22 +47,12 @@ ${P.getCtrlCode('form', 'CONTROL.html').code}
</@ibizindent> </@ibizindent>
<#-- END:视图底部视图消息 --> <#-- END:视图底部视图消息 -->
<#-- BEGIN: 编辑视图工具栏 --> <#-- BEGIN: 编辑视图工具栏 -->
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
<@ibizindent blank=4> <@ibizindent blank=4>
${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t> ${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t>
</@ibizindent> </@ibizindent>
<#else> </#if>
<div class='toolbar-container'> <#-- END: 编辑视图工具栏 -->
<tooltip :transfer="true" :max-width="600">
<i-button @click="onClose($event)">
<i class='fa fa-sign-out'></i>
<span class='caption'>{{$t('app.commonWords.close')}}</span>
</i-button>
<div slot='content'>{{$t('app.commonWords.close')}}</div>
</tooltip>
</div>
</#if>
<#-- END: 编辑视图工具栏 -->
</card> </card>
</div> </div>
\ No newline at end of file
...@@ -45,24 +45,14 @@ ...@@ -45,24 +45,14 @@
</#ibizinclude> </#ibizinclude>
</@ibizindent> </@ibizindent>
<#-- END:视图底部视图消息 --> <#-- END:视图底部视图消息 -->
<#-- BEGIN: 编辑视图工具栏 --> <#-- BEGIN: 编辑视图工具栏 -->
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
<@ibizindent blank=4> <template v-if="Object.is(this.selection.id, 'form')">
<template v-if="Object.is(this.selection.id, 'form')"> <@ibizindent blank=4>
${P.getCtrlCode('toolbar', 'CONTROL.html').code} ${P.getCtrlCode('toolbar', 'CONTROL.html').code}
</template> </@ibizindent>
</@ibizindent> </template>
<#else> </#if>
<div class='toolbar-container'> <#-- END: 编辑视图工具栏 -->
<tooltip :transfer="true" :max-width="600">
<i-button @click="onClose($event)">
<i class='fa fa-sign-out'></i>
<span class='caption'>{{$t('app.commonWords.close')}}</span>
</i-button>
<div slot='content'>{{$t('app.commonWords.close')}}</div>
</tooltip>
</div>
</#if>
<#-- END: 编辑视图工具栏 -->
</card> </card>
</div> </div>
...@@ -56,22 +56,12 @@ ${P.getCtrlCode(ctrl, 'CONTROL.html').code} ...@@ -56,22 +56,12 @@ ${P.getCtrlCode(ctrl, 'CONTROL.html').code}
</#ibizinclude> </#ibizinclude>
</@ibizindent> </@ibizindent>
<#-- END:视图底部视图消息 --> <#-- END:视图底部视图消息 -->
<#-- BEGIN: 编辑视图工具栏 --> <#-- BEGIN: 编辑视图工具栏 -->
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
<@ibizindent blank=4> <@ibizindent blank=4>
${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t> ${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t>
</@ibizindent> </@ibizindent>
<#else> </#if>
<div class='toolbar-container'> <#-- END: 编辑视图工具栏 -->
<tooltip :transfer="true" :max-width="600">
<i-button @click="onClose($event)">
<i class='fa fa-sign-out'></i>
<span class='caption'>{{$t('app.commonWords.close')}}</span>
</i-button>
<div slot='content'>{{$t('app.commonWords.close')}}</div>
</tooltip>
</div>
</#if>
<#-- END: 编辑视图工具栏 -->
</card> </card>
</div> </div>
\ No newline at end of file
...@@ -44,24 +44,14 @@ ...@@ -44,24 +44,14 @@
</#ibizinclude> </#ibizinclude>
</@ibizindent> </@ibizindent>
<#-- END:视图底部视图消息 --> <#-- END:视图底部视图消息 -->
<#-- BEGIN: 编辑视图工具栏 --> <#-- BEGIN: 编辑视图工具栏 -->
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
<@ibizindent blank=4> <@ibizindent blank=4>
<template v-if="Object.is(this.selection.id, 'form')"> <template v-if="Object.is(this.selection.id, 'form')">
${P.getCtrlCode('toolbar', 'CONTROL.html').code} ${P.getCtrlCode('toolbar', 'CONTROL.html').code}
</template> </template>
</@ibizindent> </@ibizindent>
<#else> </#if>
<div class='toolbar-container'> <#-- END: 编辑视图工具栏 -->
<tooltip :transfer="true" :max-width="600">
<i-button @click="onClose($event)">
<i class='fa fa-sign-out'></i>
<span class='caption'>{{$t('app.commonWords.close')}}</span>
</i-button>
<div slot='content'>{{$t('app.commonWords.close')}}</div>
</tooltip>
</div>
</#if>
<#-- END: 编辑视图工具栏 -->
</card> </card>
</div> </div>
\ No newline at end of file
...@@ -454,28 +454,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -454,28 +454,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
</#list> </#list>
</#if> </#if>
/**
* 关闭
*
* @param {any[]} args
* @memberof ${srfclassname('${view.name}')}Base
*/
public onClose(): void {
let datas: any[] = [];
<#-- 是否存在界面行为数据部件 -->
<#if view.getXDataPSControl?? && view.getXDataPSControl()??>
<#assign xData = view.getXDataPSControl()/>
const xData: any = this.$refs.${xData.name?lower_case};
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
</#if>
this.closeView(datas);
if(window.parent){
window.parent.postMessage([{ ...datas }],'*');
}
}
/** /**
* 关闭视图 * 关闭视图
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册