mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 05:16:46 +08:00
搜索
This commit is contained in:
@@ -3,8 +3,8 @@ export const getList = (params) => ajax.get(`/manageApi/stu/grow/getStuLearnInfo
|
||||
//获取路径图详情
|
||||
export const taskList = (id) => ajax.get(`/manageApi/stu/grow/taskList?growId=${id}`);
|
||||
// 获取岗位
|
||||
export const getAllPosition = () => ajax.get(`/manageApi/admin/thirdApi/getAllPosition`)
|
||||
export const getAllPosition = () => ajax.get(`/manageApi/stu/grow/getPositionOfPath`)
|
||||
// 获取职级
|
||||
export const getAllBandInfo = () => ajax.get(`/manageApi/admin/thirdApi/getAllBandInfo`)
|
||||
//全岗位路径
|
||||
export const getFullJobPath = () => ajax.get(`/manageApi/stu/grow/getFullJobPath`);
|
||||
export const getFullJobPath = (params) => ajax.get(`/manageApi/stu/grow/getFullJobPath?positionIdList=${params.positionIdList}&bandCodeList=${params.bandCodeList}`);
|
||||
@@ -107,7 +107,10 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
getFullJobPath().then(res=>{
|
||||
getFullJobPath({
|
||||
positionIdList:this.$route.query.positionIdList || '',
|
||||
bandCodeList:this.$route.query.bandCodeList || ''
|
||||
}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.pathData = res.data
|
||||
this.titleList = this.pathData.allBandCodeList
|
||||
|
||||
@@ -77,23 +77,30 @@
|
||||
reach(){
|
||||
this.bandIndexs = []
|
||||
this.bandItem = []
|
||||
this.indexs = []
|
||||
this.posiData = []
|
||||
this.indexs = [0]
|
||||
this.posiData = [this.posiLists[0]]
|
||||
this.bandFirst = ''
|
||||
this.bandEnd = ''
|
||||
},
|
||||
goAllPath(){
|
||||
console.log(this.bandItem,this.posiData)
|
||||
let bandCodeList = this.bandItem.map(item => item.bandCode).join(',')
|
||||
let positionIdList = this.posiData.map(item => item.positionId).join(',')
|
||||
uni.navigateTo({
|
||||
url: '/pages/learnPath/allPath',
|
||||
|
||||
url: `/pages/learnPath/allPath?bandCodeList=${bandCodeList}&positionIdList=${positionIdList}`,
|
||||
})
|
||||
},
|
||||
getPosiList(){
|
||||
getAllPosition().then(res=>{
|
||||
this.startList = res.data
|
||||
if(res.code == 200 ){
|
||||
const majorItem = res.data.find(item => item.isMajor === 1);
|
||||
if (majorItem) {
|
||||
const index = res.data.indexOf(majorItem);
|
||||
res.data.splice(index, 1);
|
||||
res.data.unshift(majorItem);
|
||||
}
|
||||
this.posiLists = res.data
|
||||
this.posiData.push(this.posiLists[0])
|
||||
this.indexs.push(0)
|
||||
if(this.posiLists.length > 9){
|
||||
this.posiLists = this.posiLists.slice(0, 9)
|
||||
|
||||
Reference in New Issue
Block a user