Commit 43816f20 authored by zhangderong's avatar zhangderong

邮箱正文提示

parent 0b96bf66
Pipeline #52 canceled with stages
......@@ -315,7 +315,7 @@
</FormItem>
<FormItem label="抄送" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.copyname" @on-blur='copyname'/>
<span style="position: absolute;left:0;top:30px">输入多个邮箱地址以英文”;“分隔</span>
<span style="position: absolute;left:0;top:30px;font-size:12px;">输入多个邮箱地址以英文”;“分隔</span>
</FormItem>
<FormItem label="主题" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.theme" @on-blur='theme'/>
......@@ -1350,6 +1350,13 @@ import ckeditor from '../../components/ckeditor'
});
return
}
if( this.emailContent==''){
this.$Notice.error({
title: '提示',
desc: '邮件正文不能为空'
});
return
}
this.attachFileList=this.uploadFileList.length==0?'':this.uploadFileList
this.flowStatusTT=this.emailFlowStatus==''?'':'TO_SEE'
this.UpdateTIMETwo=this.formInline.UpdateTIME==''?'':this.formInline.UpdateTIME
......@@ -1520,7 +1527,7 @@ import ckeditor from '../../components/ckeditor'
}
},
copyname(){
if(!(/^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/.test(this.emailInline.copyname))){
if(this.emailInline.copyname!==''&&!(/^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/.test(this.emailInline.copyname))){
this.$Notice.error({
title: '提示',
desc: '请正确填写邮箱地址'
......
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