Commit 0dc37eb1 authored by zhangderong's avatar zhangderong

邮箱问题修复

parent 210240cb
Pipeline #31 canceled with stages
......@@ -9,7 +9,7 @@
<Icon :type="menu.icon" style="font-size:20px;font-weight:bold"/>
{{menu.item}}
</template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="levelThreeName">{{child.item}}</MenuItem>
<MenuItem v-for="(child,index) in menu.child" :key="index" :name="child.name" @click="go" :active-name="levelThreeName">{{child.item}}</MenuItem>
</Submenu>
</template>
</Menu>
......
......@@ -307,11 +307,11 @@
</FormItem>
<FormItem label="收件人" style="margin-top:20px" :show-massage='false'>
<Input style="width:95%" v-model="emailInline.receiveEmail" @on-blur='receiveEmail'/>
<span style="position: absolute;left:0;top:30px">输入多个邮箱地址以英文”;“分</span>
<span style="position: absolute;left:0;top:30px">输入多个邮箱地址以英文”;“分</span>
</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">输入多个邮箱地址以英文”;“分</span>
</FormItem>
<FormItem label="主题" style="margin-top:20px">
<Input style="width:95%" v-model="emailInline.theme" @on-blur='theme'/>
......@@ -320,8 +320,8 @@
</p>
</div>
<div class="emailModalTitle-right" v-show="interviewIsShow==true">
<h3 style="text-align:center;margin-top:10px">请输入约面信息</h3>
<Form :label-width="75" ref="formInline" :rules="ruleInline" :model="formInline" style="margin-top:27px" label-position="left">
<h3 style="text-align:center;margin-top:20px">请输入约面信息</h3>
<Form :label-width="75" ref="formInline" :rules="ruleInline" :model="formInline" style="margin-top:35px" label-position="left">
<FormItem label="邀约人" style="margin-top:20px" prop="UpdateOWER">
<Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5"/>
</FormItem>
......@@ -332,7 +332,7 @@
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5"/>
</FormItem>
</Form>
<Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox>
<!-- <Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox> -->
</div>
</div>
<div class="ckeditor">
......@@ -357,8 +357,8 @@
</div>
<div slot='footer' style="text-align:center" class="Ubt">
<Button type='primary' @click='emailModalPush'>取消</Button>
<Button type='primary' @click='confireSendEmail' v-show="this.isShowAll==false">发送</Button>
<Button type='primary' @click='confireSendEmail' v-show="this.isShowAll==true">添加并发送</Button>
<Button type='primary' @click='confireSendEmail' v-show="this.isShowAll==false" :disabled="!isDisable">发送</Button>
<Button type='primary' @click='confireSendEmail' v-show="this.isShowAll==true" :disabled="!isDisable">添加并发送</Button>
</div>
</Modal>
</div>
......@@ -429,6 +429,7 @@ import ckeditor from '../../components/ckeditor'
isShowAll:false,
isShowTwo:false,
isLimitSize:false,
isDisable:true,
disabledSingle:true,
emailId:'',
RescopyArr:[],
......@@ -997,8 +998,6 @@ import ckeditor from '../../components/ckeditor'
// 选择input元素
selectInputElement(index,doID,doStatus,sss){
this.DOWNLOAD=doID
this.emailIdArr.push(doID)
this.emailId=doID
sss=!sss
this.ajaxData[index].STATES=sss
Array.prototype.indexOf = function(val) {
......@@ -1014,16 +1013,17 @@ import ckeditor from '../../components/ckeditor'
}
}
if(sss==true){
this.emailIdArr.push(doID)
this.emailId=doID
this.delateARRALL.push(doID)
this.delateARRALL2.push(doID)
this.flowStatusarr.push(doStatus)
console.log(this.delateARRALL,8888888, this.ajaxData[index].STATES)
}
if(sss==false){
this.delateARRALL.remove(doID)
this.delateARRALL2.remove(doID)
this.flowStatusarr.remove(doStatus)
console.log(this.delateARRALL,5555555, this.ajaxData[index].STATES)
this.emailIdArr.push(doID)
}
},
//查看简历详情
......@@ -1220,15 +1220,22 @@ import ckeditor from '../../components/ckeditor'
},
getEmailContentValue(value){
this.temp=value
console.log(this.isShowTwo,45666666)
if(this.isShowTwo==true){
this.isShowAll=true
this.interviewIsShow=true
}else{
console.log(99999999999999)
if(this.emailIdArr.length>1&&(value=='TEMP_0001'||value=='TEMP_0005'||value=='TEMP_0006')){
this.allEmailVilitor=true
}else{
}else {
this.allEmailVilitor=false
console.log(66666666666666)
if(this.temp='TEMP_0001'){
console.log(44444444444444)
this.isShowAll=true
}else{
this.isShowAll=false
}
}
if(value=='TEMP_0001'){
this.interviewIsShow=true
......@@ -1249,8 +1256,9 @@ import ckeditor from '../../components/ckeditor'
this.emailMassage=true
}
else{
if(value=='TEMP_0001'){this.isShowAll=true}else{this.isShowAll=false}
this.interviewBtu=false
this.isShowAll=false
this.emailMassage=false
}}
this.emailCode=value
......@@ -1289,6 +1297,7 @@ import ckeditor from '../../components/ckeditor'
this.formInline.UpdateTIME=''
this.emailInline.copyname=''
this.isShowTwo=false
this.isLimitSize=false
this.uploadFileList=[]
this.SouSuo(this.pageT)
},
......@@ -1297,26 +1306,38 @@ import ckeditor from '../../components/ckeditor'
},
delateFile(index){
this.fileList.splice(index,1)
this.isLimitSize=false
},
// 确认发送邮件
confireSendEmail(){
if(this.emailInline.moo==''||this.emailInline.receiveEmail==''||this.emailInline.copyname==''||this.emailInline.theme==''||this.emailInline.UpdateOWER==''||this.emailInline.UpdateVIEW==''||this.emailInline.UpdateTIME==''){
this.$Notice.error({
title: '提示',
desc: '请填写完整的信息'
});
return
}
if((this.temp=='TEMP_0001'|| this.temp=='TEMP_0005'|| this.temp=='TEMP_0006')){
if(this.emailId==''){
this.$Notice.error({
title: '提示',
desc: '请先选择简历'
});
return
}
}
this.uploadFileList.map(item=>{
if(item.size/1024 > 10240){
console.log(item.size,67676767)
this.isLimitSize=true
}else{
this.isLimitSize=false
}
})
console.log(872343678,)
if(this.isLimitSize==true){
this.$Notice.error({
title: '提示',
desc: '单个文件不能大于10M'
});
// this.emailMOdal=false
// this.SouSuo(this.pageT)
// this.uploadFileList=[]
return
}
this.attachFileList=this.uploadFileList.length==0?'':this.uploadFileList
......@@ -1342,13 +1363,16 @@ import ckeditor from '../../components/ckeditor'
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT)
this.isDisable=false
sendEmail(formData).then(res=>{
this.isDisable=true
if(res.data.success==true){
this.$Notice.success({
title: '提示',
desc: '发送邮件成功'
});
this.emailMOdal=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
......@@ -1374,6 +1398,7 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件失败'
});
this.emailMOdal=false
// this.isDisable=true
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
......@@ -1410,6 +1435,7 @@ import ckeditor from '../../components/ckeditor'
formData.append('ccEmail',this.emailInline.copyname)
formData.append('emailContent',this.emailContent)
formData.append(' flowStatus',this.flowStatusTT)
this.isDisable=false
sendEmail(formData).then(res=>{
if(res.data.success==true){
this.$Notice.success({
......@@ -1417,6 +1443,7 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件成功'
})
this.emailMOdal=false
// this.isDisable=true
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
......@@ -1432,6 +1459,7 @@ import ckeditor from '../../components/ckeditor'
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.isShowTwo=false
this.isLimitSize=false
this.emailInline.copyname=''
this.uploadFileList=[]
this.SouSuo(this.pageT)
......@@ -1442,6 +1470,7 @@ import ckeditor from '../../components/ckeditor'
desc: '发送邮件失败'
});
this.emailMOdal=false
// this.isDisable=true
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
......@@ -1458,6 +1487,7 @@ import ckeditor from '../../components/ckeditor'
this.formInline.UpdateTIME=''
this.emailInline.copyname=''
this.isShowTwo=false
this.isLimitSize=false
this.uploadFileList=[]
this.SouSuo(this.pageT)
}
......@@ -1468,26 +1498,15 @@ import ckeditor from '../../components/ckeditor'
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: '请正确填写收件人邮箱'
});
return
}
},
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: '提示',
......
......@@ -10,7 +10,6 @@ CKEDITOR.editorConfig = function( config ) {
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
......@@ -20,10 +19,11 @@ CKEDITOR.editorConfig = function( config ) {
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
{ name: 'about', groups: [ 'about' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
];
config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Source,Save,Templates,NewPage,Preview,Print,About,ShowBlocks,Flash,PageBreak,Iframe,Anchor,SelectAll,BidiLtr,BidiRtl,Language,CreateDiv,Superscript,Subscript,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace;Smiley,Smiley,Replace';
config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Save,Templates,NewPage,Preview,Print,About,ShowBlocks,Flash,PageBreak,Iframe,Anchor,SelectAll,BidiLtr,BidiRtl,Language,CreateDiv,Superscript,Subscript,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace;Smiley,Smiley,Replace';
config.removeDialogTabs = 'image:advanced;link:advanced';
config.removePlugins = 'elementspath,resize'; // 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮
config.image_previewText = ' '; // 图片信息面板预览区内容的文字内容,默认显示CKEditor自带的内容
......
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