Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
14819b6d
提交
14819b6d
编写于
3月 09, 2021
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加查询可访问本圈的机构和人员接口
上级
644ec380
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
9 行删除
+36
-9
mebman.vue
src/components/yqrange/mebman.vue
+23
-6
rangeApi.js
src/utils/yqrange/rangeApi.js
+13
-3
未找到文件。
src/components/yqrange/mebman.vue
浏览文件 @
14819b6d
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
@
setPleTotal=
"setPleTotal"
@
setPleTotal=
"setPleTotal"
ref=
'renyaun'
ref=
'renyaun'
></renyaun>
></renyaun>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -43,7 +43,7 @@ import * as commonUtil from "@/utils/utils";
...
@@ -43,7 +43,7 @@ import * as commonUtil from "@/utils/utils";
import
org
from
'@/components/yqrange/member-management/org'
import
org
from
'@/components/yqrange/member-management/org'
import
renyaun
from
'@/components/yqrange/member-management/renyuan'
import
renyaun
from
'@/components/yqrange/member-management/renyuan'
import
region
from
'@/components/yqrange/member-management/region'
import
region
from
'@/components/yqrange/member-management/region'
import
{
getCircleRole
}
from
'@/utils/yqrange/rangeApi'
import
{
getCircleRole
,
getTotalNumber
}
from
'@/utils/yqrange/rangeApi'
export
default
{
export
default
{
props
:
{
props
:
{
circleId
:
{
circleId
:
{
...
@@ -92,8 +92,25 @@ export default {
...
@@ -92,8 +92,25 @@ export default {
// 挂载到Dom完成时
// 挂载到Dom完成时
mounted
:
function
()
{
mounted
:
function
()
{
// commonUtil.resizeHeight();
// commonUtil.resizeHeight();
this
.
getTotalNum
();
},
},
methods
:
{
methods
:
{
getTotalNum
(){
let
param
=
{
circleId
:
this
.
circleId
,
districtIds
:
'000'
,
idType
:
this
.
roleType
,
}
getTotalNumber
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
const
{
orgTotal
,
peopleTotal
}
=
res
.
data
;
this
.
orgTotal
=
orgTotal
;
this
.
pleTotal
=
peopleTotal
;
}
}).
catch
(
err
=>
{
console
.
log
(
'网络出现点儿问题,稍后重试'
)
})
},
getRole
()
{
getRole
()
{
getCircleRole
(
this
.
circleId
).
then
((
res
)
=>
{
getCircleRole
(
this
.
circleId
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
...
@@ -102,7 +119,7 @@ export default {
...
@@ -102,7 +119,7 @@ export default {
this
.
role
=
1
this
.
role
=
1
}
}
}
}
})
})
},
},
checkTab
(
v
)
{
checkTab
(
v
)
{
...
@@ -114,7 +131,7 @@ export default {
...
@@ -114,7 +131,7 @@ export default {
}
else
if
(
v
==
2
)
{
}
else
if
(
v
==
2
)
{
this
.
orgbtn
=
''
this
.
orgbtn
=
''
this
.
plebtn
=
'primary'
this
.
plebtn
=
'primary'
this
.
areabtn
=
''
this
.
areabtn
=
''
}
else
{
}
else
{
this
.
areabtn
=
'primary'
this
.
areabtn
=
'primary'
this
.
orgbtn
=
''
this
.
orgbtn
=
''
...
@@ -122,10 +139,10 @@ export default {
...
@@ -122,10 +139,10 @@ export default {
}
}
},
},
setOrgTotal
(
n
)
{
setOrgTotal
(
n
)
{
this
.
orgTotal
=
n
//
this.orgTotal = n
},
},
setPleTotal
(
n
)
{
setPleTotal
(
n
)
{
this
.
pleTotal
=
n
//
this.pleTotal = n
},
},
//刷新机构和人员
//刷新机构和人员
setOrgAndPeople
(){
setOrgAndPeople
(){
...
...
src/utils/yqrange/rangeApi.js
浏览文件 @
14819b6d
...
@@ -48,8 +48,8 @@ export const getMemberSelectOrgOptionReq = (data) => {
...
@@ -48,8 +48,8 @@ export const getMemberSelectOrgOptionReq = (data) => {
description
:
' 圈子设置选择机构保存'
,
description
:
' 圈子设置选择机构保存'
,
})
})
};
};
export
const
getOrgProvincesReq
=
(
idType
,
circleId
,
type
=
1
)
=>
{
export
const
getOrgProvincesReq
=
(
idType
,
circleId
,
type
=
1
)
=>
{
...
@@ -68,4 +68,14 @@ export const getCircleRole = (circleId) => {
...
@@ -68,4 +68,14 @@ export const getCircleRole = (circleId) => {
method
:
'get'
,
method
:
'get'
,
description
:
'根据圈子 获取人的角色'
,
description
:
'根据圈子 获取人的角色'
,
})
})
};
};
\ No newline at end of file
export
const
getTotalNumber
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`circle/memberSelect/orgPeopleTotal/related/search`
),
method
:
'post'
,
data
:
data
,
description
:
'查询已选机构、人员'
,
})
};
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录