Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
a79539de
提交
a79539de
编写于
9月 13, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lxm1993 发布系统代码 [TrainSys,网页端]
上级
169b0351
变更
16
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
183 行增加
和
31 行删除
+183
-31
prepareparam-node.ts
...ervice/data-service/logic/logic-node/prepareparam-node.ts
+1
-1
prepareparam-node.ts
...rc/app-logic/appuilogic/uilogic-node/prepareparam-node.ts
+1
-1
codelist-translator.ts
...vue/src/app-service/common-service/codelist-translator.ts
+36
-19
app-model-button.vue
...c/components/common/app-model-button/app-model-button.vue
+16
-1
app-span.vue
...ages/ibiz-vue/src/components/common/app-span/app-span.vue
+4
-3
codelist.vue
...ages/ibiz-vue/src/components/common/codelist/codelist.vue
+9
-1
app-form-base.tsx
...c/components/control/app-common-control/app-form-base.tsx
+1
-0
app-panel-base.tsx
.../components/control/app-common-control/app-panel-base.tsx
+1
-0
app-searchform-base.tsx
...onents/control/app-common-control/app-searchform-base.tsx
+1
-0
app-default-appmenu.less
...ents/control/app-default-appmenu/app-default-appmenu.less
+4
-2
app-default-view-layout.tsx
...ayout/app-default-view-layout/app-default-view-layout.tsx
+1
-0
grid-control-base.tsx
app_Web/packages/ibiz-vue/src/widgets/grid-control-base.tsx
+2
-2
h2_table.xml
trainsys-core/src/main/resources/liquibase/h2_table.xml
+1
-1
EditorTest.json
...YSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/EditorTest.json
+35
-0
bookBookEditViewEditorTest.json
...SSYSAPPS/Web/PSAPPDEVIEWS/bookBookEditViewEditorTest.json
+35
-0
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+35
-0
未找到文件。
app_Web/packages/ibiz-core/src/service/data-service/logic/logic-node/prepareparam-node.ts
浏览文件 @
a79539de
...
...
@@ -252,7 +252,7 @@ export class AppDeLogicPrepareParamNode extends AppDeLogicNodeBase {
try {
switch (logicNodeParam.srcValueType) {
case "SRCDLPARAM": // 源逻辑参数
targetValue = srcParam.get(srcFieldName) ? srcParam.get(srcFieldName) :
srcParam
;
targetValue = srcParam.get(srcFieldName) ? srcParam.get(srcFieldName) :
null
;
break;
case 'APPLICATION': // 系统全局对象
case 'SESSION': // 用户全局对象
...
...
app_Web/packages/ibiz-vue/src/app-logic/appuilogic/uilogic-node/prepareparam-node.ts
浏览文件 @
a79539de
...
...
@@ -259,7 +259,7 @@ export class AppUILogicPrepareParamNode extends AppUILogicNodeBase {
case "SRCDLPARAM": // 源逻辑参数
case 'WEBCONTEXT': // 网页请求上下文
case 'VIEWPARAM': // 当前视图参数
targetValue = srcParam.get(srcFieldName);
targetValue = srcParam.get(srcFieldName)
? srcParam.get(srcFieldName) : null
;
break;
case 'APPLICATION': // 系统全局对象
case 'SESSION': // 用户全局对象
...
...
app_Web/packages/ibiz-vue/src/app-service/common-service/codelist-translator.ts
浏览文件 @
a79539de
...
...
@@ -94,10 +94,14 @@ export class CodeListTranslator {
* @param {*} value 传入的value值
* @param {*} codeList 代码表的模型对象
* @param {*} _this 上下文索引
* @param {*} context 上下文
* @param {*} viewparams 视图参数
* @param {*} isLoading 是否加载
* @param {*} translatorMode 翻译模式(true: 使用text获取选中代码表项, false: 使用value获取代码表项)
* @returns
* @memberof CodeListTranslator
*/
public
async
getSelectedCodeListItems
(
value
:
any
,
codeList
:
any
,
_this
:
any
,
context
:
any
,
viewparams
?:
any
,
isLoading
:
boolean
=
false
){
public
async
getSelectedCodeListItems
(
value
:
any
,
codeList
:
any
,
_this
:
any
,
context
:
any
,
viewparams
?:
any
,
isLoading
:
boolean
=
false
,
translatorMode
:
boolean
=
false
){
if
(
Util
.
isEmpty
(
value
)){
return
[]
}
...
...
@@ -108,7 +112,7 @@ export class CodeListTranslator {
}
else
{
codeListItems
=
await
this
.
codeListService
.
getDataItems
(
this
.
getCodeListObj
(
codeList
,
context
,
viewparams
,
isLoading
));
}
return
this
.
getSelectedItems
(
value
,
codeListItems
,
codeList
);
return
this
.
getSelectedItems
(
value
,
codeListItems
,
codeList
,
translatorMode
);
}
/**
...
...
@@ -147,15 +151,27 @@ export class CodeListTranslator {
* @param {*} value 传入的value值
* @param {any[]} codeListItems 代码表项集合
* @param {*} codeList 代码表模型对象
* @param {*} translatorMode 翻译模式(true: 使用text获取选中代码表项, false: 使用value获取代码表项)
* @memberof CodeListTranslator
*/
private
getSelectedItems
(
value
:
any
,
codeListItems
:
any
[],
codeList
:
any
){
private
getSelectedItems
(
value
:
any
,
codeListItems
:
any
[],
codeList
:
any
,
translatorMode
:
boolean
){
if
(
codeListItems
){
let
valueSeparator
=
codeList
.
valueSeparator
||
this
.
valueSeparator
;
// 值的集合
let
values
:
any
[]
=
[];
// 选中代码表项的集合
let
selectedItems
:
any
[]
=
[];
if
(
translatorMode
)
{
const
textValues
=
[...
value
.
toString
().
split
(
valueSeparator
)];
textValues
.
forEach
((
text
:
string
)
=>
{
let
selected
=
codeListItems
.
find
((
_item
:
any
)
=>
_item
.
text
==
text
);
if
(
selected
){
selectedItems
.
push
(
selected
);
}
else
{
selectedItems
.
push
({
text
:
text
});
}
})
}
else
{
if
(
codeList
.
orMode
==
'NUM'
){
codeListItems
.
forEach
((
_item
:
any
,
index
:
number
)
=>
{
const
nValue
=
parseInt
((
value
as
any
),
10
);
...
...
@@ -178,6 +194,7 @@ export class CodeListTranslator {
}
})
}
}
return
selectedItems
;
}
return
[]
...
...
app_Web/packages/ibiz-vue/src/components/common/app-model-button/app-model-button.vue
浏览文件 @
a79539de
...
...
@@ -22,7 +22,7 @@
<
script
lang=
"ts"
>
import
{
IPSAppDEUIAction
}
from
'@ibiz/dynamic-model-api'
;
import
{
Vue
,
Component
,
Prop
}
from
'vue-property-decorator'
;
import
{
Vue
,
Component
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
@
Component
({})
export
default
class
AppModelButton
extends
Vue
{
...
...
@@ -84,6 +84,13 @@ export default class AppModelButton extends Vue {
*/
@
Prop
({
default
:
undefined
})
public
shape
?:
string
|
undefined
;
/**
* 传入数据
*
* @memberof AppModelButton
*/
@
Prop
()
data
:
any
;
/**
* 按钮名称
*
...
...
@@ -231,6 +238,14 @@ export default class AppModelButton extends Vue {
*/
public
iconAlign
:
'LEFT'
|
'TOP'
|
'RIGHT'
|
'BOTTOM'
=
'LEFT'
;
@
Watch
(
'data'
,
{
deep
:
true
})
dataChange
(
newVal
:
any
,
oldVal
:
any
)
{
let
{
captionItemName
}
=
this
.
modelJson
;
if
(
captionItemName
&&
newVal
[
captionItemName
.
toLowerCase
()])
{
this
.
caption
=
newVal
[
captionItemName
];
}
}
/**
* 初始化完成
*
...
...
app_Web/packages/ibiz-vue/src/components/common/app-span/app-span.vue
浏览文件 @
a79539de
<
template
>
<codelist
v-if=
"codeList
&& !showSourceMode
"
v-if=
"codeList"
:codeList=
"codeList"
:value=
"value"
:data=
"data"
...
...
@@ -8,6 +8,7 @@
:localContext=
"localContext"
:localParam=
"localParam"
:context=
"context"
:translatorMode=
"showSourceMode"
:viewparams=
"viewparams"
></codelist>
<app-upload-file-info
...
...
@@ -196,8 +197,8 @@ export default class AppSpan extends Vue {
* @memberof AppSpan
*/
public
load
()
{
if
(
this
.
codeList
&&
!
this
.
showSourceMode
)
{
return
;
//代码表走codelist组件
if
(
this
.
codeList
)
{
return
;
}
else
if
(
this
.
editorType
===
'ADDRESSPICKUP'
)
{
if
(
this
.
$util
.
isEmpty
(
this
.
value
))
{
this
.
text
=
''
;
...
...
app_Web/packages/ibiz-vue/src/components/common/codelist/codelist.vue
浏览文件 @
a79539de
...
...
@@ -97,6 +97,14 @@ export default class CodeList extends Vue {
*/
@
Prop
()
public
textOnly
?:
boolean
;
/**
* 代码表翻译模式(true: 使用text获取选中代码表项, false: 使用value获取代码表项)
*
* @type {*}
* @memberof CodeList
*/
@
Prop
({
default
:
false
})
public
translatorMode
?:
boolean
;
/**
* 显示文本
*
...
...
@@ -218,7 +226,7 @@ export default class CodeList extends Vue {
this
.
text
=
response
;
})
}
else
{
this
.
codeListTranslator
.
getSelectedCodeListItems
(
this
.
value
,
this
.
codeList
,
this
,
_context
,
_param
).
then
(
async
(
response
:
any
)
=>
{
this
.
codeListTranslator
.
getSelectedCodeListItems
(
this
.
value
,
this
.
codeList
,
this
,
_context
,
_param
,
false
,
this
.
translatorMode
).
then
(
async
(
response
:
any
)
=>
{
this
.
items
=
await
this
.
getImgURLOfBase64
(
response
);
this
.
isEmpty
=
!
(
this
.
items
?.
length
>
0
);
})
...
...
app_Web/packages/ibiz-vue/src/components/control/app-common-control/app-form-base.tsx
浏览文件 @
a79539de
...
...
@@ -413,6 +413,7 @@ export class AppFormBase extends EditFormControlBase {
<
div
>
{
badge
}
<
app
-
model
-
button
data=
{
this
.
data
}
modelJson=
{
modelJson
}
dynaStyle=
{
dynaStyle
}
dynaClass=
{
dynaClass
}
...
...
app_Web/packages/ibiz-vue/src/components/control/app-common-control/app-panel-base.tsx
浏览文件 @
a79539de
...
...
@@ -400,6 +400,7 @@ export class AppPanelBase extends PanelControlBase {
const
detailStyle
=
this
.
layoutDetailsModel
[
name
].
getBoxStyle
();
return
(
<
app
-
model
-
button
data=
{
this
.
data
}
modelJson=
{
modelJson
}
dynaStyle=
{
detailStyle
}
dynaClass=
{
detailClass
}
...
...
app_Web/packages/ibiz-vue/src/components/control/app-common-control/app-searchform-base.tsx
浏览文件 @
a79539de
...
...
@@ -354,6 +354,7 @@ export class AppSearchFormBase extends SearchFormControlBase {
<
div
>
{
badge
}
<
app
-
model
-
button
data=
{
this
.
data
}
modelJson=
{
modelJson
}
dynaStyle=
{
dynaStyle
}
dynaClass=
{
dynaClass
}
...
...
app_Web/packages/ibiz-vue/src/components/control/app-default-appmenu/app-default-appmenu.less
浏览文件 @
a79539de
...
...
@@ -201,15 +201,17 @@
line-height: 50px;
color: var(--app-font-color);
overflow: visible;
border-bottom: 0;
&:not(.is-disabled):hover, &:not(.is-disabled):focus, &.is-active {
color: var(--app-font-color);
background-color: var(--app-background-color-bright);
}
&.is-active {
border-bottom:
2px solid var(--app-font-color)
;
border-bottom:
0
;
}
}
.el-submenu {
border-bottom: 0;
.el-submenu__title {
height: 50px;
line-height: 50px;
...
...
@@ -221,7 +223,7 @@
}
&.is-active .el-submenu__title {
color: var(--app-font-color);
border-bottom:
2px solid var(--app-font-color)
;
border-bottom:
0
;
}
}
}
...
...
app_Web/packages/ibiz-vue/src/components/layout/app-default-layout/app-default-view-layout/app-default-view-layout.tsx
浏览文件 @
a79539de
...
...
@@ -1168,6 +1168,7 @@ export class AppDefaultViewLayout extends ControlContainer {
return
(
<
app
-
model
-
button
id=
{
name
}
data=
{
this
.
layoutData
}
modelJson=
{
modelJson
}
dynaStyle=
{
detailStyle
}
dynaClass=
{
detailClass
}
...
...
app_Web/packages/ibiz-vue/src/widgets/grid-control-base.tsx
浏览文件 @
a79539de
...
...
@@ -1458,7 +1458,7 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
public
exportExcel
(
args
:
any
=
{}):
void
{
let
_this
:
any
=
this
;
const
exportModel
=
this
.
controlInstance
.
getPSDEDataExport
?.();
if
(
exportModel
&&
exportModel
.
M
.
enableBackend
&&
!
exportModel
.
M
.
enableFront
)
{
if
(
exportModel
&&
exportModel
.
M
.
enableBackend
)
{
this
.
exportExcelByBackend
(
args
);
return
;
}
...
...
@@ -1714,7 +1714,7 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
const { codeList } = codelistColumn;
let items: any = await this.codeListService.getDataItems({ tag: codeList.codeName, type: codeList.codeListType, data: codeList, context: this.context, viewparams: this.viewparams });
jsonData.forEach((row: any) => {
row[codelistColumn.name] = ModelTool.getCodelistValue(items, row[codelistColumn.name], codelistColumn.codeList, this);
row[codelistColumn.name] = ModelTool.getCodelistValue(items, row[codelistColumn.name], codelistColumn.codeList, this)
|| row[codelistColumn.name]
;
})
}
// 值格式化
...
...
trainsys-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
a79539de
...
...
@@ -50,7 +50,7 @@
</changeSet>
<!--输出实体[BOOK]数据结构 -->
<changeSet
author=
"root"
id=
"tab-book-21
5
-3"
>
<changeSet
author=
"root"
id=
"tab-book-21
6
-3"
>
<createTable
tableName=
"T_BOOK"
>
<column
name=
"BOOKNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/EditorTest.json
浏览文件 @
a79539de
...
...
@@ -94,6 +94,14 @@
"id"
:
"srfsourcekey"
,
"hidden"
:
true
,
"dataType"
:
25
},
{
"id"
:
"hiddenitem"
,
"hidden"
:
true
,
"dataType"
:
25
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
}
},
{
"id"
:
"bookname"
,
"dataType"
:
25
,
...
...
@@ -278,6 +286,33 @@
"detailType"
:
"GROUPPANEL"
,
"name"
:
"group1"
,
"getPSDEFormDetails"
:
[
{
"caption"
:
"属性9"
,
"codeName"
:
"hiddenitem"
,
"dataType"
:
25
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMITEM"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"labelPos"
:
"LEFT"
,
"labelWidth"
:
130
,
"name"
:
"hiddenitem"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
},
"getPSEditor"
:
{
"editorType"
:
"HIDDEN"
,
"name"
:
"hiddenitem"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"allowEmpty"
:
true
,
"hidden"
:
true
,
"showCaption"
:
true
},
{
"caption"
:
"标签"
,
"codeName"
:
"bookname"
,
"dataType"
:
25
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/bookBookEditViewEditorTest.json
浏览文件 @
a79539de
...
...
@@ -215,6 +215,14 @@
"id"
:
"srfsourcekey"
,
"hidden"
:
true
,
"dataType"
:
25
},
{
"id"
:
"hiddenitem"
,
"hidden"
:
true
,
"dataType"
:
25
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
}
},
{
"id"
:
"bookname"
,
"dataType"
:
25
,
...
...
@@ -399,6 +407,33 @@
"detailType"
:
"GROUPPANEL"
,
"name"
:
"group1"
,
"getPSDEFormDetails"
:
[
{
"caption"
:
"属性9"
,
"codeName"
:
"hiddenitem"
,
"dataType"
:
25
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMITEM"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"labelPos"
:
"LEFT"
,
"labelWidth"
:
130
,
"name"
:
"hiddenitem"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
},
"getPSEditor"
:
{
"editorType"
:
"HIDDEN"
,
"name"
:
"hiddenitem"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"allowEmpty"
:
true
,
"hidden"
:
true
,
"showCaption"
:
true
},
{
"caption"
:
"标签"
,
"codeName"
:
"bookname"
,
"dataType"
:
25
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
a79539de
...
...
@@ -4186,6 +4186,14 @@
"id"
:
"srfsourcekey"
,
"hidden"
:
true
,
"dataType"
:
25
},
{
"id"
:
"hiddenitem"
,
"hidden"
:
true
,
"dataType"
:
25
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
}
},
{
"id"
:
"bookname"
,
"dataType"
:
25
,
...
...
@@ -4370,6 +4378,33 @@
"detailType"
:
"GROUPPANEL"
,
"name"
:
"group1"
,
"getPSDEFormDetails"
:
[
{
"caption"
:
"属性9"
,
"codeName"
:
"hiddenitem"
,
"dataType"
:
25
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMITEM"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"labelPos"
:
"LEFT"
,
"labelWidth"
:
130
,
"name"
:
"hiddenitem"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"FIELD9"
,
"codeName"
:
"Field9"
},
"getPSEditor"
:
{
"editorType"
:
"HIDDEN"
,
"name"
:
"hiddenitem"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"allowEmpty"
:
true
,
"hidden"
:
true
,
"showCaption"
:
true
},
{
"caption"
:
"标签"
,
"codeName"
:
"bookname"
,
"dataType"
:
25
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录