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

面试官回显问题

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