mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-16 06:16:47 +08:00
点击跳转岗位
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
v-else-if="(t && t.permission)"
|
v-else-if="(t && t.permission)"
|
||||||
src="@/static/images/learnpath/otherpath.png"
|
src="@/static/images/learnpath/otherpath.png"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
|
@click="goOtherPath(t)"
|
||||||
style="width: 40rpx;height: 36rpx;"
|
style="width: 40rpx;height: 36rpx;"
|
||||||
/>
|
/>
|
||||||
<!-- <image
|
<!-- <image
|
||||||
@@ -109,7 +110,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function(options) {
|
onShow: function(options) {
|
||||||
console.log('xixi')
|
|
||||||
const bandCodeList = uni.getStorageSync('bandCodeList');
|
const bandCodeList = uni.getStorageSync('bandCodeList');
|
||||||
const positionIdList = uni.getStorageSync('positionIdList');
|
const positionIdList = uni.getStorageSync('positionIdList');
|
||||||
getFullJobPath({
|
getFullJobPath({
|
||||||
@@ -133,6 +133,12 @@
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goOtherPath(item){
|
||||||
|
console.log(item,'item')
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/learnPath/learnPath?growId='+item.growId+'&name='+item.growName + '&isAllPath=' + false
|
||||||
|
});
|
||||||
|
},
|
||||||
integrateTableData(data) {
|
integrateTableData(data) {
|
||||||
const { growFullPositionPathBoItemList, allBandCodeList } = data;
|
const { growFullPositionPathBoItemList, allBandCodeList } = data;
|
||||||
const bandCodeIndexMap = new Map(allBandCodeList.map((code, index) => [code, index]));
|
const bandCodeIndexMap = new Map(allBandCodeList.map((code, index) => [code, index]));
|
||||||
@@ -152,7 +158,7 @@
|
|||||||
const codeTrimmed = code.trim();
|
const codeTrimmed = code.trim();
|
||||||
const index = bandCodeIndexMap.get(codeTrimmed);
|
const index = bandCodeIndexMap.get(codeTrimmed);
|
||||||
if (index !== undefined) {
|
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>
|
||||||
<view class="path_body" :style="{height:dataList.length<=7?'93vh':''}">
|
<view class="path_body" :style="{height:dataList.length<=7?'93vh':''}">
|
||||||
<view class="body_header">
|
<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">
|
<view class="right">
|
||||||
<u-switch size="14" v-model="openDown"></u-switch>
|
<u-switch size="14" v-model="openDown"></u-switch>
|
||||||
<text class="text">高亮显示未完成</text>
|
<text class="text">高亮显示未完成</text>
|
||||||
@@ -93,9 +94,11 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.growId = options.growId
|
this.growId = options.growId
|
||||||
this.titleName = options.name
|
this.titleName = options.name
|
||||||
|
this.isAllPath = options.isAllPath == 'true'
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isAllPath: true,
|
||||||
istabId: '',
|
istabId: '',
|
||||||
notColor: [],
|
notColor: [],
|
||||||
flagToggle: 0,
|
flagToggle: 0,
|
||||||
|
|||||||
@@ -452,7 +452,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
goLearn() {
|
goLearn() {
|
||||||
uni.navigateTo({
|
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