Commit 210240cb authored by zhangderong's avatar zhangderong

发送邮件bug修改

parent c1419ed1
...@@ -293,6 +293,7 @@ ...@@ -293,6 +293,7 @@
<div > <div >
<h2 style="text-align:center;color:black" v-show="this.isShowAll==false">发送邮件</h2> <h2 style="text-align:center;color:black" v-show="this.isShowAll==false">发送邮件</h2>
<h2 style="text-align:center;color:black" v-show="this.isShowAll==true">新建面试</h2> <h2 style="text-align:center;color:black" v-show="this.isShowAll==true">新建面试</h2>
<h3 style="text-align:center;color:black" v-show="this.isShowAll==true"> <span>更改为<span style="color:blue">“新建面试”</span>后,你需要从<span style="color:blue">”面试管理“</span>中对该候选人进行后续的操作。</span></h3>
</div> </div>
<div class="emailModal-title"> <div class="emailModal-title">
<div class="emailModalTitle-left"> <div class="emailModalTitle-left">
...@@ -304,14 +305,16 @@ ...@@ -304,14 +305,16 @@
</Select><br> </Select><br>
<!-- <span v-show="emailMassage==true">你尚未选择简历,请先选择简历</span> --> <!-- <span v-show="emailMassage==true">你尚未选择简历,请先选择简历</span> -->
</FormItem> </FormItem>
<FormItem label="收件人" style="margin-top:20px"> <FormItem label="收件人" style="margin-top:20px" :show-massage='false'>
<Input style="width:95%" v-model="emailInline.receiveEmail"/> <Input style="width:95%" v-model="emailInline.receiveEmail" @on-blur='receiveEmail'/>
<span style="position: absolute;left:0;top:30px">输入多个邮箱地址以英文”;“分割</span>
</FormItem> </FormItem>
<FormItem label="抄送" style="margin-top:20px"> <FormItem label="抄送" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.copyname"/> <Input style="width:95%" v-model="emailInline.copyname" @on-blur='copyname'/>
<span style="position: absolute;left:0;top:30px">输入多个邮箱地址以英文”;“分割</span>
</FormItem> </FormItem>
<FormItem label="主题" style="margin-top:20px"> <FormItem label="主题" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.theme"/> <Input style="width:95%" v-model="emailInline.theme" @on-blur='theme'/>
</FormItem> </FormItem>
</Form> </Form>
</p> </p>
...@@ -424,6 +427,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -424,6 +427,7 @@ import ckeditor from '../../components/ckeditor'
temp:'', temp:'',
uploadurl:`${sapi}/api/ckeditor/uploadImage?token=${localStorage.get('token')}&&backUrl=/getimage`, uploadurl:`${sapi}/api/ckeditor/uploadImage?token=${localStorage.get('token')}&&backUrl=/getimage`,
isShowAll:false, isShowAll:false,
isShowTwo:false,
isLimitSize:false, isLimitSize:false,
disabledSingle:true, disabledSingle:true,
emailId:'', emailId:'',
...@@ -591,7 +595,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -591,7 +595,7 @@ import ckeditor from '../../components/ckeditor'
selectFn1(e,SID,itemsta) { selectFn1(e,SID,itemsta) {
this.toseeid=SID this.toseeid=SID
this.emailIdArr.push(SID) this.emailIdArr.push(SID)
this.isShowAll=true this.isShowTwo=true
this.ITEMSTA=itemsta this.ITEMSTA=itemsta
// 准备约面 // 准备约面
if(e.target.value==3){ if(e.target.value==3){
...@@ -600,6 +604,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -600,6 +604,7 @@ import ckeditor from '../../components/ckeditor'
}) })
this.emailMOdal=true this.emailMOdal=true
this.emailFlowStatus='TO_SEE' this.emailFlowStatus='TO_SEE'
this.isShowTwo=true
} }
// 简历PASS // 简历PASS
if(e.target.value==2){ if(e.target.value==2){
...@@ -668,6 +673,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -668,6 +673,7 @@ import ckeditor from '../../components/ckeditor'
}) })
this.emailMOdal=true this.emailMOdal=true
this.emailFlowStatus='TO_SEE' this.emailFlowStatus='TO_SEE'
this.isShowTwo=true
} }
// 简历PASS // 简历PASS
if(e.target.value==3){ if(e.target.value==3){
...@@ -715,6 +721,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -715,6 +721,7 @@ import ckeditor from '../../components/ckeditor'
}) })
this.emailMOdal=true this.emailMOdal=true
this.emailFlowStatus='TO_SEE' this.emailFlowStatus='TO_SEE'
this.isShowTwo=true
} }
// 简历PASS // 简历PASS
if(e.target.value==3){ if(e.target.value==3){
...@@ -762,6 +769,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -762,6 +769,7 @@ import ckeditor from '../../components/ckeditor'
}) })
this.emailMOdal=true this.emailMOdal=true
this.emailFlowStatus='TO_SEE' this.emailFlowStatus='TO_SEE'
this.isShowTwo=true
} }
// 简历PASS // 简历PASS
if(e.target.value==1){ if(e.target.value==1){
...@@ -1212,14 +1220,21 @@ import ckeditor from '../../components/ckeditor' ...@@ -1212,14 +1220,21 @@ import ckeditor from '../../components/ckeditor'
}, },
getEmailContentValue(value){ getEmailContentValue(value){
this.temp=value this.temp=value
console.log(this.isShowTwo,45666666)
if(this.isShowTwo==true){
this.isShowAll=true
this.interviewIsShow=true
}else{
if(this.emailIdArr.length>1&&(value=='TEMP_0001'||value=='TEMP_0005'||value=='TEMP_0006')){ if(this.emailIdArr.length>1&&(value=='TEMP_0001'||value=='TEMP_0005'||value=='TEMP_0006')){
this.allEmailVilitor=true this.allEmailVilitor=true
}else{ }else{
this.allEmailVilitor=false this.allEmailVilitor=false
} }
if(value=='TEMP_0001'){ if(value=='TEMP_0001'){
this.interviewIsShow=true}else{ this.interviewIsShow=true
this.isShowAll=true}else{
this.interviewIsShow=false this.interviewIsShow=false
this.isShowAll=false
} }
this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0] this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0]
if(value=='TEMP_0001' &&this.emailId==''){ if(value=='TEMP_0001' &&this.emailId==''){
...@@ -1237,7 +1252,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -1237,7 +1252,7 @@ import ckeditor from '../../components/ckeditor'
this.interviewBtu=false this.interviewBtu=false
this.isShowAll=false this.isShowAll=false
this.emailMassage=false this.emailMassage=false
} }}
this.emailCode=value this.emailCode=value
let parmars={ let parmars={
resumeId:this.emailId==''?'':this.emailId, resumeId:this.emailId==''?'':this.emailId,
...@@ -1251,7 +1266,6 @@ import ckeditor from '../../components/ckeditor' ...@@ -1251,7 +1266,6 @@ import ckeditor from '../../components/ckeditor'
}) })
}, },
beforUpload(uploadFile){ beforUpload(uploadFile){
// console.log(3,aaa)
this.uploadFileList.push(uploadFile) this.uploadFileList.push(uploadFile)
this.fileList.push(uploadFile.name) this.fileList.push(uploadFile.name)
return false return false
...@@ -1274,6 +1288,7 @@ import ckeditor from '../../components/ckeditor' ...@@ -1274,6 +1288,7 @@ import ckeditor from '../../components/ckeditor'
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false
this.uploadFileList=[] this.uploadFileList=[]
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
}, },
...@@ -1334,6 +1349,23 @@ import ckeditor from '../../components/ckeditor' ...@@ -1334,6 +1349,23 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件成功' desc: '发送邮件成功'
}); });
this.emailMOdal=false this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
this.emailInline.templateContent=''
this.sad=''
this.fileList=[]
this.emailInline.moo=''
this.emailMOdal=false
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.emailInline.copyname=''
this.isShowTwo=false
this.uploadFileList=[]
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1342,6 +1374,23 @@ import ckeditor from '../../components/ckeditor' ...@@ -1342,6 +1374,23 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件失败' desc: '发送邮件失败'
}); });
this.emailMOdal=false this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
this.emailInline.templateContent=''
this.sad=''
this.fileList=[]
this.emailInline.moo=''
this.emailMOdal=false
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.emailInline.copyname=''
this.isShowTwo=false
this.uploadFileList=[]
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1368,6 +1417,23 @@ import ckeditor from '../../components/ckeditor' ...@@ -1368,6 +1417,23 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件成功' desc: '发送邮件成功'
}) })
this.emailMOdal=false this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
this.emailInline.templateContent=''
this.sad=''
this.fileList=[]
this.emailInline.moo=''
this.emailMOdal=false
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.isShowTwo=false
this.emailInline.copyname=''
this.uploadFileList=[]
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1376,6 +1442,23 @@ import ckeditor from '../../components/ckeditor' ...@@ -1376,6 +1442,23 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件失败' desc: '发送邮件失败'
}); });
this.emailMOdal=false this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
this.emailInline.templateContent=''
this.sad=''
this.fileList=[]
this.emailInline.moo=''
this.emailMOdal=false
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.emailInline.copyname=''
this.isShowTwo=false
this.uploadFileList=[]
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1383,7 +1466,43 @@ import ckeditor from '../../components/ckeditor' ...@@ -1383,7 +1466,43 @@ import ckeditor from '../../components/ckeditor'
}, },
changenotice(a){ changenotice(a){
console.log(a,654321) console.log(a,654321)
},
receiveEmail(){
if(this.emailInline.receiveEmail==''){
this.$Notice.error({
title: '提示',
desc: '请填写收件人'
});
}
if(!(/^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/.test(this.emailInline.receiveEmail))){
this.$Notice.error({
title: '提示',
desc: '请正确填写收件人邮箱'
});
}
},
copyname(){
if(this.emailInline.copyname==''){
this.$Notice.error({
title: '提示',
desc: '请填写抄送人'
});
}
if(!(/^((([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: '请正确填写抄送人邮箱'
});
}
},
theme(){
if(this.emailInline.theme==''){
this.$Notice.error({
title: '提示',
desc: '请填写主题'
});
} }
},
}, },
mounted(){ mounted(){
this.SearchList() this.SearchList()
...@@ -1496,6 +1615,7 @@ select{ ...@@ -1496,6 +1615,7 @@ select{
.emailModal-title{ .emailModal-title{
height: 260px; height: 260px;
width: 100%; width: 100%;
} }
.emailModalTitle-left{ .emailModalTitle-left{
height: 100%; height: 100%;
......
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