提交 1e630c02 编写于 作者: tao.wu's avatar tao.wu

no message

上级 ee3c7282
...@@ -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();
......
...@@ -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
}); });
} }
}) })
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册