点击跳转岗位

This commit is contained in:
zhangsir
2024-07-09 15:11:03 +08:00
parent 11a036b0f8
commit 02cc4a1297
3 changed files with 13 additions and 4 deletions

View File

@@ -45,6 +45,7 @@
v-else-if="(t && t.permission)"
src="@/static/images/learnpath/otherpath.png"
mode="aspectFit"
@click="goOtherPath(t)"
style="width: 40rpx;height: 36rpx;"
/>
<!-- <image
@@ -109,7 +110,6 @@
}
},
onShow: function(options) {
console.log('xixi')
const bandCodeList = uni.getStorageSync('bandCodeList');
const positionIdList = uni.getStorageSync('positionIdList');
getFullJobPath({
@@ -133,6 +133,12 @@
onLoad() {
},
methods: {
goOtherPath(item){
console.log(item,'item')
uni.navigateTo({
url: '/pages/learnPath/learnPath?growId='+item.growId+'&name='+item.growName + '&isAllPath=' + false
});
},
integrateTableData(data) {
const { growFullPositionPathBoItemList, allBandCodeList } = data;
const bandCodeIndexMap = new Map(allBandCodeList.map((code, index) => [code, index]));
@@ -152,7 +158,7 @@
const codeTrimmed = code.trim();
const index = bandCodeIndexMap.get(codeTrimmed);
if (index !== undefined) {
integratedDataMap.get(key).bandCodes[index] = { growId: item.growId, permission: item.permission ,isMajorPosition:item.isMajorPosition };
integratedDataMap.get(key).bandCodes[index] = { growId: item.growId, permission: item.permission ,isMajorPosition:item.isMajorPosition,growName:item.growName };
}
});
});