Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
9ae9068e
提交
9ae9068e
编写于
7月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
58aa5292
变更
22
展开全部
显示空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
3098 行增加
和
0 行删除
+3098
-0
eamasset-type-edit-view-base.tsx
.../eamasset-type-edit-view/eamasset-type-edit-view-base.tsx
+303
-0
eamasset-type-edit-view.html
...sset/eamasset-type-edit-view/eamasset-type-edit-view.html
+29
-0
eamasset-type-edit-view.vue
...asset/eamasset-type-edit-view/eamasset-type-edit-view.vue
+22
-0
eamasset-type-grid-view-base.tsx
.../eamasset-type-grid-view/eamasset-type-grid-view-base.tsx
+704
-0
eamasset-type-grid-view.html
...sset/eamasset-type-grid-view/eamasset-type-grid-view.html
+52
-0
eamasset-type-grid-view.vue
...asset/eamasset-type-grid-view/eamasset-type-grid-view.vue
+24
-0
state.ts
app_AssetManagement/src/store/modules/view-action/state.ts
+20
-0
default-searchform-base.tsx
...asset-type/default-searchform/default-searchform-base.tsx
+73
-0
default-searchform-model.ts
...asset-type/default-searchform/default-searchform-model.ts
+31
-0
default-searchform-service.ts
...set-type/default-searchform/default-searchform-service.ts
+366
-0
default-searchform.html
.../eamasset-type/default-searchform/default-searchform.html
+9
-0
default-searchform.vue
...s/eamasset-type/default-searchform/default-searchform.vue
+22
-0
main-form-base.tsx
...nt/src/widgets/eamasset-type/main-form/main-form-base.tsx
+144
-0
main-form-model.ts
...nt/src/widgets/eamasset-type/main-form/main-form-model.ts
+91
-0
main-form-service.ts
.../src/widgets/eamasset-type/main-form/main-form-service.ts
+383
-0
main-form.html
...gement/src/widgets/eamasset-type/main-form/main-form.html
+55
-0
main-form.vue
...agement/src/widgets/eamasset-type/main-form/main-form.vue
+22
-0
main-grid-base.tsx
...nt/src/widgets/eamasset-type/main-grid/main-grid-base.tsx
+175
-0
main-grid-model.ts
...nt/src/widgets/eamasset-type/main-grid/main-grid-model.ts
+104
-0
main-grid-service.ts
.../src/widgets/eamasset-type/main-grid/main-grid-service.ts
+345
-0
main-grid.html
...gement/src/widgets/eamasset-type/main-grid/main-grid.html
+102
-0
main-grid.vue
...agement/src/widgets/eamasset-type/main-grid/main-grid.vue
+22
-0
未找到文件。
app_AssetManagement/src/pages/asset/eamasset-type-edit-view/eamasset-type-edit-view-base.tsx
0 → 100644
浏览文件 @
9ae9068e
import
{
Subject
}
from
'rxjs'
;
import
{
EditViewBase
}
from
'@/studio-core'
;
import
EAMAssetTypeService
from
'@/service/eamasset-type/eamasset-type-service'
;
import
EAMAssetTypeAuthService
from
'@/authservice/eamasset-type/eamasset-type-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
EAMAssetTypeUIService
from
'@/uiservice/eamasset-type/eamasset-type-ui-service'
;
/**
* 资产类型信息视图基类
*
* @export
* @class EAMAssetTypeEditViewBase
* @extends {EditViewBase}
*/
export
class
EAMAssetTypeEditViewBase
extends
EditViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetTypeEditViewBase
*/
protected
appDeName
:
string
=
'eamassettype'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetTypeEditViewBase
*/
protected
appDeKey
:
string
=
'eamassettypeid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetTypeEditViewBase
*/
protected
appDeMajor
:
string
=
'eamassettypename'
;
/**
* 实体服务对象
*
* @type {EAMAssetTypeService}
* @memberof EAMAssetTypeEditViewBase
*/
protected
appEntityService
:
EAMAssetTypeService
=
new
EAMAssetTypeService
;
/**
* 实体权限服务对象
*
* @type EAMAssetTypeUIService
* @memberof EAMAssetTypeEditViewBase
*/
public
appUIService
:
EAMAssetTypeUIService
=
new
EAMAssetTypeUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetTypeEditViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetTypeEditViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.eamassettype.views.editview.caption'
,
srfTitle
:
'entities.eamassettype.views.editview.title'
,
srfSubTitle
:
'entities.eamassettype.views.editview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetTypeEditViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof EAMAssetTypeEditView
*/
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
=
'd1b8ecb4e8fc6808282289a1ee763fb8'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetTypeEditViewBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetTypeEditViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'eamassettype'
,
majorPSDEField
:
'eamassettypename'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeEditViewBase
*/
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 EAMAssetTypeEditViewBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeEditViewBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeEditViewBase
*/
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
,
"EAMAssetType"
);
}
/**
* 逻辑事件
*
* @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
,
"EAMAssetType"
);
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMAssetTypeEditViewBase
*/
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 EAMAssetTypeEditViewBase
*/
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-type-edit-view/eamasset-type-edit-view.html
0 → 100644
浏览文件 @
9ae9068e
<studio-view-style2
viewName=
"eamassettypeeditview"
viewTitle=
"资产类型信息"
class=
'deeditview eamasset-type-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-type-edit-view/eamasset-type-edit-view.vue
0 → 100644
浏览文件 @
9ae9068e
<
template
src=
"./eamasset-type-edit-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetTypeEditViewBase } from './eamasset-type-edit-view-base';
import view_form from '@widgets/eamasset-type/main-form/main-form.vue';
/**
* 资产类型信息视图
*
* @export
* @class EAMAssetTypeEditView
* @extends {EAMAssetTypeEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetTypeEditView extends EAMAssetTypeEditViewBase { }
</script>
app_AssetManagement/src/pages/asset/eamasset-type-grid-view/eamasset-type-grid-view-base.tsx
0 → 100644
浏览文件 @
9ae9068e
此差异已折叠。
点击以展开。
app_AssetManagement/src/pages/asset/eamasset-type-grid-view/eamasset-type-grid-view.html
0 → 100644
浏览文件 @
9ae9068e
<studio-view-style2
viewName=
"eamassettypegridview"
viewTitle=
"资产类型信息"
class=
'degridview eamasset-type-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-type-grid-view/eamasset-type-grid-view.vue
0 → 100644
浏览文件 @
9ae9068e
<
template
src=
"./eamasset-type-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetTypeGridViewBase } from './eamasset-type-grid-view-base';
import view_grid from '@widgets/eamasset-type/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamasset-type/default-searchform/default-searchform.vue';
/**
* 资产类型信息视图
*
* @export
* @class EAMAssetTypeGridView
* @extends {EAMAssetTypeGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetTypeGridView extends EAMAssetTypeGridViewBase { }
</script>
app_AssetManagement/src/store/modules/view-action/state.ts
浏览文件 @
9ae9068e
...
@@ -244,6 +244,16 @@ export const viewstate: any = {
...
@@ -244,6 +244,16 @@ export const viewstate: any = {
'a9f7eb2645c6505a232a0a13742c42a7'
,
'a9f7eb2645c6505a232a0a13742c42a7'
,
],
],
},
},
{
viewtag
:
'b4c8e0e90e3940abee6c5f4909fd0e00'
,
viewmodule
:
'Asset'
,
viewname
:
'EAMAssetTypeGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'd1b8ecb4e8fc6808282289a1ee763fb8'
,
],
},
{
{
viewtag
:
'b56347aaab650c59a8338876600c21e4'
,
viewtag
:
'b56347aaab650c59a8338876600c21e4'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
@@ -272,6 +282,16 @@ export const viewstate: any = {
...
@@ -272,6 +282,16 @@ export const viewstate: any = {
'a82c591e524f7289432a30a5ccfa8908'
,
'a82c591e524f7289432a30a5ccfa8908'
,
],
],
},
},
{
viewtag
:
'd1b8ecb4e8fc6808282289a1ee763fb8'
,
viewmodule
:
'Asset'
,
viewname
:
'EAMAssetTypeEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'd69c20799b79d71f84ed52f036b3490c'
,
],
},
{
{
viewtag
:
'd3466c5c60a573062d543896976bf68c'
,
viewtag
:
'd3466c5c60a573062d543896976bf68c'
,
viewmodule
:
'Location'
,
viewmodule
:
'Location'
,
...
...
app_AssetManagement/src/widgets/eamasset-type/default-searchform/default-searchform-base.tsx
0 → 100644
浏览文件 @
9ae9068e
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
SearchFormControlBase
}
from
'@/studio-core'
;
import
EAMAssetTypeService
from
'@/service/eamasset-type/eamasset-type-service'
;
import
DefaultService
from
'./default-searchform-service'
;
import
EAMAssetTypeUIService
from
'@/uiservice/eamasset-type/eamasset-type-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 {EAMAssetTypeService}
* @memberof DefaultSearchFormBase
*/
public
appEntityService
:
EAMAssetTypeService
=
new
EAMAssetTypeService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeName
:
string
=
'eamassettype'
;
/**
* 表单数据对象
*
* @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-type/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
9ae9068e
/**
* 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-type/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
9ae9068e
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-type/default-searchform/default-searchform.html
0 → 100644
浏览文件 @
9ae9068e
<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-type/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
9ae9068e
<
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-type/main-form/main-form-base.tsx
0 → 100644
浏览文件 @
9ae9068e
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
EAMAssetTypeService
from
'@/service/eamasset-type/eamasset-type-service'
;
import
MainService
from
'./main-form-service'
;
import
EAMAssetTypeUIService
from
'@/uiservice/eamasset-type/eamasset-type-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 {EAMAssetTypeService}
* @memberof MainEditFormBase
*/
public
appEntityService
:
EAMAssetTypeService
=
new
EAMAssetTypeService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'eamassettype'
;
/**
* 界面UI服务对象
*
* @type {EAMAssetTypeUIService}
* @memberof MainEditFormBase
*/
public
appUIService
:
EAMAssetTypeUIService
=
new
EAMAssetTypeUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
assettypenumber
:
null
,
eamassettypename
:
null
,
eamassetstatemodelname
:
null
,
eamassetstatemodelid
:
null
,
eamassettypeid
:
null
,
eamassettype
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
assettypenumber
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'资产类型编号 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'资产类型编号 值不能为空'
,
trigger
:
'blur'
},
],
eamassettypename
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'资产类型名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'资产类型名称 值不能为空'
,
trigger
:
'blur'
},
],
eamassetstatemodelname
:
[
{
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
:
false
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.eamassettype.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
}),
assettypenumber
:
new
FormItemModel
({
caption
:
'资产类型编号'
,
detailType
:
'FORMITEM'
,
name
:
'assettypenumber'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamassettypename
:
new
FormItemModel
({
caption
:
'资产类型名称'
,
detailType
:
'FORMITEM'
,
name
:
'eamassettypename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamassetstatemodelname
:
new
FormItemModel
({
caption
:
'资产状态模型'
,
detailType
:
'FORMITEM'
,
name
:
'eamassetstatemodelname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamassetstatemodelid
:
new
FormItemModel
({
caption
:
'资产状态模型标识'
,
detailType
:
'FORMITEM'
,
name
:
'eamassetstatemodelid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
eamassettypeid
:
new
FormItemModel
({
caption
:
'资产类型标识'
,
detailType
:
'FORMITEM'
,
name
:
'eamassettypeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-type/main-form/main-form-model.ts
0 → 100644
浏览文件 @
9ae9068e
/**
* 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
:
'eamassettypeid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'eamassettypename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'assettypenumber'
,
prop
:
'assettypenumber'
,
dataType
:
'TEXT'
,
},
{
name
:
'eamassettypename'
,
prop
:
'eamassettypename'
,
dataType
:
'TEXT'
,
},
{
name
:
'eamassetstatemodelname'
,
prop
:
'eamassetstatemodelname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'eamassetstatemodelid'
,
prop
:
'eamassetstatemodelid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'eamassettypeid'
,
prop
:
'eamassettypeid'
,
dataType
:
'GUID'
,
},
{
name
:
'eamassettype'
,
prop
:
'eamassettypeid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-type/main-form/main-form-service.ts
0 → 100644
浏览文件 @
9ae9068e
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-type/main-form/main-form.html
0 → 100644
浏览文件 @
9ae9068e
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'eamassettype_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.eamassettype.main_form.details.group1')"
:isShowCaption=
"false"
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.assettypenumber.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'assettypenumber'
:itemRules=
"this.rules.assettypenumber"
class=
''
:caption=
"$t('entities.eamassettype.main_form.details.assettypenumber')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.assettypenumber.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.assettypenumber"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.assettypenumber.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.eamassettypename.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'eamassettypename'
:itemRules=
"this.rules.eamassettypename"
class=
''
:caption=
"$t('entities.eamassettype.main_form.details.eamassettypename')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.eamassettypename.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.eamassettypename"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.eamassettypename.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.eamassetstatemodelname.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'eamassetstatemodelname'
:itemRules=
"this.rules.eamassetstatemodelname"
class=
''
:caption=
"$t('entities.eamassettype.main_form.details.eamassetstatemodelname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.eamassetstatemodelname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.eamassetstatemodelname.disabled"
name=
'eamassetstatemodelname'
deMajorField=
'eamassetstatemodelname'
deKeyField=
'eamassetstatemodel'
:service=
"service"
:acParams=
"{ serviceName: 'EAMAssetStateModelService', interfaceName: 'FetchDefault'}"
valueitem=
'eamassetstatemodelid'
:value=
"data.eamassetstatemodelname"
:pickupView=
"{ viewname: 'eamasset-state-model-pickup-view', title: $t('entities.eamassetstatemodel.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'eamassetstatemodels', parameterName: 'eamassetstatemodel' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=
""
@
formitemvaluechange=
"onFormItemValueChange($event)"
>
</app-picker>
</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-type/main-form/main-form.vue
0 → 100644
浏览文件 @
9ae9068e
<
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-type/main-grid/main-grid-base.tsx
0 → 100644
浏览文件 @
9ae9068e
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
EAMAssetTypeService
from
'@/service/eamasset-type/eamasset-type-service'
;
import
MainService
from
'./main-grid-service'
;
import
EAMAssetTypeUIService
from
'@/uiservice/eamasset-type/eamasset-type-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 {EAMAssetTypeService}
* @memberof MainGridBase
*/
public
appEntityService
:
EAMAssetTypeService
=
new
EAMAssetTypeService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeName
:
string
=
'eamassettype'
;
/**
* 界面UI服务对象
*
* @type {EAMAssetTypeUIService}
* @memberof MainBase
*/
public
appUIService
:
EAMAssetTypeUIService
=
new
EAMAssetTypeUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof MainBase
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof MainBase
*/
protected
localStorageTag
:
string
=
'eamassettype_main_grid'
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof MainGridBase
*/
public
allColumns
:
any
[]
=
[
{
name
:
'assettypenumber'
,
label
:
'资产类型编号'
,
langtag
:
'entities.eamassettype.main_grid.columns.assettypenumber'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'eamassettypename'
,
label
:
'资产类型名称'
,
langtag
:
'entities.eamassettype.main_grid.columns.eamassettypename'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'eamassetstatemodelname'
,
label
:
'资产状态模型'
,
langtag
:
'entities.eamassettype.main_grid.columns.eamassetstatemodelname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
/**
* 获取表格行模型
*
* @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
=
{
'assettypenumber'
:
false
,
'eamassettypename'
:
false
,
'eamassetstatemodelname'
:
false
,
};
/**
* 获取对应列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"
;
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
]);
}
}
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset-type/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
9ae9068e
/**
* 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
:
'eamassetstatemodelid'
,
prop
:
'eamassetstatemodelid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'eamassettypename'
,
prop
:
'eamassettypename'
,
dataType
:
'TEXT'
,
},
{
name
:
'eamassetstatemodelname'
,
prop
:
'eamassetstatemodelname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'assettypenumber'
,
prop
:
'assettypenumber'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfmajortext'
,
prop
:
'eamassettypename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'eamassettypeid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'eamassettypeid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'eamassettype'
,
prop
:
'eamassettypeid'
,
},
{
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-type/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
9ae9068e
此差异已折叠。
点击以展开。
app_AssetManagement/src/widgets/eamasset-type/main-grid/main-grid.html
0 → 100644
浏览文件 @
9ae9068e
<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=
"getColumnState('assettypenumber')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'assettypenumber'"
:label=
"$t('entities.eamassettype.main_grid.columns.assettypenumber')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.eamassettype.main_grid.columns.assettypenumber')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.assettypenumber}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('eamassettypename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'eamassettypename'"
:label=
"$t('entities.eamassettype.main_grid.columns.eamassettypename')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.eamassettype.main_grid.columns.eamassettypename')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.eamassettypename}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('eamassetstatemodelname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'eamassetstatemodelname'"
:label=
"$t('entities.eamassettype.main_grid.columns.eamassetstatemodelname')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.eamassettype.main_grid.columns.eamassetstatemodelname')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.eamassetstatemodelname}}
</span>
</template>
</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-type/main-grid/main-grid.vue
0 → 100644
浏览文件 @
9ae9068e
<
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录