Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
1e630c02
提交
1e630c02
编写于
4月 12, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
ee3c7282
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
16 行删除
+13
-16
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+3
-2
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+5
-7
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+5
-7
未找到文件。
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
1e630c02
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<el-input
<el-input
style=
"width:200px;"
style=
"width:200px;"
v-model=
"itemTimeForm.timeNo"
v-model=
"itemTimeForm.timeNo"
type=
"
number
"
type=
"
text
"
size=
"small"
size=
"small"
placeholder=
"请输入"
placeholder=
"请输入"
:disabled=
"itemIsDisabled(itemTimeForm)"
:disabled=
"itemIsDisabled(itemTimeForm)"
...
@@ -152,11 +152,12 @@
...
@@ -152,11 +152,12 @@
},
},
data
()
{
data
()
{
const
checkDay
=
(
rule
,
value
,
callback
)
=>
{
const
checkDay
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
const
num
=
parseFloat
(
value
);
const
num
=
parseFloat
(
value
);
if
(
num
<
0
||
num
>
100
){
if
(
num
<
0
||
num
>
100
){
return
callback
(
new
Error
(
'数字范围0-99'
));
return
callback
(
new
Error
(
'数字范围0-99'
));
}
}
if
(
!
Number
.
isInteger
(
num
)){
if
(
!
Number
.
isInteger
(
num
)
||
String
(
value
).
indexOf
(
'.'
)
>
0
){
return
callback
(
new
Error
(
'数字必须为整数'
));
return
callback
(
new
Error
(
'数字必须为整数'
));
}
}
callback
();
callback
();
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
1e630c02
...
@@ -200,10 +200,9 @@
...
@@ -200,10 +200,9 @@
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$notify
.
success
({
this
.
$message
({
title
:
''
,
message
:
'创建成功'
,
message
:
'创建成功'
,
showClose
:
false
type
:
'success'
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -211,10 +210,9 @@
...
@@ -211,10 +210,9 @@
})
})
},
2000
)
},
2000
)
}
else
{
}
else
{
this
.
$notify
.
success
({
this
.
$message
({
title
:
'提交失败'
,
message
:
'创建失败,'
+
res
.
message
,
message
:
res
.
message
,
type
:
'error'
showClose
:
false
});
});
}
}
})
})
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
1e630c02
...
@@ -256,10 +256,9 @@
...
@@ -256,10 +256,9 @@
createFollowPlan
(
this
.
planDetailData
).
then
(
res
=>
{
createFollowPlan
(
this
.
planDetailData
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$notify
.
success
({
this
.
$message
({
title
:
''
,
message
:
'修改成功'
,
message
:
'修改成功'
,
showClose
:
false
type
:
'success'
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -267,10 +266,9 @@
...
@@ -267,10 +266,9 @@
})
})
},
2000
)
},
2000
)
}
else
{
}
else
{
this
.
$notify
.
success
({
this
.
$message
({
title
:
'修改失败'
,
message
:
'创建失败,'
+
res
.
message
,
message
:
res
.
message
,
type
:
'error'
showClose
:
false
});
});
}
}
})
})
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录