Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c1de66c6
提交
c1de66c6
编写于
4月 12, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
4747b577
变更
3
展开全部
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
427 行增加
和
625 行删除
+427
-625
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+388
-568
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+0
-13
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+39
-44
未找到文件。
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
c1de66c6
此差异已折叠。
点击以展开。
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
c1de66c6
...
@@ -168,10 +168,6 @@
...
@@ -168,10 +168,6 @@
// 获取随访计划模板列表
// 获取随访计划模板列表
this
.
getFollowupTemplate
()
this
.
getFollowupTemplate
()
},
},
mounted
()
{
//清理store中存的数据setTimeNodeList
},
computed
:
{
computed
:
{
...
mapState
(
'planManage'
,{
...
mapState
(
'planManage'
,{
remarkOption
:
state
=>
state
.
remarkOption
,
remarkOption
:
state
=>
state
.
remarkOption
,
...
@@ -195,7 +191,6 @@
...
@@ -195,7 +191,6 @@
// 提交
// 提交
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
// this.getTimeNodeList([]);
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
''
,
title
:
''
,
...
@@ -284,8 +279,6 @@
...
@@ -284,8 +279,6 @@
this
.
standedTimeNodeList
=
[];
this
.
standedTimeNodeList
=
[];
this
.
activeTab
=
'second'
;
this
.
activeTab
=
'second'
;
}
}
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
@@ -295,12 +288,6 @@
...
@@ -295,12 +288,6 @@
this
.
activeTab
=
'first'
;
this
.
activeTab
=
'first'
;
},
},
},
},
beforeRouteLeave
(
to
,
from
,
next
)
{
// 离开页面,需要清除缓存的时间节点
this
.
getTimeNodeList
([])
next
()
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
c1de66c6
...
@@ -232,39 +232,26 @@
...
@@ -232,39 +232,26 @@
});
});
},
},
saveModify
()
{
saveModify
()
{
this
.
$confirm
(
'是否确认保存修改内容?'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
// console.log(this.checkForm)
// 点击保存,先进行校验,表单字段是否通过验证
// 点击保存,先进行校验,表单字段是否通过验证
this
.
checkForm
=
true
this
.
checkForm
=
true
// // 关闭弹层,继续创建
// this.planDetail.joinTime = '2019-04-09T16:00:00.000+0000'
// this.setFollowPlan(this.planDetail)
// /*this.$message({
// message: '修改成功!',
// type: 'success'
// });*/
// this.$router.back(-1)
}).
catch
(()
=>
{
// 确定放弃,跳出当前编辑页面
});
},
},
// 监听保存校验结果
// 监听保存校验结果
addListenSave
(
val
){
addListenSave
(
val
){
console
.
log
(
'监听保存校验结果'
,
val
)
console
.
log
(
'监听保存校验结果'
,
val
)
this
.
checkForm
=
false
this
.
checkForm
=
false
if
(
val
.
status
){
if
(
val
.
status
){
this
.
$confirm
(
'是否确认保存修改内容?'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
// 点击保存,先进行校验,表单字段是否通过验证
// 关闭弹层,继续创建
// 关闭弹层,继续创建
this
.
planDetailData
.
fPlanTimeReqList
=
val
.
setTimeNodeList
this
.
planDetailData
.
fPlanTimeReqList
=
val
.
setTimeNodeList
this
.
planDetailData
.
joinTime
=
new
Date
();
console
.
log
(
'修改计划前的数据===>>>'
,
this
.
planDetailData
)
console
.
log
(
'修改计划前的数据===>>>'
,
this
.
planDetailData
)
createFollowPlan
(
this
.
planDetailData
).
then
(
res
=>
{
createFollowPlan
(
this
.
planDetailData
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
this
.
getTimeNodeList
([]);
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
''
,
title
:
''
,
...
@@ -272,7 +259,9 @@
...
@@ -272,7 +259,9 @@
showClose
:
false
showClose
:
false
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
back
(
-
1
)
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
},
2000
)
},
2000
)
}
else
{
}
else
{
this
.
$notify
.
success
({
this
.
$notify
.
success
({
...
@@ -282,8 +271,14 @@
...
@@ -282,8 +271,14 @@
});
});
}
}
})
})
})
}
else
{
}
else
{
console
.
log
(
'点击保存按钮之后校验失败'
)
this
.
$notify
.
success
({
title
:
'请填写完整表单'
,
message
:
'请填写完整表单'
,
showClose
:
false
,
duration
:
500
});
}
}
},
},
goToFollowTime
()
{
goToFollowTime
()
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录