bug修复

This commit is contained in:
李东进1
2023-02-22 00:53:12 +08:00
parent b1d134e8f4
commit 86b9ba16f2
2 changed files with 207 additions and 198 deletions

View File

@@ -22,8 +22,8 @@
<img src="../../assets/images/studentimg/character.png" />
</div>
<div class="stumation">
<div class="stuname">{{pro.routerInfo.userName}}</div>
<div class="stugangw">{{pro.routerInfo.deptName?pro.routerInfo.deptName:"" + '-' + pro.routerInfo.jobName?pro.routerInfo.jobName:""}}</div>
<div class="stuname">{{pro.routerInfo.name}}</div>
<div class="stugangw">{{pro.routerInfo.organizationName?pro.routerInfo.organizationName:"" + '-' + pro.routerInfo.jobName?pro.routerInfo.jobName:""}}</div>
</div>
<div class="sortbox">
<div class="sortname">进度排名</div>
@@ -57,7 +57,7 @@
<div class="sortbox" style="margin-left: 34px">
<div class="sortname">已修证书</div>
<div class="sortnub">
<span class="nub1">{{pro.certCnt?pro.certCnt:0}}</span>
<span class="nub1">{{pro.routerInfo.certCnt?pro.routerInfo.certCnt:0}}</span>
</div>
</div>
</div>

View File

