Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
71a4003b
提交
71a4003b
编写于
8月 02, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
929a93b9
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
300 行增加
和
0 行删除
+300
-0
eamasset-pickup-grid-view-base.tsx
...asset-pickup-grid-view/eamasset-pickup-grid-view-base.tsx
+221
-0
eamasset-pickup-grid-view.html
.../eamasset-pickup-grid-view/eamasset-pickup-grid-view.html
+44
-0
eamasset-pickup-grid-view.vue
...t/eamasset-pickup-grid-view/eamasset-pickup-grid-view.vue
+24
-0
state.ts
app_AssetManagement/src/store/modules/view-action/state.ts
+11
-0
未找到文件。
app_AssetManagement/src/pages/asset/eamasset-pickup-grid-view/eamasset-pickup-grid-view-base.tsx
0 → 100644
浏览文件 @
71a4003b
import
{
Subject
}
from
'rxjs'
;
import
{
PickupGridViewBase
}
from
'@/studio-core'
;
import
EAMAssetService
from
'@/service/eamasset/eamasset-service'
;
import
EAMAssetAuthService
from
'@/authservice/eamasset/eamasset-auth-service'
;
import
PickupGridViewEngine
from
'@engine/view/pickup-grid-view-engine'
;
import
EAMAssetUIService
from
'@/uiservice/eamasset/eamasset-ui-service'
;
/**
* 资产选择表格视图视图基类
*
* @export
* @class EAMAssetPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export
class
EAMAssetPickupGridViewBase
extends
PickupGridViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetPickupGridViewBase
*/
protected
appDeName
:
string
=
'eamasset'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetPickupGridViewBase
*/
protected
appDeKey
:
string
=
'assetid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetPickupGridViewBase
*/
protected
appDeMajor
:
string
=
'assetname'
;
/**
* 实体服务对象
*
* @type {EAMAssetService}
* @memberof EAMAssetPickupGridViewBase
*/
protected
appEntityService
:
EAMAssetService
=
new
EAMAssetService
;
/**
* 实体权限服务对象
*
* @type EAMAssetUIService
* @memberof EAMAssetPickupGridViewBase
*/
public
appUIService
:
EAMAssetUIService
=
new
EAMAssetUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetPickupGridViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetPickupGridViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.eamasset.views.pickupgridview.caption'
,
srfTitle
:
'entities.eamasset.views.pickupgridview.title'
,
srfSubTitle
:
'entities.eamasset.views.pickupgridview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetPickupGridViewBase
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'fc2bbe178f6e4ee12ebeb45875b7f87c'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetPickupGridViewBase
*/
public
engine
:
PickupGridViewEngine
=
new
PickupGridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetPickupGridViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'eamasset'
,
majorPSDEField
:
'assetname'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetPickupGridViewBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof EAMAssetPickupGridViewBase
*/
protected
isExpandSearchForm
:
boolean
=
true
;
}
\ No newline at end of file
app_AssetManagement/src/pages/asset/eamasset-pickup-grid-view/eamasset-pickup-grid-view.html
0 → 100644
浏览文件 @
71a4003b
<studio-view-style2
viewName=
"eamassetpickupgridview"
viewTitle=
"资产选择表格视图"
class=
'depickupgridview eamasset-pickup-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</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"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($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-pickup-grid-view/eamasset-pickup-grid-view.vue
0 → 100644
浏览文件 @
71a4003b
<
template
src=
"./eamasset-pickup-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetPickupGridViewBase } from './eamasset-pickup-grid-view-base';
import view_grid from '@widgets/eamasset/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamasset/default-searchform/default-searchform.vue';
/**
* 资产选择表格视图视图
*
* @export
* @class EAMAssetPickupGridView
* @extends {EAMAssetPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetPickupGridView extends EAMAssetPickupGridViewBase { }
</script>
app_AssetManagement/src/store/modules/view-action/state.ts
浏览文件 @
71a4003b
...
...
@@ -498,6 +498,17 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'fc2bbe178f6e4ee12ebeb45875b7f87c'
,
viewmodule
:
'Asset'
,
viewname
:
'EAMAssetPickupGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'72c39b4fb4834276ae3933be232a2c90'
,
'2b28313d0f3925fa44b8683eb5ea54d6'
,
],
},
{
viewtag
:
'fc4b884f4116e498cafad375e0b6cb7d'
,
viewmodule
:
'Asset'
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录