Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
fe502b7f
提交
fe502b7f
编写于
5月 26, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zpc --- 人员分组调整
上级
a50e298d
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
9 行删除
+39
-9
ibiz-group-picker.vue
src/components/ibiz-group-picker/ibiz-group-picker.vue
+25
-6
ibiz-group-select.vue
src/components/ibiz-group-select/ibiz-group-select.vue
+14
-3
未找到文件。
src/components/ibiz-group-picker/ibiz-group-picker.vue
浏览文件 @
fe502b7f
...
@@ -47,6 +47,22 @@ export default class IBizGroupPicker extends Vue {
...
@@ -47,6 +47,22 @@ export default class IBizGroupPicker extends Vue {
*/
*/
protected
multiple
:
boolean
=
false
;
protected
multiple
:
boolean
=
false
;
/**
* 加载树url
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
treeurl
:
any
;
/**
* 加载人员url
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
url
:
any
;
/**
/**
* 树数据集
* 树数据集
*
*
...
@@ -110,10 +126,9 @@ export default class IBizGroupPicker extends Vue {
...
@@ -110,10 +126,9 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
* @memberof IBizGroupPicker
*/
*/
get
showTree
()
{
get
showTree
()
{
if
(
this
.
viewParam
.
hasfilter
&&
Object
.
is
(
this
.
viewData
.
srforgid
,
this
.
viewParam
.
filtervalue
)
)
{
if
(
this
.
viewParam
)
{
return
fals
e
;
return
this
.
viewParam
.
showtre
e
;
}
}
return
true
;
}
}
/**
/**
...
@@ -129,6 +144,8 @@ export default class IBizGroupPicker extends Vue {
...
@@ -129,6 +144,8 @@ export default class IBizGroupPicker extends Vue {
this
.
viewData
=
JSON
.
parse
(
this
.
viewdata
);
this
.
viewData
=
JSON
.
parse
(
this
.
viewdata
);
this
.
viewParam
=
JSON
.
parse
(
this
.
viewparam
);
this
.
viewParam
=
JSON
.
parse
(
this
.
viewparam
);
this
.
multiple
=
this
.
viewParam
.
multiple
;
this
.
multiple
=
this
.
viewParam
.
multiple
;
this
.
treeurl
=
this
.
viewParam
.
treeurl
;
this
.
url
=
this
.
viewParam
.
url
;
if
(
this
.
viewParam
.
selects
)
{
if
(
this
.
viewParam
.
selects
)
{
this
.
viewParam
.
selects
.
forEach
((
select
:
any
)
=>
{
this
.
viewParam
.
selects
.
forEach
((
select
:
any
)
=>
{
this
.
selects
.
push
(
select
);
this
.
selects
.
push
(
select
);
...
@@ -159,8 +176,9 @@ export default class IBizGroupPicker extends Vue {
...
@@ -159,8 +176,9 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
* @memberof IBizGroupPicker
*/
*/
public
loadTree
()
{
public
loadTree
()
{
let
orgid
=
this
.
viewParam
.
filtervalue
?
this
.
viewParam
.
filtervalue
:
"alls"
;
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
get
=
Http
.
getInstance
().
get
(
`/ibzorganizations/
${
orgid
}
/suborg/ibzdepartments/picker`
,
true
);
let
tempTreeUrl
:
string
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
let
get
=
Http
.
getInstance
().
get
(
tempTreeUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
this
.
treeItems
=
response
.
data
;
this
.
treeItems
=
response
.
data
;
...
@@ -177,7 +195,8 @@ export default class IBizGroupPicker extends Vue {
...
@@ -177,7 +195,8 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
* @memberof IBizGroupPicker
*/
*/
public
loadGroupData
(
key
:
string
)
{
public
loadGroupData
(
key
:
string
)
{
let
get
=
Http
.
getInstance
().
get
(
`/ibzorganizations/
${
key
}
/ibzemployees/picker`
,
true
);
let
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
let
get
=
Http
.
getInstance
().
get
(
tempUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
this
.
cardItems
=
response
.
data
;
this
.
cardItems
=
response
.
data
;
...
...
src/components/ibiz-group-select/ibiz-group-select.vue
浏览文件 @
fe502b7f
...
@@ -32,13 +32,21 @@ export default class IBizGroupSelect extends Vue {
...
@@ -32,13 +32,21 @@ export default class IBizGroupSelect extends Vue {
*/
*/
@
Prop
()
name
!
:
string
;
@
Prop
()
name
!
:
string
;
/**
* 树加载地址
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
treeurl
?:
boolean
;
/**
/**
* 数据接口地址
* 数据接口地址
*
*
* @type {*}
* @type {*}
* @memberof IBizGroupSelect
* @memberof IBizGroupSelect
*/
*/
@
Prop
()
url
?
:
string
;
@
Prop
()
url
!
:
string
;
/**
/**
* 多选
* 多选
...
@@ -175,10 +183,14 @@ export default class IBizGroupSelect extends Vue {
...
@@ -175,10 +183,14 @@ export default class IBizGroupSelect extends Vue {
}
else
{
}
else
{
filtervalue
=
context
.
srforgid
;
filtervalue
=
context
.
srforgid
;
}
}
}
else
{
filtervalue
=
context
.
srforgid
;
}
}
const
param
:
any
=
{};
const
param
:
any
=
{};
Object
.
assign
(
param
,
{
Object
.
assign
(
param
,
{
hasfilter
:
this
.
filter
?
true
:
false
,
showtree
:
this
.
treeurl
?
true
:
false
,
url
:
this
.
url
,
treeurl
:
this
.
treeurl
,
filtervalue
:
filtervalue
,
filtervalue
:
filtervalue
,
multiple
:
this
.
multiple
,
multiple
:
this
.
multiple
,
selects
:
this
.
selects
selects
:
this
.
selects
...
@@ -199,7 +211,6 @@ export default class IBizGroupSelect extends Vue {
...
@@ -199,7 +211,6 @@ export default class IBizGroupSelect extends Vue {
* @memberof IBizGroupSelect
* @memberof IBizGroupSelect
*/
*/
public
openViewClose
(
result
:
any
)
{
public
openViewClose
(
result
:
any
)
{
console
.
log
(
result
)
this
.
selects
=
[];
this
.
selects
=
[];
if
(
result
.
datas
&&
result
.
datas
.
length
>
0
)
{
if
(
result
.
datas
&&
result
.
datas
.
length
>
0
)
{
this
.
selects
=
result
.
datas
this
.
selects
=
result
.
datas
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录