Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
30236883
提交
30236883
编写于
7月 28, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
d0e84f79
变更
31
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
3238 行增加
和
51 行删除
+3238
-51
view-config.json
app_AssetManagement/public/assets/json/view-config.json
+20
-0
eamasset-state_en_US.ts
...le/lanres/entities/eamasset-state/eamasset-state_en_US.ts
+99
-0
eamasset-state_zh_CN.ts
...le/lanres/entities/eamasset-state/eamasset-state_zh_CN.ts
+99
-0
viewconfig.ts
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
+17
-1
eamasset-state-edit-view-base.tsx
...amasset-state-edit-view/eamasset-state-edit-view-base.tsx
+303
-0
eamasset-state-edit-view.html
...et/eamasset-state-edit-view/eamasset-state-edit-view.html
+29
-0
eamasset-state-edit-view.vue
...set/eamasset-state-edit-view/eamasset-state-edit-view.vue
+22
-0
eamasset-state-grid-view-base.tsx
...amasset-state-grid-view/eamasset-state-grid-view-base.tsx
+704
-0
eamasset-state-grid-view.html
...et/eamasset-state-grid-view/eamasset-state-grid-view.html
+52
-0
eamasset-state-grid-view.vue
...set/eamasset-state-grid-view/eamasset-state-grid-view.vue
+24
-0
page-register.ts
...Management/src/pages/base/app-index-view/page-register.ts
+2
-2
router.ts
app_AssetManagement/src/pages/base/app-index-view/router.ts
+23
-23
state.ts
app_AssetManagement/src/store/modules/view-action/state.ts
+20
-20
eamasset-state-ui-service-base.ts
...iservice/eamasset-state/eamasset-state-ui-service-base.ts
+2
-0
app-index-view-appmenu-base.tsx
...pp/app-index-view-appmenu/app-index-view-appmenu-base.tsx
+1
-1
app-index-view-appmenu-model.ts
...pp/app-index-view-appmenu/app-index-view-appmenu-model.ts
+4
-4
default-searchform-base.tsx
...sset-state/default-searchform/default-searchform-base.tsx
+73
-0
default-searchform-model.ts
...sset-state/default-searchform/default-searchform-model.ts
+31
-0
default-searchform-service.ts
...et-state/default-searchform/default-searchform-service.ts
+366
-0
default-searchform.html
...eamasset-state/default-searchform/default-searchform.html
+9
-0
default-searchform.vue
.../eamasset-state/default-searchform/default-searchform.vue
+22
-0
main-form-base.tsx
...t/src/widgets/eamasset-state/main-form/main-form-base.tsx
+132
-0
main-form-model.ts
...t/src/widgets/eamasset-state/main-form/main-form-model.ts
+81
-0
main-form-service.ts
...src/widgets/eamasset-state/main-form/main-form-service.ts
+372
-0
main-form.html
...ement/src/widgets/eamasset-state/main-form/main-form.html
+58
-0
main-form.vue
...gement/src/widgets/eamasset-state/main-form/main-form.vue
+22
-0
main-grid-base.tsx
...t/src/widgets/eamasset-state/main-grid/main-grid-base.tsx
+134
-0
main-grid-model.ts
...t/src/widgets/eamasset-state/main-grid/main-grid-model.ts
+84
-0
main-grid-service.ts
...src/widgets/eamasset-state/main-grid/main-grid-service.ts
+345
-0
main-grid.html
...ement/src/widgets/eamasset-state/main-grid/main-grid.html
+66
-0
main-grid.vue
...gement/src/widgets/eamasset-state/main-grid/main-grid.vue
+22
-0
未找到文件。
app_AssetManagement/public/assets/json/view-config.json
浏览文件 @
30236883
{
{
"eamassetstategridview"
:
{
"title"
:
"资产状态信息"
,
"caption"
:
"资产状态"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Asset"
,
"viewname"
:
"EAMAssetStateGridView"
,
"viewfilename"
:
"eamasset-state-grid-view"
,
"viewtag"
:
"00fcbd6336b5d40a31a2c3d5c346d16c"
,
"memo"
:
""
},
"eamlocationstateeditview"
:
{
"eamlocationstateeditview"
:
{
"title"
:
"功能位置状态信息"
,
"title"
:
"功能位置状态信息"
,
"caption"
:
"功能位置状态"
,
"caption"
:
"功能位置状态"
,
...
@@ -19,6 +29,16 @@
...
@@ -19,6 +29,16 @@
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
,
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
,
"memo"
:
"系统自动添加"
"memo"
:
"系统自动添加"
},
},
"eamassetstateeditview"
:
{
"title"
:
"资产状态信息"
,
"caption"
:
"资产状态"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Asset"
,
"viewname"
:
"EAMAssetStateEditView"
,
"viewfilename"
:
"eamasset-state-edit-view"
,
"viewtag"
:
"251816f09cb8f040c9309992cf957370"
,
"memo"
:
""
},
"eamlocationpickupview"
:
{
"eamlocationpickupview"
:
{
"title"
:
"功能位置数据选择视图"
,
"title"
:
"功能位置数据选择视图"
,
"caption"
:
"功能位置"
,
"caption"
:
"功能位置"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamasset-state/eamasset-state_en_US.ts
浏览文件 @
30236883
...
@@ -9,4 +9,103 @@ export default {
...
@@ -9,4 +9,103 @@ export default {
eamassetstatename
:
"资产状态名称"
,
eamassetstatename
:
"资产状态名称"
,
available
:
"是否有效"
,
available
:
"是否有效"
,
},
},
views
:
{
gridview
:
{
caption
:
"资产状态"
,
title
:
"资产状态信息"
,
},
editview
:
{
caption
:
"资产状态"
,
title
:
"资产状态信息"
,
},
},
main_form
:
{
details
:
{
group1
:
"基本信息"
,
grouppanel1
:
"配置信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"资产状态标识"
,
srfmajortext
:
"资产状态名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态名称"
,
available
:
"是否有效"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"New"
,
tip
:
"New"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem15
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem16
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem3
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem17
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem10
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
};
};
\ No newline at end of file
app_AssetManagement/src/locale/lanres/entities/eamasset-state/eamasset-state_zh_CN.ts
浏览文件 @
30236883
...
@@ -8,4 +8,103 @@ export default {
...
@@ -8,4 +8,103 @@ export default {
eamassetstatename
:
"资产状态名称"
,
eamassetstatename
:
"资产状态名称"
,
available
:
"是否有效"
,
available
:
"是否有效"
,
},
},
views
:
{
gridview
:
{
caption
:
"资产状态"
,
title
:
"资产状态信息"
,
},
editview
:
{
caption
:
"资产状态"
,
title
:
"资产状态信息"
,
},
},
main_form
:
{
details
:
{
group1
:
"基本信息"
,
grouppanel1
:
"配置信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"资产状态标识"
,
srfmajortext
:
"资产状态名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
eamassetstateid
:
"资产状态标识"
,
eamassetstatename
:
"资产状态名称"
,
available
:
"是否有效"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem5
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem15
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem16
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem3
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem17
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem10
:
{
caption
:
"过滤"
,
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem2
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem1
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
};
};
\ No newline at end of file
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
浏览文件 @
30236883
...
@@ -7,7 +7,15 @@ import Mock from 'mockjs'
...
@@ -7,7 +7,15 @@ import Mock from 'mockjs'
mock
.
onGet
(
'./assets/json/view-config.json'
).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
'./assets/json/view-config.json'
).
reply
((
config
:
any
)
=>
{
let
status
=
MockAdapter
.
mockStatus
(
config
);
let
status
=
MockAdapter
.
mockStatus
(
config
);
return
[
status
,{
return
[
status
,{
"eamlocationstateeditview"
:
{
"eamassetstategridview"
:
{
"title"
:
"资产状态信息"
,
"caption"
:
"资产状态"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Asset"
,
"viewname"
:
"EAMAssetStateGridView"
,
"viewtag"
:
"00fcbd6336b5d40a31a2c3d5c346d16c"
},
"eamlocationstateeditview"
:
{
"title"
:
"功能位置状态信息"
,
"title"
:
"功能位置状态信息"
,
"caption"
:
"功能位置状态"
,
"caption"
:
"功能位置状态"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewtype"
:
"DEEDITVIEW"
,
...
@@ -23,6 +31,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
...
@@ -23,6 +31,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"EAMLocationEditView"
,
"viewname"
:
"EAMLocationEditView"
,
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
"viewtag"
:
"1769804cd7ab51624ac3c88c2090363b"
},
},
"eamassetstateeditview"
:
{
"title"
:
"资产状态信息"
,
"caption"
:
"资产状态"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Asset"
,
"viewname"
:
"EAMAssetStateEditView"
,
"viewtag"
:
"251816f09cb8f040c9309992cf957370"
},
"eamlocationpickupview"
:
{
"eamlocationpickupview"
:
{
"title"
:
"功能位置数据选择视图"
,
"title"
:
"功能位置数据选择视图"
,
"caption"
:
"功能位置"
,
"caption"
:
"功能位置"
,
...
...
app_AssetManagement/src/pages/asset/eamasset-state-edit-view/eamasset-state-edit-view-base.tsx
0 → 100644
浏览文件 @
30236883
import
{
Subject
}
from
'rxjs'
;
import
{
EditViewBase
}
from
'@/studio-core'
;
import
EAMAssetStateService
from
'@/service/eamasset-state/eamasset-state-service'
;
import
EAMAssetStateAuthService
from
'@/authservice/eamasset-state/eamasset-state-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
EAMAssetStateUIService
from
'@/uiservice/eamasset-state/eamasset-state-ui-service'
;
/**
* 资产状态信息视图基类
*
* @export
* @class EAMAssetStateEditViewBase
* @extends {EditViewBase}
*/
export
class
EAMAssetStateEditViewBase
extends
EditViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetStateEditViewBase
*/
protected
appDeName
:
string
=
'eamassetstate'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetStateEditViewBase
*/
protected
appDeKey
:
string
=
'eamassetstateid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetStateEditViewBase
*/
protected
appDeMajor
:
string
=
'eamassetstatename'
;
/**
* 实体服务对象
*
* @type {EAMAssetStateService}
* @memberof EAMAssetStateEditViewBase
*/
protected
appEntityService
:
EAMAssetStateService
=
new
EAMAssetStateService
;
/**
* 实体权限服务对象
*
* @type EAMAssetStateUIService
* @memberof EAMAssetStateEditViewBase
*/
public
appUIService
:
EAMAssetStateUIService
=
new
EAMAssetStateUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetStateEditViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetStateEditViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.eamassetstate.views.editview.caption'
,
srfTitle
:
'entities.eamassetstate.views.editview.title'
,
srfSubTitle
:
'entities.eamassetstate.views.editview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetStateEditViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof EAMAssetStateEditView
*/
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
=
'251816f09cb8f040c9309992cf957370'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetStateEditViewBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetStateEditViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'eamassetstate'
,
majorPSDEField
:
'eamassetstatename'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetStateEditViewBase
*/
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 EAMAssetStateEditViewBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetStateEditViewBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetStateEditViewBase
*/
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
,
"EAMAssetState"
);
}
/**
* 逻辑事件
*
* @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
,
"EAMAssetState"
);
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMAssetStateEditViewBase
*/
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 EAMAssetStateEditViewBase
*/
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/asset/eamasset-state-edit-view/eamasset-state-edit-view.html
0 → 100644
浏览文件 @
30236883
<studio-view-style2
viewName=
"eamassetstateeditview"
viewTitle=
"资产状态信息"
class=
'deeditview eamasset-state-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/asset/eamasset-state-edit-view/eamasset-state-edit-view.vue
0 → 100644
浏览文件 @
30236883
<
template
src=
"./eamasset-state-edit-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetStateEditViewBase } from './eamasset-state-edit-view-base';
import view_form from '@widgets/eamasset-state/main-form/main-form.vue';
/**
* 资产状态信息视图
*
* @export
* @class EAMAssetStateEditView
* @extends {EAMAssetStateEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetStateEditView extends EAMAssetStateEditViewBase { }
</script>
app_AssetManagement/src/pages/asset/eamasset-state-grid-view/eamasset-state-grid-view-base.tsx
0 → 100644
浏览文件 @
30236883
此差异已折叠。
点击以展开。
app_AssetManagement/src/pages/asset/eamasset-state-grid-view/eamasset-state-grid-view.html
0 → 100644
浏览文件 @
30236883
<studio-view-style2
viewName=
"eamassetstategridview"
viewTitle=
"资产状态信息"
class=
'degridview eamasset-state-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"资产状态名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
v-show=
"isExpandSearchForm"
loaddraftAction=
"FilterGetDraft"
loadAction=
"FilterGet"
name=
"searchform"
ref=
'searchform'
@
save=
"searchform_save($event)"
@
search=
"searchform_search($event)"
@
load=
"searchform_load($event)"
@
closeview=
"closeView($event)"
>
</view
_searchform
>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_AssetManagement/src/pages/asset/eamasset-state-grid-view/eamasset-state-grid-view.vue
0 → 100644
浏览文件 @
30236883
<
template
src=
"./eamasset-state-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetStateGridViewBase } from './eamasset-state-grid-view-base';
import view_grid from '@widgets/eamasset-state/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamasset-state/default-searchform/default-searchform.vue';
/**
* 资产状态信息视图
*
* @export
* @class EAMAssetStateGridView
* @extends {EAMAssetStateGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetStateGridView extends EAMAssetStateGridViewBase { }
</script>
app_AssetManagement/src/pages/base/app-index-view/page-register.ts
浏览文件 @
30236883
...
@@ -4,7 +4,6 @@ export const PageComponents = {
...
@@ -4,7 +4,6 @@ export const PageComponents = {
Vue
.
component
(
'eamlocation-state-model-line-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-line-edit-view/eamlocation-state-model-line-edit-view.vue'
));
Vue
.
component
(
'eamlocation-state-model-line-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-line-edit-view/eamlocation-state-model-line-edit-view.vue'
));
Vue
.
component
(
'eamlocation-child-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-child-grid-view/eamlocation-child-grid-view.vue'
));
Vue
.
component
(
'eamlocation-child-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-child-grid-view/eamlocation-child-grid-view.vue'
));
Vue
.
component
(
'eamlocation-info-view'
,
()
=>
import
(
'@pages/location/eamlocation-info-view/eamlocation-info-view.vue'
));
Vue
.
component
(
'eamlocation-info-view'
,
()
=>
import
(
'@pages/location/eamlocation-info-view/eamlocation-info-view.vue'
));
Vue
.
component
(
'eamapply-state-edit-view'
,
()
=>
import
(
'@pages/apply/eamapply-state-edit-view/eamapply-state-edit-view.vue'
));
Vue
.
component
(
'eamlocation-state-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-grid-view/eamlocation-state-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-grid-view/eamlocation-state-grid-view.vue'
));
Vue
.
component
(
'eamlocation-type-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-pickup-grid-view/eamlocation-type-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-type-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-pickup-grid-view/eamlocation-type-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-pickup-view'
,
()
=>
import
(
'@pages/location/eamlocation-pickup-view/eamlocation-pickup-view.vue'
));
Vue
.
component
(
'eamlocation-pickup-view'
,
()
=>
import
(
'@pages/location/eamlocation-pickup-view/eamlocation-pickup-view.vue'
));
...
@@ -16,12 +15,13 @@ export const PageComponents = {
...
@@ -16,12 +15,13 @@ export const PageComponents = {
Vue
.
component
(
'eamlocation-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-pickup-grid-view/eamlocation-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-pickup-grid-view/eamlocation-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-summary-view'
,
()
=>
import
(
'@pages/location/eamlocation-summary-view/eamlocation-summary-view.vue'
));
Vue
.
component
(
'eamlocation-summary-view'
,
()
=>
import
(
'@pages/location/eamlocation-summary-view/eamlocation-summary-view.vue'
));
Vue
.
component
(
'eamlocation-type-pickup-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-pickup-view/eamlocation-type-pickup-view.vue'
));
Vue
.
component
(
'eamlocation-type-pickup-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-pickup-view/eamlocation-type-pickup-view.vue'
));
Vue
.
component
(
'eamasset-state-grid-view'
,
()
=>
import
(
'@pages/asset/eamasset-state-grid-view/eamasset-state-grid-view.vue'
));
Vue
.
component
(
'eamlocation-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-grid-view/eamlocation-grid-view.vue'
));
Vue
.
component
(
'eamlocation-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-grid-view/eamlocation-grid-view.vue'
));
Vue
.
component
(
'eamlocation-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-edit-view/eamlocation-edit-view.vue'
));
Vue
.
component
(
'eamlocation-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-edit-view/eamlocation-edit-view.vue'
));
Vue
.
component
(
'eamlocation-type-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-grid-view/eamlocation-type-grid-view.vue'
));
Vue
.
component
(
'eamlocation-type-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-type-grid-view/eamlocation-type-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-edit-view/eamlocation-state-edit-view.vue'
));
Vue
.
component
(
'eamlocation-state-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-edit-view/eamlocation-state-edit-view.vue'
));
Vue
.
component
(
'eamapply-state-grid-view'
,
()
=>
import
(
'@pages/apply/eamapply-state-grid-view/eamapply-state-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-model-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-grid-view/eamlocation-state-model-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-model-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-grid-view/eamlocation-state-model-grid-view.vue'
));
Vue
.
component
(
'eamasset-state-edit-view'
,
()
=>
import
(
'@pages/asset/eamasset-state-edit-view/eamasset-state-edit-view.vue'
));
Vue
.
component
(
'eamlocation-state-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-pickup-grid-view/eamlocation-state-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-pickup-grid-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-pickup-grid-view/eamlocation-state-pickup-grid-view.vue'
));
Vue
.
component
(
'eamlocation-state-model-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-edit-view/eamlocation-state-model-edit-view.vue'
));
Vue
.
component
(
'eamlocation-state-model-edit-view'
,
()
=>
import
(
'@pages/location/eamlocation-state-model-edit-view/eamlocation-state-model-edit-view.vue'
));
}
}
...
...
app_AssetManagement/src/pages/base/app-index-view/router.ts
浏览文件 @
30236883
...
@@ -99,20 +99,6 @@ const router = new Router({
...
@@ -99,20 +99,6 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/location/eamlocation-info-view/eamlocation-info-view.vue'
),
component
:
()
=>
import
(
'@pages/location/eamlocation-info-view/eamlocation-info-view.vue'
),
},
},
{
path
:
'eamapplystates/:eamapplystate?/editview/:editview?'
,
meta
:
{
caption
:
'entities.eamapplystate.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'eamapplystates'
,
parameterName
:
'eamapplystate'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/apply/eamapply-state-edit-view/eamapply-state-edit-view.vue'
),
},
{
{
path
:
'eamlocationstates/:eamlocationstate?/gridview/:gridview?'
,
path
:
'eamlocationstates/:eamlocationstate?/gridview/:gridview?'
,
meta
:
{
meta
:
{
...
@@ -267,6 +253,20 @@ const router = new Router({
...
@@ -267,6 +253,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/location/eamlocation-type-pickup-view/eamlocation-type-pickup-view.vue'
),
component
:
()
=>
import
(
'@pages/location/eamlocation-type-pickup-view/eamlocation-type-pickup-view.vue'
),
},
},
{
path
:
'eamassetstates/:eamassetstate?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.eamassetstate.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'eamassetstates'
,
parameterName
:
'eamassetstate'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/asset/eamasset-state-grid-view/eamasset-state-grid-view.vue'
),
},
{
{
path
:
'eamlocations/:eamlocation?/gridview/:gridview?'
,
path
:
'eamlocations/:eamlocation?/gridview/:gridview?'
,
meta
:
{
meta
:
{
...
@@ -324,32 +324,32 @@ const router = new Router({
...
@@ -324,32 +324,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/location/eamlocation-state-edit-view/eamlocation-state-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/location/eamlocation-state-edit-view/eamlocation-state-edit-view.vue'
),
},
},
{
{
path
:
'eam
applystates/:eamapplystate
?/gridview/:gridview?'
,
path
:
'eam
locationstatemodels/:eamlocationstatemodel
?/gridview/:gridview?'
,
meta
:
{
meta
:
{
caption
:
'entities.eam
applystate
.views.gridview.title'
,
caption
:
'entities.eam
locationstatemodel
.views.gridview.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'eam
applystates'
,
parameterName
:
'eamapplystate
'
},
{
pathName
:
'eam
locationstatemodels'
,
parameterName
:
'eamlocationstatemodel
'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/
apply/eamapply-state-grid-view/eamapply-state
-grid-view.vue'
),
component
:
()
=>
import
(
'@pages/
location/eamlocation-state-model-grid-view/eamlocation-state-model
-grid-view.vue'
),
},
},
{
{
path
:
'eam
locationstatemodels/:eamlocationstatemodel?/gridview/:grid
view?'
,
path
:
'eam
assetstates/:eamassetstate?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.eam
locationstatemodel.views.grid
view.title'
,
caption
:
'entities.eam
assetstate.views.edit
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'eam
locationstatemodels'
,
parameterName
:
'eamlocationstatemodel
'
},
{
pathName
:
'eam
assetstates'
,
parameterName
:
'eamassetstate
'
},
{
pathName
:
'
gridview'
,
parameterName
:
'grid
view'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/
location/eamlocation-state-model-grid-view/eamlocation-state-model-grid
-view.vue'
),
component
:
()
=>
import
(
'@pages/
asset/eamasset-state-edit-view/eamasset-state-edit
-view.vue'
),
},
},
{
{
path
:
'eamlocationstates/:eamlocationstate?/pickupgridview/:pickupgridview?'
,
path
:
'eamlocationstates/:eamlocationstate?/pickupgridview/:pickupgridview?'
,
...
...
app_AssetManagement/src/store/modules/view-action/state.ts
浏览文件 @
30236883
...
@@ -3,6 +3,16 @@
...
@@ -3,6 +3,16 @@
*/
*/
export
const
viewstate
:
any
=
{
export
const
viewstate
:
any
=
{
appviews
:
[
appviews
:
[
{
viewtag
:
'00fcbd6336b5d40a31a2c3d5c346d16c'
,
viewmodule
:
'Asset'
,
viewname
:
'EAMAssetStateGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'251816f09cb8f040c9309992cf957370'
,
],
},
{
{
viewtag
:
'0b6fa9e6ebc1f6d1afaf3c19585840b0'
,
viewtag
:
'0b6fa9e6ebc1f6d1afaf3c19585840b0'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
@@ -23,6 +33,15 @@ export const viewstate: any = {
...
@@ -23,6 +33,15 @@ export const viewstate: any = {
'2b28313d0f3925fa44b8683eb5ea54d6'
,
'2b28313d0f3925fa44b8683eb5ea54d6'
,
],
],
},
},
{
viewtag
:
'251816f09cb8f040c9309992cf957370'
,
viewmodule
:
'Asset'
,
viewname
:
'EAMAssetStateEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
{
viewtag
:
'2b28313d0f3925fa44b8683eb5ea54d6'
,
viewtag
:
'2b28313d0f3925fa44b8683eb5ea54d6'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
@@ -63,16 +82,6 @@ export const viewstate: any = {
...
@@ -63,16 +82,6 @@ export const viewstate: any = {
'dd09755644dcf1e57c062b4e08e4ce3a'
,
'dd09755644dcf1e57c062b4e08e4ce3a'
,
],
],
},
},
{
viewtag
:
'67367b30b36597f2b4f455b9738f4dd8'
,
viewmodule
:
'Apply'
,
viewname
:
'EAMApplyStateGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'e3f067b2352dbb274918bccb115ebcde'
,
],
},
{
{
viewtag
:
'6a395ea52232233416d9c7120518863d'
,
viewtag
:
'6a395ea52232233416d9c7120518863d'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
@@ -188,10 +197,10 @@ export const viewstate: any = {
...
@@ -188,10 +197,10 @@ export const viewstate: any = {
viewaction
:
''
,
viewaction
:
''
,
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'00fcbd6336b5d40a31a2c3d5c346d16c'
,
'eee617336f6dc6e5e97835d6309fd452'
,
'eee617336f6dc6e5e97835d6309fd452'
,
'4c95ec14aa2de5370d9d81f7d85f4bd5'
,
'4c95ec14aa2de5370d9d81f7d85f4bd5'
,
'f7c04762f2a3e3026c909e6191a0998f'
,
'f7c04762f2a3e3026c909e6191a0998f'
,
'67367b30b36597f2b4f455b9738f4dd8'
,
'9e9b3600ba892d31757bacef1dcc9458'
,
'9e9b3600ba892d31757bacef1dcc9458'
,
],
],
},
},
...
@@ -205,15 +214,6 @@ export const viewstate: any = {
...
@@ -205,15 +214,6 @@ export const viewstate: any = {
'3d676a12800fca23bec463d5c5217413'
,
'3d676a12800fca23bec463d5c5217413'
,
],
],
},
},
{
viewtag
:
'e3f067b2352dbb274918bccb115ebcde'
,
viewmodule
:
'Apply'
,
viewname
:
'EAMApplyStateEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
{
viewtag
:
'ecd1ec6299b5b24e2004fa15c4eef92d'
,
viewtag
:
'ecd1ec6299b5b24e2004fa15c4eef92d'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
...
app_AssetManagement/src/uiservice/eamasset-state/eamasset-state-ui-service-base.ts
浏览文件 @
30236883
...
@@ -89,6 +89,8 @@ export default class EAMAssetStateUIServiceBase extends UIService {
...
@@ -89,6 +89,8 @@ export default class EAMAssetStateUIServiceBase extends UIService {
* @memberof EAMAssetStateUIServiceBase
* @memberof EAMAssetStateUIServiceBase
*/
*/
public
initViewMap
(){
public
initViewMap
(){
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'eamassetstates'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'eamassetstates'
});
}
}
/**
/**
...
...
app_AssetManagement/src/widgets/app/app-index-view-appmenu/app-index-view-appmenu-base.tsx
浏览文件 @
30236883
...
@@ -92,7 +92,7 @@ export class AppIndexViewBase extends Vue {
...
@@ -92,7 +92,7 @@ export class AppIndexViewBase extends Vue {
Object
.
assign
(
viewparam
,
{});
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
const
parameters
:
any
[]
=
[
{
pathName
:
'eama
pplystates'
,
parameterName
:
'eamapply
state'
},
{
pathName
:
'eama
ssetstates'
,
parameterName
:
'eamasset
state'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
];
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
...
...
app_AssetManagement/src/widgets/app/app-index-view-appmenu/app-index-view-appmenu-model.ts
浏览文件 @
30236883
...
@@ -212,7 +212,7 @@ export default class AppIndexViewModel {
...
@@ -212,7 +212,7 @@ export default class AppIndexViewModel {
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_2'
,
appfunctag
:
'_2'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'eama
pply
-state-grid-view'
,
viewname
:
'eama
sset
-state-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
}
}
,
,
...
@@ -317,11 +317,11 @@ export default class AppIndexViewModel {
...
@@ -317,11 +317,11 @@ export default class AppIndexViewModel {
appfunctag
:
'_2'
,
appfunctag
:
'_2'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
openmode
:
''
,
codename
:
'eama
pply
stategridview'
,
codename
:
'eama
sset
stategridview'
,
deResParameters
:
[],
deResParameters
:
[],
routepath
:
'/appindexview/:appindexview?/eama
pplystates/:eamapply
state?/gridview/:gridview?'
,
routepath
:
'/appindexview/:appindexview?/eama
ssetstates/:eamasset
state?/gridview/:gridview?'
,
parameters
:
[
parameters
:
[
{
pathName
:
'eama
pplystates'
,
parameterName
:
'eamapply
state'
},
{
pathName
:
'eama
ssetstates'
,
parameterName
:
'eamasset
state'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
],
},
},
...
...
app_AssetManagement/src/widgets/eamasset-state/default-searchform/default-searchform-base.tsx
0 → 100644
浏览文件 @
30236883
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
SearchFormControlBase
}
from
'@/studio-core'
;
import
EAMAssetStateService
from
'@/service/eamasset-state/eamasset-state-service'
;
import
DefaultService
from
'./default-searchform-service'
;
import
EAMAssetStateUIService
from
'@/uiservice/eamasset-state/eamasset-state-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export
class
DefaultSearchFormBase
extends
SearchFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
controlType
:
string
=
'SEARCHFORM'
;
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public
service
:
DefaultService
=
new
DefaultService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {EAMAssetStateService}
* @memberof DefaultSearchFormBase
*/
public
appEntityService
:
EAMAssetStateService
=
new
EAMAssetStateService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeName
:
string
=
'eamassetstate'
;
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
data
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
};
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
30236883
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export
default
class
DefaultModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
30236883
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-state/default-searchform/default-searchform.html
0 → 100644
浏览文件 @
30236883
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<input
style=
"display:none;"
/>
<div
class=
"search-button"
>
<i-button
size=
"small"
type=
"primary"
ghost
@
click=
"onSearch.apply(_self, arguments)"
>
{{$t('app.searchButton.search')}}
</i-button>
<i-button
size=
"small"
type=
"default"
ghost
@
click=
"onReset.apply(_self, arguments)"
>
{{this.$t('app.searchButton.reset')}}
</i-button>
</div>
<div
class=
"form-content"
>
</div>
</i-form>
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
30236883
<
template
src=
"./default-searchform.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultSearchFormBase } from './default-searchform-base';
/**
* searchform部件
*
* @export
* @class DefaultSearchForm
* @extends {DefaultSearchFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultSearchForm extends DefaultSearchFormBase { }
</script>
app_AssetManagement/src/widgets/eamasset-state/main-form/main-form-base.tsx
0 → 100644
浏览文件 @
30236883
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
EAMAssetStateService
from
'@/service/eamasset-state/eamasset-state-service'
;
import
MainService
from
'./main-form-service'
;
import
EAMAssetStateUIService
from
'@/uiservice/eamasset-state/eamasset-state-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 {EAMAssetStateService}
* @memberof MainEditFormBase
*/
public
appEntityService
:
EAMAssetStateService
=
new
EAMAssetStateService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'eamassetstate'
;
/**
* 界面UI服务对象
*
* @type {EAMAssetStateUIService}
* @memberof MainEditFormBase
*/
public
appUIService
:
EAMAssetStateUIService
=
new
EAMAssetStateUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
eamassetstateid
:
null
,
eamassetstatename
:
null
,
available
:
null
,
eamassetstate
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
eamassetstatename
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'资产状态名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'资产状态名称 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 详情模型集合
*
* @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.eamassetstate.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'配置信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.eamassetstate.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
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
}),
eamassetstateid
:
new
FormItemModel
({
caption
:
'资产状态标识'
,
detailType
:
'FORMITEM'
,
name
:
'eamassetstateid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamassetstatename
:
new
FormItemModel
({
caption
:
'资产状态名称'
,
detailType
:
'FORMITEM'
,
name
:
'eamassetstatename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
available
:
new
FormItemModel
({
caption
:
'是否有效'
,
detailType
:
'FORMITEM'
,
name
:
'available'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-form/main-form-model.ts
0 → 100644
浏览文件 @
30236883
/**
* 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
:
'eamassetstateid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'eamassetstatename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'eamassetstateid'
,
prop
:
'eamassetstateid'
,
dataType
:
'GUID'
,
},
{
name
:
'eamassetstatename'
,
prop
:
'eamassetstatename'
,
dataType
:
'TEXT'
,
},
{
name
:
'available'
,
prop
:
'available'
,
dataType
:
'YESNO'
,
},
{
name
:
'eamassetstate'
,
prop
:
'eamassetstateid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-form/main-form-service.ts
0 → 100644
浏览文件 @
30236883
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-state/main-form/main-form.html
0 → 100644
浏览文件 @
30236883
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'eamassetstate_main'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<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.eamassetstate.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>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.eamassetstateid.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'eamassetstateid'
:itemRules=
"this.rules.eamassetstateid"
class=
''
:caption=
"$t('entities.eamassetstate.main_form.details.eamassetstateid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.eamassetstateid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.eamassetstateid"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.eamassetstateid.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.eamassetstatename.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'eamassetstatename'
:itemRules=
"this.rules.eamassetstatename"
class=
''
:caption=
"$t('entities.eamassetstate.main_form.details.eamassetstatename')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.eamassetstatename.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.eamassetstatename"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.eamassetstatename.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.grouppanel1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.eamassetstate.main_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.available.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'available'
:itemRules=
"this.rules.available"
class=
''
:caption=
"$t('entities.eamassetstate.main_form.details.available')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.available.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.available"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.available.disabled"
style=
"width:100px;width: 100px;"
valueType=
"number"
tag=
'YesNo'
codelistType=
'STATIC'
placeholder=
'请选择...'
/>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-form/main-form.vue
0 → 100644
浏览文件 @
30236883
<
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>
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid-base.tsx
0 → 100644
浏览文件 @
30236883
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
EAMAssetStateService
from
'@/service/eamasset-state/eamasset-state-service'
;
import
MainService
from
'./main-grid-service'
;
import
EAMAssetStateUIService
from
'@/uiservice/eamasset-state/eamasset-state-ui-service'
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
/**
* grid部件基类
*
* @export
* @class GridControlBase
* @extends {MainGridBase}
*/
export
class
MainGridBase
extends
GridControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
controlType
:
string
=
'GRID'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainGridBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {EAMAssetStateService}
* @memberof MainGridBase
*/
public
appEntityService
:
EAMAssetStateService
=
new
EAMAssetStateService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeName
:
string
=
'eamassetstate'
;
/**
* 界面UI服务对象
*
* @type {EAMAssetStateUIService}
* @memberof MainBase
*/
public
appUIService
:
EAMAssetStateUIService
=
new
EAMAssetStateUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof MainBase
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof MainBase
*/
protected
localStorageTag
:
string
=
'eamassetstate_main_grid'
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof MainGridBase
*/
public
allColumns
:
any
[]
=
[
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof MainGridBase
*/
public
getGridRowModel
(){
return
{
srfkey
:
new
FormItemModel
(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainGridBase
*/
public
rules
:
any
=
{
srfkey
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'资产状态标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'资产状态标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public
getCellClassName
(
args
:
{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}):
any
{
return
(
this
.
hasRowEdit
[
args
.
column
.
property
]
&&
this
.
actualIsOpenEdit
)
?
"edit-cell"
:
"info-cell"
;
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
30236883
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
isDEExport
:
boolean
=
false
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
getDataItems
():
any
[]
{
if
(
this
.
isDEExport
){
return
[
]
}
else
{
return
[
{
name
:
'srfmajortext'
,
prop
:
'eamassetstatename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'eamassetstateid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'eamassetstateid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'eamassetstate'
,
prop
:
'eamassetstateid'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'filter'
,
prop
:
'filter'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
30236883
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid.html
0 → 100644
浏览文件 @
30236883
<div
:class=
"{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }"
>
<i-form>
<el-table
v-if=
"isDisplay === true"
:default-sort=
"{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@
sort-change=
"onSortChange($event)"
:border=
"isDragendCol"
:highlight-current-row =
"isSingleSelect"
:row-class-name=
"getRowClassName.bind(_self)"
:cell-class-name=
"getCellClassName.bind(_self)"
size=
"mini"
stripe
@
row-click=
"rowClick($event)"
@
select-all=
"selectAll($event)"
@
select=
"select($event)"
@
row-class-name=
"onRowClassName($event)"
@
row-dblclick=
"rowDBLClick($event)"
ref=
'multipleTable'
:data=
"items"
:show-header=
"!isHideHeader"
>
<template
slot=
"empty"
>
无数据
<span
class=
"quick-toolbar"
>
</span>
</template>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</template>
</el-table>
<row
class=
'grid-pagination'
v-show=
"items.length > 0"
>
<page
class=
'pull-right'
@
on-change=
"pageOnChange($event)"
@
on-page-size-change=
"onPageSizeChange($event)"
:transfer=
"true"
:total=
"totalRecord"
show-sizer
:current=
"curPage"
:page-size=
"limit"
:page-size-opts=
"[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
show-elevator
show-total
>
<span>
<span
class=
"page-column"
>
<poptip
transfer
placement=
"top-start"
>
<i-button
icon=
"md-menu"
>
{{$t('app.gridpage.choicecolumns')}}
</i-button>
<div
slot=
"content"
>
<template
v-for=
"col in allColumns"
>
<div
:key=
"col.name"
><el-checkbox
v-model=
"col.show"
@
change=
"onColChange()"
>
{{$t(col.langtag)}}
</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
<span>
<template
v-if=
"items.length === 1"
>
1
</template>
<template
v-else
>
<span>
{{(curPage - 1) * limit + 1}}
-
{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}
</span>
</template>
</span>
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}
{{totalRecord}}
{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-state/main-grid/main-grid.vue
0 → 100644
浏览文件 @
30236883
<
template
src=
"./main-grid.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainGridBase } from './main-grid-base';
/**
* grid部件
*
* @export
* @class MainGrid
* @extends {MainGridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainGrid extends MainGridBase { }
</script>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录