Commit 88526e3c authored by FE-安焕焕's avatar FE-安焕焕 👣

面试官回显问题

parent b8efb240
......@@ -341,9 +341,6 @@
:loading="loading1" placeholder='请输入面试官全名' clearable @on-open-change='getfocus("formInline", "UpdateVIEW", $event)' ref='setQuery'>
<Option v-for='(item, index) in options' :key='index' :value='item.name'>{{item.name}}({{item.email}})</Option>
</Select>
<!-- <Select style="width:100%" placeholder="请选择" v-model="formInline.UpdateVIEW" :label-in-value='true' filterable clearable @on-open-change='getfocus("formInline", "UpdateVIEW", $event)'>
<Option v-for="(item,index) in interviewerNameList" :key="index" :value="item" >{{item}}</Option>
</Select> -->
</FormItem>
</Form>
......@@ -1488,10 +1485,9 @@ import {mapState} from 'vuex'
value: this.emailInline.templateContent || ''
}
if(res.data.body&&res.data.body.resumeInterviewVO){
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.interviewerName
this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.inviterName
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.inviterName
this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.interviewerName
this.formInline.UpdateTIME=res.data.body.resumeInterviewVO.seeTime
this.$refs.setQuery.setQuery(this.formInline.UpdateVIEW)
this.changeTime(this.formInline.UpdateTIME)
}else{
this.formInline.UpdateOWER=''
......@@ -1627,6 +1623,8 @@ import {mapState} from 'vuex'
formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
let info = this.options.find(item => item.name == this.formInline.UpdateVIEW)
formData.append('resumeInterviewVO.email',(info&&info.email) || '')
formData.append('sendWeixin',this.formInline.sendWeixin==true ? 1 : 0)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT)
......@@ -1869,6 +1867,7 @@ import {mapState} from 'vuex'
setTimeout(() => {
this.loading1 = false;
let list = []
query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => {
list = res
this.options = list.data.body
......@@ -1935,7 +1934,6 @@ import {mapState} from 'vuex'
}
},
getfocus(form, name, e){
console.log(form)
let vm = this;
let value = this[form][name]
if(name == 'receiveEmail') {
......@@ -1947,14 +1945,12 @@ import {mapState} from 'vuex'
}
})
} else {
console.log(e)
if (name=='UpdateTIME'&&e==false){ // 时间选择器关闭弹框的时候
this.$refs.formInline.validateField('UpdateTIME', (e) => {})
return
}
if (name=='UpdateVIEW'&&e==false){ // 选择关闭弹框的时候
this.$refs.formInline.validateField('UpdateVIEW', (e) => {
console.log(e)
})
return
}
......
......@@ -334,12 +334,9 @@
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Select v-model ='formInline.UpdateVIEW' filterable style='width:100%;' remote
:remote-method="remoteMethod"
:loading="loading1" placeholder='请输入面试官全名' clearable @on-open-change='getfocus("formInline", "UpdateVIEW", $event)' ref='selList'>
:loading="loading1" placeholder='请输入面试官全名' clearable @on-open-change='getfocus("formInline", "UpdateVIEW", $event)' ref='selList' label-in-value>
<Option v-for='(item, index) in options' :key='index' :value='item.name' >{{item.name}}({{item.email}})</Option>
</Select>
<!-- <Select style="width:100%" placeholder="请选择" v-model="formInline.UpdateVIEW" :label-in-value='true' filterable clearable @on-open-change='getfocus("formInline", "UpdateVIEW", $event)'>
<Option v-for="(item,index) in interviewerNameList" :key="index" :value="item" >{{item}}</Option>
</Select> -->
</FormItem>
</Form>
</div>
......@@ -1428,8 +1425,8 @@ export default {
value: this.emailInline.templateContent || ''
}
if(res.data.body&&res.data.body.resumeInterviewVO){
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.interviewerName
this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.inviterName
this.formInline.UpdateOWER=res.data.body.resumeInterviewVO.inviterName
this.formInline.UpdateVIEW=res.data.body.resumeInterviewVO.interviewerName
this.formInline.UpdateTIME=res.data.body.resumeInterviewVO.seeTime
this.changeTime(this.formInline.UpdateTIME)
}else{
......@@ -1575,6 +1572,8 @@ export default {
formData.append('resumeInterviewVO.resumeId',this.emailId)
formData.append('resumeInterviewVO.inviterName',this.formInline.UpdateOWER==''?'':this.formInline.UpdateOWER)
formData.append('resumeInterviewVO.interviewerName',this.formInline.UpdateVIEW==''?'':this.formInline.UpdateVIEW)
let info = this.options.find(item => item.name == this.formInline.UpdateVIEW)
formData.append('resumeInterviewVO.email',(info&&info.email) || '')
formData.append('sendWeixin',this.formInline.sendWeixin==true? 1:0)
formData.append('resumeInterviewVO.seeTime',moment( this.UpdateTIMETwo).format('YYYY/MM/DD HH:mm'))
formData.append(' flowStatus',this.flowStatusTT)
......@@ -1833,10 +1832,12 @@ export default {
remoteMethod: _debounce(function(query){
this.options = []
if (query !== '') {
this.loading1 = true;
setTimeout(() => {
this.loading1 = false;
let list = []
query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => {
list = res
this.options = list.data.body
......
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