Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
inori_templ
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zpc
inori_templ
提交
1dc0eac5
提交
1dc0eac5
编写于
9月 30, 2019
作者:
zhangpingchuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zpc
上级
29b89d98
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
CONTROL.vue#DETAIL_FORMITEM.ftl
@CONTROL/表单/CONTROL.vue#DETAIL_FORMITEM.ftl
+1
-1
CONTROL.vue#DETAIL_MODEL.ftl
@CONTROL/表单/CONTROL.vue#DETAIL_MODEL.ftl
+1
-1
CONTROL.vue#FORM_LOGIC.ftl
@CONTROL/表单/CONTROL.vue#FORM_LOGIC.ftl
+3
-2
未找到文件。
@CONTROL/表单/CONTROL.vue#DETAIL_FORMITEM.ftl
浏览文件 @
1dc0eac5
...
...
@@ -2,7 +2,7 @@
${item.render.code}
<#else>
<#if !item.isHidden()>
<app-form-item :helpInfo="detailsModel.${item.name}.error" :required="
<#if item.isAllowEmpty()>false<#else>true</#if>
" :validateStatus="detailsModel.${item.name}.validateStatus" :itemRules="rules.${item.name}" :labelName="$t('${view.name?lower_case}.${ctrl.getCodeName()?lower_case}.${item.getName()}')" :labelwidth="'${item.getLabelWidth()}px'" :labelPosition="'${item.getLabelPos()}'" :isShowCaption="${item.isShowCaption()?c}" :formItemStyle="{<#if item.getItemWidth()??&&item.getItemWidth() != 0>width:'${item.getItemWidth()}px',</#if><#if item.getItemHeight()?? && item.getItemHeight() != 0>height:'${item.getItemHeight()}px'</#if>}" :isEmptyCaption="${item.isEmptyCaption()?c}" :formItemContentStyle="{<#if item.getEditorHeight()?? && item.getEditorHeight() != 0>height:'${item.getEditorHeight()}px',</#if><#if item.getEditorWidth()?? && item.getEditorWidth() != 0>width:'${item.getEditorWidth()}px'</#if>}" class="app-form-item-${item.getName()} <#if item.getPSSysCss?? && item.getPSSysCss()??>${item.getPSSysCss().getCssName()}</#if>">
<app-form-item :helpInfo="detailsModel.${item.name}.error" :required="
detailsModel.${item.name}.required
" :validateStatus="detailsModel.${item.name}.validateStatus" :itemRules="rules.${item.name}" :labelName="$t('${view.name?lower_case}.${ctrl.getCodeName()?lower_case}.${item.getName()}')" :labelwidth="'${item.getLabelWidth()}px'" :labelPosition="'${item.getLabelPos()}'" :isShowCaption="${item.isShowCaption()?c}" :formItemStyle="{<#if item.getItemWidth()??&&item.getItemWidth() != 0>width:'${item.getItemWidth()}px',</#if><#if item.getItemHeight()?? && item.getItemHeight() != 0>height:'${item.getItemHeight()}px'</#if>}" :isEmptyCaption="${item.isEmptyCaption()?c}" :formItemContentStyle="{<#if item.getEditorHeight()?? && item.getEditorHeight() != 0>height:'${item.getEditorHeight()}px',</#if><#if item.getEditorWidth()?? && item.getEditorWidth() != 0>width:'${item.getEditorWidth()}px'</#if>}" class="app-form-item-${item.getName()} <#if item.getPSSysCss?? && item.getPSSysCss()??>${item.getPSSysCss().getCssName()}</#if>">
${P.getEditorCode(item, "EDITOR.vue").code}
</app-form-item>
</#if>
...
...
@CONTROL/表单/CONTROL.vue#DETAIL_MODEL.ftl
浏览文件 @
1dc0eac5
...
...
@@ -5,7 +5,7 @@ new FormButtonModel({ ${detail}<#if item.getPSUIAction()??><#assign uiaction=ite
<#elseif item.getDetailType() == 'DRUIPART'>
new FormDRUIPartModel({ ${detail} })
<#elseif item.getDetailType() == 'FORMITEM'>
new FormItemModel({ ${detail}, disabled: false,validateStatus:"",enableCond: ${item.getEnableCond()?c} })
new FormItemModel({ ${detail}, disabled: false,validateStatus:"",e
rror:"",required:<#if item.isAllowEmpty()>false<#else>true</#if>,e
nableCond: ${item.getEnableCond()?c} })
<#elseif item.getDetailType() == 'FORMPAGE'>
new FormPageModel({ ${detail} })
<#elseif item.getDetailType() == 'FORMPART'>
...
...
@CONTROL/表单/CONTROL.vue#FORM_LOGIC.ftl
浏览文件 @
1dc0eac5
...
...
@@ -11,12 +11,13 @@
if (${P.getPartCode(ITEMBLANK, 'DETAIL_LOGIC').code}) {
ret = false;
}
this.rules.${formdetail.name}.some((rule) => {
<#--
this.rules.${formdetail.name}.some((rule) => {
if (rule.hasOwnProperty('required')) {
rule.required = ret;
}
return false;
});
}); -->
this.detailsModel.${formdetail.name}.required = ret;
}
</#if>
<#if formdetail.getPSDEFDGroupLogic('ITEMENABLE')??>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录