@@ -1,20 +1,12 @@
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
<template>
<a-drawer
:visible="Seevisible"
class="drawerStyle seestu"
placement="right"
width="70%"
@after-visible-change="afterVisibleChange"
>
<a-drawer :visible="Seevisible" class="drawerStyle seestu" placement="right" width="70%"
@after-visible-change="afterVisibleChange">
<div class="drawerMain">
<div class="header">
<div class="headerTitle">查看</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<a-spin v-if="loading" :spinning="loading" />
<div v-if="!loading" class="main">
@@ -33,14 +25,11 @@
<span class="total">/{{ rank.total }}</span>
</div>
</div>
<a-divider
type="vertical"
style="
<a-divider type="vertical" style="
height: 49px;
margin-left: 34px;
background-color: rgba(170, 166, 166, 0.3);
"
/>
" />
<div class="sortbox" style="margin-left: 34px">
<div class="sortname">完成必修</div>
<div class="sortnub">
@@ -49,17 +38,14 @@
</div>
</div>
<a-divider
type="vertical"
style="
<a-divider type="vertical" style="
height: 49px;
margin-left: 34px;
background-color: rgba(170, 166, 166, 0.3);"
/>
background-color: rgba(170, 166, 166, 0.3);" />
<div class="sortbox" style="margin-left: 34px">
<div class="sortname">已修证书</div>
<div class="sortnub">
<span class="nub1">{{ certCnt?certCnt:0 }}</span>
<span class="nub1">{{ 0 }}</span>
</div>
</div>
@@ -71,22 +57,14 @@
<div class="mainbox">
<a-collapse v-model:activeKey="stageListActive">
<template #expandIcon="{ isActive }">
<img
style="margin-right: 20px"
:src="
<img style="margin-right: 20px" :src="
isActive
? require('../../assets/images/studentimg/open.png')
: require('../../assets/images/studentimg/close.png')
"
/>
" />
<div></div>
</template>
<a-collapse-panel
v-for="value in stageList"
:key="value.stageId"
:header="value.stageName"
>
<a-collapse-panel v-for="value in stageList" :key="value.stageId" :header="value.stageName">
<template #extra>
<div @click.stop="">
<div class="rowbox">
@@ -101,16 +79,11 @@
</div>
</template>
<div
class="rowclass"
v-for="(item, key) in value.taskList"
:key="key"
>
<div class="rowclass" v-for="(item, key) in value.taskList" :key="key">
<div class="leftclass">
<div>
<img
:src="
<img :src="
item.course === '在线'
? require('../../assets/images/leveladd/zai.png')
: item.course === '面授'
@@ -138,21 +111,18 @@
: item.course === '评估'
? require('../../assets/images/leveladd/diao.png')
: null
"
/>
" />
</div>
<div class="text1">{{ item.course }}</div>
<div class="text2">{{ item.name }}</div>
</div>
<div class="alreadyclass">
<div class="alimg">
<img
:src="
<img :src="
item.complete === '已完成'
? require('../../assets/images/studentimg/complete.png')
: require('../../assets/images/studentimg/notice.png')
"
/>
" />
</div>
<div class="altext">{{ item.complete }}</div>
</div>
@@ -277,6 +247,7 @@ export default {
let array = [];
if (data != undefined) {
data.map((value) => {
console.log('我排序了吗---------value-----------------》', value)
let obj = {
course:
value.type == 1
@@ -318,6 +289,7 @@ export default {
currentRatio: value.currentRatio,
routerTaskId: value.routerTaskId,
};
console.log('我排序了吗---------obj-----------------》', obj)
array.push(obj);
});
array.sort((a, b) => { return a.projectId - b.projectId })
@@ -331,7 +303,8 @@ export default {
console.log("查看了学员1", data);
let array = [];
//无阶段任务
if(data?.length ==1 && data[0].stageId ==0){
if (data?.length == 1 && data[0].id == 0) {
console.log("无阶段任务", data);
data.map((value) => {
let obj = {
stageName: "无阶段任务",
@@ -342,17 +315,19 @@ export default {
array.push(obj);
});
} else { //有阶段
console.log("有阶段", data);
data.map((value) => {
console.log("有阶段value", value);
let obj = {
stageName: value.stageName,
stageId: value.stageId,
stageName: value.name,
stageId: value.id,
remark: value.remark,
taskList: taskList(value.taskList),
};
if(value.stageId >0){
if (value.id > 0) {
array.push(obj);
}
console.log("有阶段array", array);
});
}
@@ -366,9 +341,10 @@ export default {
};
studentProcess(obj).then((res) => {
state.loading = false
console.log("查看了学员", res.data.data);
console.log("查看了学员", res.data);
let result = res.data.data;
state.userName = result.projectInfo.userName;
console.log("查看了学员result:", result);
state.userName = result.projectInfo.name;
state.deptName = result.projectInfo.deptName;
state.jobName = result.projectInfo.jobName;
state.certCnt = result.projectInfo.certCnt == null ? 0 : result.projectInfo.certCnt;
@@ -403,20 +379,24 @@ export default {
<style lang="scss">
.seestu {
.ant-drawer-content-wrapper {
// max-width: 1000px;
.ant-drawer-header {
display: none !important;
}
.ant-drawer-body {
padding: 0;
}
}
.drawerMain {
min-width: 600px;
margin: 0px 32px 0px 32px;
overflow-x: auto;
display: flex;
flex-direction: column;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
@@ -426,6 +406,7 @@ export default {
// background-color: red;
margin-bottom: 20px;
flex-shrink: 0;
.headerTitle {
font-size: 18px;
font-weight: 600;
@@ -434,11 +415,13 @@ export default {
// margin-left: 24px;
}
}
.main {
display: flex;
flex-direction: column;
overflow-y: auto;
padding-bottom: 80px;
.stuinfor {
display: flex;
align-items: center;
@@ -448,35 +431,43 @@ export default {
background-image: url("../../assets/images/studentimg/bgimg.png");
background-repeat: no-repeat;
background-position: right;
.stumation {
margin-left: 24px;
.stuname {
color: #333333;
font-size: 18px;
}
.stugangw {
color: #999999;
font-size: 16px;
margin-top: 7px;
}
}
.sortbox {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 114px;
.sortname {
color: #666660;
font-size: 14px;
}
.sortnub {
display: flex;
justify-content: center;
margin-top: 7px;
.nub1 {
color: #0060ff;
font-size: 22px;
}
.total {
color: #999999;
font-size: 22px;
@@ -484,19 +475,23 @@ export default {
}
}
}
.secondrow {
margin-top: 32px;
display: flex;
.rowleft {
color: rgba(51, 51, 51, 1);
font-size: 16px;
}
}
.mainbox {
// height: 463px;
margin-right: 37px;
margin-top: 32px;
//border: 1px solid rgba(221, 238, 255, 1);
//border-radius: 6px;
.rowbox {
@@ -510,6 +505,7 @@ export default {
background: rgba(64, 158, 255, 0.1);
margin-right: 480px;
cursor: pointer;
.shuom {
color: rgba(64, 158, 255, 1);
font-size: 14px;
@@ -517,23 +513,28 @@ export default {
margin-right: 5px;
}
}
.ant-collapse {
background-color: #ffffff;
border: 0;
}
.ant-collapse-content>.ant-collapse-content-box {
padding: 0;
border: 0;
}
.ant-collapse>.ant-collapse-item {
border: 1px solid rgba(221, 238, 255, 1);
border-radius: 6px;
margin-bottom: 15px;
border-bottom: 0px;
}
.ant-collapse-content {
border-top: 0;
}
.ant-collapse-header {
display: flex;
align-items: center;
@@ -543,16 +544,19 @@ export default {
color: rgba(51, 51, 51, 1);
font-weight: 500;
}
.rowclass {
height: 81px;
border-bottom: 1px solid rgba(221, 238, 255, 1);
display: flex;
justify-content: space-between;
align-items: center;
.leftclass {
display: flex;
margin-left: 25px;
align-items: center;
.text1 {
color: #000000;
font-size: 14px;
@@ -561,6 +565,7 @@ export default {
word-break: keep-all;
white-space: nowrap;
}
.text2 {
color: rgba(51, 51, 51, 0.8);
font-size: 14px;
@@ -571,13 +576,16 @@ export default {
text-overflow: ellipsis;
}
}
.alreadyclass {
display: flex;
margin-right: 57px;
.alimg {
height: 16px;
width: 16px;
}
.altext {
color: rgba(56, 125, 247, 1);
font-size: 14px;
@@ -589,6 +597,7 @@ export default {
}
}
}
.btnn {
height: 72px;
width: 100%;
@@ -600,6 +609,7 @@ export default {
align-items: center;
justify-content: center;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
.btn2 {
cursor: pointer;
width: 100px;
@@ -612,5 +622,4 @@ export default {
}
}
}
}
</style>
}</style>