点击跳转岗位

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 };
}
});
});

View File

@@ -5,7 +5,8 @@
</view>
<view class="path_body" :style="{height:dataList.length<=7?'93vh':''}">
<view class="body_header">
<view class="left" @click="goAllPath">全岗位路径</view>
<view class="left" v-if="isAllPath" @click="goAllPath">全岗位路径</view>
<view v-else></view>
<view class="right">
<u-switch size="14" v-model="openDown"></u-switch>
<text class="text">高亮显示未完成</text>
@@ -93,9 +94,11 @@
onLoad(options) {
this.growId = options.growId
this.titleName = options.name
this.isAllPath = options.isAllPath == 'true'
},
data() {
return {
isAllPath: true,
istabId: '',
notColor: [],
flagToggle: 0,

View File

@@ -452,7 +452,7 @@
methods: {
goLearn() {
uni.navigateTo({
url: '/pages/learnPath/learnPath?growId='+this.detailData.growId+'&name='+this.detailData.growName
url: '/pages/learnPath/learnPath?growId='+this.detailData.growId+'&name='+this.detailData.growName + '&isAllPath=' + true
});
},