Commit 0df9f942 authored by zhangderong's avatar zhangderong

正文为空提示

parent a84960f5
......@@ -1334,16 +1334,17 @@ import ckeditor from '../../components/ckeditor'
getEditorValue(value){
this.emailContent=value
this.sad = value
if(this.emailContent==''){
this.isDisable=false
this.$Notice.error({
title: '提示',
desc: '请填写完整的信息'
});
return
}else{
this.isDisable=true
}
// if(this.sad==''){this.$Notice.error({
// title: '提示',
// desc: '正文不能为空'
// });
// }
// if(this.emailContent==''){
// this.isDisable=false
// }else{
// this.isDisable=true
// }
},
delateFile(index){
this.fileList.splice(index,1)
......@@ -1351,6 +1352,13 @@ import ckeditor from '../../components/ckeditor'
},
// 确认发送邮件
confireSendEmail(){
if(this.emailContent==''){
this.$Notice.error({
title: '提示',
desc: '正文不能为空'
});
return
}
if(this.emailInline.moo==''){
this.$Notice.error({
title: '提示',
......@@ -1440,7 +1448,6 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件成功'
});
this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
......
......@@ -1227,15 +1227,15 @@ export default {
getEditorValue(value){
this.emailContent=value
this.sad = value
if(this.emailContent==''){
this.isDisable=false
this.$Notice.error({
title: '提示',
desc: '请填写完整的信息'
});
}else{
this.isDisable=true
}
// if(this.emailContent==''){
// this.isDisable=false
// this.$Notice.error({
// title: '提示',
// desc: '请填写完整的信息'
// });
// }else{
// this.isDisable=true
// }
},
delateFile(index){
this.fileList.splice(index,1)
......@@ -1244,6 +1244,13 @@ export default {
},
// 确认发送邮件
confireSendEmail(){
if(this.emailContent==''){
this.$Notice.error({
title: '提示',
desc: '正文不能为空'
});
return
}
if(this.emailInline.moo==''){
this.$Notice.error({
title: '提示',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment