mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-15 05:46:46 +08:00
搜索
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
</view>
|
||||
<view class="path">
|
||||
<view class="item">
|
||||
<image class="img" src="../../static/images/learnpath/thispath.png" mode=""></image>
|
||||
<image style="width: 40rpx;height: 36rpx;" class="img" src="../../static/images/learnpath/thispath.png" mode=""></image>
|
||||
<text class="text">当前路径</text>
|
||||
</view>
|
||||
<view class="item" style="margin-left: 80rpx;">
|
||||
<image class="img" src="../../static/images/learnpath/otherpath.png" mode=""></image>
|
||||
<image style="width: 40rpx;height: 36rpx;" class="img" src="../../static/images/learnpath/otherpath.png" mode=""></image>
|
||||
<text class="text">其他路径</text>
|
||||
</view>
|
||||
<!-- <view class="item">
|
||||
@@ -39,11 +39,13 @@
|
||||
v-if="(t && t.isMajorPosition) "
|
||||
src="@/static/images/learnpath/thispath.png"
|
||||
mode="aspectFit"
|
||||
style="width: 40rpx;height: 36rpx;"
|
||||
/>
|
||||
<image
|
||||
v-else-if="(t && t.permission)"
|
||||
src="@/static/images/learnpath/otherpath.png"
|
||||
mode="aspectFit"
|
||||
style="width: 40rpx;height: 36rpx;"
|
||||
/>
|
||||
<!-- <image
|
||||
v-else-if="!(t && t.permission)"
|
||||
@@ -106,24 +108,29 @@
|
||||
preparedData: [],
|
||||
}
|
||||
},
|
||||
onShow: function(options) {
|
||||
console.log('xixi')
|
||||
const bandCodeList = uni.getStorageSync('bandCodeList');
|
||||
const positionIdList = uni.getStorageSync('positionIdList');
|
||||
getFullJobPath({
|
||||
positionNameList: positionIdList || '',
|
||||
bandCodeList: bandCodeList || ''
|
||||
}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.pathData = res.data
|
||||
this.titleList = this.pathData.allBandCodeList
|
||||
this.preparedData = this.integrateTableData(this.pathData);
|
||||
this.titleList = this.titleList.map(item=>({
|
||||
title: item,
|
||||
}))
|
||||
// this.titleList.unshift({
|
||||
// title: ''
|
||||
// })
|
||||
console.log(this.titleList,'titleList')
|
||||
}
|
||||
})
|
||||
},
|
||||
onLoad() {
|
||||
getFullJobPath({
|
||||
positionNameList:this.$route.query.positionIdList || '',
|
||||
bandCodeList:this.$route.query.bandCodeList || ''
|
||||
}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.pathData = res.data
|
||||
this.titleList = this.pathData.allBandCodeList
|
||||
this.preparedData = this.integrateTableData(this.pathData);
|
||||
this.titleList = this.titleList.map(item=>({
|
||||
title: item,
|
||||
}))
|
||||
// this.titleList.unshift({
|
||||
// title: ''
|
||||
// })
|
||||
console.log(this.titleList,'titleList')
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
integrateTableData(data) {
|
||||
|
||||
Reference in New Issue
Block a user