Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
25d257c3
提交
25d257c3
编写于
4月 14, 2021
作者:
haochangdi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加下载人员名单
上级
a9e3aa98
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
54 行增加
和
13 行删除
+54
-13
mebman.vue
src/components/yqrange/mebman.vue
+35
-4
renyuan.vue
src/components/yqrange/member-management/renyuan.vue
+6
-5
memberApi.js
src/utils/yqrange/memberApi.js
+0
-1
rangeApi.js
src/utils/yqrange/rangeApi.js
+13
-3
未找到文件。
src/components/yqrange/mebman.vue
浏览文件 @
25d257c3
<
template
>
<div
class=
"member-management"
id=
"screenSet"
>
<el-row
type=
"flex"
justify=
"space-around"
class=
"mm-nav"
align=
"middle"
>
<el-row
type=
"flex"
justify=
"space-around"
class=
"mm-nav"
>
<el-col
:span=
"20"
>
<el-button
:type=
"areabtn"
round
class=
"margin-l"
@
click=
"checkTab(0)"
v-show=
'isAraeEdit'
>
可访问本圈的地区
</el-button>
<el-button
:type=
"orgbtn"
round
class=
"margin-l"
@
click=
"checkTab(1)"
>
可访问本圈的机构 (
{{
orgTotal
}}
)
</el-button>
...
...
@@ -8,7 +8,8 @@
<span
class=
"text inlin"
@
click=
"goBalck"
>
黑名单
</span>
</el-col>
<el-col
:span=
"4"
class=
"mm-r"
>
<span
class=
"text"
@
click=
"goManger"
v-if=
"role == 1"
>
设置管理员
</span>
<el-button
type=
"info"
@
click=
"goManger"
v-if=
"role == 1"
class=
"manger-btn"
>
设置管理员
</el-button>
<el-button
@
click=
"download"
class=
"down-btn"
>
导出人员明细
</el-button>
</el-col>
</el-row>
<div
class=
"member-main"
>
...
...
@@ -43,7 +44,7 @@ import * as commonUtil from "@/utils/utils";
import
org
from
'@/components/yqrange/member-management/org'
import
renyaun
from
'@/components/yqrange/member-management/renyuan'
import
region
from
'@/components/yqrange/member-management/region'
import
{
getCircleRole
,
getTotalNumber
}
from
'@/utils/yqrange/rangeApi'
import
{
getCircleRole
,
getTotalNumber
,
downLoadMember
}
from
'@/utils/yqrange/rangeApi'
export
default
{
props
:
{
circleId
:
{
...
...
@@ -164,7 +165,34 @@ export default {
// },
refreshRenYuan
()
{
this
.
$refs
.
renyaun
.
initRange
()
}
},
// 下载成员明细
download
()
{
let
param
=
{
circleId
:
this
.
circleId
,
countryFlag
:
true
,
name
:
""
,
orgName
:
""
,
pageNo
:
1
,
pageSize
:
10
,
source
:
0
}
downLoadMember
(
param
).
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
downloadFile
(
res
.
data
.
attachments
.
base64
,
res
.
data
.
attachments
.
name
);
}
}).
catch
(
err
=>
{
console
.
log
(
'网络出现点儿问题,稍后重试'
)
})
},
/* 文件下载*/
downloadFile
(
base64
,
name
)
{
let
a
=
document
.
createElement
(
'a'
);
let
href
=
'data:application/xls;base64,'
+
base64
;
a
.
setAttribute
(
'href'
,
href
);
a
.
setAttribute
(
'download'
,
name
);
a
.
click
();
},
}
}
</
script
>
...
...
@@ -183,6 +211,9 @@ export default {
.mm-r
{
text-align
:
right
;
padding-right
:
20px
;
.manger-btn
{
margin-bottom
:
20px
;
}
}
.inlin
{
margin-left
:
10px
;
...
...
src/components/yqrange/member-management/renyuan.vue
浏览文件 @
25d257c3
...
...
@@ -40,6 +40,7 @@
</el-col>
</el-row>
<el-table
class=
"rim"
ref=
"multipleOrganization"
:data=
"peoplesDtoList"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"id"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"人员"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"department"
label=
"所属科室"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospital"
label=
"所属医院"
align=
"center"
></el-table-column>
...
...
@@ -48,6 +49,11 @@
<el-table-column
prop=
"countyName"
label=
"所属区县"
align=
"center"
></el-table-column>
<el-table-column
prop=
"townName"
label=
"所属街道"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sourceName"
label=
"来源"
align=
"center"
></el-table-column>
<el-table-column
prop=
"joinTime"
label=
"加入时间"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
joinTime
|
liveDateFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
...
...
@@ -154,13 +160,8 @@
</span>
</div>
</div>
</el-dialog>
<el-dialog
title=
"批量导入"
:visible
.
sync=
"dialogImportVisible"
...
...
src/utils/yqrange/memberApi.js
浏览文件 @
25d257c3
...
...
@@ -171,4 +171,3 @@ export const getprovinces = (idType) => {
})
};
src/utils/yqrange/rangeApi.js
浏览文件 @
25d257c3
import
fetch
from
'../fetch'
;
import
{
getBaseUrl
,
getSaasDomain
,
getSaasApiDomain
}
from
'@/utils/index'
let
headers
=
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
token
:
localStorage
.
getItem
(
'storageToken'
),
'Content-Type'
:
'application/json;charset=UTF-8'
,
token
:
localStorage
.
getItem
(
'storageToken'
),
};
export
const
getCircleInfoReq
=
(
id
)
=>
{
...
...
@@ -51,7 +51,6 @@ export const getMemberSelectOrgOptionReq = (data) => {
export
const
getOrgProvincesReq
=
(
idType
,
circleId
,
type
=
1
)
=>
{
return
fetch
({
headers
,
...
...
@@ -107,3 +106,14 @@ export const saveKolConfig = (data) => {
description
:
'KOL管理tab保存'
,
})
};
export
const
downLoadMember
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`circle/export/people/related/search/export`
),
method
:
'post'
,
data
:
params
,
description
:
'下载人员名单'
})
};
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录