mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 21:36:45 +08:00
点击跳转岗位
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user