Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
03c9a4f4
提交
03c9a4f4
编写于
8月 12, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhujiamin 发布系统代码 [TrainSys,网页端]
上级
60202905
变更
21
显示空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
241 行增加
和
84 行删除
+241
-84
data-panel-engine.ts
app_Web/packages/ibiz-core/src/engine/data-panel-engine.ts
+3
-2
option-view-engine.ts
app_Web/packages/ibiz-core/src/engine/option-view-engine.ts
+1
-0
form-item.ts
...Web/packages/ibiz-core/src/model/form-detail/form-item.ts
+20
-1
app-span.vue
...ages/ibiz-vue/src/components/common/app-span/app-span.vue
+10
-2
span-editor.tsx
...biz-vue/src/components/editor/span-editor/span-editor.tsx
+4
-0
app-modal.vue
app_Web/packages/ibiz-vue/src/utils/app-modal/app-modal.vue
+6
-18
wfactionview-base.tsx
app_Web/packages/ibiz-vue/src/view/wfactionview-base.tsx
+1
-1
wfdynaactionview-base.tsx
app_Web/packages/ibiz-vue/src/view/wfdynaactionview-base.tsx
+2
-0
wfdynastartview-base.tsx
app_Web/packages/ibiz-vue/src/view/wfdynastartview-base.tsx
+2
-0
editform-control-base.tsx
...b/packages/ibiz-vue/src/widgets/editform-control-base.tsx
+62
-44
form-control-base.tsx
app_Web/packages/ibiz-vue/src/widgets/form-control-base.tsx
+3
-3
grid-control-base.tsx
app_Web/packages/ibiz-vue/src/widgets/grid-control-base.tsx
+10
-5
searchform-control-base.tsx
...packages/ibiz-vue/src/widgets/searchform-control-base.tsx
+3
-3
environment.ts
app_Web/src/environments/environment.ts
+1
-1
en-US-base.ts
app_Web/src/locale/lang/en-US-base.ts
+1
-0
zh-CN-base.ts
app_Web/src/locale/lang/zh-CN-base.ts
+1
-0
messages_zh_CN.properties
...ources/i18n/cn/ibizlab/trainsys/messages_zh_CN.properties
+1
-1
h2_table.xml
trainsys-core/src/main/resources/liquibase/h2_table.xml
+1
-1
Main.json
...ys/PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/Main.json
+52
-1
bookEditView.json
...lab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/bookEditView.json
+52
-1
ZH_CN.json
...el/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPLANS/ZH_CN.json
+5
-0
未找到文件。
app_Web/packages/ibiz-core/src/engine/data-panel-engine.ts
浏览文件 @
03c9a4f4
...
@@ -94,8 +94,9 @@ export class DataPanelEngine extends ViewEngine {
...
@@ -94,8 +94,9 @@ export class DataPanelEngine extends ViewEngine {
if
(
this
.
dataPanel
)
{
if
(
this
.
dataPanel
)
{
if
(
Object
.
is
(
this
.
dataPanel
.
controlType
,
'FORM'
))
{
if
(
Object
.
is
(
this
.
dataPanel
.
controlType
,
'FORM'
))
{
if
(
data
&&
data
.
data
)
{
if
(
data
&&
data
.
data
)
{
this
.
dataPanel
.
fillForm
(
data
.
data
)
;
this
.
dataPanel
.
fillForm
(
data
.
data
)
.
then
(()
=>
{
this
.
dataPanel
.
formLogic
({
name
:
''
,
newVal
:
null
,
oldVal
:
null
});
this
.
dataPanel
.
formLogic
({
name
:
''
,
newVal
:
null
,
oldVal
:
null
});
})
}
}
}
else
if
(
Object
.
is
(
this
.
dataPanel
.
controlType
,
'PANEL'
))
{
}
else
if
(
Object
.
is
(
this
.
dataPanel
.
controlType
,
'PANEL'
))
{
if
(
data
&&
data
.
data
)
{
if
(
data
&&
data
.
data
)
{
...
...
app_Web/packages/ibiz-core/src/engine/option-view-engine.ts
浏览文件 @
03c9a4f4
...
@@ -41,6 +41,7 @@ export class OptionViewEngine extends EditViewEngine {
...
@@ -41,6 +41,7 @@ export class OptionViewEngine extends EditViewEngine {
* @memberof OptionViewEngine
* @memberof OptionViewEngine
*/
*/
public
cancel
()
{
public
cancel
()
{
this
.
view
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
view
.
viewtag
,
viewDataChange
:
false
});
this
.
emitViewEvent
(
'close'
,
null
);
this
.
emitViewEvent
(
'close'
,
null
);
}
}
}
}
\ No newline at end of file
app_Web/packages/ibiz-core/src/model/form-detail/form-item.ts
浏览文件 @
03c9a4f4
import
{
IPSAppCodeList
}
from
'@ibiz/dynamic-model-api'
;
import
{
FormDetailModel
}
from
'./form-detail'
;
import
{
FormDetailModel
}
from
'./form-detail'
;
/**
/**
...
@@ -44,7 +45,7 @@ export class FormItemModel extends FormDetailModel {
...
@@ -44,7 +45,7 @@ export class FormItemModel extends FormDetailModel {
* @type {boolean}
* @type {boolean}
* @memberof FormItemModel
* @memberof FormItemModel
*/
*/
public
required
:
boolean
=
false
;
public
required
:
boolean
=
false
;
/**
/**
* @description 忽略输入值
* @description 忽略输入值
...
@@ -53,6 +54,22 @@ export class FormItemModel extends FormDetailModel {
...
@@ -53,6 +54,22 @@ export class FormItemModel extends FormDetailModel {
*/
*/
public
ignoreInput
?:
number
|
null
;
public
ignoreInput
?:
number
|
null
;
/**
* 是否转化为代码项文本
*
* @type {boolean}
* @memberof FormItemModel
*/
public
convertToCodeItemText
:
boolean
=
false
;
/**
* 代码表对象
*
* @type {(IPSAppCodeList | null)}
* @memberof FormItemModel
*/
public
codelist
:
IPSAppCodeList
|
null
=
null
;
/**
/**
* @description 动态值项名称
* @description 动态值项名称
* @type {string}
* @type {string}
...
@@ -74,6 +91,8 @@ export class FormItemModel extends FormDetailModel {
...
@@ -74,6 +91,8 @@ export class FormItemModel extends FormDetailModel {
this
.
required
=
opts
.
required
;
this
.
required
=
opts
.
required
;
this
.
ignoreInput
=
opts
.
ignoreInput
;
this
.
ignoreInput
=
opts
.
ignoreInput
;
this
.
captionItemName
=
opts
.
captionItemName
;
this
.
captionItemName
=
opts
.
captionItemName
;
this
.
convertToCodeItemText
=
opts
.
convertToCodeItemText
;
this
.
codelist
=
opts
.
codelist
;
}
}
/**
/**
...
...
app_Web/packages/ibiz-vue/src/components/common/app-span/app-span.vue
浏览文件 @
03c9a4f4
<
template
>
<
template
>
<codelist
<codelist
v-if=
"codeList"
v-if=
"codeList
&& !showSourceMode
"
:codeList=
"codeList"
:codeList=
"codeList"
:value=
"value"
:value=
"value"
:data=
"data"
:data=
"data"
...
@@ -91,6 +91,14 @@ export default class AppSpan extends Vue {
...
@@ -91,6 +91,14 @@ export default class AppSpan extends Vue {
*/
*/
@
Prop
()
public
codeList
?:
any
;
@
Prop
()
public
codeList
?:
any
;
/**
* 显示模式(为true不做翻译,直接显示值,配合codelist使用)
*
* @type {string}
* @memberof AppSpan
*/
@
Prop
({
default
:
false
})
public
showSourceMode
?:
boolean
;
/**
/**
* 传入表单数据
* 传入表单数据
*
*
...
@@ -188,7 +196,7 @@ export default class AppSpan extends Vue {
...
@@ -188,7 +196,7 @@ export default class AppSpan extends Vue {
* @memberof AppSpan
* @memberof AppSpan
*/
*/
public
load
()
{
public
load
()
{
if
(
this
.
codeList
)
{
if
(
this
.
codeList
&&
!
this
.
showSourceMode
)
{
return
;
//代码表走codelist组件
return
;
//代码表走codelist组件
}
else
if
(
this
.
editorType
===
'ADDRESSPICKUP'
)
{
}
else
if
(
this
.
editorType
===
'ADDRESSPICKUP'
)
{
if
(
this
.
$util
.
isEmpty
(
this
.
value
))
{
if
(
this
.
$util
.
isEmpty
(
this
.
value
))
{
...
...
app_Web/packages/ibiz-vue/src/components/editor/span-editor/span-editor.tsx
浏览文件 @
03c9a4f4
...
@@ -113,6 +113,10 @@ export default class SpanEditor extends EditorBase {
...
@@ -113,6 +113,10 @@ export default class SpanEditor extends EditorBase {
public
async
initSpan
(){
public
async
initSpan
(){
let
codeList
:
IPSAppCodeList
|
null
=
(
this
.
editorInstance
as
IPSCodeListEditor
)?.
getPSAppCodeList
?.();
let
codeList
:
IPSAppCodeList
|
null
=
(
this
.
editorInstance
as
IPSCodeListEditor
)?.
getPSAppCodeList
?.();
this
.
customProps
.
codeList
=
codeList
;
this
.
customProps
.
codeList
=
codeList
;
// 父项转换为代码项文本为true时,显示原值模式为true
if
(
this
.
parentItem
&&
this
.
parentItem
.
convertToCodeItemText
){
this
.
customProps
.
showSourceMode
=
true
;
}
this
.
customProps
.
context
=
this
.
context
;
this
.
customProps
.
context
=
this
.
context
;
this
.
customProps
.
viewparams
=
this
.
viewparams
;
this
.
customProps
.
viewparams
=
this
.
viewparams
;
this
.
initFormatParams
();
this
.
initFormatParams
();
...
...
app_Web/packages/ibiz-vue/src/utils/app-modal/app-modal.vue
浏览文件 @
03c9a4f4
...
@@ -148,19 +148,6 @@ export default class AppModalCompponent extends Vue {
...
@@ -148,19 +148,6 @@ export default class AppModalCompponent extends Vue {
return
this
.
subject
;
return
this
.
subject
;
}
}
/**
* 监控模态展示状态变更
*
* @memberof AppModal
*/
@
Watch
(
'isShow'
)
public
isShowWatch
(
newVal
:
boolean
,
oldVal
:
boolean
):
void
{
if
(
newVal
!==
oldVal
&&
newVal
===
false
)
{
this
.
zIndex
-=
100
;
this
.
$store
.
commit
(
'updateZIndex'
,
this
.
zIndex
);
}
}
/**
/**
* Vue生命周期created
* Vue生命周期created
*
*
...
@@ -216,7 +203,12 @@ export default class AppModalCompponent extends Vue {
...
@@ -216,7 +203,12 @@ export default class AppModalCompponent extends Vue {
*
*
* @memberof AppModal
* @memberof AppModal
*/
*/
public
beforeDestroy
()
{}
public
beforeDestroy
()
{
if
(
this
.
zIndex
)
{
const
zIndex
:
any
=
this
.
zIndex
;
this
.
$store
.
commit
(
'updateZIndex'
,
zIndex
-
100
);
}
}
/**
/**
* 视图关闭
* 视图关闭
...
@@ -225,10 +217,6 @@ export default class AppModalCompponent extends Vue {
...
@@ -225,10 +217,6 @@ export default class AppModalCompponent extends Vue {
*/
*/
public
close
(
result
:
any
)
{
public
close
(
result
:
any
)
{
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
if
(
this
.
zIndex
)
{
const
zIndex
:
any
=
this
.
zIndex
;
this
.
$store
.
commit
(
'updateZIndex'
,
zIndex
-
100
);
}
Object
.
assign
(
this
.
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
this
.
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
}
}
this
.
isShow
=
false
;
this
.
isShow
=
false
;
...
...
app_Web/packages/ibiz-vue/src/view/wfactionview-base.tsx
浏览文件 @
03c9a4f4
...
@@ -91,7 +91,6 @@ export class WFActionViewBase extends MainViewBase implements WFActionViewInterf
...
@@ -91,7 +91,6 @@ export class WFActionViewBase extends MainViewBase implements WFActionViewInterf
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
return
;
}
}
// this.$store.commit('viewAction/setViewDataChange', { viewTag: this.viewtag, viewDataChange: false });
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'viewdataschange'
,
data
:
[{
...
response
.
data
}]
});
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'viewdataschange'
,
data
:
[{
...
response
.
data
}]
});
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'close'
,
data
:
null
});
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'close'
,
data
:
null
});
})
})
...
@@ -103,6 +102,7 @@ export class WFActionViewBase extends MainViewBase implements WFActionViewInterf
...
@@ -103,6 +102,7 @@ export class WFActionViewBase extends MainViewBase implements WFActionViewInterf
* @memberof WFActionViewBase
* @memberof WFActionViewBase
*/
*/
public
onClickCancel
():
void
{
public
onClickCancel
():
void
{
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'close'
,
data
:
null
});
this
.
$emit
(
'view-event'
,
{
viewName
:
this
.
viewInstance
.
name
,
action
:
'close'
,
data
:
null
});
}
}
}
}
\ No newline at end of file
app_Web/packages/ibiz-vue/src/view/wfdynaactionview-base.tsx
浏览文件 @
03c9a4f4
...
@@ -102,6 +102,7 @@ export class WFDynaActionViewBase extends MainViewBase implements WFDynaActionVi
...
@@ -102,6 +102,7 @@ export class WFDynaActionViewBase extends MainViewBase implements WFDynaActionVi
let
preFormData
:
any
=
form
.
getData
();
let
preFormData
:
any
=
form
.
getData
();
let
nextFormData
:
any
=
form
.
transformData
(
preFormData
);
let
nextFormData
:
any
=
form
.
transformData
(
preFormData
);
Object
.
assign
(
preFormData
,
nextFormData
);
Object
.
assign
(
preFormData
,
nextFormData
);
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$emit
(
"view-event"
,
{
action
:
"viewdataschange"
,
data
:
[
preFormData
]
});
this
.
$emit
(
"view-event"
,
{
action
:
"viewdataschange"
,
data
:
[
preFormData
]
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
}
}
...
@@ -114,6 +115,7 @@ export class WFDynaActionViewBase extends MainViewBase implements WFDynaActionVi
...
@@ -114,6 +115,7 @@ export class WFDynaActionViewBase extends MainViewBase implements WFDynaActionVi
* @memberof WFDynaActionViewBase
* @memberof WFDynaActionViewBase
*/
*/
public
onClickCancel
()
{
public
onClickCancel
()
{
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
}
}
...
...
app_Web/packages/ibiz-vue/src/view/wfdynastartview-base.tsx
浏览文件 @
03c9a4f4
...
@@ -87,6 +87,7 @@ export class WFDynaStartViewBase extends MainViewBase implements WFDynaStartView
...
@@ -87,6 +87,7 @@ export class WFDynaStartViewBase extends MainViewBase implements WFDynaStartView
let
preFormData
:
any
=
xData
.
getData
();
let
preFormData
:
any
=
xData
.
getData
();
let
nextFormData
:
any
=
xData
.
transformData
(
preFormData
);
let
nextFormData
:
any
=
xData
.
transformData
(
preFormData
);
Object
.
assign
(
preFormData
,
nextFormData
);
Object
.
assign
(
preFormData
,
nextFormData
);
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$emit
(
"view-event"
,
{
action
:
"viewdataschange"
,
data
:
[
preFormData
]
});
this
.
$emit
(
"view-event"
,
{
action
:
"viewdataschange"
,
data
:
[
preFormData
]
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
}
}
...
@@ -98,6 +99,7 @@ export class WFDynaStartViewBase extends MainViewBase implements WFDynaStartView
...
@@ -98,6 +99,7 @@ export class WFDynaStartViewBase extends MainViewBase implements WFDynaStartView
* @memberof WFDynaStartViewBase
* @memberof WFDynaStartViewBase
*/
*/
public
onClickCancel
()
{
public
onClickCancel
()
{
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
this
.
$emit
(
"view-event"
,
{
action
:
"close"
,
data
:
null
});
}
}
...
...
app_Web/packages/ibiz-vue/src/widgets/editform-control-base.tsx
浏览文件 @
03c9a4f4
import
schema
from
'async-validator'
;
import
schema
from
'async-validator'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
{
FormButtonModel
,
FormDruipartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormItemModel
,
FormPageModel
,
FormPartModel
,
FormRawItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
,
ModelTool
,
Util
,
Verify
,
ViewTool
,
EditFormControlInterface
}
from
'ibiz-core'
;
import
{
FormButtonModel
,
FormDruipartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormItemModel
,
FormPageModel
,
FormPartModel
,
FormRawItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
,
ModelTool
,
Util
,
Verify
,
ViewTool
,
EditFormControlInterface
,
IParams
}
from
'ibiz-core'
;
import
{
FormControlBase
}
from
'./form-control-base'
;
import
{
FormControlBase
}
from
'./form-control-base'
;
import
{
AppFormService
}
from
'../ctrl-service'
;
import
{
AppFormService
}
from
'../ctrl-service'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
AppCenterService
,
AppViewLogicService
}
from
'../app-service'
;
import
{
AppCenterService
,
AppViewLogicService
,
CodeListTranslator
}
from
'../app-service'
;
import
{
IPSAppDEUIAction
,
IPSDEEditForm
,
IPSDEEditFormItem
,
IPSDEFDCatGroupLogic
,
IPSDEFDLogic
,
IPSDEFDSingleLogic
,
IPSDEFIUpdateDetail
,
IPSDEFormButton
,
IPSDEFormDetail
,
IPSDEFormDRUIPart
,
IPSDEFormGroupPanel
,
IPSDEFormItem
,
IPSDEFormItemUpdate
,
IPSDEFormItemVR
,
IPSDEFormPage
,
IPSDEFormTabPage
,
IPSDEFormTabPanel
,
IPSUIActionGroupDetail
,
IPSDEFormItemEx
}
from
'@ibiz/dynamic-model-api'
;
import
{
IPSAppDEUIAction
,
IPSDEEditForm
,
IPSDEEditFormItem
,
IPSDEFDCatGroupLogic
,
IPSDEFDLogic
,
IPSDEFDSingleLogic
,
IPSDEFIUpdateDetail
,
IPSDEFormButton
,
IPSDEFormDetail
,
IPSDEFormDRUIPart
,
IPSDEFormGroupPanel
,
IPSDEFormItem
,
IPSDEFormItemUpdate
,
IPSDEFormItemVR
,
IPSDEFormPage
,
IPSDEFormTabPage
,
IPSDEFormTabPanel
,
IPSUIActionGroupDetail
,
IPSDEFormItemEx
,
IPSCodeListEditor
}
from
'@ibiz/dynamic-model-api'
;
/**
/**
* 编辑表单部件基类
* 编辑表单部件基类
...
@@ -375,7 +375,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -375,7 +375,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
return
;
return
;
}
}
this
.
resetDraftFormStates
();
this
.
resetDraftFormStates
();
this
.
onFormLoad
(
data
,
'loadDraft'
);
await
this
.
onFormLoad
(
data
,
'loadDraft'
);
if
(
callBack
&&
(
callBack
instanceof
Function
))
callBack
();
if
(
callBack
&&
(
callBack
instanceof
Function
))
callBack
();
// 删除主键表单项的值
// 删除主键表单项的值
...
@@ -435,14 +435,14 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -435,14 +435,14 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
this
.
onControlRequset
(
'autoSave'
,
tempContext
,
arg
);
this
.
onControlRequset
(
'autoSave'
,
tempContext
,
arg
);
const
post
:
Promise
<
any
>
=
this
.
service
.
add
(
action
,
tempContext
,
arg
,
this
.
showBusyIndicator
);
const
post
:
Promise
<
any
>
=
this
.
service
.
add
(
action
,
tempContext
,
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
(
async
(
response
:
any
)
=>
{
this
.
onControlResponse
(
'autoSave'
,
response
);
this
.
onControlResponse
(
'autoSave'
,
response
);
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
this
.
$throw
(
response
,
'autoSave'
);
this
.
$throw
(
response
,
'autoSave'
);
return
;
return
;
}
}
const
data
=
response
.
data
;
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
'autoSave'
);
await
this
.
onFormLoad
(
data
,
'autoSave'
);
this
.
ctrlEvent
({
this
.
ctrlEvent
({
controlname
:
this
.
controlInstance
.
name
,
controlname
:
this
.
controlInstance
.
name
,
action
:
'save'
,
action
:
'save'
,
...
@@ -514,12 +514,12 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -514,12 +514,12 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
return
;
return
;
}
}
const
data
=
response
.
data
;
const
data
=
response
.
data
;
this
.
handleCtrlEvents
(
'onsavesuccess'
,
{
action
:
action
,
navContext
:
tempContext
,
navParam
:
arg
,
data
:
data
}).
then
((
saveSuccessResult
:
boolean
)
=>
{
this
.
handleCtrlEvents
(
'onsavesuccess'
,
{
action
:
action
,
navContext
:
tempContext
,
navParam
:
arg
,
data
:
data
}).
then
(
async
(
saveSuccessResult
:
boolean
)
=>
{
if
(
!
saveSuccessResult
)
{
if
(
!
saveSuccessResult
)
{
return
;
return
;
}
}
this
.
viewparams
.
copymode
=
false
;
this
.
viewparams
.
copymode
=
false
;
this
.
onFormLoad
(
data
,
'save'
);
await
this
.
onFormLoad
(
data
,
'save'
);
this
.
ctrlEvent
({
this
.
ctrlEvent
({
controlname
:
this
.
controlInstance
.
name
,
controlname
:
this
.
controlInstance
.
name
,
action
:
'save'
,
action
:
'save'
,
...
@@ -631,12 +631,12 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -631,12 +631,12 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
}
}
this
.
onControlRequset
(
'save'
,
tempContext
,
formData
);
this
.
onControlRequset
(
'save'
,
tempContext
,
formData
);
const
post
:
Promise
<
any
>
=
Object
.
is
(
formData
.
srfuf
,
'1'
)
?
this
.
service
.
update
(
this
.
updateAction
,
tempContext
,
formData
,
this
.
showBusyIndicator
,
true
)
:
this
.
service
.
add
(
this
.
createAction
,
tempContext
,
formData
,
this
.
showBusyIndicator
,
true
);
const
post
:
Promise
<
any
>
=
Object
.
is
(
formData
.
srfuf
,
'1'
)
?
this
.
service
.
update
(
this
.
updateAction
,
tempContext
,
formData
,
this
.
showBusyIndicator
,
true
)
:
this
.
service
.
add
(
this
.
createAction
,
tempContext
,
formData
,
this
.
showBusyIndicator
,
true
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
(
async
(
response
:
any
)
=>
{
this
.
onControlResponse
(
'save'
,
response
);
this
.
onControlResponse
(
'save'
,
response
);
const
arg
:
any
=
response
.
data
;
const
arg
:
any
=
response
.
data
;
const
responseData
:
any
=
Util
.
deepCopy
(
arg
);
const
responseData
:
any
=
Util
.
deepCopy
(
arg
);
// 保存完成UI处理
// 保存完成UI处理
this
.
onFormLoad
(
arg
,
'save'
);
await
this
.
onFormLoad
(
arg
,
'save'
);
this
.
ctrlEvent
({
this
.
ctrlEvent
({
controlname
:
this
.
controlInstance
.
name
,
controlname
:
this
.
controlInstance
.
name
,
action
:
'save'
,
action
:
'save'
,
...
@@ -785,11 +785,11 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -785,11 +785,11 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
this
.
$throw
((
this
.
$t
(
'app.formpage.workflow.submiterror'
)
as
string
)
+
', '
+
response
.
data
.
message
,
'wfsubmit'
);
this
.
$throw
((
this
.
$t
(
'app.formpage.workflow.submiterror'
)
as
string
)
+
', '
+
response
.
data
.
message
,
'wfsubmit'
);
return
;
return
;
}
}
this
.
handleCtrlEvents
(
'onwfsubmitsuccess'
,
{
action
:
this
.
WFSubmitAction
,
navContext
:
tempContext
,
navParam
:
arg
,
data
:
response
.
data
}).
then
((
wfSubmitSuccessResult
:
boolean
)
=>
{
this
.
handleCtrlEvents
(
'onwfsubmitsuccess'
,
{
action
:
this
.
WFSubmitAction
,
navContext
:
tempContext
,
navParam
:
arg
,
data
:
response
.
data
}).
then
(
async
(
wfSubmitSuccessResult
:
boolean
)
=>
{
if
(
!
wfSubmitSuccessResult
)
{
if
(
!
wfSubmitSuccessResult
)
{
return
;
return
;
}
}
this
.
onFormLoad
(
arg
,
'submit'
);
await
this
.
onFormLoad
(
arg
,
'submit'
);
AppCenterService
.
notifyMessage
({
name
:
this
.
controlInstance
.
getPSAppDataEntity
()?.
codeName
||
''
,
action
:
'appRefresh'
,
data
:
data
});
AppCenterService
.
notifyMessage
({
name
:
this
.
controlInstance
.
getPSAppDataEntity
()?.
codeName
||
''
,
action
:
'appRefresh'
,
data
:
data
});
// 工作流数据刷新
// 工作流数据刷新
AppCenterService
.
notifyMessage
({
name
:
'SysTodo'
,
action
:
'appRefresh'
,
data
:
data
});
AppCenterService
.
notifyMessage
({
name
:
'SysTodo'
,
action
:
'appRefresh'
,
data
:
data
});
...
@@ -818,7 +818,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -818,7 +818,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
const
post
:
Promise
<
any
>
=
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
this
.
service
.
update
(
this
.
updateAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
,
true
)
:
this
.
service
.
add
(
this
.
createAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
,
true
);
const
post
:
Promise
<
any
>
=
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
this
.
service
.
update
(
this
.
updateAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
,
true
)
:
this
.
service
.
add
(
this
.
createAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
,
true
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
((
response
:
any
)
=>
{
this
.
onControlResponse
(
'save'
,
response
);
this
.
onControlResponse
(
'save'
,
response
);
this
.
handleCtrlEvents
(
'onsavesuccess'
,
{
action
:
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
,
navParam
:
arg
,
data
:
response
?.
data
}).
then
((
saveSuccessResult
:
boolean
)
=>
{
this
.
handleCtrlEvents
(
'onsavesuccess'
,
{
action
:
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
,
navParam
:
arg
,
data
:
response
?.
data
}).
then
(
async
(
saveSuccessResult
:
boolean
)
=>
{
if
(
!
saveSuccessResult
)
{
if
(
!
saveSuccessResult
)
{
return
;
return
;
}
}
...
@@ -827,7 +827,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -827,7 +827,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
this
.
service
.
handleResponse
(
'save'
,
tempResponseData
);
this
.
service
.
handleResponse
(
'save'
,
tempResponseData
);
const
_arg
:
any
=
tempResponseData
.
data
;
const
_arg
:
any
=
tempResponseData
.
data
;
// 保存完成UI处理
// 保存完成UI处理
this
.
onFormLoad
(
_arg
,
'save'
);
await
this
.
onFormLoad
(
_arg
,
'save'
);
this
.
ctrlEvent
({
this
.
ctrlEvent
({
controlname
:
this
.
controlInstance
.
name
,
controlname
:
this
.
controlInstance
.
name
,
action
:
'save'
,
action
:
'save'
,
...
@@ -905,14 +905,14 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -905,14 +905,14 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
}
}
this
.
onControlRequset
(
'panelAction'
,
tempContext
,
arg
);
this
.
onControlRequset
(
'panelAction'
,
tempContext
,
arg
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
action
,
tempContext
,
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
action
,
tempContext
,
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
(
async
(
response
:
any
)
=>
{
this
.
onControlResponse
(
'panelAction'
,
response
);
this
.
onControlResponse
(
'panelAction'
,
response
);
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
this
.
$throw
(
response
,
'panelAction'
);
this
.
$throw
(
response
,
'panelAction'
);
return
;
return
;
}
}
const
data
=
response
.
data
;
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
emitAction
);
await
this
.
onFormLoad
(
data
,
emitAction
);
this
.
ctrlEvent
({
this
.
ctrlEvent
({
controlname
:
this
.
controlInstance
.
name
,
controlname
:
this
.
controlInstance
.
name
,
action
:
emitAction
,
action
:
emitAction
,
...
@@ -960,12 +960,13 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -960,12 +960,13 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
Object
.
assign
(
_data
,
{
[
name
]:
data
[
name
]
});
Object
.
assign
(
_data
,
{
[
name
]:
data
[
name
]
});
});
});
this
.
setFormEnableCond
(
_data
);
this
.
setFormEnableCond
(
_data
);
this
.
fillForm
(
_data
,
'updateFormItem'
)
;
this
.
fillForm
(
_data
,
'updateFormItem'
)
.
then
(()
=>
{
this
.
formLogic
({
name
:
''
});
this
.
formLogic
({
name
:
''
});
this
.
dataChang
.
next
(
JSON
.
stringify
(
this
.
data
));
this
.
dataChang
.
next
(
JSON
.
stringify
(
this
.
data
));
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'updateformitem'
,
ufimode
:
arg
.
srfufimode
,
data
:
_data
});
this
.
formState
.
next
({
type
:
'updateformitem'
,
ufimode
:
arg
.
srfufimode
,
data
:
_data
});
});
});
})
}).
catch
((
response
:
any
)
=>
{
}).
catch
((
response
:
any
)
=>
{
this
.
onControlResponse
(
'updateFormItems'
,
response
);
this
.
onControlResponse
(
'updateFormItems'
,
response
);
this
.
$throw
(
response
,
'updateFormItems'
);
this
.
$throw
(
response
,
'updateFormItems'
);
...
@@ -1080,7 +1081,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1080,7 +1081,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
* @param {string} [action]
* @param {string} [action]
* @memberof EditFormControlBase
* @memberof EditFormControlBase
*/
*/
public
onFormLoad
(
data
:
any
=
{},
action
:
string
):
void
{
public
async
onFormLoad
(
data
:
any
=
{},
action
:
string
):
Promise
<
void
>
{
if
(
this
.
appDeCodeName
.
toLowerCase
())
{
if
(
this
.
appDeCodeName
.
toLowerCase
())
{
if
(
Object
.
is
(
action
,
"save"
)
||
Object
.
is
(
action
,
"autoSave"
)
||
Object
.
is
(
action
,
"submit"
))
if
(
Object
.
is
(
action
,
"save"
)
||
Object
.
is
(
action
,
"autoSave"
)
||
Object
.
is
(
action
,
"submit"
))
// 更新context的实体主键
// 更新context的实体主键
...
@@ -1090,7 +1091,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1090,7 +1091,7 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
}
}
this
.
setFormEnableCond
(
data
);
this
.
setFormEnableCond
(
data
);
this
.
computeButtonState
(
data
);
this
.
computeButtonState
(
data
);
this
.
fillForm
(
data
,
action
);
await
this
.
fillForm
(
data
,
action
)
this
.
oldData
=
{};
this
.
oldData
=
{};
Object
.
assign
(
this
.
oldData
,
Util
.
deepCopy
(
this
.
data
));
Object
.
assign
(
this
.
oldData
,
Util
.
deepCopy
(
this
.
data
));
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
this
.
$store
.
commit
(
'viewAction/setViewDataChange'
,
{
viewTag
:
this
.
viewtag
,
viewDataChange
:
false
});
...
@@ -1104,13 +1105,21 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1104,13 +1105,21 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
* @param {string} [action]
* @param {string} [action]
* @memberof EditFormControlBase
* @memberof EditFormControlBase
*/
*/
public
fillForm
(
_datas
:
any
=
{},
action
:
string
):
void
{
public
async
fillForm
(
_datas
:
any
=
{},
action
:
string
):
Promise
<
void
>
{
this
.
ignorefieldvaluechange
=
true
;
this
.
ignorefieldvaluechange
=
true
;
Object
.
keys
(
_datas
).
forEach
((
name
:
string
)
=>
{
for
(
let
i
=
0
;
i
<
Object
.
keys
(
_datas
).
length
;
i
++
)
{
const
name
=
Object
.
keys
(
_datas
)[
i
];
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
// 是否转化为代码项文本
if
(
this
.
detailsModel
[
name
]
&&
this
.
detailsModel
[
name
][
'convertToCodeItemText'
]
&&
this
.
detailsModel
[
name
][
'codelist'
])
{
const
codeListTranslator
:
CodeListTranslator
=
new
CodeListTranslator
();
const
text
:
string
=
await
codeListTranslator
.
getCodeListText
(
_datas
[
name
],
this
.
detailsModel
[
name
][
'codelist'
],
this
,
this
.
context
,
this
.
viewparams
);
this
.
data
[
name
]
=
text
;
}
else
{
this
.
data
[
name
]
=
_datas
[
name
];
this
.
data
[
name
]
=
_datas
[
name
];
}
}
});
}
}
if
(
Object
.
is
(
action
,
'loadDraft'
))
{
if
(
Object
.
is
(
action
,
'loadDraft'
))
{
this
.
createDefault
();
this
.
createDefault
();
}
}
...
@@ -1678,7 +1687,13 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1678,7 +1687,13 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
enableCond: (detail as IPSDEFormItem).enableCond,
enableCond: (detail as IPSDEFormItem).enableCond,
ignoreInput: (detail as IPSDEFormItem).ignoreInput,
ignoreInput: (detail as IPSDEFormItem).ignoreInput,
captionItemName: (detail as IPSDEFormItem).captionItemName,
captionItemName: (detail as IPSDEFormItem).captionItemName,
convertToCodeItemText: (detail as IPSDEFormItem).convertToCodeItemText ? true : false,
});
if ((detail as IPSDEFormItem).getPSEditor() && ((detail as IPSDEFormItem).getPSEditor() as IPSCodeListEditor).getPSAppCodeList instanceof Function) {
Object.assign(detailOpts, {
codelist: ((detail as IPSDEFormItem).getPSEditor() as IPSCodeListEditor).getPSAppCodeList()
});
});
}
detailModel = new FormItemModel(detailOpts);
detailModel = new FormItemModel(detailOpts);
break;
break;
case 'GROUPPANEL':
case 'GROUPPANEL':
...
@@ -1867,9 +1882,10 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1867,9 +1882,10 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
}
}
}
}
})
})
// 动态标题值项
if (Object.is(detail.detailType, 'FORMITEM')) {
if (Object.is(detail.detailType, 'FORMITEM')) {
const captionItemName = (detail as IPSDEFormItem).captionItemName;
const captionItemName = (detail as IPSDEFormItem).captionItemName;
if (captionItemName) {
// 动态标题值项
this.detailsModel[detail.name].caption = captionItemName ? this.data[captionItemName] : this.detailsModel[detail.name].caption;
this.detailsModel[detail.name].caption = captionItemName ? this.data[captionItemName] : this.detailsModel[detail.name].caption;
// 值规则错误提示更新
// 值规则错误提示更新
if (this.rules[detail.name]) {
if (this.rules[detail.name]) {
...
@@ -1877,6 +1893,8 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
...
@@ -1877,6 +1893,8 @@ export class EditFormControlBase extends FormControlBase implements EditFormCont
rule.message = `
$
{
this
.
$t
(
'app.formpage.valueverif'
)
as
string
}
$
{
this
.
data
[
captionItemName
]}
`;
rule.message = `
$
{
this
.
$t
(
'app.formpage.valueverif'
)
as
string
}
$
{
this
.
data
[
captionItemName
]}
`;
})
})
}
}
this.$forceUpdate();
}
}
}
})
})
...
...
app_Web/packages/ibiz-vue/src/widgets/form-control-base.tsx
浏览文件 @
03c9a4f4
...
@@ -168,7 +168,7 @@ export class FormControlBase extends MainControlBase implements FormControlInter
...
@@ -168,7 +168,7 @@ export class FormControlBase extends MainControlBase implements FormControlInter
* @param {string} [action] 行为标识
* @param {string} [action] 行为标识
* @memberof FormControlBase
* @memberof FormControlBase
*/
*/
public
onFormLoad
(
data
:
any
=
{},
action
:
string
):
void
{
}
public
async
onFormLoad
(
data
:
any
=
{},
action
:
string
):
Promise
<
void
>
{
}
/**
/**
* 值填充
* 值填充
...
@@ -177,7 +177,7 @@ export class FormControlBase extends MainControlBase implements FormControlInter
...
@@ -177,7 +177,7 @@ export class FormControlBase extends MainControlBase implements FormControlInter
* @param {string} [action] 行为标识
* @param {string} [action] 行为标识
* @memberof FormControlBase
* @memberof FormControlBase
*/
*/
public
fillForm
(
_datas
:
any
=
{},
action
:
string
):
void
{
public
async
fillForm
(
_datas
:
any
=
{},
action
:
string
)
{
this
.
ignorefieldvaluechange
=
true
;
this
.
ignorefieldvaluechange
=
true
;
Object
.
keys
(
_datas
).
forEach
((
name
:
string
)
=>
{
Object
.
keys
(
_datas
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
...
...
app_Web/packages/ibiz-vue/src/widgets/grid-control-base.tsx
浏览文件 @
03c9a4f4
...
@@ -1103,17 +1103,21 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
...
@@ -1103,17 +1103,21 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
if
(
!
Object
.
is
(
dataInfo
,
''
))
{
if
(
!
Object
.
is
(
dataInfo
,
''
))
{
dataInfo
+=
'、'
;
dataInfo
+=
'、'
;
}
}
dataInfo
+=
srfmajortext
;
dataInfo
+=
srfmajortext
?
srfmajortext
:
''
;
}
else
{
}
else
{
return
false
;
return
false
;
}
}
});
});
if
(
!
dataInfo
){
dataInfo
=
(
this
.
$t
(
'app.grid.selected'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.grid.records'
)
as
string
)
+
(
this
.
$t
(
'app.grid.data'
)
as
string
);
}
else
{
if
(
_datas
.
length
<
5
)
{
if
(
_datas
.
length
<
5
)
{
dataInfo
=
dataInfo
+
' '
+
(
this
.
$t
(
'app.grid.totle'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.grid.records'
)
as
string
)
+
(
this
.
$t
(
'app.grid.data'
)
as
string
);
dataInfo
=
dataInfo
+
' '
+
(
this
.
$t
(
'app.grid.totle'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.grid.records'
)
as
string
)
+
(
this
.
$t
(
'app.grid.data'
)
as
string
);
}
else
{
}
else
{
dataInfo
=
' ... '
+
(
this
.
$t
(
'app.grid.totle'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.grid.records'
)
as
string
)
+
(
this
.
$t
(
'app.grid.data'
)
as
string
);
dataInfo
=
' ... '
+
(
this
.
$t
(
'app.grid.totle'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.grid.records'
)
as
string
)
+
(
this
.
$t
(
'app.grid.data'
)
as
string
);
}
}
}
const
removeData
=
async
()
=>
{
const
removeData
=
async
()
=>
{
let
keys
:
any
[]
=
[];
let
keys
:
any
[]
=
[];
...
@@ -1140,6 +1144,7 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
...
@@ -1140,6 +1144,7 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
if
(
this
.
viewparams
&&
Object
.
keys
(
this
.
viewparams
).
length
)
{
if
(
this
.
viewparams
&&
Object
.
keys
(
this
.
viewparams
).
length
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
}
}
Object
.
assign
(
arg
,
{
[
this
.
appDeCodeName
.
toLowerCase
()]:
ele
});
promiseArr
.
push
(
this
.
service
.
delete
(
_removeAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
));
promiseArr
.
push
(
this
.
service
.
delete
(
_removeAction
,
tempContext
,
arg
,
this
.
showBusyIndicator
));
})
})
promises
=
Promise
.
all
(
promiseArr
);
promises
=
Promise
.
all
(
promiseArr
);
...
...
app_Web/packages/ibiz-vue/src/widgets/searchform-control-base.tsx
浏览文件 @
03c9a4f4
...
@@ -214,7 +214,7 @@ export class SearchFormControlBase extends EditFormControlBase implements Search
...
@@ -214,7 +214,7 @@ export class SearchFormControlBase extends EditFormControlBase implements Search
return
;
return
;
}
}
this
.
resetDraftFormStates
();
this
.
resetDraftFormStates
();
this
.
onFormLoad
(
data
,
'loadDraft'
);
await
this
.
onFormLoad
(
data
,
'loadDraft'
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
form
:
any
=
this
.
$refs
[
this
.
name
];
const
form
:
any
=
this
.
$refs
[
this
.
name
];
if
(
form
)
{
if
(
form
)
{
...
@@ -269,9 +269,9 @@ export class SearchFormControlBase extends EditFormControlBase implements Search
...
@@ -269,9 +269,9 @@ export class SearchFormControlBase extends EditFormControlBase implements Search
* @param {string} action
* @param {string} action
* @memberof SearchFormControlBase
* @memberof SearchFormControlBase
*/
*/
public
onFormLoad
(
data
:
any
=
{},
action
:
string
):
void
{
public
async
onFormLoad
(
data
:
any
=
{},
action
:
string
):
Promise
<
void
>
{
this
.
setFormEnableCond
(
data
);
this
.
setFormEnableCond
(
data
);
this
.
fillForm
(
data
,
action
);
await
this
.
fillForm
(
data
,
action
)
this
.
formLogic
({
name
:
''
});
this
.
formLogic
({
name
:
''
});
}
}
...
...
app_Web/src/environments/environment.ts
浏览文件 @
03c9a4f4
...
@@ -86,7 +86,7 @@ export const Environment = {
...
@@ -86,7 +86,7 @@ export const Environment = {
// Debug栏模型配置工具地址
// Debug栏模型配置工具地址
dynamicConfigToolUrl
:
process
.
env
.
VUE_APP_DYNAMICCONFIGTOOLURL
,
dynamicConfigToolUrl
:
process
.
env
.
VUE_APP_DYNAMICCONFIGTOOLURL
,
// 应用是否支持多语言
// 应用是否支持多语言
isEnableMultiLan
:
fals
e
,
isEnableMultiLan
:
tru
e
,
// 是否启用修复
// 是否启用修复
enableIssue
:
true
,
enableIssue
:
true
,
// 刷新token即将到期时间间隔(默认10分钟,单位:ms)
// 刷新token即将到期时间间隔(默认10分钟,单位:ms)
...
...
app_Web/src/locale/lang/en-US-base.ts
浏览文件 @
03c9a4f4
...
@@ -51,6 +51,7 @@ function getAppLocale(){
...
@@ -51,6 +51,7 @@ function getAppLocale(){
show
:
"Show"
,
show
:
"Show"
,
records
:
"records"
,
records
:
"records"
,
totle
:
"totle"
,
totle
:
"totle"
,
selected
:
"selected "
,
valuevail
:
"Value cannot be empty"
,
valuevail
:
"Value cannot be empty"
,
group
:
"Group"
,
group
:
"Group"
,
other
:
"Other"
,
other
:
"Other"
,
...
...
app_Web/src/locale/lang/zh-CN-base.ts
浏览文件 @
03c9a4f4
...
@@ -50,6 +50,7 @@ function getAppLocale(){
...
@@ -50,6 +50,7 @@ function getAppLocale(){
show
:
"显示"
,
show
:
"显示"
,
records
:
"条"
,
records
:
"条"
,
totle
:
"共"
,
totle
:
"共"
,
selected
:
"所选中的"
,
valuevail
:
"值不能为空"
,
valuevail
:
"值不能为空"
,
group
:
"分组"
,
group
:
"分组"
,
other
:
"其他"
,
other
:
"其他"
,
...
...
trainsys-core/src/main/resources/i18n/cn/ibizlab/trainsys/messages_zh_CN.properties
浏览文件 @
03c9a4f4
#
简体中文
#
中文简体
PAGE.HEADER.WFEXPLORERVIEW
=
\u
5de5
\u
4f5c
\u
6d41
\u
5bfc
\u
822a
\u
89c6
\u
56fe
PAGE.HEADER.WFEXPLORERVIEW
=
\u
5de5
\u
4f5c
\u
6d41
\u
5bfc
\u
822a
\u
89c6
\u
56fe
PAGE.COMMON.EDITVIEW.DER.FA
=
\u6587\u
4ef6
\u9644\u
4ef6
PAGE.COMMON.EDITVIEW.DER.FA
=
\u6587\u
4ef6
\u9644\u
4ef6
PAGE.HEADER.UPLOADVIEW
=
\u
4e0a
\u
4f20
\u6587\u
4ef6
\u
89c6
\u
56fe
PAGE.HEADER.UPLOADVIEW
=
\u
4e0a
\u
4f20
\u6587\u
4ef6
\u
89c6
\u
56fe
...
...
trainsys-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
03c9a4f4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<!--输出实体[BOOK]数据结构 -->
<!--输出实体[BOOK]数据结构 -->
<changeSet
author=
"root"
id=
"tab-book-
49
-1"
>
<changeSet
author=
"root"
id=
"tab-book-
53
-1"
>
<createTable
tableName=
"T_BOOK"
>
<createTable
tableName=
"T_BOOK"
>
<column
name=
"BOOKNAME"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"BOOKNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
</column>
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/Main.json
浏览文件 @
03c9a4f4
...
@@ -322,6 +322,21 @@
...
@@ -322,6 +322,21 @@
"name"
:
"FIELD"
,
"name"
:
"FIELD"
,
"codeName"
:
"Field"
"codeName"
:
"Field"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"ITEMENABLE"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field][表单项启用]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (4444)"
,
"value"
:
"4444"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
@@ -350,6 +365,21 @@
...
@@ -350,6 +365,21 @@
"name"
:
"FIELD2"
,
"name"
:
"FIELD2"
,
"codeName"
:
"Field2"
"codeName"
:
"Field2"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"ITEMBLANK"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field2][表单项空输入]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (5555)"
,
"value"
:
"5555"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
@@ -360,7 +390,7 @@
...
@@ -360,7 +390,7 @@
"colMD"
:
8
,
"colMD"
:
8
,
"layout"
:
"TABLE_24COL"
"layout"
:
"TABLE_24COL"
},
},
"allowEmpty"
:
tru
e
,
"allowEmpty"
:
fals
e
,
"showCaption"
:
true
"showCaption"
:
true
}
],
}
],
"getPSLayout"
:
{
"getPSLayout"
:
{
...
@@ -493,6 +523,27 @@
...
@@ -493,6 +523,27 @@
"name"
:
"FIELD5"
,
"name"
:
"FIELD5"
,
"codeName"
:
"Field5"
"codeName"
:
"Field5"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"PANELVISIBLE"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field5][面板显示]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (333)"
,
"value"
:
"333"
},
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (222)"
,
"value"
:
"222"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/bookEditView.json
浏览文件 @
03c9a4f4
...
@@ -1308,6 +1308,21 @@
...
@@ -1308,6 +1308,21 @@
"name"
:
"FIELD"
,
"name"
:
"FIELD"
,
"codeName"
:
"Field"
"codeName"
:
"Field"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"ITEMENABLE"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field][表单项启用]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (4444)"
,
"value"
:
"4444"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
@@ -1336,6 +1351,21 @@
...
@@ -1336,6 +1351,21 @@
"name"
:
"FIELD2"
,
"name"
:
"FIELD2"
,
"codeName"
:
"Field2"
"codeName"
:
"Field2"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"ITEMBLANK"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field2][表单项空输入]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (5555)"
,
"value"
:
"5555"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
@@ -1346,7 +1376,7 @@
...
@@ -1346,7 +1376,7 @@
"colMD"
:
8
,
"colMD"
:
8
,
"layout"
:
"TABLE_24COL"
"layout"
:
"TABLE_24COL"
},
},
"allowEmpty"
:
tru
e
,
"allowEmpty"
:
fals
e
,
"showCaption"
:
true
"showCaption"
:
true
}
],
}
],
"getPSLayout"
:
{
"getPSLayout"
:
{
...
@@ -1479,6 +1509,27 @@
...
@@ -1479,6 +1509,27 @@
"name"
:
"FIELD5"
,
"name"
:
"FIELD5"
,
"codeName"
:
"Field5"
"codeName"
:
"Field5"
},
},
"getPSDEFDGroupLogics"
:
[
{
"groupOP"
:
"AND"
,
"logicCat"
:
"PANELVISIBLE"
,
"logicType"
:
"GROUP"
,
"name"
:
"表单成员[field5][面板显示]逻辑"
,
"getPSDEFDLogics"
:
[
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (333)"
,
"value"
:
"333"
},
{
"condOP"
:
"EQ"
,
"dEFDName"
:
"bookname"
,
"logicType"
:
"SINGLE"
,
"name"
:
"bookname 等于(=) (222)"
,
"value"
:
"222"
}
],
"relatedDetailNames"
:
[
"bookname"
],
"notMode"
:
false
}
],
"getPSEditor"
:
{
"getPSEditor"
:
{
"editorType"
:
"TEXTBOX"
,
"editorType"
:
"TEXTBOX"
,
"maxLength"
:
100
,
"maxLength"
:
100
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPLANS/ZH_CN.json
0 → 100644
浏览文件 @
03c9a4f4
{
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPLANS/ZH_CN.json"
,
"language"
:
"ZH_CN"
,
"name"
:
"网页端-中文简体"
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录