Commit 4cc83dad authored by zhangderong's avatar zhangderong

获取职位列表

parent 0acef06c
...@@ -150,4 +150,10 @@ export function getpdfUrl(parmars) { ...@@ -150,4 +150,10 @@ export function getpdfUrl(parmars) {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
//获取职位列表
export function getlist(parmars) {
return axios.get(`${sapi}/api/resume/findPositionList?optSourceCode=${parmars.optSourceCode}`, {headers: {
'Content-Type':'application/json'
}})
}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</FormItem> </FormItem>
<FormItem label="职位:" style="margin:20px 0 40px 0px"> <FormItem label="职位:" style="margin:20px 0 40px 0px">
<Select v-model="position" filterable multiple style="width:96%" placeholder="不限"> <Select v-model="position" filterable multiple style="width:96%" placeholder="不限">
<Option v-for="item in positionArr" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="(item,index) in positionArr" :value="index" :key="index">{{ item}}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Form> </Form>
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
</template> </template>
<script> <script>
import moment from 'moment' import moment from 'moment'
import { serchList,downloadone,sousuoList,seedetail,PASS,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview,updatastatus,TODORes,sendEmail,getEmailMoo,getEmailContent,uploadimage, findCompanyEmailByKey,forwardResume} from '../../api/resume.server' import { serchList,downloadone,sousuoList,seedetail,PASS,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview,updatastatus,getlist,TODORes,sendEmail,getEmailMoo,getEmailContent,uploadimage, findCompanyEmailByKey,forwardResume} from '../../api/resume.server'
import {Serchinterviewor} from '../../api/interview.server.js' import {Serchinterviewor} from '../../api/interview.server.js'
import qs from 'qs' import qs from 'qs'
import { import {
...@@ -435,54 +435,6 @@ import {mapState} from 'vuex' ...@@ -435,54 +435,6 @@ import {mapState} from 'vuex'
interviewerNameList: [], interviewerNameList: [],
position:[], position:[],
positionArr:[ positionArr:[
{value:'1',
label:'sd水电费付付付付付付付付付付鼎折覆餗付付付付付付维恩二二二二二二二二二二'
},
{value:'2',
label:'kbj'
},
{value:'3',
label:'kkk'
},
{value:'4',
label:'vvv'
},
{value:'5',
label:'ccc'
},
{value:'6',
label:'www'
},
{value:'7',
label:'qqq'
},
{value:'8',
label:'aaa'
},
{value:'9',
label:'zzz'
},
{value:'21',
label:'lll'
},
{value:'33',
label:'xxx'
},
{value:'43',
label:'hhh'
},
{value:'17',
label:'mmm'
},
{value:'27',
label:'nnn'
},
{value:'37',
label:'fff'
},
{value:'47',
label:'ggg'
},
], ],
tip: false, tip: false,
tipInfo: '输入多个邮箱地址以英文”;“分隔', tipInfo: '输入多个邮箱地址以英文”;“分隔',
...@@ -788,6 +740,15 @@ import {mapState} from 'vuex' ...@@ -788,6 +740,15 @@ import {mapState} from 'vuex'
} }
}) })
}, },
getpositionList(){
let parmars={
optSourceCode:''
}
getlist(parmars).then(res=>{
this.positionArr=res.data.body
console.log(res.data.body,55555555)
})
},
//选择搜索元素 //选择搜索元素
selectElement1(tItem,Tindex){ selectElement1(tItem,Tindex){
this.searchInfo.SEX=Tindex==0?'':tItem; this.searchInfo.SEX=Tindex==0?'':tItem;
...@@ -856,6 +817,7 @@ import {mapState} from 'vuex' ...@@ -856,6 +817,7 @@ import {mapState} from 'vuex'
flowStatusList:this.searchInfo.STA, flowStatusList:this.searchInfo.STA,
ownerWorkYears1:this.searchInfo.ownerWorkYears1, ownerWorkYears1:this.searchInfo.ownerWorkYears1,
ownerWorkYears2:this.searchInfo.ownerWorkYears2, ownerWorkYears2:this.searchInfo.ownerWorkYears2,
ownerExpectTitlesList:this.position
} }
} }
this.ajaxData=[] this.ajaxData=[]
...@@ -1780,6 +1742,7 @@ import {mapState} from 'vuex' ...@@ -1780,6 +1742,7 @@ import {mapState} from 'vuex'
}, },
mounted(){ mounted(){
this.SouSuo(null, 'init') this.SouSuo(null, 'init')
this.getpositionList()
document.addEventListener('visibilitychange',()=>{ document.addEventListener('visibilitychange',()=>{
var isHidden = document.hidden; var isHidden = document.hidden;
if(isHidden){ if(isHidden){
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</FormItem> </FormItem>
<FormItem label="职位:" style="margin:20px 0 40px 0px"> <FormItem label="职位:" style="margin:20px 0 40px 0px">
<Select v-model="position" filterable multiple style="width:96%" placeholder="不限"> <Select v-model="position" filterable multiple style="width:96%" placeholder="不限">
<Option v-for="item in positionArr" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="(item,index) in positionArr" :value="index" :key="index">{{ item }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Form> </Form>
...@@ -412,7 +412,7 @@ ...@@ -412,7 +412,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, sendEmail,findCompanyEmailByKey,forwardResume } from '../../api/resume.server.js' import {adoptOneSeeResumeList, serchList,downloadone,sousuoList,getlist,seedetail,PASS,OPTION,deleteREsume,downloadOne,exportLIST,recodeLIST,addinterview,TODORes,getEmailMoo,getEmailContent, sendEmail,findCompanyEmailByKey,forwardResume } from '../../api/resume.server.js'
import {Serchinterviewor} from '../../api/interview.server.js' import {Serchinterviewor} from '../../api/interview.server.js'
import { import {
sapi sapi
...@@ -431,54 +431,6 @@ export default { ...@@ -431,54 +431,6 @@ export default {
errorInfo: '', errorInfo: '',
position:[], position:[],
positionArr:[ positionArr:[
{value:'1',
label:'sd'
},
{value:'2',
label:'kbj'
},
{value:'3',
label:'kkk'
},
{value:'4',
label:'vvv'
},
{value:'5',
label:'ccc'
},
{value:'6',
label:'www'
},
{value:'7',
label:'qqq'
},
{value:'8',
label:'aaa'
},
{value:'9',
label:'zzz'
},
{value:'21',
label:'lll'
},
{value:'33',
label:'xxx'
},
{value:'43',
label:'hhh'
},
{value:'17',
label:'mmm'
},
{value:'27',
label:'nnn'
},
{value:'37',
label:'fff'
},
{value:'47',
label:'ggg'
},
], ],
ruleInline: { ruleInline: {
UpdateOWER: [ UpdateOWER: [
...@@ -831,6 +783,16 @@ export default { ...@@ -831,6 +783,16 @@ export default {
} }
}) })
}, },
getpositionList(){
let parmars={
optSourceCode:this.$route.params.channelname
}
getlist(parmars).then(res=>{
this.positionArr=[]
this.positionArr=res.data.body
console.log(res.data.body,55555555)
})
},
// 选择input元素 // 选择input元素
selectInputElement(index,doID,doStatus,sss, item){ selectInputElement(index,doID,doStatus,sss, item){
sss=!sss sss=!sss
...@@ -1089,6 +1051,7 @@ export default { ...@@ -1089,6 +1051,7 @@ export default {
flowStatusList:this.clickIndex3=0?this.searchInfo.STA=[]:this.searchInfo.STA, flowStatusList:this.clickIndex3=0?this.searchInfo.STA=[]:this.searchInfo.STA,
ownerWorkYears1:this.searchInfo.ownerWorkYears1, ownerWorkYears1:this.searchInfo.ownerWorkYears1,
ownerWorkYears2:this.searchInfo.ownerWorkYears2, ownerWorkYears2:this.searchInfo.ownerWorkYears2,
ownerExpectTitlesList:this.position
} }
} }
this.ajaxData=[] this.ajaxData=[]
...@@ -1757,6 +1720,7 @@ export default { ...@@ -1757,6 +1720,7 @@ export default {
this.lickIndex3 = 0 this.lickIndex3 = 0
this.keywords='' this.keywords=''
this.lrgs='' this.lrgs=''
this.position=[]
this.state.map(item => { this.state.map(item => {
item.sta = item.status3=='不限' ?true:false item.sta = item.status3=='不限' ?true:false
}) })
...@@ -1767,6 +1731,7 @@ export default { ...@@ -1767,6 +1731,7 @@ export default {
optSourceCode:this.$route.params.channelname optSourceCode:this.$route.params.channelname
} }
} }
this.getpositionList()
this.ajaxData=[] this.ajaxData=[]
this.interviewee = [] this.interviewee = []
adoptOneSeeResumeList(parmars).then(res=>{ adoptOneSeeResumeList(parmars).then(res=>{
...@@ -1833,6 +1798,7 @@ export default { ...@@ -1833,6 +1798,7 @@ export default {
}, },
mounted(){ mounted(){
this.SouSuo(null, 'init') this.SouSuo(null, 'init')
this.getpositionList()
document.addEventListener('visibilitychange',()=>{ document.addEventListener('visibilitychange',()=>{
var isHidden = document.hidden; var isHidden = document.hidden;
if(isHidden){ if(isHidden){
......
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