Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
51601d91
提交
51601d91
编写于
4月 02, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码 [TrainSys,网页端]
上级
c9fcaba2
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
140 行增加
和
93 行删除
+140
-93
auth-guard.ts
app_Web/src/guard/auth-guard/auth-guard.ts
+38
-0
plugin-factory.ts
app_Web/src/plugin/plugin-factory/plugin-factory.ts
+9
-0
TestRules.json
...SYSAPPS/Web/PSAPPDATAENTITIES/TEST/PSFORMS/TestRules.json
+31
-31
TESTTestRulesEditView.json
...sys/PSSYSAPPS/Web/PSAPPDEVIEWS/TESTTestRulesEditView.json
+31
-31
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+31
-31
未找到文件。
app_Web/src/guard/auth-guard/auth-guard.ts
浏览文件 @
51601d91
...
@@ -2,6 +2,43 @@ import { CoreConst, OrgData } from '@ibiz-template/core';
...
@@ -2,6 +2,43 @@ import { CoreConst, OrgData } from '@ibiz-template/core';
import
{
ModelUtil
}
from
'@ibiz-template/model'
;
import
{
ModelUtil
}
from
'@ibiz-template/model'
;
import
{
getCookie
,
setCookie
}
from
'qx-util'
;
import
{
getCookie
,
setCookie
}
from
'qx-util'
;
import
{
UnauthorizedHandler
}
from
'../unauthorized-handler/unauthorized-handler'
;
import
{
UnauthorizedHandler
}
from
'../unauthorized-handler/unauthorized-handler'
;
import
{
PluginFactory
}
from
'@/plugin'
;
/**
* 预加载应用级引用插件
*
* @description 临时解决方式
* @author chitanda
* @date 2022-10-31 16:10:57
* @return {*} {Promise<void>}
*/
async
function
loadAppPlugins
():
Promise
<
void
>
{
const
modelService
=
await
ModelUtil
.
getModelService
();
const
{
app
}
=
modelService
;
const
pluginRefs
=
app
.
getAllPSAppPFPluginRefs
();
const
map
=
new
Map
();
const
plugin
=
ibiz
.
plugin
as
PluginFactory
;
const
all
=
pluginRefs
?.
map
(
async
pluginRef
=>
{
if
(
pluginRef
&&
pluginRef
.
runtimeObject
&&
pluginRef
.
rTObjectName
&&
pluginRef
.
rTObjectRepo
)
{
const
{
rTObjectName
,
rTObjectRepo
}
=
pluginRef
;
if
(
plugin
.
appPlugins
.
indexOf
(
rTObjectRepo
)
!==
-
1
&&
map
.
has
(
rTObjectRepo
)
!==
true
)
{
map
.
set
(
rTObjectRepo
,
true
);
await
ibiz
.
plugin
.
loadPluginRef
(
rTObjectName
,
rTObjectRepo
);
}
}
});
if
(
all
)
{
await
Promise
.
all
(
all
);
}
}
/**
/**
* 初始化模型
* 初始化模型
...
@@ -19,6 +56,7 @@ async function loadModel(): Promise<void> {
...
@@ -19,6 +56,7 @@ async function loadModel(): Promise<void> {
}
}
return
{};
return
{};
});
});
await
loadAppPlugins
();
}
}
/**
/**
...
...
app_Web/src/plugin/plugin-factory/plugin-factory.ts
浏览文件 @
51601d91
...
@@ -67,6 +67,15 @@ export class PluginFactory implements IPluginFactory {
...
@@ -67,6 +67,15 @@ export class PluginFactory implements IPluginFactory {
*/
*/
protected
predefinedPlugins
:
Map
<
string
,
IPluginItem
>
=
new
Map
();
protected
predefinedPlugins
:
Map
<
string
,
IPluginItem
>
=
new
Map
();
/**
* 在预置加载清单的插件
*
* @author chitanda
* @date 2023-04-02 23:04:40
* @type {string[]}
*/
readonly
appPlugins
:
string
[]
=
[];
/**
/**
* 注册视图默认插件
* 注册视图默认插件
*
*
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDATAENTITIES/TEST/PSFORMS/TestRules.json
浏览文件 @
51601d91
...
@@ -76,37 +76,6 @@
...
@@ -76,37 +76,6 @@
},
},
"getPSDEFormItemName"
:
"field4"
,
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
},
{
"checkMode"
:
3
,
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"name"
:
"表单项值规则"
,
...
@@ -344,6 +313,37 @@
...
@@ -344,6 +313,37 @@
},
},
"getPSDEFormItemName"
:
"field6"
,
"getPSDEFormItemName"
:
"field6"
,
"valueRuleType"
:
"DEFVALUERULE"
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
},
{
"checkMode"
:
3
,
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"name"
:
"表单项值规则"
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/TESTTestRulesEditView.json
浏览文件 @
51601d91
...
@@ -205,37 +205,6 @@
...
@@ -205,37 +205,6 @@
},
},
"getPSDEFormItemName"
:
"field4"
,
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
},
{
"checkMode"
:
3
,
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"name"
:
"表单项值规则"
,
...
@@ -473,6 +442,37 @@
...
@@ -473,6 +442,37 @@
},
},
"getPSDEFormItemName"
:
"field6"
,
"getPSDEFormItemName"
:
"field6"
,
"valueRuleType"
:
"DEFVALUERULE"
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
},
{
"checkMode"
:
3
,
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"name"
:
"表单项值规则"
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
51601d91
...
@@ -18046,37 +18046,6 @@
...
@@ -18046,37 +18046,6 @@
},
},
"getPSDEFormItemName" : "field4",
"getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE"
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, {
}, {
"checkMode" : 3,
"checkMode" : 3,
"name" : "表单项值规则",
"name" : "表单项值规则",
...
@@ -18314,6 +18283,37 @@
...
@@ -18314,6 +18283,37 @@
},
},
"getPSDEFormItemName" : "field6",
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, {
}, {
"checkMode" : 3,
"checkMode" : 3,
"name" : "表单项值规则",
"name" : "表单项值规则",
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录