Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
b88174be
提交
b88174be
编写于
9月 02, 2020
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
人员选择器
上级
2e4f5ad7
变更
7
展开全部
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
469 行增加
和
11 行删除
+469
-11
app-register.ts
src/app-register.ts
+2
-1
app-department-personnel.vue
...nts/app-department-personnel/app-department-personnel.vue
+430
-0
app-group-picker.vue
src/components/app-group-picker/app-group-picker.vue
+12
-2
app-group-select.vue
src/components/app-group-select/app-group-select.vue
+3
-4
getters.ts
src/store/getters.ts
+9
-0
mutations.ts
src/store/mutations.ts
+12
-4
state.ts
src/store/state.ts
+1
-0
未找到文件。
src/app-register.ts
浏览文件 @
b88174be
...
@@ -88,7 +88,7 @@ import CronEditor from './components/cron-editor/cron-editor.vue'
...
@@ -88,7 +88,7 @@ import CronEditor from './components/cron-editor/cron-editor.vue'
import
AppMessagePopover
from
'./components/app-message-popover/app-message-popover.vue'
import
AppMessagePopover
from
'./components/app-message-popover/app-message-popover.vue'
import
AppPanelField
from
'./components/app-panel-field/app-panel-field.vue'
import
AppPanelField
from
'./components/app-panel-field/app-panel-field.vue'
import
AppPanelItem
from
'./components/app-panel-item/app-panel-item.vue'
import
AppPanelItem
from
'./components/app-panel-item/app-panel-item.vue'
import
AppDepartmentPersonnel
from
'./components/app-department-personnel/app-department-personnel.vue'
// 全局挂载UI实体服务注册中心
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
@@ -114,6 +114,7 @@ export const AppComponents = {
...
@@ -114,6 +114,7 @@ export const AppComponents = {
v
.
prototype
.
$verify
=
Verify
;
v
.
prototype
.
$verify
=
Verify
;
v
.
prototype
.
$viewTool
=
ViewTool
;
v
.
prototype
.
$viewTool
=
ViewTool
;
v
.
prototype
.
$uiActionTool
=
UIActionTool
;
v
.
prototype
.
$uiActionTool
=
UIActionTool
;
v
.
component
(
'app-department-personnel'
,
AppDepartmentPersonnel
);
v
.
component
(
'app-panel-item'
,
AppPanelItem
);
v
.
component
(
'app-panel-item'
,
AppPanelItem
);
v
.
component
(
'app-panel-field'
,
AppPanelField
);
v
.
component
(
'app-panel-field'
,
AppPanelField
);
v
.
component
(
'app-full-scren'
,
AppFullScren
);
v
.
component
(
'app-full-scren'
,
AppFullScren
);
...
...
src/components/app-department-personnel/app-department-personnel.vue
0 → 100644
浏览文件 @
b88174be
此差异已折叠。
点击以展开。
src/components/app-group-picker/app-group-picker.vue
浏览文件 @
b88174be
...
@@ -176,7 +176,12 @@ export default class AppGroupPicker extends Vue {
...
@@ -176,7 +176,12 @@ export default class AppGroupPicker extends Vue {
*/
*/
public
loadTree
()
{
public
loadTree
()
{
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
tempTreeUrl
:
string
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
let
tempTreeUrl
:
string
=
''
;
if
(
this
.
viewParam
.
selectTyep
==
'org'
){
tempTreeUrl
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
}
else
if
(
this
.
viewParam
.
selectTyep
==
'dept'
){
tempTreeUrl
=
this
.
treeurl
.
replace
(
'{deptId}'
,
orgid
);
}
let
get
=
Http
.
getInstance
().
get
(
tempTreeUrl
,
true
);
let
get
=
Http
.
getInstance
().
get
(
tempTreeUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
...
@@ -194,7 +199,12 @@ export default class AppGroupPicker extends Vue {
...
@@ -194,7 +199,12 @@ export default class AppGroupPicker extends Vue {
* @memberof AppGroupPicker
* @memberof AppGroupPicker
*/
*/
public
loadGroupData
(
key
:
string
)
{
public
loadGroupData
(
key
:
string
)
{
let
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
let
tempUrl
:
string
=
''
;
if
(
Object
.
is
(
this
.
viewParam
.
selectType
,
"org"
)){
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
}
else
if
(
Object
.
is
(
this
.
viewParam
.
selectType
,
"dept"
)){
tempUrl
=
this
.
url
.
replace
(
'{deptId}'
,
key
);
}
let
get
=
Http
.
getInstance
().
get
(
tempUrl
,
true
);
let
get
=
Http
.
getInstance
().
get
(
tempUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
...
...
src/components/app-group-select/app-group-select.vue
浏览文件 @
b88174be
...
@@ -147,9 +147,7 @@ export default class AppGroupSelect extends Vue {
...
@@ -147,9 +147,7 @@ export default class AppGroupSelect extends Vue {
if
(
newVal
)
{
if
(
newVal
)
{
let
item
:
any
=
{};
let
item
:
any
=
{};
item
.
label
=
this
.
data
[
this
.
name
]?
this
.
data
[
this
.
name
].
split
(
','
):[];
item
.
label
=
this
.
data
[
this
.
name
]?
this
.
data
[
this
.
name
].
split
(
','
):[];
if
(
this
.
valueitem
)
{
item
.
id
=
this
.
data
[
this
.
valueitem
]
?
this
.
data
[
this
.
valueitem
].
split
(
','
)
:
[];
item
.
id
=
this
.
data
[
this
.
valueitem
]
?
this
.
data
[
this
.
valueitem
].
split
(
','
)
:
[];
}
if
(
this
.
fillmap
)
{
if
(
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
item
[
this
.
fillmap
[
key
]]
=
this
.
data
[
key
]
?
this
.
data
[
key
].
split
(
','
)
:
[];
item
[
this
.
fillmap
[
key
]]
=
this
.
data
[
key
]
?
this
.
data
[
key
].
split
(
','
)
:
[];
...
@@ -219,7 +217,8 @@ export default class AppGroupSelect extends Vue {
...
@@ -219,7 +217,8 @@ export default class AppGroupSelect extends Vue {
treeurl
:
this
.
treeurl
,
treeurl
:
this
.
treeurl
,
filtervalue
:
filtervalue
,
filtervalue
:
filtervalue
,
multiple
:
this
.
multiple
,
multiple
:
this
.
multiple
,
selects
:
this
.
selects
selects
:
this
.
selects
,
selectTpye
:
'org'
});
});
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
container
.
subscribe
((
result
:
any
)
=>
{
...
...
src/store/getters.ts
浏览文件 @
b88174be
/**
* 获取代码表对象
*
* @param state
*/
export
const
getDepartmentPersonnel
=
(
state
:
any
)
=>
()
=>
{
return
state
.
departmentPersonnel
;
}
/**
/**
* 获取代码表对象
* 获取代码表对象
*
*
...
...
src/store/mutations.ts
浏览文件 @
b88174be
import
{
Environment
}
from
'@/environments/environment'
;
import
{
Environment
}
from
'@/environments/environment'
;
/**
* 添加部门成员
*
* @param state
* @param codelists
*/
export
const
addDepartmentPersonnel
=
(
state
:
any
,
departmentPersonnel
:
Array
<
any
>
)
=>
{
state
.
departmentPersonnel
=
[];
state
.
departmentPersonnel
=
[...
departmentPersonnel
];
}
/**
/**
* 添加代码表
* 添加代码表
*
*
...
@@ -98,10 +109,7 @@ export const addPage = (state: any, arg: any) => {
...
@@ -98,10 +109,7 @@ export const addPage = (state: any, arg: any) => {
if
(
!
arg
)
{
if
(
!
arg
)
{
return
;
return
;
}
}
// 视图类型为REDIRECTVIEW和NOTAB的视图不添加缓存
if
(
Object
.
is
(
arg
.
meta
.
viewType
,
'APPINDEX'
))
{
if
(
Object
.
is
(
arg
.
meta
.
viewType
,
'REDIRECTVIEW'
)
||
Object
.
is
(
arg
.
meta
.
viewType
,
'NOTAB'
)){
return
;
}
else
if
(
Object
.
is
(
arg
.
meta
.
viewType
,
'APPINDEX'
))
{
window
.
sessionStorage
.
setItem
(
Environment
.
AppName
,
arg
.
fullPath
);
window
.
sessionStorage
.
setItem
(
Environment
.
AppName
,
arg
.
fullPath
);
}
else
{
}
else
{
const
page
:
any
=
{};
const
page
:
any
=
{};
...
...
src/store/state.ts
浏览文件 @
b88174be
...
@@ -7,6 +7,7 @@ export const rootstate: any = {
...
@@ -7,6 +7,7 @@ export const rootstate: any = {
pageMetas
:
[],
pageMetas
:
[],
historyPathList
:
[],
historyPathList
:
[],
codelists
:
[],
codelists
:
[],
departmentPersonnel
:[],
selectTheme
:
''
,
selectTheme
:
''
,
selectFont
:
''
,
selectFont
:
''
,
appdata
:
''
,
appdata
:
''
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录