Commit 0df9f942 authored by zhangderong's avatar zhangderong

正文为空提示

parent a84960f5
...@@ -1334,16 +1334,17 @@ import ckeditor from '../../components/ckeditor' ...@@ -1334,16 +1334,17 @@ import ckeditor from '../../components/ckeditor'
getEditorValue(value){ getEditorValue(value){
this.emailContent=value this.emailContent=value
this.sad = value this.sad = value
if(this.emailContent==''){ // if(this.sad==''){this.$Notice.error({
this.isDisable=false // title: '提示',
this.$Notice.error({ // desc: '正文不能为空'
title: '提示', // });
desc: '请填写完整的信息' // }
}); // if(this.emailContent==''){
return // this.isDisable=false
}else{
this.isDisable=true // }else{
} // this.isDisable=true
// }
}, },
delateFile(index){ delateFile(index){
this.fileList.splice(index,1) this.fileList.splice(index,1)
...@@ -1351,6 +1352,13 @@ import ckeditor from '../../components/ckeditor' ...@@ -1351,6 +1352,13 @@ import ckeditor from '../../components/ckeditor'
}, },
// 确认发送邮件 // 确认发送邮件
confireSendEmail(){ confireSendEmail(){
if(this.emailContent==''){
this.$Notice.error({
title: '提示',
desc: '正文不能为空'
});
return
}
if(this.emailInline.moo==''){ if(this.emailInline.moo==''){
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
...@@ -1440,7 +1448,6 @@ import ckeditor from '../../components/ckeditor' ...@@ -1440,7 +1448,6 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件成功' desc: '发送邮件成功'
}); });
this.emailMOdal=false this.emailMOdal=false
this.emailInline.modalArr=[] this.emailInline.modalArr=[]
this.emailInline.theme='' this.emailInline.theme=''
this.emailInline.receiveEmail='' this.emailInline.receiveEmail=''
......
...@@ -1227,15 +1227,15 @@ export default { ...@@ -1227,15 +1227,15 @@ export default {
getEditorValue(value){ getEditorValue(value){
this.emailContent=value this.emailContent=value
this.sad = value this.sad = value
if(this.emailContent==''){ // if(this.emailContent==''){
this.isDisable=false // this.isDisable=false
this.$Notice.error({ // this.$Notice.error({
title: '提示', // title: '提示',
desc: '请填写完整的信息' // desc: '请填写完整的信息'
}); // });
}else{ // }else{
this.isDisable=true // this.isDisable=true
} // }
}, },
delateFile(index){ delateFile(index){
this.fileList.splice(index,1) this.fileList.splice(index,1)
...@@ -1244,6 +1244,13 @@ export default { ...@@ -1244,6 +1244,13 @@ export default {
}, },
// 确认发送邮件 // 确认发送邮件
confireSendEmail(){ confireSendEmail(){
if(this.emailContent==''){
this.$Notice.error({
title: '提示',
desc: '正文不能为空'
});
return
}
if(this.emailInline.moo==''){ if(this.emailInline.moo==''){
this.$Notice.error({ this.$Notice.error({
title: '提示', 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