Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
fdf66e66
提交
fdf66e66
编写于
3月 18, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug
上级
9bdee209
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
62 行增加
和
10 行删除
+62
-10
add-manager.vue
src/views/education/add-manager.vue
+62
-10
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
fdf66e66
...
@@ -1258,9 +1258,9 @@ export default {
...
@@ -1258,9 +1258,9 @@ export default {
this
.
updatedOrganization
==
false
this
.
updatedOrganization
==
false
)
{
)
{
this
.
updatedOrganization
=
true
;
this
.
updatedOrganization
=
true
;
console
.
log
(
'机构被更新'
,
this
.
updatedOrganization
);
console
.
log
(
"机构被更新"
,
this
.
updatedOrganization
);
}
}
if
(
this
.
updatedOrganization
==
true
)
{
if
(
this
.
updatedOrganization
==
true
)
{
this
.
changedOrganization
[
this
.
formOrganization
.
pageNum
]
=
[];
this
.
changedOrganization
[
this
.
formOrganization
.
pageNum
]
=
[];
this
.
changedOrganization
[
this
.
changedOrganization
[
this
.
formOrganization
.
pageNum
this
.
formOrganization
.
pageNum
...
@@ -1310,13 +1310,25 @@ export default {
...
@@ -1310,13 +1310,25 @@ export default {
}
}
}
else
if
(
type
==
"organization"
)
{
}
else
if
(
type
==
"organization"
)
{
if
(
this
.
checkTableState
.
multipleOrganization
==
true
)
{
if
(
this
.
checkTableState
.
multipleOrganization
==
true
)
{
//
机构全选
//
设置机构类别0:无 1:全选 2:去掉 3:选中
kind
=
1
;
kind
=
1
;
for
(
let
key
in
this
.
changedOrganization
)
{
for
(
let
key
in
this
.
changedOrganization
)
{
if
(
this
.
changedOrganization
[
key
][
1
].
length
>
0
)
{
kind
=
2
;
}
}
}
}
else
{
}
else
{
//全部不选
kind
=
0
;
for
(
let
key
in
this
.
changedOrganization
)
{
if
(
this
.
changedOrganization
[
key
][
0
].
length
>
0
)
{
kind
=
3
;
}
}
}
}
else
if
(
type
==
"department"
)
{
if
(
this
.
multipleSelectionDepartment
.
length
>
0
)
{
kind
=
3
;
}
}
}
}
return
kind
;
return
kind
;
...
@@ -1421,6 +1433,38 @@ export default {
...
@@ -1421,6 +1433,38 @@ export default {
}
}
});
});
},
},
//获取机构id列表
getScopeOrganization
(
type
)
{
let
scope
=
""
;
if
(
type
==
2
)
{
for
(
let
key
in
this
.
changedOrganization
)
{
let
organizationItem
=
this
.
changedOrganization
[
key
][
1
];
console
.
log
(
"organizationItem:"
,
organizationItem
);
for
(
let
i
=
0
;
i
<
organizationItem
.
length
;
i
++
)
{
scope
+=
organizationItem
[
i
].
id
+
"|"
;
}
}
}
else
if
(
type
==
3
)
{
for
(
let
key
in
this
.
changedOrganization
)
{
let
organizationItem
=
this
.
changedOrganization
[
key
][
0
];
for
(
let
i
=
0
;
i
<
organizationItem
.
length
;
i
++
)
{
scope
+=
organizationItem
[
i
].
id
+
"|"
;
}
}
}
scope
=
scope
.
substring
(
0
,
scope
.
length
-
1
);
console
.
log
(
"scope"
,
scope
);
return
scope
;
},
//获取科室列表
getScopeDepartment
()
{
let
scope
=
""
;
for
(
let
i
=
0
;
i
<
this
.
multipleSelectionDepartment
.
length
;
i
++
)
{
scope
+=
this
.
multipleSelectionDepartment
[
i
].
id
+
"|"
;
}
scope
=
scope
.
substring
(
0
,
scope
.
length
-
1
);
return
scope
;
},
//查询人员列表
//查询人员列表
getPeople
()
{
getPeople
()
{
let
req
=
{
let
req
=
{
...
@@ -1428,18 +1472,26 @@ export default {
...
@@ -1428,18 +1472,26 @@ export default {
setKindOfAdministrative
:
this
.
getKind
(
"administrative"
),
setKindOfAdministrative
:
this
.
getKind
(
"administrative"
),
//scopeOfAdministrative: "000_110",
//scopeOfAdministrative: "000_110",
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
scopeOfOrganization
:
"2|3|4|5|6|7"
,
//
scopeOfOrganization: "2|3|4|5|6|7",
setKindOfDepartment
:
3
,
setKindOfDepartment
:
this
.
getKind
(
"department"
)
,
scopeOfDepartment
:
54
,
//
scopeOfDepartment: 54,
pageNum
:
this
.
formPersonnel
.
pageNum
,
pageNum
:
this
.
formPersonnel
.
pageNum
,
pageSize
:
this
.
formPersonnel
.
pageSize
pageSize
:
this
.
formPersonnel
.
pageSize
};
};
if
(
req
.
setKindOfAdministrative
==
3
)
{
if
(
req
.
setKindOfAdministrative
==
3
)
{
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrative"
);
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrative"
);
}
}
if
(
req
.
setKindOfOrganization
==
2
||
req
.
setKindOfOrganization
==
3
)
{
req
.
scopeOfOrganization
=
this
.
getScopeOrganization
(
req
.
setKindOfOrganization
);
}
if
(
req
.
setKindOfDepartment
==
3
)
{
req
.
scopeOfDepartment
=
this
.
getScopeDepartment
();
}
vm
.
GET
(
"scope/v1/people"
,
req
).
then
(
res
=>
{
vm
.
GET
(
"scope/v1/people"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
.
code
);
console
.
log
(
res
);
this
.
tablePerson
=
res
.
data
.
people
;
this
.
tablePerson
=
res
.
data
.
people
;
this
.
totalPerson
=
res
.
data
.
total
;
this
.
totalPerson
=
res
.
data
.
total
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录