From 1e28aa139f09d8d0f965c863e1875e58d15d120e Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 26 Jun 2024 11:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/learnPath/allPath.vue | 85 ++++++++++++++++++++++++++++++++----- pages/study/index.vue | 9 +++- 2 files changed, 82 insertions(+), 12 deletions(-) diff --git a/pages/learnPath/allPath.vue b/pages/learnPath/allPath.vue index 8f02400..7b41b7a 100644 --- a/pages/learnPath/allPath.vue +++ b/pages/learnPath/allPath.vue @@ -25,16 +25,16 @@ - + - + - + -
{{ item.title }}{{ item.title }}
{{ item.isOtherPosition == 1 ? item.positionName + '(' + item.organizationName + ')' : item.positionName }} + { + const result = []; + let currentGroup = null; + + array.forEach(item => { + if (item === null) { + if (currentGroup && currentGroup.growId !== null) { + result.push(currentGroup); + currentGroup = null; + } + if (!currentGroup) { + currentGroup = { growId: null, number: 1, ...item }; + } else { + currentGroup.number++; + } + } else { + if (!currentGroup || currentGroup.growId !== item.growId) { + if (currentGroup) { + result.push(currentGroup); + } + currentGroup = { growId: item.growId, number: 1, ...item }; + } else { + currentGroup.number++; + } + } + }); + if (currentGroup) { + result.push(currentGroup); + } + + return result; + }; + integratedDataArray.forEach(item => { + item.bandCodes = mergeById(item.bandCodes); + }); console.log(integratedDataArray,'integratedDataArray') return integratedDataArray; }, @@ -176,22 +211,23 @@ table { width: 100%; border-collapse: collapse; + border: 2rpx solid #F0F6FC; } - th { + /* th { padding: 12px 20px; text-align: center; border: 2rpx solid #F0F6FC; background: #F0F6FC; - } - td{ + } */ + /* td{ padding: 12px 16px; text-align: center; border: 2rpx solid #F0F6FC; color: #333333; font-weight: 400; font-size: 28rpx; - } + } */ th { font-weight: bold; @@ -202,10 +238,39 @@ text-align: center; .text{ width: 212rpx; - border-collapse: collapse; + border-collapse: collapse; } } - + .item1{ + /* padding: 12px 20px; */ + width: 220rpx; + min-height: 100rpx; + text-align: center; + border: 2rpx solid #F0F6FC; + background: #F0F6FC; + font-weight: bold; + color: #387DF7; + font-weight: bold; + border-collapse: collapse; + display: flex; + justify-content: center; + align-items: center; + } + .item{ + width: 220rpx; + min-height: 120rpx; + text-align: center; + border: 2rpx solid #F0F6FC; + border-bottom: none; + background-color: #ffffff; + color: #333333; + font-weight: 400; + font-size: 28rpx; + border-collapse: collapse; + display: flex; + justify-content: center; + align-items: center; + } tbody tr:nth-child(odd) { background-color: #ffffff; } diff --git a/pages/study/index.vue b/pages/study/index.vue index 31407da..0b69f22 100644 --- a/pages/study/index.vue +++ b/pages/study/index.vue @@ -284,7 +284,7 @@ 本功能针对学员所在组织、岗位、职级自动匹配成长路径,完成本路径方可晋升 - + 我已阅读 @@ -444,6 +444,11 @@ $this.loadStatus = 'noMore'; }, 500); }, + watch: { + checked(){ + this.outLearnModal() + } + }, methods: { goLearn() { uni.navigateTo({ @@ -465,7 +470,7 @@ this.checked = value }, outLearnModal() { - this.learnModal = false + // this.learnModal = false localStorage.setItem("checkedTrue",!this.checked) }, reSetList() {