Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
cbcf5e8a
提交
cbcf5e8a
编写于
12月 25, 2020
作者:
alex.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
专区-活动管理-报名审核列表
上级
8033ed7e
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
58 行增加
和
54 行删除
+58
-54
yqrangeApi.js
src/utils/yqrange/yqrangeApi.js
+20
-0
range-apply.vue
src/views/activitymanagement/range-apply.vue
+38
-54
未找到文件。
src/utils/yqrange/yqrangeApi.js
浏览文件 @
cbcf5e8a
...
...
@@ -294,3 +294,23 @@ export const postCircleTree = (params) => {
description
:
'保存区域'
,
})
};
export
const
auditList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`circle/sso/activity/doctor/audit/list?doctorName=
${
params
.
doctorName
}
&titleManager=
${
params
.
titleManager
}
&auditStatus=
${
params
.
auditStatus
}
&pageNo=
${
params
.
pageNo
}
&pageSize=
${
params
.
pageSize
}
`
),
method
:
'get'
,
data
:
params
,
description
:
'医生审核列表'
,
})
};
export
const
auditOperation
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
'circle/sso/activity/doctor/audit'
),
method
:
'post'
,
data
:
params
,
description
:
'医生审核'
,
})
};
\ No newline at end of file
src/views/activitymanagement/range-apply.vue
浏览文件 @
cbcf5e8a
...
...
@@ -5,14 +5,14 @@
<el-form
ref=
"searchForm"
:model=
"searchForm"
label-width=
"75px"
label-suffix=
":"
:inline=
"true"
>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"8"
>
<el-input
v-model=
"searchForm.
name"
size=
"small"
placeholder=
"请输入申请
人姓名"
></el-input>
<el-input
v-model=
"searchForm.
doctorName"
size=
"small"
placeholder=
"请输入报名
人姓名"
></el-input>
</el-col>
<el-col
:span=
"9"
>
<el-input
v-model=
"searchForm.
circleName"
size=
"small"
placeholder=
"请输入圈子名称
"
></el-input>
<el-input
v-model=
"searchForm.
titleManager"
size=
"small"
placeholder=
"请输入活动后台标题
"
></el-input>
</el-col>
<el-col
:span=
"9"
>
<el-select
v-model=
"searchForm.
s
tatus"
v-model=
"searchForm.
auditS
tatus"
placeholder=
"全部审核状态"
size=
"small"
>
<el-option
...
...
@@ -32,24 +32,24 @@
</el-row>
</el-form>
<el-table
:data=
"tableData"
class=
"item-table"
style=
"width: 100%;margin-top: 10px;"
>
<el-table-column
prop=
"
name"
label=
"申请
人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
circleName"
label=
"申请加入圈子"
min-width=
"10
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"department"
label=
"所属科室"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospital"
label=
"所属医院"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
doctorName"
label=
"报名
人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
activityName"
label=
"报名参加活动"
min-width=
"15
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"department
Name
"
label=
"所属科室"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospital
Name
"
label=
"所属医院"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"provinceName"
label=
"所属省份"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"cityName"
label=
"所属城市"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"countyName"
label=
"所属区县"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"townName"
label=
"所属街道"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
s
tatus"
label=
"审核状态"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"
auditS
tatus"
label=
"审核状态"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
s
tatus
|
circleApplyStatus
}}
</span>
<span>
{{
scope
.
row
.
auditS
tatus
|
circleApplyStatus
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"
37
0"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.status != 50"
>
<el-button
@
click=
"approve(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.
status != 0 && scope.row.status != 2
"
>
通过
</el-button>
<el-button
@
click=
"reject(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.
status != 0 && scope.row.status != 2
"
>
拒绝
</el-button>
<el-table-column
label=
"操作"
min-width=
"
20
0"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<!-- 1待审核 2已通过 3已拒绝 -->
<div>
<el-button
@
click=
"approve(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.
auditStatus == 1
"
>
通过
</el-button>
<el-button
@
click=
"reject(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.
auditStatus == 1
"
>
拒绝
</el-button>
</div>
</
template
>
</el-table-column>
...
...
@@ -74,7 +74,7 @@
<
script
>
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
applyList
,
applyUpdate
}
from
"../../utils/yqrange/yqrangeApi"
;
import
{
a
uditList
,
auditOperation
,
a
pplyList
,
applyUpdate
}
from
"../../utils/yqrange/yqrangeApi"
;
export
default
{
components
:
{
BreadCrumb
...
...
@@ -85,10 +85,10 @@
showAllFlag
:
false
,
showNewFlag
:
false
,
searchForm
:
{
n
ame
:
''
,
circleName
:
''
,
doctorN
ame
:
''
,
titleManager
:
''
,
// endTime: '',
status
:
-
1
,
auditStatus
:
1
,
pageNo
:
1
,
pageSize
:
10
,
},
...
...
@@ -100,14 +100,6 @@
settingData
:
[]
},
statusList
:
[
{
value
:
-
1
,
label
:
"全部状态"
},
{
value
:
0
,
label
:
"已拒绝"
},
{
value
:
1
,
label
:
"待审核"
...
...
@@ -116,12 +108,16 @@
value
:
2
,
label
:
"已通过"
},
{
value
:
3
,
label
:
"已拒绝"
},
],
dialogVisible
:
false
}
},
created
()
{
this
.
initPrivilege
();
//
this.initPrivilege();
this
.
search
(
1
);
},
methods
:
{
...
...
@@ -178,10 +174,11 @@
openLoading
(
this
);
}
let
params
=
this
.
searchForm
;
applyList
(
params
).
then
((
res
)
=>
{
console
.
log
(
"searchList() : params = "
+
JSON
.
stringify
(
params
))
auditList
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
this
.
tableData
=
res
.
data
.
l
ist
;
this
.
tableData
=
res
.
data
.
activityDoctorAuditModelL
ist
;
this
.
totalRows
=
res
.
data
.
total
;
}
else
{
this
.
tableData
=
[];
...
...
@@ -196,9 +193,9 @@
},
resetForm
()
{
this
.
searchForm
.
n
ame
=
""
;
this
.
searchForm
.
circleName
=
""
;
this
.
searchForm
.
status
=
-
1
;
this
.
searchForm
.
doctorN
ame
=
""
;
this
.
searchForm
.
titleManager
=
""
;
this
.
searchForm
.
auditStatus
=
1
;
console
.
log
(
'重置'
)
this
.
search
();
},
...
...
@@ -206,7 +203,8 @@
// 更新圈子状态(上线,下线)
updateStatus
(
params
){
applyUpdate
(
params
).
then
((
res
)
=>
{
console
.
log
(
"updateStatus() : params = "
+
JSON
.
stringify
(
params
));
auditOperation
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
this
.
$message
.
success
(
"成功"
);
...
...
@@ -220,21 +218,14 @@
// type: 'error'
// });
this
.
$message
.
error
(
"请重试"
);
})
},
// 0:拒绝,1:待审核;2.通过
// 1:待审核,2.通过,3:拒绝
approve
(
row
){
let
params
=
{
applyList
:
[{
"circleId"
:
row
.
circleId
,
"doctorId"
:
row
.
doctorId
,
"status"
:
2
}]
"accept"
:
true
,
"auditRecordId"
:
row
.
auditRecordId
,
};
this
.
updateStatus
(
params
);
...
...
@@ -242,23 +233,18 @@
//拒绝
reject
(
row
)
{
let
params
=
{
applyList
:
[{
"circleId"
:
row
.
circleId
,
"doctorId"
:
row
.
doctorId
,
"status"
:
0
}]
"accept"
:
true
,
"auditRecordId"
:
row
.
auditRecordId
,
};
this
.
$confirm
(
`拒绝后"
${
row
.
name
}
"将无法访问"
${
row
.
circle
Name
}
"`
,
`确认拒绝`
,
{
this
.
$confirm
(
`拒绝后"
${
row
.
doctorName
}
"将无法访问"
${
row
.
activity
Name
}
"`
,
`确认拒绝`
,
{
confirmButtonText
:
'拒绝'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
customClass
:
'range-make-box'
,
}).
then
(()
=>
{
this
.
updateStatus
(
params
);
// confirm
this
.
updateStatus
(
params
);
}).
catch
(()
=>
{
// cancel
});
...
...
@@ -279,8 +265,6 @@
this
.
searchForm
.
pageNo
=
val
;
this
.
searchList
();
},
},
}
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录