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 { ...@@ -91,6 +91,7 @@ export default {
webviewHistory: [], webviewHistory: [],
pageData: {}, pageData: {},
nothing: false, nothing: false,
tokenUrl: ''
} }
}, },
computed: { computed: {
...@@ -143,9 +144,10 @@ export default { ...@@ -143,9 +144,10 @@ export default {
} }
uni.navigateBack() uni.navigateBack()
}, },
openCourse(index, item) { async openCourse(index, item) {
console.log(index, 'index') console.log(index, 'index')
this.selectedIndex = index; this.selectedIndex = index;
this.tokenUrl = await this.findBeiSenSSOToken() // 每次都重新获取token,防止过期
// const arr = ['80cb90d7-1609-4360-8f23-6c47ddba41c0', '17983a1a-5bcd-4e7d-a180-061ef3f9a49d'] // const arr = ['80cb90d7-1609-4360-8f23-6c47ddba41c0', '17983a1a-5bcd-4e7d-a180-061ef3f9a49d']
// 只更换url // 只更换url
this.handleOperation(item.courseId); this.handleOperation(item.courseId);
...@@ -164,7 +166,7 @@ export default { ...@@ -164,7 +166,7 @@ export default {
}) })
}) })
}, },
async handleOperation(courseId) { handleOperation(courseId) {
// 只处理课程详情,设置jumpUrl // 只处理课程详情,设置jumpUrl
const COURSE_ID = courseId; const COURSE_ID = courseId;
const baseUrl = 'https://cloud.italent.cn/PageHome/Index'; const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
...@@ -179,8 +181,8 @@ export default { ...@@ -179,8 +181,8 @@ export default {
const queryString = Object.entries(params) const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`) .map(([key, value]) => `${key}=${value}`)
.join('&'); .join('&');
// const tokenUrl = uni.$storage.get('beisenToken') const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
const tokenUrl = await this.findBeiSenSSOToken() // 每次都重新获取token,防止过期 // this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`); const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`; this.jumpUrl = `${tokenUrl}&return_url=${url}`;
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view> <view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view>
<view class="course-info course-progress"> <view class="course-info course-progress">
<view class="info-label">任务进度</view> <view class="info-label">任务进度</view>
<view class="info-progress"> <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-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view> <view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
</view> </view>
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">考试成绩</view> <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>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">课程时长</view> <view class="item-info-label">课程时长</view>
......
...@@ -26,7 +26,12 @@ ...@@ -26,7 +26,12 @@
</view> </view>
<view class="top-box-info"> <view class="top-box-info">
<view class="top-box-info-item">驻店时间:{{ courseDetail.residentTimeTag || '-' }}</view> <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> </view>
<view class="bottom-box"> <view class="bottom-box">
...@@ -445,6 +450,9 @@ export default { ...@@ -445,6 +450,9 @@ export default {
}, },
async handleExam (item) { async handleExam (item) {
console.log(item, '===') console.log(item, '===')
if (item.tagName == '服务意识') {
return
}
const { checkDate } = this.rowData const { checkDate } = this.rowData
const { businessType, brandType } = this.courseDetail const { businessType, brandType } = this.courseDetail
let { agentUrl, domainName, taskStatus, agentCode } = this.aiAgentData let { agentUrl, domainName, taskStatus, agentCode } = this.aiAgentData
...@@ -586,6 +594,14 @@ export default { ...@@ -586,6 +594,14 @@ export default {
color: #79859e; color: #79859e;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; 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!