Commit ef7ae8d0 authored by zhangderong's avatar zhangderong

渠道简历

parent ebcb63e9
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
</template> </template>
<script> <script>
import moment from 'moment' import moment from 'moment'
import {adoptOneSeeResumeList, serchList,downloadone,sousuoList,seedetail,PASS,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview,TODORes,getEmailMoo,getEmailContent} from '../../api/resume.server.js' import {adoptOneSeeResumeList, serchList,downloadone,sousuoList,seedetail,PASS,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview,TODORes,getEmailMoo,getEmailContent,sendEmail} from '../../api/resume.server.js'
import { import {
sapi sapi
} from '../../config' } from '../../config'
...@@ -1111,99 +1111,99 @@ export default { ...@@ -1111,99 +1111,99 @@ export default {
}, },
// 发送邮件 // 发送邮件
sendEmail(){ sendEmail(){
this.emailInline.modalArr=[] this.emailInline.modalArr=[]
this.emailMOdal=true this.emailMOdal=true
getEmailMoo().then(res=>{ getEmailMoo().then(res=>{
this.emailInline.modalArr=res.data.body this.emailInline.modalArr=res.data.body
}) })
}, },
getEmailContentValue(value){ getEmailContentValue(value){
this.temp=value this.temp=value
if(this.isShowTwo==true){ if(this.isShowTwo==true){
this.isShowAll=true this.isShowAll=true
this.interviewIsShow=true this.interviewIsShow=true
}else{ }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(this.temp=='TEMP_0001'){ if(this.temp=='TEMP_0001'){
this.isShowAll=true
}else{
this.isShowAll=false
}
}
if(value=='TEMP_0001'){
this.interviewIsShow=true
this.isShowAll=true this.isShowAll=true
}else{ }else{
this.interviewIsShow=false
this.isShowAll=false this.isShowAll=false
} }
this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0] }
if(value=='TEMP_0001' &&this.emailId==''){ if(value=='TEMP_0001'){
this.interviewBtu=true this.interviewIsShow=true
this.isShowAll=true this.isShowAll=true
this.emailMassage=true }else{
} this.interviewIsShow=false
else if(value=='TEMP_0005' && this.emailId==''){ this.isShowAll=false
this.emailMassage=true }
} this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0]
else if(value=='TEMP_0006' && this.emailId==''){ if(value=='TEMP_0001' &&this.emailId==''){
this.emailMassage=true this.interviewBtu=true
} this.isShowAll=true
else{ this.emailMassage=true
if(value=='TEMP_0001'){this.isShowAll=true}else{this.isShowAll=false} }
this.interviewBtu=false else if(value=='TEMP_0005' && this.emailId==''){
this.emailMassage=true
this.emailMassage=false }
}} else if(value=='TEMP_0006' && this.emailId==''){
this.emailCode=value this.emailMassage=true
let parmars={ }
resumeId:this.emailId==''?'':this.emailId, else{
templateCode:this.emailCode if(value=='TEMP_0001'){this.isShowAll=true}else{this.isShowAll=false}
} this.interviewBtu=false
getEmailContent(parmars).then(res=>{
this.emailInline.theme=res.data.body.templateSubject this.emailMassage=false
this.emailInline.receiveEmail=res.data.body.receiveEmail }}
this.emailInline.templateContent=res.data.body.templateContent this.emailCode=value
console.log(this.emailInline.templateContent,55555555555555,res.data.body.templateContent) let parmars={
this.sad=this.emailInline.templateContent resumeId:this.emailId==''?'':this.emailId,
console.log(this.sad,2222222) templateCode:this.emailCode
if(res.data.body&&res.data.body.resumeInterviewVO){ }
console.log(res.data.body.resumeInterviewVO.interviewerName,666666666) getEmailContent(parmars).then(res=>{
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.interviewerName this.emailInline.theme=res.data.body.templateSubject
this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.inviterName this.emailInline.receiveEmail=res.data.body.receiveEmail
this.formInline.UpdateTIME=res.data.body.resumeInterviewVO.seeTime this.emailInline.templateContent=res.data.body.templateContent
}else{ console.log(this.emailInline.templateContent,55555555555555,res.data.body.templateContent)
this.formInline.UpdateOWER='' this.sad=this.emailInline.templateContent
this.formInline.UpdateVIEW='' console.log(this.sad,2222222)
this.formInline.UpdateTIME='' if(res.data.body&&res.data.body.resumeInterviewVO){
} console.log(res.data.body.resumeInterviewVO.interviewerName,666666666)
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.interviewerName
}) this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.inviterName
}, this.formInline.UpdateTIME=res.data.body.resumeInterviewVO.seeTime
}else{
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
}
})
},
uploadFile(){ uploadFile(){
// this.uploadFileList=[] // this.uploadFileList=[]
this.limentName=0 this.limentName=0
}, },
beforUpload(uploadFile){ beforUpload(uploadFile){
let isLiment=false let isLiment=false
if(uploadFile.size/1024 > 10240){ if(uploadFile.size/1024 > 10240){
isLiment=true isLiment=true
this.limentName+=1 this.limentName+=1
if(this.limentName==1){ if(this.limentName==1){
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: '单个文件不能大于10M' desc: '单个文件不能大于10M'
}) })
}
}else{
this.fileList.push(uploadFile.name)
this.uploadFileList.push(uploadFile)
console.log(this.uploadFileList,77777777)
} }
}else{ return false
this.fileList.push(uploadFile.name)
this.uploadFileList.push(uploadFile)
console.log(this.uploadFileList,77777777)
}
return false
}, },
// 发送全部内容 // 发送全部内容
sendContent(){}, sendContent(){},
...@@ -1230,6 +1230,7 @@ export default { ...@@ -1230,6 +1230,7 @@ export default {
}, },
getEditorValue(value){ getEditorValue(value){
this.emailContent=value this.emailContent=value
this.sad = value
console.log(this.emailContent,89889) console.log(this.emailContent,89889)
if(this.emailContent==''){ if(this.emailContent==''){
this.isDisable=false this.isDisable=false
......
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