Commit 1b349a62 authored by FE-安焕焕's avatar FE-安焕焕 👣

微信通知

parent 24cf984b
...@@ -338,8 +338,11 @@ ...@@ -338,8 +338,11 @@
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'> <FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-blur='UpdateVIEW'/> <Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-blur='UpdateVIEW'/>
</FormItem> </FormItem>
<FormItem label="" prop='sendWeixin'>
<Checkbox v-model="formInline.sendWeixin"><span style="margin-left:10px">微信通知面试官</span></Checkbox>
</FormItem>
</Form> </Form>
<!-- <Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox> -->
</div> </div>
</div> </div>
<div class="ckeditor"> <div class="ckeditor">
...@@ -470,7 +473,8 @@ import {mapState} from 'vuex' ...@@ -470,7 +473,8 @@ import {mapState} from 'vuex'
formInline:{ formInline:{
UpdateOWER:'', UpdateOWER:'',
UpdateTIME:'', UpdateTIME:'',
UpdateVIEW:'' UpdateVIEW:'',
sendWeixin: true
}, },
emailInline:{ emailInline:{
moo:'', moo:'',
...@@ -727,6 +731,7 @@ import {mapState} from 'vuex' ...@@ -727,6 +731,7 @@ import {mapState} from 'vuex'
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.body.code==0){ if(res.data.body.code==0){
...@@ -1296,6 +1301,7 @@ import {mapState} from 'vuex' ...@@ -1296,6 +1301,7 @@ import {mapState} from 'vuex'
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
}, },
// 鼠标滑过事件 // 鼠标滑过事件
ahove(index,vvv){ ahove(index,vvv){
...@@ -1416,6 +1422,7 @@ import {mapState} from 'vuex' ...@@ -1416,6 +1422,7 @@ import {mapState} from 'vuex'
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.isLimitSize=false this.isLimitSize=false
...@@ -1510,6 +1517,7 @@ import {mapState} from 'vuex' ...@@ -1510,6 +1517,7 @@ import {mapState} from 'vuex'
formData.append('resumeInterviewVO.resumeId',this.emailId) formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER) formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW) formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
formData.append('sendWeixin',this.formInline.sendWeixin)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm')) formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT) formData.append(' flowStatus',this.flowStatusTT)
this.isDisable=false this.isDisable=false
...@@ -1536,9 +1544,11 @@ import {mapState} from 'vuex' ...@@ -1536,9 +1544,11 @@ import {mapState} from 'vuex'
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1563,9 +1573,11 @@ import {mapState} from 'vuex' ...@@ -1563,9 +1573,11 @@ import {mapState} from 'vuex'
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1614,6 +1626,7 @@ import {mapState} from 'vuex' ...@@ -1614,6 +1626,7 @@ import {mapState} from 'vuex'
this.isLimitSize=false this.isLimitSize=false
this.emailInline.copyname='' this.emailInline.copyname=''
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1642,6 +1655,7 @@ import {mapState} from 'vuex' ...@@ -1642,6 +1655,7 @@ import {mapState} from 'vuex'
this.isShowTwo=false this.isShowTwo=false
this.isLimitSize=false this.isLimitSize=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1671,6 +1685,9 @@ import {mapState} from 'vuex' ...@@ -1671,6 +1685,9 @@ import {mapState} from 'vuex'
this.checkboxList = [] this.checkboxList = []
this.delateARRALL = [] this.delateARRALL = []
this.flowStatusarr = [] this.flowStatusarr = []
this.ajaxData.map(item => {
item.STATES = false
})
}, },
transpond() { //打开转发简历的modal transpond() { //打开转发简历的modal
if(this.interviewee.length == 0) { if(this.interviewee.length == 0) {
...@@ -1717,7 +1734,7 @@ import {mapState} from 'vuex' ...@@ -1717,7 +1734,7 @@ import {mapState} from 'vuex'
email: this.transpondFrom.interviewerName email: this.transpondFrom.interviewerName
} }
forwardResume(params).then(res => { forwardResume(params).then(res => {
if (res.success) { if (res.data.success == true) {
this.clearInterviewee() this.clearInterviewee()
this.modal8 = false this.modal8 = false
this.$Notice.warn({ this.$Notice.warn({
...@@ -1736,6 +1753,7 @@ import {mapState} from 'vuex' ...@@ -1736,6 +1753,7 @@ import {mapState} from 'vuex'
}) })
}, },
remoteMethod: _debounce(function(query){ remoteMethod: _debounce(function(query){
this.options = []
if (query !== '') { if (query !== '') {
this.loading1 = true; this.loading1 = true;
setTimeout(() => { setTimeout(() => {
...@@ -1743,17 +1761,13 @@ import {mapState} from 'vuex' ...@@ -1743,17 +1761,13 @@ import {mapState} from 'vuex'
let list = [] let list = []
findCompanyEmailByKey(query).then(res => { findCompanyEmailByKey(query).then(res => {
list = res list = res
this.options = list.data.body.filter(item => item.name.toLowerCase().indexOf(query.toLowerCase()) > -1 || item.email.toLowerCase().indexOf(query.toLowerCase()) > -1); this.options = list.data.body
}, 200);
if (this.options.length == 0) {
this.$Notice.warning({title: '提示',desc: '面试官姓名无效,请您再次核对'})
}
}) })
}, 500);
} else { } else {
this.options = []; this.options = [];
} }
}, 500), }),
changenotice(a){ changenotice(a){
}, },
receiveEmail(){ receiveEmail(){
...@@ -1924,7 +1938,7 @@ select{ ...@@ -1924,7 +1938,7 @@ select{
background:rgba(241,241,241,1); background:rgba(241,241,241,1);
} }
.emailModal-title{ .emailModal-title{
height: 260px; height: 280px;
width: 100%; width: 100%;
} }
......
...@@ -330,8 +330,10 @@ ...@@ -330,8 +330,10 @@
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'> <FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-blur='UpdateVIEW'/> <Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-blur='UpdateVIEW'/>
</FormItem> </FormItem>
<FormItem label="" prop='sendWeixin'>
<Checkbox v-model="formInline.sendWeixin"><span style="margin-left:10px">微信通知面试官</span></Checkbox>
</FormItem>
</Form> </Form>
<!-- <Checkbox v-model="disabledSingle" style="margin-left:40px" @on-change='changenotice'><span style="margin-left:20px">微信通知面试官</span></Checkbox> -->
</div> </div>
</div> </div>
<div class="ckeditor"> <div class="ckeditor">
...@@ -455,7 +457,8 @@ export default { ...@@ -455,7 +457,8 @@ export default {
formInline:{ formInline:{
UpdateOWER:'', UpdateOWER:'',
UpdateTIME:'', UpdateTIME:'',
UpdateVIEW:'' UpdateVIEW:'',
sendWeixin: true
}, },
editorObject: {type: '', value: ''}, editorObject: {type: '', value: ''},
emailInline:{ emailInline:{
...@@ -686,6 +689,7 @@ export default { ...@@ -686,6 +689,7 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.body.code==0){ if(res.data.body.code==0){
...@@ -1221,6 +1225,7 @@ export default { ...@@ -1221,6 +1225,7 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
}, },
// 鼠标滑过事件 // 鼠标滑过事件
ahove(index,vvv){ ahove(index,vvv){
...@@ -1342,6 +1347,7 @@ export default { ...@@ -1342,6 +1347,7 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.isLimitSize=false this.isLimitSize=false
...@@ -1423,7 +1429,7 @@ export default { ...@@ -1423,7 +1429,7 @@ export default {
var formData= new FormData() var formData= new FormData()
if(this.attachFileList.length!==0){ if(this.attachFileList.length!==0){
this.attachFileList.map(item=>{ this.attachFileList.map(item=>{
formData.append('attachFileList',item) formData.append('attachFileList',item)
}) })
}else{ }else{
formData.append('attachFileList','') formData.append('attachFileList','')
...@@ -1437,6 +1443,7 @@ export default { ...@@ -1437,6 +1443,7 @@ export default {
formData.append('resumeInterviewVO.resumeId',this.emailId) formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER) formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW) formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
formData.append('sendWeixin',this.formInline.sendWeixin)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm')) formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT) formData.append(' flowStatus',this.flowStatusTT)
this.isDisable=false this.isDisable=false
...@@ -1463,9 +1470,11 @@ export default { ...@@ -1463,9 +1470,11 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1490,9 +1499,11 @@ export default { ...@@ -1490,9 +1499,11 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1537,10 +1548,12 @@ export default { ...@@ -1537,10 +1548,12 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.isShowTwo=false this.isShowTwo=false
this.isLimitSize=false this.isLimitSize=false
this.emailInline.copyname='' this.emailInline.copyname=''
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
if(res.data.success==false){ if(res.data.success==false){
...@@ -1565,10 +1578,12 @@ export default { ...@@ -1565,10 +1578,12 @@ export default {
this.formInline.UpdateOWER='' this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW='' this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME='' this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname='' this.emailInline.copyname=''
this.isShowTwo=false this.isShowTwo=false
this.isLimitSize=false this.isLimitSize=false
this.uploadFileList=[] this.uploadFileList=[]
this.clearInterviewee()
this.SouSuo(this.pageT) this.SouSuo(this.pageT)
} }
}) })
...@@ -1653,26 +1668,22 @@ export default { ...@@ -1653,26 +1668,22 @@ export default {
sendNotice() { sendNotice() {
this.$refs.transpondFrom.validate(valid => { this.$refs.transpondFrom.validate(valid => {
if(!this.transpondFrom.interviewerName){ if(!this.transpondFrom.interviewerName){
console.log('====')
return return
} }
if (this.interviewee.length < 1) { if (this.interviewee.length < 1) {
this.$Notice.warning({title: '提示',desc: '发送内容为空,请勾选您要发送的简历'}) this.$Notice.warning({title: '提示',desc: '发送内容为空,请勾选您要发送的简历'})
return return
} }
console.log('-----')
let resumeIdList = [] let resumeIdList = []
this.interviewee.map(item => { this.interviewee.map(item => {
resumeIdList.push(item.id) resumeIdList.push(item.id)
}) })
console.log('=====')
let params = { let params = {
resumeIdList, resumeIdList,
email: this.transpondFrom.interviewerName email: this.transpondFrom.interviewerName
} }
console.log('++++',)
forwardResume(params).then(res => { forwardResume(params).then(res => {
if (res.success) { if (res.data.success == true) {
this.clearInterviewee() this.clearInterviewee()
this.modal8 = false this.modal8 = false
this.$Notice.warn({ this.$Notice.warn({
...@@ -1691,6 +1702,7 @@ export default { ...@@ -1691,6 +1702,7 @@ export default {
}) })
}, },
remoteMethod: _debounce(function(query){ remoteMethod: _debounce(function(query){
this.options = []
if (query !== '') { if (query !== '') {
this.loading1 = true; this.loading1 = true;
setTimeout(() => { setTimeout(() => {
...@@ -1698,42 +1710,41 @@ export default { ...@@ -1698,42 +1710,41 @@ export default {
let list = [] let list = []
findCompanyEmailByKey(query).then(res => { findCompanyEmailByKey(query).then(res => {
list = res list = res
this.options = list.data.body.filter(item => item.name.toLowerCase().indexOf(query.toLowerCase()) > -1 || item.email.toLowerCase().indexOf(query.toLowerCase()) > -1); this.options = list.data.body
}, 200); }, 200);
if (this.options.length == 0) { })
this.$Notice.warning({title: '提示',desc: '面试官姓名无效,请您再次核对'})
}
})
} else { } else {
this.options = []; this.options = [];
} }
}, 500), }, 500),
removeInterviewee (value) { removeInterviewee (value) {
this.interviewee.map((item, index) => { this.interviewee.map((item, index) => {
if (value&&item.id == value.id) { if (value&&item.id == value.id) {
this.interviewee.splice(index, 1) this.interviewee.splice(index, 1)
}
})
},
addInterviewee (data) {
let flag = false
this.interviewee.map(item => {
if (data&&item.id == data.id) {
flag = true
return
}
})
if (!flag) {
this.interviewee.push(data)
}
},
clearInterviewee (value) {
this.interviewee = []
this.checkboxList = []
this.delateARRALL = []
this.flowStatusarr = []
} }
})
},
addInterviewee (data) {
let flag = false
this.interviewee.map(item => {
if (data&&item.id == data.id) {
flag = true
return
}
})
if (!flag) {
this.interviewee.push(data)
}
},
clearInterviewee (value) {
this.interviewee = []
this.checkboxList = []
this.delateARRALL = []
this.flowStatusarr = []
this.ajaxData.map(item => {
item.STATES = false
})
}
}, },
watch: { watch: {
'$route' (to, from) { '$route' (to, from) {
......
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