Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
13612861
提交
13612861
编写于
11月 17, 2022
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新视图布局面板
上级
ebf7dfb6
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
17 行删除
+18
-17
CONTROL-BASE.vue.ftl
@CONTROL/面板/CONTROL-BASE.vue.ftl
+1
-1
PANEL.ftl
@MACRO/PANEL.ftl
+6
-5
VIEW_LAYOUTPANEL_RENDER.ftl
@VIEW/@MACRO/VIEW_LAYOUTPANEL/VIEW_LAYOUTPANEL_RENDER.ftl
+11
-11
未找到文件。
@CONTROL/面板/CONTROL-BASE.vue.ftl
浏览文件 @
13612861
...
...
@@ -240,8 +240,8 @@ import UIService from '@/uiservice/ui-service';
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
this.computeButtonAuthState();
}
/**
...
...
@MACRO/PANEL.ftl
浏览文件 @
13612861
...
...
@@ -289,7 +289,7 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp(
iconAlign: '${panelItem.getIconAlign()}',
<#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
<#assign uiAction = panelItem.getPSUIAction()/>
uiAction: { actiontarget: '<#if uiAction.getActionTarget()??>${uiAction.getActionTarget()}</#if>', <#if uiAction.getAppNoPrivDisplayMode()??>noprivdisplaymode: ${uiAction.getAppNoPrivDisplayMode()}</#if>, dataaccaction: '<#if uiAction.getDataAccessAction()??>${uiAction.getDataAccessAction()}</#if>', visabled: true, disabled: false },
uiAction: { actiontarget: '<#if uiAction.getActionTarget()??>${uiAction.getActionTarget()}</#if>', <#if uiAction.getAppNoPrivDisplayMode()??>noprivdisplaymode: ${uiAction.getAppNoPrivDisplayMode()}</#if>, dataaccaction: '<#if uiAction.getDataAccessAction()??>${uiAction.getDataAccessAction()}</#if>',
<#if uiAction.getPSAppDataEntity?? && uiAction.getPSAppDataEntity()??>actionDECodeName: '${uiAction.getPSAppDataEntity().codeName}', </#if>
visabled: true, disabled: false },
<#if uiAction.getPredefinedType?? && uiAction.getPredefinedType()??>
predefinedType: '${uiAction.getPredefinedType()}',
</#if>
...
...
@@ -408,11 +408,12 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp(
* @public
* @memberof ${srfclassname('${item.name}')}Base
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
public async computeButtonAuthState() {
for (const key in this.layoutModelDetails) {
const layoutModel = this.layoutModelDetails[key];
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
await layoutModel.computeActionAuthState();
}
}
})
}
</#macro>
\ No newline at end of file
@VIEW/@MACRO/VIEW_LAYOUTPANEL/VIEW_LAYOUTPANEL_RENDER.ftl
浏览文件 @
13612861
...
...
@@ -84,7 +84,7 @@
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-contact"
@valueChange="
handleValueChange
" /></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_PASSWORD">
<@compress single_line=true><app-login-input
class="app-login-password"
...
...
@@ -94,21 +94,21 @@
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-key"
@valueChange="
handleValueChange
" /></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_ORGPICK">
<@compress single_line=true><app-login-org
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="
handleValueChange
" /></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_VERIFICATIONCODE">
<@compress single_line=true><app-login-note-verify
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="
handleValueChange
" /></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_LOGINMSG">
<@compress single_line=true><app-login-message
name="${panelDetail.getName()}"
...
...
@@ -139,7 +139,7 @@
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="
handleValueChange
"/></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
"/></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_QRCODE">
<@compress single_line=true><app-preset-qrcode
name="${panelDetail.getName()}"
...
...
@@ -363,33 +363,33 @@
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
@itemClick="
handleButtonClick('${panelDetail.name}'
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
@itemClick="
(name) => handleButtonClick(name
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "DATA_CANCELCHANGES">
<@compress single_line=true><app-login-button
class="app-reset-button"
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
@itemClick="
handleButtonClick('${panelDetail.name}'
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
@itemClick="
(name) => handleButtonClick(name
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "APP_LOGOUT">
<@compress single_line=true><app-login-button
class="app-logout-button"
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
@itemClick="
handleButtonClick('${panelDetail.name}'
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
@itemClick="
(name) => handleButtonClick(name
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()??>
<@compress single_line=true><app-preset-button
name="${panelDetail.getName()}"
<#if isMultiData == true > :index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
@itemClick="
handleButtonClick('${panelDetail.name}'
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
@itemClick="
(name) => handleButtonClick(name
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#else>
<@compress single_line=true><app-preset-button
name="${panelDetail.getName()}"
<#if isMultiData == true > :index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
@itemClick="
handleButtonClick('${panelDetail.name}'
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
@itemClick="
(name) => handleButtonClick(name
<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
</#if>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "CTRLPOS">
<app-ctrl-pos name="${panelDetail.getName()}"<#if isMultiData == true > :index="slotProps.data.index"</#if> :layoutModelDetails="layoutModelDetails">
...
...
@@ -408,7 +408,7 @@
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="
handleValueChange
" /></@compress>
@valueChange="
($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)
" /></@compress>
<#elseif panelDetail.getPredefinedType?? && panelDetail.getPredefinedType()?? && panelDetail.getPredefinedType() == "AUTH_SSO">
<@compress single_line=true><app-login-third
name="${panelDetail.getName()}"
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录