Commit ef7ae8d0 authored by zhangderong's avatar zhangderong

渠道简历

parent ebcb63e9
......@@ -361,7 +361,7 @@
</template>
<script>
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 {
sapi
} from '../../config'
......@@ -1111,99 +1111,99 @@ export default {
},
// 发送邮件
sendEmail(){
this.emailInline.modalArr=[]
this.emailMOdal=true
getEmailMoo().then(res=>{
this.emailInline.modalArr=res.data.body
})
},
getEmailContentValue(value){
this.temp=value
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')){
this.allEmailVilitor=true
}else {
this.allEmailVilitor=false
if(this.temp=='TEMP_0001'){
this.isShowAll=true
}else{
this.isShowAll=false
}
}
if(value=='TEMP_0001'){
this.interviewIsShow=true
this.emailInline.modalArr=[]
this.emailMOdal=true
getEmailMoo().then(res=>{
this.emailInline.modalArr=res.data.body
})
},
getEmailContentValue(value){
this.temp=value
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')){
this.allEmailVilitor=true
}else {
this.allEmailVilitor=false
if(this.temp=='TEMP_0001'){
this.isShowAll=true
}else{
this.interviewIsShow=false
}else{
this.isShowAll=false
}
this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0]
if(value=='TEMP_0001' &&this.emailId==''){
this.interviewBtu=true
this.isShowAll=true
this.emailMassage=true
}
else if(value=='TEMP_0005' && this.emailId==''){
this.emailMassage=true
}
else if(value=='TEMP_0006' && this.emailId==''){
this.emailMassage=true
}
else{
if(value=='TEMP_0001'){this.isShowAll=true}else{this.isShowAll=false}
this.interviewBtu=false
this.emailMassage=false
}}
this.emailCode=value
let parmars={
resumeId:this.emailId==''?'':this.emailId,
templateCode:this.emailCode
}
getEmailContent(parmars).then(res=>{
this.emailInline.theme=res.data.body.templateSubject
this.emailInline.receiveEmail=res.data.body.receiveEmail
this.emailInline.templateContent=res.data.body.templateContent
console.log(this.emailInline.templateContent,55555555555555,res.data.body.templateContent)
this.sad=this.emailInline.templateContent
console.log(this.sad,2222222)
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=''
}
})
},
}
}
if(value=='TEMP_0001'){
this.interviewIsShow=true
this.isShowAll=true
}else{
this.interviewIsShow=false
this.isShowAll=false
}
this.emailId=this.emailIdArr.length==0?'':this.emailIdArr[0]
if(value=='TEMP_0001' &&this.emailId==''){
this.interviewBtu=true
this.isShowAll=true
this.emailMassage=true
}
else if(value=='TEMP_0005' && this.emailId==''){
this.emailMassage=true
}
else if(value=='TEMP_0006' && this.emailId==''){
this.emailMassage=true
}
else{
if(value=='TEMP_0001'){this.isShowAll=true}else{this.isShowAll=false}
this.interviewBtu=false
this.emailMassage=false
}}
this.emailCode=value
let parmars={
resumeId:this.emailId==''?'':this.emailId,
templateCode:this.emailCode
}
getEmailContent(parmars).then(res=>{
this.emailInline.theme=res.data.body.templateSubject
this.emailInline.receiveEmail=res.data.body.receiveEmail
this.emailInline.templateContent=res.data.body.templateContent
console.log(this.emailInline.templateContent,55555555555555,res.data.body.templateContent)
this.sad=this.emailInline.templateContent
console.log(this.sad,2222222)
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(){
// this.uploadFileList=[]
this.limentName=0
},
beforUpload(uploadFile){
let isLiment=false
if(uploadFile.size/1024 > 10240){
isLiment=true
this.limentName+=1
if(this.limentName==1){
this.$Notice.error({
title: '提示',
desc: '单个文件不能大于10M'
})
let isLiment=false
if(uploadFile.size/1024 > 10240){
isLiment=true
this.limentName+=1
if(this.limentName==1){
this.$Notice.error({
title: '提示',
desc: '单个文件不能大于10M'
})
}
}else{
this.fileList.push(uploadFile.name)
this.uploadFileList.push(uploadFile)
console.log(this.uploadFileList,77777777)
}
}else{
this.fileList.push(uploadFile.name)
this.uploadFileList.push(uploadFile)
console.log(this.uploadFileList,77777777)
}
return false
return false
},
// 发送全部内容
sendContent(){},
......@@ -1230,6 +1230,7 @@ export default {
},
getEditorValue(value){
this.emailContent=value
this.sad = value
console.log(this.emailContent,89889)
if(this.emailContent==''){
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