Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
663017d8
提交
663017d8
编写于
7月 28, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
ec762b48
变更
14
展开全部
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
1063 行增加
和
34 行删除
+1063
-34
view-config.json
app_AssetManagement/public/assets/json/view-config.json
+10
-0
eamlocation_en_US.ts
...c/locale/lanres/entities/eamlocation/eamlocation_en_US.ts
+21
-17
eamlocation_zh_CN.ts
...c/locale/lanres/entities/eamlocation/eamlocation_zh_CN.ts
+21
-17
viewconfig.ts
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
+8
-0
eamlocation-edit-view-base.tsx
...tion/eamlocation-edit-view/eamlocation-edit-view-base.tsx
+303
-0
eamlocation-edit-view.html
...location/eamlocation-edit-view/eamlocation-edit-view.html
+29
-0
eamlocation-edit-view.vue
.../location/eamlocation-edit-view/eamlocation-edit-view.vue
+22
-0
state.ts
app_AssetManagement/src/store/modules/view-action/state.ts
+9
-0
eamlocation-ui-service-base.ts
.../src/uiservice/eamlocation/eamlocation-ui-service-base.ts
+1
-0
main-form-base.tsx
...ment/src/widgets/eamlocation/main-form/main-form-base.tsx
+125
-0
main-form-model.ts
...ment/src/widgets/eamlocation/main-form/main-form-model.ts
+71
-0
main-form-service.ts
...nt/src/widgets/eamlocation/main-form/main-form-service.ts
+371
-0
main-form.html
...nagement/src/widgets/eamlocation/main-form/main-form.html
+50
-0
main-form.vue
...anagement/src/widgets/eamlocation/main-form/main-form.vue
+22
-0
未找到文件。
app_AssetManagement/public/assets/json/view-config.json
浏览文件 @
663017d8
...
...
@@ -9,6 +9,16 @@
"viewtag"
:
"0b6fa9e6ebc1f6d1afaf3c19585840b0"
,
"memo"
:
"系统自动添加"
},
"eamlocationeditview"
:
{
"title"
:
"功能位置编辑视图"
,
"caption"
:
"功能位置"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Location"
,
"viewname"
:
"EAMLocationEditView"
,
"viewfilename"
:
"eamlocation-edit-view"
,
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
,
"memo"
:
"系统自动添加"
},
"eamlocationstatemodelpickupview"
:
{
"title"
:
"功能位置状态模型数据选择视图"
,
"caption"
:
"功能位置状态模型"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation/eamlocation_en_US.ts
浏览文件 @
663017d8
...
...
@@ -15,6 +15,10 @@ export default {
eamlocationstatename
:
"功能位置状态"
,
},
views
:
{
editview
:
{
caption
:
"功能位置"
,
title
:
"功能位置编辑视图"
,
},
info_mainview
:
{
caption
:
"功能位置"
,
title
:
"功能位置编辑视图"
,
...
...
@@ -36,10 +40,12 @@ export default {
title
:
"功能位置表格视图"
,
},
},
info_
main_form
:
{
main_form
:
{
details
:
{
group1
:
"功能位置基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"功能位置标识"
,
...
...
@@ -49,19 +55,14 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
eamlocationid
:
"功能位置标识"
,
eamlocationname
:
"功能位置名称"
,
eamlocationtypename
:
"功能位置类型"
,
peamlocationname
:
"上级位置"
,
},
uiactions
:
{
},
},
main_form
:
{
info_
main_form
:
{
details
:
{
group1
:
"功能位置基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"功能位置标识"
,
...
...
@@ -71,6 +72,9 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
eamlocationid
:
"功能位置标识"
,
eamlocationname
:
"功能位置名称"
,
eamlocationtypename
:
"功能位置类型"
,
peamlocationname
:
"上级位置"
,
},
uiactions
:
{
},
...
...
@@ -103,6 +107,16 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
childgridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"New"
,
...
...
@@ -149,16 +163,6 @@ export default {
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"New"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation/eamlocation_zh_CN.ts
浏览文件 @
663017d8
...
...
@@ -14,6 +14,10 @@ export default {
eamlocationstatename
:
"功能位置状态"
,
},
views
:
{
editview
:
{
caption
:
"功能位置"
,
title
:
"功能位置编辑视图"
,
},
info_mainview
:
{
caption
:
"功能位置"
,
title
:
"功能位置编辑视图"
,
...
...
@@ -35,10 +39,12 @@ export default {
title
:
"功能位置表格视图"
,
},
},
info_
main_form
:
{
main_form
:
{
details
:
{
group1
:
"功能位置基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"功能位置标识"
,
...
...
@@ -48,19 +54,14 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
eamlocationid
:
"功能位置标识"
,
eamlocationname
:
"功能位置名称"
,
eamlocationtypename
:
"功能位置类型"
,
peamlocationname
:
"上级位置"
,
},
uiactions
:
{
},
},
main_form
:
{
info_
main_form
:
{
details
:
{
group1
:
"功能位置基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"功能位置标识"
,
...
...
@@ -70,6 +71,9 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
eamlocationid
:
"功能位置标识"
,
eamlocationname
:
"功能位置名称"
,
eamlocationtypename
:
"功能位置类型"
,
peamlocationname
:
"上级位置"
,
},
uiactions
:
{
},
...
...
@@ -102,6 +106,16 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
childgridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"新建"
,
...
...
@@ -148,16 +162,6 @@ export default {
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"新建"
,
...
...
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
浏览文件 @
663017d8
...
...
@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"EAMLocationStateEditView"
,
"viewtag"
:
"0b6fa9e6ebc1f6d1afaf3c19585840b0"
},
"eamlocationeditview"
:
{
"title"
:
"功能位置编辑视图"
,
"caption"
:
"功能位置"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Location"
,
"viewname"
:
"EAMLocationEditView"
,
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
},
"eamlocationstatemodelpickupview"
:
{
"title"
:
"功能位置状态模型数据选择视图"
,
"caption"
:
"功能位置状态模型"
,
...
...
app_AssetManagement/src/pages/location/eamlocation-edit-view/eamlocation-edit-view-base.tsx
0 → 100644
浏览文件 @
663017d8
import
{
Subject
}
from
'rxjs'
;
import
{
EditViewBase
}
from
'@/studio-core'
;
import
EAMLocationService
from
'@/service/eamlocation/eamlocation-service'
;
import
EAMLocationAuthService
from
'@/authservice/eamlocation/eamlocation-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
EAMLocationUIService
from
'@/uiservice/eamlocation/eamlocation-ui-service'
;
/**
* 功能位置编辑视图视图基类
*
* @export
* @class EAMLocationEditViewBase
* @extends {EditViewBase}
*/
export
class
EAMLocationEditViewBase
extends
EditViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMLocationEditViewBase
*/
protected
appDeName
:
string
=
'eamlocation'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMLocationEditViewBase
*/
protected
appDeKey
:
string
=
'eamlocationid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMLocationEditViewBase
*/
protected
appDeMajor
:
string
=
'eamlocationname'
;
/**
* 实体服务对象
*
* @type {EAMLocationService}
* @memberof EAMLocationEditViewBase
*/
protected
appEntityService
:
EAMLocationService
=
new
EAMLocationService
;
/**
* 实体权限服务对象
*
* @type EAMLocationUIService
* @memberof EAMLocationEditViewBase
*/
public
appUIService
:
EAMLocationUIService
=
new
EAMLocationUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMLocationEditViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMLocationEditViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.eamlocation.views.editview.caption'
,
srfTitle
:
'entities.eamlocation.views.editview.title'
,
srfSubTitle
:
'entities.eamlocation.views.editview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMLocationEditViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof EAMLocationEditView
*/
public
toolBarModels
:
any
=
{
tbitem2
:
{
name
:
'tbitem2'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'sx-tb-saveandclose'
,
icon
:
'../sasrfex/images/default/icon_saveandclose.png'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
,
class
:
''
}
},
tbitem1
:
{
name
:
'tbitem1'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
,
class
:
''
}
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'1769804cd7ab51624ac3c88c2090363b'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMLocationEditViewBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof EAMLocationEditViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'eamlocation'
,
majorPSDEField
:
'eamlocationname'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationEditViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem2'
))
{
this
.
toolbar_tbitem2_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1'
))
{
this
.
toolbar_tbitem1_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationEditViewBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationEditViewBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationEditViewBase
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"EAMLocation"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"EAMLocation"
);
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMLocationEditViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMLocationEditViewBase
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
);
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
args
}],
'*'
);
}
}
}
\ No newline at end of file
app_AssetManagement/src/pages/location/eamlocation-edit-view/eamlocation-edit-view.html
0 → 100644
浏览文件 @
663017d8
<studio-view-style2
viewName=
"eamlocationeditview"
viewTitle=
"功能位置编辑视图"
class=
'deeditview eamlocation-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
</studio-view-style2>
\ No newline at end of file
app_AssetManagement/src/pages/location/eamlocation-edit-view/eamlocation-edit-view.vue
0 → 100644
浏览文件 @
663017d8
<
template
src=
"./eamlocation-edit-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationEditViewBase } from './eamlocation-edit-view-base';
import view_form from '@widgets/eamlocation/main-form/main-form.vue';
/**
* 功能位置编辑视图视图
*
* @export
* @class EAMLocationEditView
* @extends {EAMLocationEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationEditView extends EAMLocationEditViewBase { }
</script>
app_AssetManagement/src/store/modules/view-action/state.ts
浏览文件 @
663017d8
...
...
@@ -12,6 +12,15 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'1769804cd7ab51624ac3c88c2090363b'
,
viewmodule
:
'Location'
,
viewname
:
'EAMLocationEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'3d676a12800fca23bec463d5c5217413'
,
viewmodule
:
'Location'
,
...
...
app_AssetManagement/src/uiservice/eamlocation/eamlocation-ui-service-base.ts
浏览文件 @
663017d8
...
...
@@ -89,6 +89,7 @@ export default class EAMLocationUIServiceBase extends UIService {
* @memberof EAMLocationUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'eamlocations'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'info_mainview'
,
srfappde
:
'eamlocations'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'childgridview'
,
srfappde
:
'eamlocations'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'summaryview'
,
srfappde
:
'eamlocations'
});
...
...
app_AssetManagement/src/widgets/eamlocation/main-form/main-form-base.tsx
0 → 100644
浏览文件 @
663017d8
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
EAMLocationService
from
'@/service/eamlocation/eamlocation-service'
;
import
MainService
from
'./main-form-service'
;
import
EAMLocationUIService
from
'@/uiservice/eamlocation/eamlocation-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {MainEditFormBase}
*/
export
class
MainEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainEditFormBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {EAMLocationService}
* @memberof MainEditFormBase
*/
public
appEntityService
:
EAMLocationService
=
new
EAMLocationService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'eamlocation'
;
/**
* 界面UI服务对象
*
* @type {EAMLocationUIService}
* @memberof MainEditFormBase
*/
public
appUIService
:
EAMLocationUIService
=
new
EAMLocationUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
eamlocationid
:
null
,
eamlocation
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
}
/**
* 详情模型集合
*
* @type {*}
* @memberof MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'功能位置基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.eamlocation.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
group2
:
new
FormGroupPanelModel
({
caption
:
'操作信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.eamlocation.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage2
:
new
FormPageModel
({
caption
:
'其它'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'功能位置标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'功能位置名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamlocationid
:
new
FormItemModel
({
caption
:
'功能位置标识'
,
detailType
:
'FORMITEM'
,
name
:
'eamlocationid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
form
:
new
FormTabPanelModel
({
caption
:
'form'
,
detailType
:
'TABPANEL'
,
name
:
'form'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
tabPages
:
[{
name
:
'formpage1'
,
index
:
0
,
visible
:
true
},
{
name
:
'formpage2'
,
index
:
1
,
visible
:
true
}]
}),
};
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/main-form/main-form-model.ts
0 → 100644
浏览文件 @
663017d8
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'eamlocationid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'eamlocationname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'eamlocationid'
,
prop
:
'eamlocationid'
,
dataType
:
'GUID'
,
},
{
name
:
'eamlocation'
,
prop
:
'eamlocationid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/main-form/main-form-service.ts
0 → 100644
浏览文件 @
663017d8
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamlocation/main-form/main-form.html
0 → 100644
浏览文件 @
663017d8
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'eamlocation_main'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<tabs
:animated=
"false"
size=
"small"
name=
'main'
:value=
"detailsModel.form.activiedPage"
@
on-click=
"detailsModel.form.clickPage($event)"
>
<tab-pane
v-show=
"detailsModel.formpage1.visible"
name=
'formpage1'
:index=
"0"
tab=
'main'
class=
''
:label=
"(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.eamlocation.main_form.details.formpage1')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.eamlocation.main_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
</row>
</app-form-group>
</i-col>
</tab-pane>
<tab-pane
v-show=
"detailsModel.formpage2.visible"
name=
'formpage2'
:index=
"1"
tab=
'main'
class=
''
:label=
"(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.eamlocation.main_form.details.formpage2')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.eamlocation.main_form.details.group2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
</row>
</app-form-group>
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/main-form/main-form.vue
0 → 100644
浏览文件 @
663017d8
<
template
src=
"./main-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainEditFormBase } from './main-form-base';
/**
* form部件
*
* @export
* @class MainEditForm
* @extends {MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainEditForm extends MainEditFormBase { }
</script>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录