Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
7c37169a
提交
7c37169a
编写于
8月 05, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
5bee3b22
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
169 行增加
和
7 行删除
+169
-7
view-config.json
app_AssetManagement/public/assets/json/view-config.json
+1
-1
eamapply_en_US.ts
...ent/src/locale/lanres/entities/eamapply/eamapply_en_US.ts
+9
-1
eamapply_zh_CN.ts
...ent/src/locale/lanres/entities/eamapply/eamapply_zh_CN.ts
+9
-1
viewconfig.ts
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
+1
-1
eamapply-grid-view-base.tsx
...ages/apply/eamapply-grid-view/eamapply-grid-view-base.tsx
+36
-1
eamapply-grid-view.html
...rc/pages/apply/eamapply-grid-view/eamapply-grid-view.html
+1
-1
eamapply-grid-view.vue
...src/pages/apply/eamapply-grid-view/eamapply-grid-view.vue
+1
-1
eamapply-ui-service-base.ts
...gement/src/uiservice/eamapply/eamapply-ui-service-base.ts
+111
-0
未找到文件。
app_AssetManagement/public/assets/json/view-config.json
浏览文件 @
7c37169a
...
...
@@ -220,7 +220,7 @@
"memo"
:
"系统自动添加"
},
"eamapplygridview"
:
{
"title"
:
"维护申请
表格视图
"
,
"title"
:
"维护申请
信息
"
,
"caption"
:
"维护申请"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Apply"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamapply/eamapply_en_US.ts
浏览文件 @
7c37169a
...
...
@@ -27,7 +27,7 @@ export default {
},
gridview
:
{
caption
:
"维护申请"
,
title
:
"维护申请
表格视图
"
,
title
:
"维护申请
信息
"
,
},
summaryview
:
{
caption
:
"维护申请"
,
...
...
@@ -117,6 +117,14 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem12_openquickcreateview
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem14
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamapply/eamapply_zh_CN.ts
浏览文件 @
7c37169a
...
...
@@ -26,7 +26,7 @@ export default {
},
gridview
:
{
caption
:
"维护申请"
,
title
:
"维护申请
表格视图
"
,
title
:
"维护申请
信息
"
,
},
summaryview
:
{
caption
:
"维护申请"
,
...
...
@@ -116,6 +116,14 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem12_openquickcreateview
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem14
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
...
...
app_AssetManagement/src/mock/viewconfig/viewconfig.ts
浏览文件 @
7c37169a
...
...
@@ -184,7 +184,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"58b301299902245cdd7dfd5ae23545b4"
},
"eamapplygridview"
:
{
"title"
:
"维护申请
表格视图
"
,
"title"
:
"维护申请
信息
"
,
"caption"
:
"维护申请"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Apply"
,
...
...
app_AssetManagement/src/pages/apply/eamapply-grid-view/eamapply-grid-view-base.tsx
浏览文件 @
7c37169a
...
...
@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 维护申请
表格视图
视图基类
* 维护申请
信息
视图基类
*
* @export
* @class EAMApplyGridViewBase
...
...
@@ -103,6 +103,9 @@ export class EAMApplyGridViewBase extends GridViewBase {
* @memberof EAMApplyGridView
*/
public
toolBarModels
:
any
=
{
tbitem12_openquickcreateview
:
{
name
:
'tbitem12_openquickcreateview'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'OpenQuickCreateView'
,
target
:
'NONE'
,
class
:
''
}
},
tbitem14
:
{
name
:
'tbitem14'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem2
:
{
name
:
'tbitem2'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
seperator2
:
{
name
:
'seperator2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
...
...
@@ -171,6 +174,9 @@ export class EAMApplyGridViewBase extends GridViewBase {
* @memberof EAMApplyGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12_openquickcreateview'
))
{
this
.
toolbar_tbitem12_openquickcreateview_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem2'
))
{
this
.
toolbar_tbitem2_click
(
null
,
''
,
$event2
);
}
...
...
@@ -279,6 +285,35 @@ export class EAMApplyGridViewBase extends GridViewBase {
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem12_openquickcreateview_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
EAMApplyUIService
=
new
EAMApplyUIService
();
curUIService
.
EAMApply_OpenQuickCreateView
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"EAMApply"
);
}
/**
* 逻辑事件
*
...
...
app_AssetManagement/src/pages/apply/eamapply-grid-view/eamapply-grid-view.html
浏览文件 @
7c37169a
<studio-view-style2
viewName=
"eamapplygridview"
viewTitle=
"维护申请
表格视图
"
class=
'degridview eamapply-grid-view'
>
<studio-view-style2
viewName=
"eamapplygridview"
viewTitle=
"维护申请
信息
"
class=
'degridview eamapply-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
...
...
app_AssetManagement/src/pages/apply/eamapply-grid-view/eamapply-grid-view.vue
浏览文件 @
7c37169a
...
...
@@ -7,7 +7,7 @@ import view_grid from '@widgets/eamapply/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamapply/default-searchform/default-searchform.vue';
/**
* 维护申请
表格视图
视图
* 维护申请
信息
视图
*
* @export
* @class EAMApplyGridView
...
...
app_AssetManagement/src/uiservice/eamapply/eamapply-ui-service-base.ts
浏览文件 @
7c37169a
...
...
@@ -112,6 +112,117 @@ export default class EAMApplyUIServiceBase extends UIService {
public
initDeMainStateOPPrivsMap
(){
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
EAMApply_OpenQuickCreateView
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'NONE'
;
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'eamapplies'
,
parameterName
:
'eamapply'
},
];
actionContext
.
closeView
(
null
);
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
actionContext
.
$appdrawer
.
openDrawer
(
view
,
context
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
const
_this
:
any
=
actionContext
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
if
(
this
.
EAMApply_OpenInfo_MainView
&&
this
.
EAMApply_OpenInfo_MainView
instanceof
Function
)
{
this
.
EAMApply_OpenInfo_MainView
(
result
.
datas
[
0
],
context
,
params
,
$event
,
xData
,
actionContext
);
}
return
result
.
datas
;
});
}
const
view
:
any
=
{
viewname
:
'eamapply-quick-create-view'
,
height
:
0
,
width
:
0
,
title
:
actionContext
.
$t
(
'entities.eamapply.views.quickcreateview.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
/**
* 打开主信息界面
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
EAMApply_OpenInfo_MainView
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
eamapply
:
'%eamapply%'
});
Object
.
assign
(
params
,
{
eamapplyid
:
'%eamapply%'
});
Object
.
assign
(
params
,
{
eamapplyname
:
'%eamapplyname%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'eamapplies'
,
parameterName
:
'eamapply'
},
{
pathName
:
'infoview'
,
parameterName
:
'infoview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 获取指定数据的重定向页面
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录