Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
504909a4
提交
504909a4
编写于
8月 09, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge branch 'master' into 2020.07.12-660 --- fix2
上级
d1018d60
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
10 行增加
和
100 行删除
+10
-100
DEFAULT.ts.ftl
@CONTROL/@MACRO/MODEL/DEFAULT.ts.ftl
+1
-1
FORM.ts.ftl
@CONTROL/@MACRO/MODEL/FORM.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/列表/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/向导面板/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/数据视图/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/日历部件/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/树表格(增强)/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/状态向导面板/MODEL.ts.ftl
+1
-1
MODEL.ts.ftl
@CONTROL/看板视图/MODEL.ts.ftl
+1
-1
CONTROL-BASE.vue.ftl
@CONTROL/表单/CONTROL-BASE.vue.ftl
+0
-90
MODEL.ts.ftl
@CONTROL/表格/MODEL.ts.ftl
+1
-1
未找到文件。
@CONTROL/@MACRO/MODEL/DEFAULT.ts.ftl
浏览文件 @
504909a4
...
...
@@ -35,7 +35,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
',
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
',
dataType: 'FONTKEY',
},
</#if>
...
...
@CONTROL/@MACRO/MODEL/FORM.ts.ftl
浏览文件 @
504909a4
...
...
@@ -44,7 +44,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
',
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
',
dataType: 'FONTKEY',
},
</#if>
...
...
@CONTROL/列表/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -35,7 +35,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
'
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
'
},
</#if>
</#list>
...
...
@CONTROL/向导面板/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -36,7 +36,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
',
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
',
dataType: 'FONTKEY',
},
</#if>
...
...
@CONTROL/数据视图/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -31,7 +31,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
'
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
'
},
</#if>
</#list>
...
...
@CONTROL/日历部件/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -27,7 +27,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
'
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
'
},
</#if>
</#list>
...
...
@CONTROL/树表格(增强)/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -27,7 +27,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
'
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
'
},
</#if>
</#list>
...
...
@CONTROL/状态向导面板/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -36,7 +36,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
',
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
',
dataType: 'FONTKEY',
},
</#if>
...
...
@CONTROL/看板视图/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -31,7 +31,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
'
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
'
},
</#if>
</#list>
...
...
@CONTROL/表单/CONTROL-BASE.vue.ftl
浏览文件 @
504909a4
...
...
@@ -386,96 +386,6 @@ import schema from 'async-validator';
return falg;
}
/**
* 属性值规则
*
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public deRules:any = {
<#if ctrl.getPSDEFormItemVRs?? && ctrl.getPSDEFormItemVRs()??>
<#list ctrl.getPSDEFormItemVRs() as fideValueRule>
<#if fideValueRule.getCheckMode?? && fideValueRule.getCheckMode()?? && fideValueRule.getCheckMode() != 2 && fideValueRule.getPSDEFValueRule?? && fideValueRule.getPSDEFValueRule()??>
<#assign deRule = fideValueRule.getPSDEFValueRule()/>
<#if fideValueRule.getPSDEFormItemName?? && fideValueRule.getPSDEFormItemName()??>
${fideValueRule.getPSDEFormItemName()}:[
<#if deRule.getPSDEFVRGroupCondition?? && deRule.getPSDEFVRGroupCondition()?? && deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#list deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() as condItem>
<@getDeRule condItem />
</#list>
</#if>],
</#if>
</#if>
</#list>
</#if>
};
/**
* 校验属性值规则
*
* @public
* @param {{ name: string }} { name }
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public verifyDeRules(name:string,rule:any = this.deRules,op:string = "AND") :{isPast:boolean,infoMessage:string}{
let falg:any = {infoMessage:""};
if(!rule[name]){
return falg;
}
let opValue = op == 'AND'? true :false;
let startOp = (val:boolean)=>{
if(falg.isPast){
if(opValue){
falg.isPast = falg && val;
}else{
falg.isPast = falg || val;
}
}else{
falg.isPast = val;
}
}
rule[name].forEach((item:any) => {
let dataValue = item.deName?this.data[this.service.getItemNameByDeName(item.deName)]:"";
// 常规规则
if(item.type == 'SIMPLE'){
startOp(!this.$verify.checkFieldSimpleRule(dataValue,item.condOP,item.paramValue,item.ruleInfo,item.paramType,this.data,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
}
// 数值范围
if(item.type == 'VALUERANGE2'){
startOp( !this.$verify.checkFieldValueRangeRule(dataValue,item.minValue,item.isIncludeMinValue,item.maxValue,item.isIncludeMaxValue,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
}
// 正则式
if (item.type == "REGEX") {
startOp(!this.$verify.checkFieldRegExRule(dataValue,item.regExCode,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
}
// 长度
if (item.type == "STRINGLENGTH") {
startOp(!this.$verify.checkFieldStringLengthRule(dataValue,item.minValue,item.isIncludeMinValue,item.maxValue,item.isIncludeMaxValue,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
}
// 系统值规则
if(item.type == "SYSVALUERULE") {
startOp(!this.$verify.checkFieldSysValueRule(dataValue,item.sysRule.regExCode,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
}
// 分组
if(item.type == 'GROUP'){
falg = this.verifyDeRules('group',item)
if(item.isNotMode){
falg.isPast = !falg.isPast;
}
}
});
if(!falg.hasOwnProperty("isPast")){
falg.isPast = true;
}
return falg;
}
/**
* 详情模型集合
...
...
@CONTROL/表格/MODEL.ts.ftl
浏览文件 @
504909a4
...
...
@@ -73,7 +73,7 @@
<#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
{
name: '${majorAppDataEntity.getCodeName()?lower_case}',
prop: '
${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
',
prop: '
<#if majorAppDataEntity.getPSDER1N?? && majorAppDataEntity.getPSDER1N()??>${majorAppDataEntity.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}<#else>${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}</#if>
',
dataType: 'FONTKEY',
},
</#if>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录