Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
3670d46e
提交
3670d46e
编写于
4月 17, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
进入计划管理前做认证校验
上级
689ccaf4
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
2 行删除
+36
-2
followapis.js
src/utils/followup/followapis.js
+9
-0
plan-list.vue
src/views/followup/plan-manage/plan-list.vue
+27
-2
未找到文件。
src/utils/followup/followapis.js
浏览文件 @
3670d46e
...
@@ -142,6 +142,15 @@ export const deletePlan = (planId) => {
...
@@ -142,6 +142,15 @@ export const deletePlan = (planId) => {
description
:
'删除计划'
,
description
:
'删除计划'
,
})
})
};
};
export
const
getVerifyStatus
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getFollowUpSC
(
`/followup/plans/validate/status`
),
method
:
'get'
,
params
:
params
,
description
:
'认证校验'
,
})
};
/*预约管理*/
/*预约管理*/
export
const
getReservationList
=
(
data
)
=>
{
export
const
getReservationList
=
(
data
)
=>
{
return
fetch
({
return
fetch
({
...
...
src/views/followup/plan-manage/plan-list.vue
浏览文件 @
3670d46e
...
@@ -87,7 +87,8 @@
...
@@ -87,7 +87,8 @@
<
script
>
<
script
>
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
deletePlan
}
from
'@/utils/followup/followapis'
import
{
deletePlan
,
getVerifyStatus
}
from
'@/utils/followup/followapis'
import
{
getSaasDomain
}
from
'@/utils/index'
export
default
{
export
default
{
components
:{
components
:{
BreadCrumb
,
BreadCrumb
,
...
@@ -156,10 +157,34 @@
...
@@ -156,10 +157,34 @@
})
})
},
},
created
()
{
created
()
{
this
.
search
(
1
);
this
.
init
(
);
},
},
watch
:
{},
methods
:
{
methods
:
{
...
mapActions
(
'planManage'
,
[
'getPlanList'
,
'setResidentCrumb'
,
'setPlanModifyCrumb'
]),
...
mapActions
(
'planManage'
,
[
'getPlanList'
,
'setResidentCrumb'
,
'setPlanModifyCrumb'
]),
init
()
{
getVerifyStatus
().
then
((
res
)
=>
{
console
.
log
(
'校验结果'
,
res
)
if
(
res
.
code
===
'000000'
)
{
this
.
search
(
1
);
}
else
if
(
res
.
code
===
'200008'
){
this
.
$confirm
(
`
${
res
.
message
}
`
,
'提示'
,
{
confirmButtonText
:
'去认证'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
//confirmButton操作
window
.
location
.
href
=
getSaasDomain
(
`/saas/pica_personal_edit.html?ZmxhZz0x`
);
}).
catch
(()
=>
{
//cancelButton操作
this
.
$router
.
push
({
path
:
'/'
})
});
}
else
{
this
.
$message
.
error
(
res
.
message
);
this
.
$router
.
push
({
path
:
'/'
})
}
})
},
async
search
(
currentPage
){
async
search
(
currentPage
){
await
this
.
getPlanList
({
await
this
.
getPlanList
({
...
this
.
searchData
,
...
this
.
searchData
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录