Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
d5e8f871
提交
d5e8f871
编写于
9月 02, 2020
作者:
ShineKOT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
部门人员选择器
上级
b88174be
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
47 行删除
+22
-47
app-department-personnel.vue
...nts/app-department-personnel/app-department-personnel.vue
+16
-40
app-group-picker.vue
src/components/app-group-picker/app-group-picker.vue
+6
-6
app-group-select.vue
src/components/app-group-select/app-group-select.vue
+0
-1
未找到文件。
src/components/app-department-personnel/app-department-personnel.vue
浏览文件 @
d5e8f871
<
template
>
<div
class=
"app-department-personnel"
>
<i-select
:multiple=
"multiple"
:transfer=
"true"
transfer-class-name=
"app-department-personnel-select"
v-model=
"selectsLabel"
:disabled=
"disabled"
:clearable=
"true"
@
on-open-change=
"onClick"
@
on-change=
"change"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.
value
"
:label=
"item.label"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.
label
"
:label=
"item.label"
>
{{
item
.
label
}}
</i-option>
</i-select>
...
...
@@ -128,10 +128,7 @@ export default class AppDepartmentPersonnel extends Vue {
* @type {*}
* @memberof AppDepartmentPersonnel
*/
public
selects
:
any
[]
=
[
{
value
:
'New York'
,
label
:
'New York'
}
];
public
selects
:
any
[]
=
[];
/**
* 选中项label集合
...
...
@@ -139,7 +136,7 @@ export default class AppDepartmentPersonnel extends Vue {
* @type {*}
* @memberof AppDepartmentPersonnel
*/
public
selectsLabel
:
any
=
[
"New York"
]
;
public
selectsLabel
:
any
[]
=
[
]
;
/**
* 下拉数组
...
...
@@ -147,30 +144,7 @@ export default class AppDepartmentPersonnel extends Vue {
* @type {*}
* @memberof AppDepartmentPersonnel
*/
public
items
:
any
[]
=
[{
value
:
'New York'
,
label
:
'New York'
},
{
value
:
'London'
,
label
:
'London'
},
{
value
:
'Sydney'
,
label
:
'Sydney'
},
{
value
:
'Ottawa'
,
label
:
'Ottawa'
},
{
value
:
'Paris'
,
label
:
'Paris'
},
{
value
:
'Canberra'
,
label
:
'Canberra'
}];
public
items
:
any
[]
=
[];
/**
* 过滤值
*
...
...
@@ -192,10 +166,10 @@ export default class AppDepartmentPersonnel extends Vue {
}
else
if
(
context
[
this
.
filter
]){
this
.
filtervalue
=
context
[
this
.
filter
];
}
else
{
this
.
filtervalue
=
context
.
srf
p
dept
;
this
.
filtervalue
=
context
.
srf
s
dept
;
}
}
else
{
this
.
filtervalue
=
context
.
srf
p
dept
;
this
.
filtervalue
=
context
.
srf
s
dept
;
}
}
...
...
@@ -331,15 +305,17 @@ export default class AppDepartmentPersonnel extends Vue {
* @memberof AppDepartmentPersonnel
*/
public
openViewClose
(
result
:
any
)
{
this
.
selects
=
[];
this
.
selectsLabel
=
[];
if
(
result
.
datas
&&
result
.
datas
.
length
>
0
)
{
this
.
selects
=
result
.
datas
;
if
(
this
.
selects
.
length
>
0
){
this
.
selects
.
forEach
((
select
:
any
)
=>
{
this
.
selectsLabel
.
push
(
select
.
label
)
})
}
this
.
selects
=
[];
this
.
selectsLabel
=
[];
this
.
selects
=
[...
result
.
datas
];
this
.
selects
.
forEach
((
select
:
any
)
=>
{
let
index
=
this
.
items
.
findIndex
((
item
)
=>
Object
.
is
(
item
.
label
,
select
.
label
));
if
(
index
<
0
){
this
.
items
.
push
(
select
);
}
this
.
selectsLabel
.
push
(
select
.
label
);
});
}
this
.
setValue
();
}
...
...
src/components/app-group-picker/app-group-picker.vue
浏览文件 @
d5e8f871
...
...
@@ -177,10 +177,10 @@ export default class AppGroupPicker extends Vue {
public
loadTree
()
{
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
tempTreeUrl
:
string
=
''
;
if
(
this
.
viewParam
.
selectTyep
==
'org'
){
tempTreeUrl
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
}
else
if
(
this
.
viewParam
.
selectTyep
==
'dept'
){
if
(
this
.
viewParam
.
selectType
&&
Object
.
is
(
this
.
viewParam
.
selectType
,
"dept"
)){
tempTreeUrl
=
this
.
treeurl
.
replace
(
'{deptId}'
,
orgid
);
}
else
{
tempTreeUrl
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
}
let
get
=
Http
.
getInstance
().
get
(
tempTreeUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
...
...
@@ -200,10 +200,10 @@ export default class AppGroupPicker extends Vue {
*/
public
loadGroupData
(
key
:
string
)
{
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"
)){
if
(
this
.
viewParam
.
selectType
&&
Object
.
is
(
this
.
viewParam
.
selectType
,
"dept"
)){
tempUrl
=
this
.
url
.
replace
(
'{deptId}'
,
key
);
}
else
{
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
}
let
get
=
Http
.
getInstance
().
get
(
tempUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
...
...
src/components/app-group-select/app-group-select.vue
浏览文件 @
d5e8f871
...
...
@@ -218,7 +218,6 @@ export default class AppGroupSelect extends Vue {
filtervalue
:
filtervalue
,
multiple
:
this
.
multiple
,
selects
:
this
.
selects
,
selectTpye
:
'org'
});
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录