Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
f2fdc639
提交
f2fdc639
编写于
5月 27, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
6174c49b
变更
26
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
3117 行增加
和
0 行删除
+3117
-0
view-config.json
app_Web/public/assets/json/view-config.json
+8
-0
wfgroup_en_US.ts
app_Web/src/locale/lanres/wfgroup/wfgroup_en_US.ts
+4
-0
wfgroup_zh_CN.ts
app_Web/src/locale/lanres/wfgroup/wfgroup_zh_CN.ts
+4
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+8
-0
router.ts
app_Web/src/pages/rt/index/router.ts
+36
-0
wfgroup-mpickup-view-base.vue
...rkflow/wfgroup-mpickup-view/wfgroup-mpickup-view-base.vue
+728
-0
wfgroup-mpickup-view.less
...s/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view.less
+68
-0
wfgroup-mpickup-view.vue
...es/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view.vue
+19
-0
wfgroup-pickup-grid-view-base.vue
...fgroup-pickup-grid-view/wfgroup-pickup-grid-view-base.vue
+632
-0
wfgroup-pickup-grid-view.less
...ow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.less
+8
-0
wfgroup-pickup-grid-view.vue
...low/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.vue
+21
-0
wfuser-mpickup-view-base.vue
...workflow/wfuser-mpickup-view/wfuser-mpickup-view-base.vue
+728
-0
wfuser-mpickup-view.less
...ges/workflow/wfuser-mpickup-view/wfuser-mpickup-view.less
+68
-0
wfuser-mpickup-view.vue
...ages/workflow/wfuser-mpickup-view/wfuser-mpickup-view.vue
+19
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+29
-0
wfgroup-ui-service-base.ts
app_Web/src/uiservice/wfgroup/wfgroup-ui-service-base.ts
+1
-0
mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
...anel/mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
+308
-0
mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
...anel/mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
+31
-0
mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
...el/mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
+11
-0
mpickup-viewpickupviewpanel-pickupviewpanel.less
...iewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.less
+4
-0
mpickup-viewpickupviewpanel-pickupviewpanel.vue
...viewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue
+14
-0
mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
...anel/mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
+308
-0
mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
...anel/mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
+31
-0
mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
...el/mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
+11
-0
mpickup-viewpickupviewpanel-pickupviewpanel.less
...iewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.less
+4
-0
mpickup-viewpickupviewpanel-pickupviewpanel.vue
...viewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue
+14
-0
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
f2fdc639
...
...
@@ -255,6 +255,14 @@
"viewname"
:
"IBZEmployeePickupView"
,
"viewtag"
:
"9ffa35efe3d70cf4b9fa4e83dd1979c6"
},
"wfgrouppickupview"
:
{
"title"
:
"角色/用户组数据选择视图"
,
"caption"
:
"角色/用户组"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"workflow"
,
"viewname"
:
"WFGroupPickupView"
,
"viewtag"
:
"b05c9353d499f973106e6ed4dde58074"
},
"wfgroupeditview"
:
{
"title"
:
"角色/用户组编辑视图"
,
"caption"
:
"角色/用户组"
,
...
...
app_Web/src/locale/lanres/wfgroup/wfgroup_en_US.ts
浏览文件 @
f2fdc639
...
...
@@ -12,6 +12,10 @@ export default {
},
mpickupview
:
{
caption
:
"角色/用户组"
,
title
:
'角色/用户组'
,
},
pickupview
:
{
caption
:
"角色/用户组"
,
title
:
'角色/用户组'
,
},
editview
:
{
...
...
app_Web/src/locale/lanres/wfgroup/wfgroup_zh_CN.ts
浏览文件 @
f2fdc639
...
...
@@ -11,6 +11,10 @@ export default {
},
mpickupview
:
{
caption
:
'角色/用户组'
,
title
:
'角色/用户组'
,
},
pickupview
:
{
caption
:
'角色/用户组'
,
title
:
'角色/用户组'
,
},
editview
:
{
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
f2fdc639
...
...
@@ -263,6 +263,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBZEmployeePickupView"
,
"viewtag"
:
"9ffa35efe3d70cf4b9fa4e83dd1979c6"
},
"wfgrouppickupview"
:
{
"title"
:
"角色/用户组数据选择视图"
,
"caption"
:
"角色/用户组"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"workflow"
,
"viewname"
:
"WFGroupPickupView"
,
"viewtag"
:
"b05c9353d499f973106e6ed4dde58074"
},
"wfgroupeditview"
:
{
"title"
:
"角色/用户组编辑视图"
,
"caption"
:
"角色/用户组"
,
...
...
app_Web/src/pages/rt/index/router.ts
浏览文件 @
f2fdc639
...
...
@@ -1256,6 +1256,18 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/uaa/sys-rolegrid-view/sys-rolegrid-view.vue'
),
},
{
path
:
'/wfgroups/:wfgroup?/pickupgridview/:pickupgridview?'
,
meta
:
{
caption
:
'entities.wfgroup.views.pickupgridview.caption'
,
parameters
:
[
{
pathName
:
'wfgroups'
,
parameterName
:
'wfgroup'
},
{
pathName
:
'pickupgridview'
,
parameterName
:
'pickupgridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.vue'
),
},
{
path
:
'/sysauthlogs/:sysauthlog?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -1609,6 +1621,18 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/uaa/sys-role-pickup-grid-view/sys-role-pickup-grid-view.vue'
),
},
{
path
:
'/wfusers/:wfuser?/mpickupview/:mpickupview?'
,
meta
:
{
caption
:
'entities.wfuser.views.mpickupview.caption'
,
parameters
:
[
{
pathName
:
'wfusers'
,
parameterName
:
'wfuser'
},
{
pathName
:
'mpickupview'
,
parameterName
:
'mpickupview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/workflow/wfuser-mpickup-view/wfuser-mpickup-view.vue'
),
},
{
path
:
'/syspermissions/:syspermission?/mpickupview/:mpickupview?'
,
meta
:
{
...
...
@@ -1621,6 +1645,18 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/uaa/sys-permission-mpickup-view/sys-permission-mpickup-view.vue'
),
},
{
path
:
'/wfgroups/:wfgroup?/mpickupview/:mpickupview?'
,
meta
:
{
caption
:
'entities.wfgroup.views.mpickupview.caption'
,
parameters
:
[
{
pathName
:
'wfgroups'
,
parameterName
:
'wfgroup'
},
{
pathName
:
'mpickupview'
,
parameterName
:
'mpickupview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view.vue'
),
},
{
path
:
'/ibzorganizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/editview/:editview?'
,
meta
:
{
...
...
app_Web/src/pages/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view-base.vue
0 → 100644
浏览文件 @
f2fdc639
此差异已折叠。
点击以展开。
app_Web/src/pages/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view.less
0 → 100644
浏览文件 @
f2fdc639
.wfgroup-mpickup-view{
position: relative;
}
.pickup-view {
>.translate-contant {
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
.translate-buttons {
width: 80px;
display: flex;
align-items: center;
text-align: center;
button {
margin-bottom: 5px;
}
}
.left, .right {
width: 300px;
}
.right {
border: 1px solid #e9e9e9;
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
word-spacing: 10px;
height: 100%;
overflow: auto;
}
.mpicker-select > div {
padding: 3px 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
font-weight: initial;
cursor: pointer;
min-height: 28px;
border: 1px solid #e9e9e9;
margin: 4px 4px;
transition: all .3s;
}
.mpicker-select > div:hover {
background: #ecf6fd;
}
.mpicker-select > .select{
color: #108ee9;
background: #ecf6fd;
}
}
.center{
width: calc(100% - 380px);
.pickupviewpanel {
width: 100%;
height: 100%;
}
}
}
>.footer {
height: 64px;
}
}
\ No newline at end of file
app_Web/src/pages/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view.vue
0 → 100644
浏览文件 @
f2fdc639
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
WFGroupMPickupViewBase
from
'./wfgroup-mpickup-view-base.vue'
;
import
view_pickupviewpanel
from
'@widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue'
;
@
Component
({
components
:
{
view_pickupviewpanel
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
WFGroupMPickupView
extends
WFGroupMPickupViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view-base.vue
0 → 100644
浏览文件 @
f2fdc639
此差异已折叠。
点击以展开。
app_Web/src/pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.less
0 → 100644
浏览文件 @
f2fdc639
.wfgroup-pickup-grid-view{
position: relative;
}
.wfgroup-pickup-grid-view{
width:100%;
}
\ No newline at end of file
app_Web/src/pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.vue
0 → 100644
浏览文件 @
f2fdc639
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
WFGroupPickupGridViewBase
from
'./wfgroup-pickup-grid-view-base.vue'
;
import
view_grid
from
'@widgets/wfgroup/main-grid/main-grid.vue'
;
import
view_searchform
from
'@widgets/wfgroup/default-searchform/default-searchform.vue'
;
@
Component
({
components
:
{
view_grid
,
view_searchform
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
WFGroupPickupGridView
extends
WFGroupPickupGridViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/workflow/wfuser-mpickup-view/wfuser-mpickup-view-base.vue
0 → 100644
浏览文件 @
f2fdc639
此差异已折叠。
点击以展开。
app_Web/src/pages/workflow/wfuser-mpickup-view/wfuser-mpickup-view.less
0 → 100644
浏览文件 @
f2fdc639
.wfuser-mpickup-view{
position: relative;
}
.pickup-view {
>.translate-contant {
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
.translate-buttons {
width: 80px;
display: flex;
align-items: center;
text-align: center;
button {
margin-bottom: 5px;
}
}
.left, .right {
width: 300px;
}
.right {
border: 1px solid #e9e9e9;
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
word-spacing: 10px;
height: 100%;
overflow: auto;
}
.mpicker-select > div {
padding: 3px 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
font-weight: initial;
cursor: pointer;
min-height: 28px;
border: 1px solid #e9e9e9;
margin: 4px 4px;
transition: all .3s;
}
.mpicker-select > div:hover {
background: #ecf6fd;
}
.mpicker-select > .select{
color: #108ee9;
background: #ecf6fd;
}
}
.center{
width: calc(100% - 380px);
.pickupviewpanel {
width: 100%;
height: 100%;
}
}
}
>.footer {
height: 64px;
}
}
\ No newline at end of file
app_Web/src/pages/workflow/wfuser-mpickup-view/wfuser-mpickup-view.vue
0 → 100644
浏览文件 @
f2fdc639
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
WFUserMPickupViewBase
from
'./wfuser-mpickup-view-base.vue'
;
import
view_pickupviewpanel
from
'@widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue'
;
@
Component
({
components
:
{
view_pickupviewpanel
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
WFUserMPickupView
extends
WFUserMPickupViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
f2fdc639
...
...
@@ -47,6 +47,15 @@ export const viewstate: any = {
'6bd0981f6dd67a59f211b5cf97ac8f30'
,
],
},
{
viewtag
:
'17ccd6d8d2bb7cf30158253da129ec1b'
,
viewmodule
:
'workflow'
,
viewname
:
'WFGroupPickupGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'255944d6d1a575d0eda2b68bc19314f3'
,
viewmodule
:
'uaa'
,
...
...
@@ -205,6 +214,16 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'84e5a5b589b434dfdc60a3d0ad087d37'
,
viewmodule
:
'workflow'
,
viewname
:
'WFUserMPickupView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'c9c73c8d2e61bd29a304622f3d39b522'
,
],
},
{
viewtag
:
'86bd4f6d4f771870e10b9717046a1b14'
,
viewmodule
:
'uaa'
,
...
...
@@ -215,6 +234,16 @@ export const viewstate: any = {
'95d8c933cf4df47634a25d791b3d8564'
,
],
},
{
viewtag
:
'90a777962337daaf4cffd846eecb1f0f'
,
viewmodule
:
'workflow'
,
viewname
:
'WFGroupMPickupView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'17ccd6d8d2bb7cf30158253da129ec1b'
,
],
},
{
viewtag
:
'90c0ced2720b85d5e051e7935a93d3c5'
,
viewmodule
:
'ou'
,
...
...
app_Web/src/uiservice/wfgroup/wfgroup-ui-service-base.ts
浏览文件 @
f2fdc639
...
...
@@ -81,6 +81,7 @@ export default class WFGroupUIServiceBase extends UIService {
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'wfgroups'
});
this
.
allViewMap
.
set
(
'MPICKUPVIEW:'
,{
viewname
:
'mpickupview'
,
srfappde
:
'wfgroups'
});
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'wfgroups'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'wfgroups'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'wfgroups'
});
}
...
...
app_Web/src/widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
0 → 100644
浏览文件 @
f2fdc639
<
template
>
<div
class=
'pickupviewpanel'
>
<component
v-if=
"inited && view.viewname && !Object.is(view.viewname, '')"
:is=
"view.viewname"
class=
"viewcontainer3"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
@
viewdataschange=
"onViewDatasChange"
@
viewdatasactivated=
"viewDatasActivated"
@
viewload=
"onViewLoad"
>
</component>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
WFGroupService
from
'@/service/wfgroup/wfgroup-service'
;
import
MPickupViewpickupviewpanelService
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-service'
;
import
MPickupViewpickupviewpanelModel
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-model'
;
@
Component
({
components
:
{
}
})
export
default
class
MPickupViewpickupviewpanelBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
context
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
viewparams
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupViewpickupviewpanel
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupViewpickupviewpanel
*/
public
getControlType
():
string
{
return
'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupViewpickupviewpanelService}
* @memberof MPickupViewpickupviewpanel
*/
public
service
:
MPickupViewpickupviewpanelService
=
new
MPickupViewpickupviewpanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {WFGroupService}
* @memberof MPickupViewpickupviewpanel
*/
public
appEntityService
:
WFGroupService
=
new
WFGroupService
({
$store
:
this
.
$store
});
/**
* 关闭视图
*
* @param {any} args
* @memberof MPickupViewpickupviewpanel
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof MPickupViewpickupviewpanel
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 选中数据字符串
*
* @type {string}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
selectedData
?:
string
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanel
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupViewpickupviewpanel
*/
public
getData
():
any
{
return
{};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
public
view
:
any
=
{
viewname
:
'wfgroup-pickup-grid-view'
,
data
:
{},
}
/**
* 视图数据
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
public
viewdata
:
string
=
JSON
.
stringify
(
this
.
context
);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewparam
:
string
=
JSON
.
stringify
(
this
.
viewparams
);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
public
inited
:
boolean
=
false
;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
onViewDatasChange
(
$event
:
any
):
void
{
if
(
$event
.
length
>
0
){
$event
.
forEach
((
item
:
any
,
index
:
any
)
=>
{
let
srfmajortext
=
item
[
'name'
];
if
(
srfmajortext
){
Object
.
assign
(
$event
[
index
],{
srfmajortext
:
srfmajortext
});
}
});
}
this
.
$emit
(
'selectionchange'
,
$event
);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
viewDatasActivated
(
$event
:
any
):
void
{
this
.
$emit
(
'activated'
,
$event
);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
onViewLoad
(
$event
:
any
):
void
{
this
.
$emit
(
'load'
,
$event
);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanel
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupViewpickupviewpanel
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
Object
.
assign
(
data
,
this
.
viewparams
));
this
.
inited
=
true
;
}
});
}
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanel
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupViewpickupviewpanel
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './mpickup-viewpickupviewpanel-pickupviewpanel.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
0 → 100644
浏览文件 @
f2fdc639
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export
default
class
MPickupViewpickupviewpanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'wfgroup'
,
prop
:
'id'
,
},
{
name
:
'name'
,
},
{
name
:
'groupscope'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
0 → 100644
浏览文件 @
f2fdc639
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export
default
class
MPickupViewpickupviewpanelService
extends
ControlService
{
}
\ No newline at end of file
app_Web/src/widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.less
0 → 100644
浏览文件 @
f2fdc639
// this is less
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
app_Web/src/widgets/wfgroup/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue
0 → 100644
浏览文件 @
f2fdc639
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
MPickupViewpickupviewpanelBase
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
MPickupViewpickupviewpanel
extends
MPickupViewpickupviewpanelBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-base.vue
0 → 100644
浏览文件 @
f2fdc639
<
template
>
<div
class=
'pickupviewpanel'
>
<component
v-if=
"inited && view.viewname && !Object.is(view.viewname, '')"
:is=
"view.viewname"
class=
"viewcontainer3"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
@
viewdataschange=
"onViewDatasChange"
@
viewdatasactivated=
"viewDatasActivated"
@
viewload=
"onViewLoad"
>
</component>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
WFUserService
from
'@/service/wfuser/wfuser-service'
;
import
MPickupViewpickupviewpanelService
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-service'
;
import
MPickupViewpickupviewpanelModel
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-model'
;
@
Component
({
components
:
{
}
})
export
default
class
MPickupViewpickupviewpanelBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
context
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
viewparams
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupViewpickupviewpanel
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupViewpickupviewpanel
*/
public
getControlType
():
string
{
return
'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupViewpickupviewpanelService}
* @memberof MPickupViewpickupviewpanel
*/
public
service
:
MPickupViewpickupviewpanelService
=
new
MPickupViewpickupviewpanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {WFUserService}
* @memberof MPickupViewpickupviewpanel
*/
public
appEntityService
:
WFUserService
=
new
WFUserService
({
$store
:
this
.
$store
});
/**
* 关闭视图
*
* @param {any} args
* @memberof MPickupViewpickupviewpanel
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof MPickupViewpickupviewpanel
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 选中数据字符串
*
* @type {string}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
selectedData
?:
string
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanel
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupViewpickupviewpanel
*/
public
getData
():
any
{
return
{};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
public
view
:
any
=
{
viewname
:
'wfuser-pickup-grid-view'
,
data
:
{},
}
/**
* 视图数据
*
* @type {*}
* @memberof MPickupViewpickupviewpanel
*/
public
viewdata
:
string
=
JSON
.
stringify
(
this
.
context
);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewparam
:
string
=
JSON
.
stringify
(
this
.
viewparams
);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanel
*/
public
inited
:
boolean
=
false
;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
onViewDatasChange
(
$event
:
any
):
void
{
if
(
$event
.
length
>
0
){
$event
.
forEach
((
item
:
any
,
index
:
any
)
=>
{
let
srfmajortext
=
item
[
'displayname'
];
if
(
srfmajortext
){
Object
.
assign
(
$event
[
index
],{
srfmajortext
:
srfmajortext
});
}
});
}
this
.
$emit
(
'selectionchange'
,
$event
);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
viewDatasActivated
(
$event
:
any
):
void
{
this
.
$emit
(
'activated'
,
$event
);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanel
*/
public
onViewLoad
(
$event
:
any
):
void
{
this
.
$emit
(
'load'
,
$event
);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanel
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupViewpickupviewpanel
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
Object
.
assign
(
data
,
this
.
viewparams
));
this
.
inited
=
true
;
}
});
}
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanel
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupViewpickupviewpanel
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './mpickup-viewpickupviewpanel-pickupviewpanel.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-model.ts
0 → 100644
浏览文件 @
f2fdc639
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export
default
class
MPickupViewpickupviewpanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'wfuser'
,
prop
:
'id'
,
},
{
name
:
'firstname'
,
},
{
name
:
'displayname'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel-service.ts
0 → 100644
浏览文件 @
f2fdc639
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export
default
class
MPickupViewpickupviewpanelService
extends
ControlService
{
}
\ No newline at end of file
app_Web/src/widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.less
0 → 100644
浏览文件 @
f2fdc639
// this is less
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
app_Web/src/widgets/wfuser/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue
0 → 100644
浏览文件 @
f2fdc639
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
MPickupViewpickupviewpanelBase
from
'./mpickup-viewpickupviewpanel-pickupviewpanel-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
MPickupViewpickupviewpanel
extends
MPickupViewpickupviewpanelBase
{
}
</
script
>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录