Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
b732bf5d
提交
b732bf5d
编写于
5月 26, 2025
作者:
ShineKOT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新编辑视图工具栏位置,提供默认关闭按钮
上级
0d39a2e8
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
69 行增加
和
4 行删除
+69
-4
EDIT.vue.ftl
@CONTROL/视图布局面板/@MACRO/EDIT.vue.ftl
+40
-3
VIEW.less.ftl
@CONTROL/视图布局面板/实体编辑视图/VIEW.less.ftl
+5
-1
VIEW_CONTENT-BASE.vue.ftl
@VIEW/@MACRO/VIEW_CONTENT-BASE.vue.ftl
+22
-0
en-US-base.ts.ftl
APP/src/locale/lang/en-US-base.ts.ftl
+1
-0
zh-CN-base.ts.ftl
APP/src/locale/lang/zh-CN-base.ts.ftl
+1
-0
未找到文件。
@CONTROL/视图布局面板/@MACRO/EDIT.vue.ftl
浏览文件 @
b732bf5d
...
...
@@ -2,9 +2,21 @@
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :bordered="false">
<#ibizinclude>
./VIEW_CAPTION_DATAINFO.vue.ftl
</#ibizinclude>
<#if view.isShowCaptionBar()>
<div slot='title' class="header-container">
<#if view.isShowCaptionBar()>
<#if view.getPSSysImage()??>
<#assign viewimg = view.getPSSysImage()/>
<#if viewimg.getImagePath() != ''>
<span class='caption-image'><i class='${viewimg.getCssClass()}'></i></span>
<#else>
<span class='caption-image'><img src='${viewimg.getImagePath()}'/></span>
</#if>
</#if>
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</#if>
</div>
</#if>
<#-- BEGIN:视图顶部视图消息 -->
<@ibizindent blank=8>
...
...
@@ -34,5 +46,29 @@ ${P.getCtrlCode('form', 'CONTROL.html').code}
</#ibizinclude>
</@ibizindent>
<#-- END:视图底部视图消息 -->
<#-- BEGIN: 编辑视图工具栏 -->
<#if view.hasPSControl('toolbar')>
<#if selfToolbarRender??>
<@ibizindent blank=4>
${selfToolbarRender}<#t>
</@ibizindent>
<#else>
<@ibizindent blank=4>
${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t>
</@ibizindent>
</#if>
<#else>
<div class='toolbar-container'>
<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>
</div>
\ No newline at end of file
@CONTROL/视图布局面板/实体编辑视图/VIEW.less.ftl
浏览文件 @
b732bf5d
...
...
@@ -4,7 +4,10 @@
right: 0px;
}
}
.deeditview >.view-card >.ivu-card-body >.toolbar-container {
display: flex;
justify-content: center;
}
<#ibizinclude>
../@MACRO/DEFAULT.less.ftl
</#ibizinclude>
\ No newline at end of file
@VIEW/@MACRO/VIEW_CONTENT-BASE.vue.ftl
浏览文件 @
b732bf5d
...
...
@@ -454,6 +454,28 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
</#list>
</#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 = 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 }],'*');
}
}
/**
* 关闭视图
*
...
...
APP/src/locale/lang/en-US-base.ts.ftl
浏览文件 @
b732bf5d
...
...
@@ -37,6 +37,7 @@ function getAppLocale(){
loadmore:"Load more",
nomore:"No more",
other:"other",
close:"Close",
valueNotEmpty:"The value cannot be null",
},
local:{
...
...
APP/src/locale/lang/zh-CN-base.ts.ftl
浏览文件 @
b732bf5d
...
...
@@ -37,6 +37,7 @@ function getAppLocale(){
loadmore:"加载更多",
nomore:"没有更多了",
other:"其他",
close:"关闭",
valueNotEmpty:"值不能为空",
},
local:{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录