Commit d4443466 by 李伟康

Merge branch 'SAAS+V4.55.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.55.0

2 parents 209ec858 710265e9
......@@ -91,6 +91,7 @@ export default {
webviewHistory: [],
pageData: {},
nothing: false,
tokenUrl: ''
}
},
computed: {
......@@ -143,9 +144,10 @@ export default {
}
uni.navigateBack()
},
openCourse(index, item) {
async openCourse(index, item) {
console.log(index, 'index')
this.selectedIndex = index;
this.tokenUrl = await this.findBeiSenSSOToken() // 每次都重新获取token,防止过期
// const arr = ['80cb90d7-1609-4360-8f23-6c47ddba41c0', '17983a1a-5bcd-4e7d-a180-061ef3f9a49d']
// 只更换url
this.handleOperation(item.courseId);
......@@ -164,7 +166,7 @@ export default {
})
})
},
async handleOperation(courseId) {
handleOperation(courseId) {
// 只处理课程详情,设置jumpUrl
const COURSE_ID = courseId;
const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
......@@ -179,8 +181,8 @@ export default {
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
// const tokenUrl = uni.$storage.get('beisenToken')
const tokenUrl = await this.findBeiSenSSOToken() // 每次都重新获取token,防止过期
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`;
......
......@@ -16,9 +16,10 @@
<view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view>
<view class="course-info course-progress">
<view class="info-label">任务进度</view>
<view class="info-progress">
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
<view v-if="completeStatus == 1" class="info-progress-text">已完成</view>
<view class="info-progress" v-else>
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
</view>
</view>
<view class="course-info">
......@@ -70,7 +71,7 @@
</view>
<view class="item-info">
<view class="item-info-label">考试成绩</view>
<view class="item-info-value">{{ item.totalScore ? '已完成' : '待考核' }}</view>
<view class="item-info-value">{{ item.totalScore ? item.totalScore : '未考核' }}</view>
</view>
<view class="item-info">
<view class="item-info-label">课程时长</view>
......
......@@ -26,7 +26,12 @@
</view>
<view class="top-box-info">
<view class="top-box-info-item">驻店时间:{{ courseDetail.residentTimeTag || '-' }}</view>
<view class="top-box-info-item">直属上级:{{ courseDetail.superior || '-' }}</view>
<view class="top-box-info-item">
直属上级:
<text class="superior-text">
{{ courseDetail.superior || '-' }}
</text>
</view>
</view>
</view>
<view class="bottom-box">
......@@ -445,6 +450,9 @@ export default {
},
async handleExam (item) {
console.log(item, '===')
if (item.tagName == '服务意识') {
return
}
const { checkDate } = this.rowData
const { businessType, brandType } = this.courseDetail
let { agentUrl, domainName, taskStatus, agentCode } = this.aiAgentData
......@@ -586,6 +594,14 @@ export default {
color: #79859e;
font-size: toRpx(24);
font-weight: 400;
.superior-text {
max-width: toRpx(200);
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!