Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-stu into develop
BIN
src/assets/image/pathdetails/组 23(1).png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/image/pathdetails/组 23.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
src/assets/image/pathdetails/组 23@2x.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/image/pathdetails/组 23@3x.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/image/pathdetails/路径图背景线.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
src/assets/image/pathdetails/路径图背景线@2x.png
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
src/assets/image/pathdetails/路径图背景线@3x.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
82
src/components/PathDetailImage.vue
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
<template>
|
||||||
|
<div class="pathDetail" v-if="visiable" :style="{background:`url('${back}') no-repeat`}">
|
||||||
|
<div v-for="(item,i) in detail.chapterDtoList" :key="i" class="cha"
|
||||||
|
:style="{top:`${imgAttr.positions[i]?.top - (current===i?10:0)}px`,left:`${imgAttr.positions[i]?.left - (current===i?10:0)}px`}">
|
||||||
|
<div @click="toDetail(i)"
|
||||||
|
:style="{background: `url('${current===i?currentBack:nameBack}')`,width:`${current===i?278:245}px`,height:`${current===i?120:105}px`,textAlign:'center',lineHeight:'75px',color:'#FFF'}">
|
||||||
|
{{ item.name }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import {computed, defineProps, ref, watch} from "vue";
|
||||||
|
import back from '@/assets/image/pathdetails/路径图背景线.png'
|
||||||
|
import nameBack from '@/assets/image/pathdetails/组 23@2x.png'
|
||||||
|
import currentBack from '@/assets/image/pathdetails/组 23(1).png'
|
||||||
|
import {useRouter} from "vue-router/dist/vue-router";
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
value: String,
|
||||||
|
img: String,
|
||||||
|
detail: {
|
||||||
|
type: Object,
|
||||||
|
default: {}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const router = useRouter();
|
||||||
|
const visiable = ref(true)
|
||||||
|
const imageAttrs = {
|
||||||
|
'路径图背景-1671015331292.png': {
|
||||||
|
width: 1437,
|
||||||
|
height: 594,
|
||||||
|
positions: [
|
||||||
|
{left: -72, top: 508},
|
||||||
|
{left: 147, top: 356},
|
||||||
|
{left: 689, top: 263},
|
||||||
|
{left: 617, top: 69},
|
||||||
|
{left: 1047, top: 42},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const imgAttr = computed(() => imageAttrs[Object.keys(imageAttrs).find(e => props.img.includes(e))] || {})
|
||||||
|
|
||||||
|
const current = computed(() => props.detail.chapterDtoList.findIndex(e => e.chapterId === props.detail.currentStageId))
|
||||||
|
|
||||||
|
function show() {
|
||||||
|
visiable.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function toDetail(i) {
|
||||||
|
if (current.value !== i) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
import.meta.env.MODE === "development"
|
||||||
|
? router.push({
|
||||||
|
path: "/pathdetails",
|
||||||
|
query: {routerId: props.detail.routerId, routerName: props.detail.routerName},
|
||||||
|
})
|
||||||
|
: window.open(
|
||||||
|
`${import.meta.env.VITE_BOE_PATH_DETAIL_URL}/pathdetails¶ms=${encodeURIComponent(
|
||||||
|
`routerId=${props.detail.routerId}&routerName=${props.detail.routerName}`
|
||||||
|
)}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function close() {
|
||||||
|
visiable.value = false
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.pathDetail {
|
||||||
|
width: 100%;
|
||||||
|
height: 1011px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cha {
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -5,14 +5,11 @@
|
|||||||
<div>课程列表</div>
|
<div>课程列表</div>
|
||||||
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
||||||
<div style="font-weight: 700">课程详情</div>
|
<div style="font-weight: 700">课程详情</div>
|
||||||
|
|
||||||
|
|
||||||
<div v-if="pName != ''" class="return">
|
<div v-if="pName != ''" class="return">
|
||||||
<div style="display: flex" @click="returnclick">
|
<div style="display: flex" @click="returnclick">
|
||||||
<img
|
<el-button style="color:#0073FB"> <img class="img2" style="margin-right:11px;cursor: pointer;" src="../../assets/image/return.png" />返回</el-button>
|
||||||
class="img2"
|
|
||||||
style="margin-right: 22px"
|
|
||||||
src="../../assets/image/return.png"
|
|
||||||
/>
|
|
||||||
<div class="text">返回</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -23,56 +20,31 @@
|
|||||||
<div style="margin-left: 46px">
|
<div style="margin-left: 46px">
|
||||||
<div class="title">【面授课】{{ data.planDto?.name }}</div>
|
<div class="title">【面授课】{{ data.planDto?.name }}</div>
|
||||||
<div class="time" style="margin-top: 26px">
|
<div class="time" style="margin-top: 26px">
|
||||||
<img
|
<img style="width: 15px; height: 17px" src="../../assets/image/time.png" />
|
||||||
style="width: 15px; height: 17px"
|
|
||||||
src="../../assets/image/time.png"
|
|
||||||
/>
|
|
||||||
<div style="margin-left: 8px">
|
<div style="margin-left: 8px">
|
||||||
{{ data.planDto?.beginTime + "至" + data.planDto?.endTime }}
|
{{ data.planDto?.beginTime + "至" + data.planDto?.endTime }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="time" style="margin-top: 23px">
|
<div class="time" style="margin-top: 23px">
|
||||||
<img
|
<img style="width: 16px; height: 18px" src="../../assets/image/position.png" />
|
||||||
style="width: 16px; height: 18px"
|
|
||||||
src="../../assets/image/position.png"
|
|
||||||
/>
|
|
||||||
<div style="margin-left: 8px">{{ data.planDto?.address }}</div>
|
<div style="margin-left: 8px">{{ data.planDto?.address }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<botton
|
<botton v-if="!isAllowSign" class="btn" style="margin-right: 20px; background: #999" @click="signClick">签到
|
||||||
v-if="!isAllowSign"
|
|
||||||
class="btn"
|
|
||||||
style="margin-right: 20px; background: #999"
|
|
||||||
@click="signClick"
|
|
||||||
>签到
|
|
||||||
</botton>
|
</botton>
|
||||||
<botton
|
<botton v-if="isAllowSign" class="btn" style="margin-right: 20px" :style="{
|
||||||
v-if="isAllowSign"
|
|
||||||
class="btn"
|
|
||||||
style="margin-right: 20px"
|
|
||||||
:style="{
|
|
||||||
background: data.signFlag ? '#999' : 'rgb(57, 146, 249)',
|
background: data.signFlag ? '#999' : 'rgb(57, 146, 249)',
|
||||||
}"
|
}" @click="signClick">{{ data.signFlag ? "已签到" : "签到" }}
|
||||||
@click="signClick"
|
|
||||||
>{{ data.signFlag ? "已签到" : "签到" }}
|
|
||||||
</botton>
|
</botton>
|
||||||
<botton
|
<botton style="background: #999" class="btn" @click="toSurvery" v-if="data.planDto?.evalFlag == 0">
|
||||||
style="background: #999"
|
|
||||||
class="btn"
|
|
||||||
@click="toSurvery"
|
|
||||||
v-if="data.planDto?.evalFlag == 0"
|
|
||||||
>
|
|
||||||
评估
|
评估
|
||||||
</botton>
|
</botton>
|
||||||
<botton
|
<botton :style="{
|
||||||
:style="{
|
|
||||||
background: `${new Date(data.planDto.beginTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(57, 146, 249)'}`,
|
background: `${new Date(data.planDto.beginTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(57, 146, 249)'}`,
|
||||||
}"
|
}" class="btn" @click="toSurvery" v-if="data.planDto?.evalFlag && data.planDto?.evalFlag == 1">{{
|
||||||
class="btn"
|
data.isSurvery ? "已评估" : "评估"
|
||||||
@click="toSurvery"
|
}}
|
||||||
v-if="data.planDto?.evalFlag && data.planDto?.evalFlag == 1"
|
|
||||||
>{{ data.isSurvery ? "已评估" : "评估" }}
|
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -172,8 +144,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
"
|
">
|
||||||
>
|
|
||||||
此课程无作业
|
此课程无作业
|
||||||
</div>
|
</div>
|
||||||
<div class="work" v-if="data.workDto?.workName">
|
<div class="work" v-if="data.workDto?.workName">
|
||||||
@@ -188,26 +159,22 @@
|
|||||||
<div v-if="isEndSubMitWork()" class="submit" style="background: #999">
|
<div v-if="isEndSubMitWork()" class="submit" style="background: #999">
|
||||||
已结束
|
已结束
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div
|
||||||
<div :style="{background: new Date(data.planDto.beginTime).getTime() > new Date().getTime()?'#999':''}"
|
:style="{ background: new Date(data.planDto.beginTime).getTime() > new Date().getTime() ? '#999' : '' }"
|
||||||
class="submit" @click="toWork" v-if="data.workDto?.workId">
|
v-else class="submit" @click="toWork" v-if="data.workDto?.workId">
|
||||||
交作业
|
交作业
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="课程考试" name="third">
|
<el-tab-pane label="课程考试" name="third">
|
||||||
<div
|
<div v-if="data.planDto?.attach === '[]'" style="
|
||||||
v-if="data.planDto?.attach === '[]'"
|
|
||||||
style="
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
"
|
">
|
||||||
>
|
|
||||||
此课程无考试
|
此课程无考试
|
||||||
</div>
|
</div>
|
||||||
<div class="work" v-if="data.examinationDto?.examinationTestName">
|
<div class="work" v-if="data.examinationDto?.examinationTestName">
|
||||||
@@ -216,16 +183,15 @@
|
|||||||
{{ data.examinationDto?.examinationTestName }}
|
{{ data.examinationDto?.examinationTestName }}
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 16px; display: flex">
|
<div style="margin-top: 16px; display: flex">
|
||||||
<div
|
<div class="tag1" v-if="data.examinationDto?.examinationFlag">
|
||||||
class="tag1"
|
|
||||||
v-if="data.examinationDto?.examinationFlag"
|
|
||||||
>
|
|
||||||
必修
|
必修
|
||||||
</div>
|
</div>
|
||||||
<div class="tag3" style="margin-left: 11px">考试</div>
|
<div class="tag3" style="margin-left: 11px">考试</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{background: new Date(data.planDto.beginTime).getTime() > new Date().getTime()?'#999':''}" class="submit" @click="toExamItem(data.examinationDto)">
|
<div
|
||||||
|
:style="{ background: new Date(data.planDto.beginTime).getTime() > new Date().getTime() ? '#999' : '' }"
|
||||||
|
class="submit" @click="toExamItem(data.examinationDto)">
|
||||||
去考试
|
去考试
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -235,10 +201,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="teacher">
|
<div class="teacher">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 21px; height: 23px" src="../../assets/image/livelecturer.png" />
|
||||||
style="width: 21px; height: 23px"
|
|
||||||
src="../../assets/image/livelecturer.png"
|
|
||||||
/>
|
|
||||||
<div class="text">面授课讲师</div>
|
<div class="text">面授课讲师</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -299,7 +262,7 @@ const download = (url) => {
|
|||||||
window.open(url);
|
window.open(url);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
ElMessage.info("面授课未开始");
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
};
|
};
|
||||||
let timer = null;
|
let timer = null;
|
||||||
//判断能否签到
|
//判断能否签到
|
||||||
@@ -363,7 +326,7 @@ const signClick = () => {
|
|||||||
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
||||||
let date2 = new Date().getTime()
|
let date2 = new Date().getTime()
|
||||||
if (date1 > date2) {
|
if (date1 > date2) {
|
||||||
ElMessage.info("面授课未开始");
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -391,7 +354,7 @@ function toSurvery() {
|
|||||||
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
||||||
let date2 = new Date().getTime()
|
let date2 = new Date().getTime()
|
||||||
if (date1 > date2) {
|
if (date1 > date2) {
|
||||||
ElMessage.info("面授课未开始");
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -405,6 +368,7 @@ function toSurvery() {
|
|||||||
courseId: data.value.planDto.evaluateId,
|
courseId: data.value.planDto.evaluateId,
|
||||||
pName: "面授课",
|
pName: "面授课",
|
||||||
sName: data.value.planDto.name,
|
sName: data.value.planDto.name,
|
||||||
|
type: 3
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -427,7 +391,7 @@ function toWork() {
|
|||||||
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
||||||
let date2 = new Date().getTime()
|
let date2 = new Date().getTime()
|
||||||
if (date1 > date2) {
|
if (date1 > date2) {
|
||||||
ElMessage.info("面授课未开始");
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -448,7 +412,7 @@ function toExamItem(obj) {
|
|||||||
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
||||||
let date2 = new Date().getTime()
|
let date2 = new Date().getTime()
|
||||||
if (date1 > date2) {
|
if (date1 > date2) {
|
||||||
ElMessage.info("面授课未开始");
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -517,9 +481,11 @@ onUnmounted(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.return {
|
.return {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10%;
|
right: 10%;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -527,6 +493,7 @@ onUnmounted(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailinfo {
|
.detailinfo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
|||||||
@@ -14,11 +14,9 @@
|
|||||||
<span class="content" style="margin-left: 31px">下一个</span>
|
<span class="content" style="margin-left: 31px">下一个</span>
|
||||||
<button class="btn btn02" style="margin-left: 6px"></button>
|
<button class="btn btn02" style="margin-left: 6px"></button>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<div class="return">
|
<div class="return">
|
||||||
<div style="display: flex" @click="returnclick">
|
<div style="display: flex" @click="returnclick">
|
||||||
<img class="img2" style="margin-right: 22px;cursor: pointer;" src="../../assets/image/return.png" />
|
<el-button style="color:#0073FB"> <img class="img2" style="margin-right:11px;cursor: pointer;" src="../../assets/image/return.png" />返回</el-button>
|
||||||
<div style="cursor: pointer;" class="text">返回</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -28,10 +28,7 @@
|
|||||||
<div style="margin-left: 46px">
|
<div style="margin-left: 46px">
|
||||||
<div class="title">【直播】{{ data?.liveName }}</div>
|
<div class="title">【直播】{{ data?.liveName }}</div>
|
||||||
<div class="time" style="margin-top: 26px">
|
<div class="time" style="margin-top: 26px">
|
||||||
<img
|
<img style="width: 15px; height: 17px" src="../../assets/image/time.png" />
|
||||||
style="width: 15px; height: 17px"
|
|
||||||
src="../../assets/image/time.png"
|
|
||||||
/>
|
|
||||||
<div style="margin-left: 8px">
|
<div style="margin-left: 8px">
|
||||||
{{ data?.liveStartTime + "至" + data?.liveEndTime }}
|
{{ data?.liveStartTime + "至" + data?.liveEndTime }}
|
||||||
</div>
|
</div>
|
||||||
@@ -47,37 +44,23 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="threeBtn">
|
<div class="threeBtn">
|
||||||
<botton
|
<botton class="btn" :style="{
|
||||||
class="btn"
|
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : 'rgb(59, 191, 252)'}`,
|
||||||
style="background: rgb(59, 191, 252)"
|
}" @click="showClick">观看
|
||||||
@click="showClick"
|
|
||||||
>观看
|
|
||||||
</botton>
|
</botton>
|
||||||
<botton
|
<botton class="btn" :style="{
|
||||||
class="btn"
|
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.signFlag ? '#999' : 'rgb(57, 146, 249)'}`,
|
||||||
:style="{
|
}" @click="signClick">{{ data.signFlag ? "已签到" : "签到" }}
|
||||||
background: `${data.signFlag ? '#999' : 'rgb(57, 146, 249)'}`,
|
|
||||||
}"
|
|
||||||
@click="signClick"
|
|
||||||
>{{ data.signFlag ? "已签到" : "签到" }}
|
|
||||||
</botton>
|
</botton>
|
||||||
<botton
|
<botton style="background: #999" class="btn" @click="commitClick" v-if="data.isEvaluate == 0">
|
||||||
style="background: #999"
|
|
||||||
class="btn"
|
|
||||||
@click="commitClick"
|
|
||||||
v-if="data.isEvaluate == 0"
|
|
||||||
>
|
|
||||||
评估
|
评估
|
||||||
</botton>
|
</botton>
|
||||||
|
|
||||||
<botton
|
<botton :style="{
|
||||||
:style="{
|
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(57, 146, 249)'}`,
|
||||||
background: `${data.isSurvery ? '#999' : 'rgb(57, 146, 249)'}`,
|
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1">{{ data.isSurvery ? "已评估"
|
||||||
}"
|
: "评估"
|
||||||
class="btn"
|
}}
|
||||||
@click="commitClick"
|
|
||||||
v-if="data.isEvaluate && data.isEvaluate == 1"
|
|
||||||
>{{ data.isSurvery ? "已评估" : "评估" }}
|
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,10 +72,7 @@
|
|||||||
<div class="detailT">
|
<div class="detailT">
|
||||||
<div class="" style="margin-left: 48px; margin-right: 48px">
|
<div class="" style="margin-left: 48px; margin-right: 48px">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 20px; height: 20px" src="../../assets/image/course.png" />
|
||||||
style="width: 20px; height: 20px"
|
|
||||||
src="../../assets/image/course.png"
|
|
||||||
/>
|
|
||||||
<div class="text">直播说明</div>
|
<div class="text">直播说明</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,10 +106,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="tell">
|
<div class="tell">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 21px; height: 23px" src="../../assets/image/tv.png" />
|
||||||
style="width: 21px; height: 23px"
|
|
||||||
src="../../assets/image/tv.png"
|
|
||||||
/>
|
|
||||||
<div class="text">直播公告</div>
|
<div class="text">直播公告</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -137,18 +114,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="teacher">
|
<div class="teacher">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 21px; height: 23px" src="../../assets/image/livelecturer.png" />
|
||||||
style="width: 21px; height: 23px"
|
|
||||||
src="../../assets/image/livelecturer.png"
|
|
||||||
/>
|
|
||||||
<!-- todo #直播详情 没有直播讲师-->
|
<!-- todo #直播详情 没有直播讲师-->
|
||||||
<div class="text">直播讲师</div>
|
<div class="text">直播讲师</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="teacheritem" :style="{ 'border-bottom': '1px solid rgba(56, 125, 247, 0.2)' }">
|
||||||
class="teacheritem"
|
|
||||||
:style="{ 'border-bottom': '1px solid rgba(56, 125, 247, 0.2)' }"
|
|
||||||
>
|
|
||||||
<img class="peopleimg" :src="teacherInfo.avatar" />
|
<img class="peopleimg" :src="teacherInfo.avatar" />
|
||||||
<div style="margin-left: 17px; width: 190px">
|
<div style="margin-left: 17px; width: 190px">
|
||||||
<div class="teacherName" style="margin-right: 5px">
|
<div class="teacherName" style="margin-right: 5px">
|
||||||
@@ -184,7 +155,7 @@ const returnclick = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId });
|
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId });
|
||||||
|
console.log('直播信息', data)
|
||||||
const teacherInfo = useUserInfo(
|
const teacherInfo = useUserInfo(
|
||||||
computed(() => data.value.userInfoBo?.userId)
|
computed(() => data.value.userInfoBo?.userId)
|
||||||
);
|
);
|
||||||
@@ -203,6 +174,14 @@ const state = reactive({
|
|||||||
});
|
});
|
||||||
const { activeName, teacher } = toRefs(state);
|
const { activeName, teacher } = toRefs(state);
|
||||||
const signClick = () => {
|
const signClick = () => {
|
||||||
|
if (data.value.liveStartTime) {
|
||||||
|
let date1 = new Date(data.value.liveStartTime).getTime()
|
||||||
|
let date2 = new Date().getTime()
|
||||||
|
if (date1 > date2) {
|
||||||
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (data.value.signFlag) {
|
if (data.value.signFlag) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -211,9 +190,17 @@ const signClick = () => {
|
|||||||
request(TASK_BROADCAST_SIGN, { courseId: liveId, taskId, type });
|
request(TASK_BROADCAST_SIGN, { courseId: liveId, taskId, type });
|
||||||
};
|
};
|
||||||
const commitClick = () => {
|
const commitClick = () => {
|
||||||
if (data.value.isSurvery) {
|
if (data.value.liveStartTime) {
|
||||||
|
let date1 = new Date(data.value.liveStartTime).getTime()
|
||||||
|
let date2 = new Date().getTime()
|
||||||
|
if (date1 > date2) {
|
||||||
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (data.value.isSurvery) {
|
||||||
|
// return;
|
||||||
|
}
|
||||||
if (data.value.isEvaluate == 0) {
|
if (data.value.isEvaluate == 0) {
|
||||||
ElMessage.info("此直播无评估");
|
ElMessage.info("此直播无评估");
|
||||||
return;
|
return;
|
||||||
@@ -225,11 +212,20 @@ const commitClick = () => {
|
|||||||
courseId: data.value.assessmentId,
|
courseId: data.value.assessmentId,
|
||||||
pName: "直播",
|
pName: "直播",
|
||||||
sName: data.value.liveName,
|
sName: data.value.liveName,
|
||||||
|
type: 4
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function showClick() {
|
function showClick() {
|
||||||
|
if (data.value.liveStartTime) {
|
||||||
|
let date1 = new Date(data.value.liveStartTime).getTime()
|
||||||
|
let date2 = new Date().getTime()
|
||||||
|
if (date1 > date2) {
|
||||||
|
ElMessage.info("未到开始时间,请耐心等待!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
window.open(data.value.liveLink);
|
window.open(data.value.liveLink);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -244,9 +240,11 @@ function showClick() {
|
|||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.return {
|
.return {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10%;
|
right: 10%;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -254,6 +252,7 @@ function showClick() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.preNext {
|
.preNext {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
@@ -328,6 +327,7 @@ function showClick() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1030px) {
|
@media screen and (max-width: 1030px) {
|
||||||
|
|
||||||
// .threeBtn {
|
// .threeBtn {
|
||||||
// margin-right: 30px;
|
// margin-right: 30px;
|
||||||
// }
|
// }
|
||||||
@@ -335,6 +335,7 @@ function showClick() {
|
|||||||
margin-bottom: -24px;
|
margin-bottom: -24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @media screen and(max-width:) {
|
// @media screen and(max-width:) {
|
||||||
// }
|
// }
|
||||||
.time {
|
.time {
|
||||||
@@ -525,11 +526,9 @@ function showClick() {
|
|||||||
// min-height: 557px;
|
// min-height: 557px;
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(180deg,
|
||||||
180deg,
|
|
||||||
rgba(36, 120, 255, 0.15) 0%,
|
rgba(36, 120, 255, 0.15) 0%,
|
||||||
rgba(255, 255, 255) 50%
|
rgba(255, 255, 255) 50%);
|
||||||
);
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="课程公告" name="first">
|
<el-tab-pane label="课程公告" name="first">
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
{{ data.remark || "暂无公告" }}
|
{{ data.notice || "暂无公告" }}
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!--
|
<!--
|
||||||
@@ -237,11 +237,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 详细信息 -->
|
<!-- 详细信息 -->
|
||||||
<!-- 弹框提示信息 -->
|
<!-- 弹框提示信息 -->
|
||||||
<el-dialog
|
<el-dialog title="" top="347px" v-model="dialogVisible" :show-close="false"
|
||||||
title=""
|
|
||||||
top="347px"
|
|
||||||
v-model="dialogVisible"
|
|
||||||
:show-close="false"
|
|
||||||
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
||||||
width="502px">
|
width="502px">
|
||||||
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">{{ dialogVisibleTip }}</div>
|
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">{{ dialogVisibleTip }}</div>
|
||||||
@@ -378,8 +374,8 @@ function introductionPro() {
|
|||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toFinish(d, sName, chapterId) {
|
function toFinish(d, sName, chapterOrStageId) {
|
||||||
console.log("dddddd", d, sName);
|
console.log("dddddd", d, sName, chapterOrStageId);
|
||||||
// 作业过期判断
|
// 作业过期判断
|
||||||
if (d.type == 4) {
|
if (d.type == 4) {
|
||||||
let date1 = new Date(d.endTime).getTime();
|
let date1 = new Date(d.endTime).getTime();
|
||||||
@@ -475,6 +471,7 @@ function toFinish(d, sName, chapterId) {
|
|||||||
courseId: d.courseId,
|
courseId: d.courseId,
|
||||||
pName: data.value.name,
|
pName: data.value.name,
|
||||||
sName,
|
sName,
|
||||||
|
chapterOrStageId
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else if (typeof types.value.path[d.type] === "function") {
|
} else if (typeof types.value.path[d.type] === "function") {
|
||||||
@@ -491,11 +488,13 @@ function whiteTypes(type) {
|
|||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.crumb {
|
.crumb {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
|
||||||
.return {
|
.return {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10%;
|
right: 10%;
|
||||||
|
|||||||
@@ -64,7 +64,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="name" label="路径名称"/>
|
<el-table-column align="center" prop="name" label="路径名称"/>
|
||||||
<el-table-column align="center" prop="introduce" label="路径介绍" #default="scope">
|
<el-table-column align="center" prop="introduce" label="路径介绍" #default="scope">
|
||||||
<el-popover placement="bottom-start" :width="400" title="路径介绍" trigger="hover" :content="scope.row.remark">
|
<el-popover placement="bottom-start" :width="400" title="路径介绍" trigger="hover"
|
||||||
|
:content="scope.row.remark">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<div>{{ scope.row.remark }}</div>
|
<div>{{ scope.row.remark }}</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -86,41 +87,32 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- :src="{ 0: nostarted, 1: completed, 2: ongoing }[scope.row.status]"-->
|
<!-- :src="{ 0: nostarted, 1: completed, 2: ongoing }[scope.row.status]"-->
|
||||||
<!-- 路径列表-->
|
<!-- 路径列表-->
|
||||||
<!-- 路径详情图 -->
|
<!-- 路径详情图 -->
|
||||||
<div :style="{ display: showmapdetail ? 'flex' : 'none' }" class="mapdetail">
|
<div :style="{ display: showmapdetail ? 'flex' : 'none' }" class="mapdetail">
|
||||||
<div v-for="(item, i) in detail?.rows" :key="i">
|
<PathDetailImage img="https://u-pre.boe.com/upload/路径图背景-1671015331292.png" :detail="detail"></PathDetailImage>
|
||||||
<img :src="useImage(`222_0${i + 2}.png`)" />
|
|
||||||
</div>
|
|
||||||
<!-- <div class="modal"-->
|
|
||||||
<!-- style="width: calc(100% - 168px); height: 525px;background-image: url('../../src/assets/image/mapdetail.png');background-size: 100%;background-repeat: no-repeat;">-->
|
|
||||||
<!-- </div>-->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 路径详情图 -->
|
<!-- 路径详情图 -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, toRefs, ref, onMounted, computed } from "vue";
|
import {computed, ref} from "vue";
|
||||||
import nostarted from "../../assets/image/nostarted.png";
|
import nostarted from "../../assets/image/nostarted.png";
|
||||||
import completed from "../../assets/image/completed.png";
|
import completed from "../../assets/image/completed.png";
|
||||||
import ongoing from "../../assets/image/ongoing.png";
|
import ongoing from "../../assets/image/ongoing.png";
|
||||||
import { boeRequest, request, usePage, useRequest } from "@/api/request";
|
import {usePage} from "@/api/request";
|
||||||
import {
|
import {ROUTER_LIST,} from "@/api/api";
|
||||||
ROUTER_CHAPTER_LIST,
|
|
||||||
ROUTER_LIST,
|
|
||||||
ROUTER_UNCOMPLETE_LIST,
|
|
||||||
} from "@/api/api";
|
|
||||||
import { useImage } from "@/api/utils";
|
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
import PathDetailImage from "@/components/PathDetailImage.vue";
|
||||||
|
|
||||||
const detail = ref();
|
const detail = ref();
|
||||||
|
const showmapdetail = ref(false);
|
||||||
|
const currentStageId = ref();
|
||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
const {data} = usePage(ROUTER_LIST, {pageSize: 60});
|
const {data} = usePage(ROUTER_LIST, {pageSize: 60});
|
||||||
console.log("datadata", data);
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const returnclick = () => {
|
const returnclick = () => {
|
||||||
router.back();
|
router.back();
|
||||||
@@ -128,40 +120,25 @@ const returnclick = () => {
|
|||||||
|
|
||||||
// const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {});
|
// const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {});
|
||||||
|
|
||||||
const state = reactive({
|
|
||||||
showmapdetail: false,
|
|
||||||
});
|
|
||||||
const { showmapdetail } = toRefs(state);
|
|
||||||
|
|
||||||
const returnfun = () => {
|
const returnfun = () => {
|
||||||
state.showmapdetail = false;
|
showmapdetail.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
async function gofun({ routerId, name: routerName }) {
|
async function gofun(e) {
|
||||||
// console.log(routerId)
|
detail.value = e
|
||||||
// const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
|
showmapdetail.value = true;
|
||||||
// detail.value = data.data
|
}
|
||||||
// state.showmapdetail = true;
|
|
||||||
// router.push({path: "/pathdetails", query: {routerId}});
|
function toUnTask() {
|
||||||
import.meta.env.MODE === "development"
|
|
||||||
? router.push({
|
|
||||||
path: "/pathdetails",
|
|
||||||
query: { routerId, routerName },
|
|
||||||
})
|
|
||||||
: window.open(
|
|
||||||
`${import.meta.env.VITE_BOE_PATH_DETAIL_URL}/pathdetails¶ms=${encodeURIComponent(
|
|
||||||
`routerId=${routerId}&routerName=${routerName}`
|
|
||||||
)}`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
function toUnTask() { }
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app div:nth-child(1) {
|
#app div:nth-child(1) {
|
||||||
// background: rgba(0, 0, 0, 0) !important;
|
// background: rgba(0, 0, 0, 0) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {}
|
.modal {
|
||||||
|
}
|
||||||
|
|
||||||
.modal:after {
|
.modal:after {
|
||||||
content: "";
|
content: "";
|
||||||
@@ -178,7 +155,7 @@ function toUnTask() { }
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
// flex: 1;
|
// flex: 1;
|
||||||
margin-top: 43px;
|
margin-top: 43px;
|
||||||
|
position: relative;
|
||||||
// background-color: pink;
|
// background-color: pink;
|
||||||
.title {
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -266,7 +243,7 @@ function toUnTask() { }
|
|||||||
|
|
||||||
.mapdetail {
|
.mapdetail {
|
||||||
width: calc(100% - 107px);
|
width: calc(100% - 107px);
|
||||||
height: 577px;
|
min-height: 577px;
|
||||||
background: rgba(242, 245, 247, 0.6);
|
background: rgba(242, 245, 247, 0.6);
|
||||||
margin-top: 26px;
|
margin-top: 26px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@@ -315,6 +292,7 @@ function toUnTask() { }
|
|||||||
margin-left: 28px;
|
margin-left: 28px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-item {
|
.box-item {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|||||||
@@ -74,18 +74,11 @@
|
|||||||
<!-- {{ item.name }}-->
|
<!-- {{ item.name }}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="value.type === 1" class="progressBox">
|
||||||
class="progressBox"
|
|
||||||
:style="{ display: value.type === 1 ? 'block' : 'none' }"
|
|
||||||
>
|
|
||||||
<div>当前进度</div>
|
<div>当前进度</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div style="width: 291px">
|
<div style="width: 291px">
|
||||||
<el-progress
|
<el-progress :percentage="value.currentRatio * 100" :show-text="false" :stroke-width="8" :color="
|
||||||
:percentage="value.currentRatio"
|
|
||||||
:show-text="false"
|
|
||||||
:stroke-width="8"
|
|
||||||
:color="
|
|
||||||
{
|
{
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -93,18 +86,15 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(value.currentRatio / 20)]
|
}[parseInt(value.currentRatio * 100 / 20)]
|
||||||
"
|
" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div style="
|
||||||
style="
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #277aff;
|
color: #277aff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
"
|
" :style="{
|
||||||
:style="{
|
|
||||||
color: {
|
color: {
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -112,28 +102,17 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(value.currentRatio / 20)],
|
}[parseInt(value.currentRatio * 100 / 20)],
|
||||||
}"
|
}">
|
||||||
>
|
{{ value.currentRatio * 100 }}%
|
||||||
{{ value.currentRatio }}%
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="goclass" :style="{
|
||||||
class="goclass"
|
|
||||||
:style="{
|
|
||||||
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
|
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
|
||||||
}"
|
}" @click="toFinish(value)">
|
||||||
@click="toFinish(value)"
|
{{ value.currentRatio === 1 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放" }}
|
||||||
>
|
|
||||||
{{
|
|
||||||
value.status === 1
|
|
||||||
? "已完成"
|
|
||||||
: types.path[value.type]
|
|
||||||
? types.toName[value.type]
|
|
||||||
: "未开放"
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
|
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
|
||||||
<!-- <div-->
|
<!-- <div-->
|
||||||
@@ -194,18 +173,12 @@
|
|||||||
<div class="detailRB">
|
<div class="detailRB">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 21px; height: 20px" src="../../assets/image/pathdetails/info.png" />
|
||||||
style="width: 21px; height: 20px"
|
|
||||||
src="../../assets/image/pathdetails/info.png"
|
|
||||||
/>
|
|
||||||
<div class="text" style="margin-left: 7px">个人信息</div>
|
<div class="text" style="margin-left: 7px">个人信息</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- todo #路径详情 个人信息缺少img和介绍-->
|
<!-- todo #路径详情 个人信息缺少img和介绍-->
|
||||||
<div
|
<div class="teacheritem" :style="{ 'border-bottom': '1px solid rgba(56, 125, 247, 0.2)' }">
|
||||||
class="teacheritem"
|
|
||||||
:style="{ 'border-bottom': '1px solid rgba(56, 125, 247, 0.2)' }"
|
|
||||||
>
|
|
||||||
<img class="peopleimg" :src="userInfo.avatar" />
|
<img class="peopleimg" :src="userInfo.avatar" />
|
||||||
<div style="margin-left: 17px">
|
<div style="margin-left: 17px">
|
||||||
<div class="teacherName">
|
<div class="teacherName">
|
||||||
@@ -222,10 +195,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="info" style="padding-top: 20px">
|
<div class="info" style="padding-top: 20px">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img style="width: 18px; height: 17px" src="../../assets/image/pathdetails/study.png" />
|
||||||
style="width: 18px; height: 17px"
|
|
||||||
src="../../assets/image/pathdetails/study.png"
|
|
||||||
/>
|
|
||||||
<div class="text" style="margin-left: 9px">学习进度</div>
|
<div class="text" style="margin-left: 9px">学习进度</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -239,11 +209,8 @@
|
|||||||
<div>总进度</div>
|
<div>总进度</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div style="width: 291px">
|
<div style="width: 291px">
|
||||||
<el-progress
|
<el-progress :percentage="parseInt(data.currentChapterCnt / data.totalChapterCnt * 100)"
|
||||||
:percentage="parseInt(data.currentChapterCnt/data.totalChapterCnt * 100)"
|
:show-text="false" :stroke-width="8" :color="
|
||||||
:show-text="false"
|
|
||||||
:stroke-width="8"
|
|
||||||
:color="
|
|
||||||
{
|
{
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -252,12 +219,9 @@
|
|||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[(parseInt(data.currentChapterCnt / data.totalChapterCnt) * 100) / 20]
|
}[(parseInt(data.currentChapterCnt / data.totalChapterCnt) * 100) / 20]
|
||||||
"
|
" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div style="font-size: 14px; font-weight: 500; margin-left: 10px" :style="{
|
||||||
style="font-size: 14px; font-weight: 500; margin-left: 10px"
|
|
||||||
:style="{
|
|
||||||
color: {
|
color: {
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -266,8 +230,7 @@
|
|||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt((data.currentChapterCnt / data.totalChapterCnt * 100) / 20)],
|
}[parseInt((data.currentChapterCnt / data.totalChapterCnt * 100) / 20)],
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
{{ parseInt(data.currentChapterCnt / data.totalChapterCnt * 100) }}%
|
{{ parseInt(data.currentChapterCnt / data.totalChapterCnt * 100) }}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -278,11 +241,8 @@
|
|||||||
<div>必修进度</div>
|
<div>必修进度</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div style="width: 291px">
|
<div style="width: 291px">
|
||||||
<el-progress
|
<el-progress :percentage="parseInt(data.currentReqCnt / data.totalReqCnt * 100)" :show-text="false"
|
||||||
:percentage="parseInt(data.currentReqCnt/data.totalReqCnt * 100)"
|
:stroke-width="8" :color="
|
||||||
:show-text="false"
|
|
||||||
:stroke-width="8"
|
|
||||||
:color="
|
|
||||||
{
|
{
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -291,17 +251,14 @@
|
|||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)]
|
}[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)]
|
||||||
"
|
" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div style="
|
||||||
style="
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #277aff;
|
color: #277aff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
"
|
" :style="{
|
||||||
:style="{
|
|
||||||
color: {
|
color: {
|
||||||
0: 'rgba(238, 112, 108, 1)',
|
0: 'rgba(238, 112, 108, 1)',
|
||||||
1: 'rgba(255, 151, 38, 1)',
|
1: 'rgba(255, 151, 38, 1)',
|
||||||
@@ -310,8 +267,7 @@
|
|||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)],
|
}[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)],
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
{{ parseInt(data.currentReqCnt / data.totalReqCnt * 100) }}%
|
{{ parseInt(data.currentReqCnt / data.totalReqCnt * 100) }}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -324,11 +280,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 详细信息 -->
|
<!-- 详细信息 -->
|
||||||
<!-- 弹框提示信息 -->
|
<!-- 弹框提示信息 -->
|
||||||
<el-dialog
|
<el-dialog title="" top="347px" v-model="dialogVisible" :show-close="false"
|
||||||
title=""
|
|
||||||
top="347px"
|
|
||||||
v-model="dialogVisible"
|
|
||||||
:show-close="false"
|
|
||||||
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
||||||
width="502px">
|
width="502px">
|
||||||
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">{{ dialogVisibleTip }}</div>
|
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">{{ dialogVisibleTip }}</div>
|
||||||
@@ -359,7 +311,7 @@ const returnclick = () => {
|
|||||||
};
|
};
|
||||||
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
|
console.log('lalalallala', data)
|
||||||
const activeName = ref("first");
|
const activeName = ref("first");
|
||||||
|
|
||||||
const handleClick = (tab, event) => {
|
const handleClick = (tab, event) => {
|
||||||
@@ -429,6 +381,8 @@ const types = ref({
|
|||||||
});
|
});
|
||||||
|
|
||||||
function toFinish(d) {
|
function toFinish(d) {
|
||||||
|
console.log(d)
|
||||||
|
console.log(data.value.currentStageId, routerId)
|
||||||
if (!types.value.path[d.type]) {
|
if (!types.value.path[d.type]) {
|
||||||
ElMessage.error("暂时未开放");
|
ElMessage.error("暂时未开放");
|
||||||
return;
|
return;
|
||||||
@@ -451,11 +405,13 @@ function toFinish(d) {
|
|||||||
router.push({
|
router.push({
|
||||||
path: types.value.path[d.type],
|
path: types.value.path[d.type],
|
||||||
query: {
|
query: {
|
||||||
id: d.routerTaskId,
|
// id: d.routerTaskId,
|
||||||
|
id: routerId,
|
||||||
type: 1,
|
type: 1,
|
||||||
courseId: d.courseId,
|
courseId: d.courseId,
|
||||||
pName: data.value.name,
|
pName: data.value.name,
|
||||||
sName: data.value.currentStageName,
|
sName: data.value.currentStageName,
|
||||||
|
chapterOrStageId: data.value.currentStageId
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else if (typeof types.value.path[d.type] === "function") {
|
} else if (typeof types.value.path[d.type] === "function") {
|
||||||
@@ -756,9 +712,5 @@ function whiteTypes(type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.jianjie{
|
|
||||||
text-align:justify;
|
|
||||||
line-height:2,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="surveydetail" style="padding: 30px">
|
<div class="surveydetail" style="padding: 30px">
|
||||||
<!-- 面包屑导航 -->
|
<!-- 面包屑导航 -->
|
||||||
<div
|
<div style="display: flex; align-items: center; justify-content: space-between">
|
||||||
style="display: flex; align-items: center; justify-content: space-between"
|
|
||||||
>
|
|
||||||
<div class="crumb">
|
<div class="crumb">
|
||||||
<div>{{ pName }}</div>
|
<div>{{ pName }}</div>
|
||||||
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
||||||
@@ -44,34 +42,21 @@
|
|||||||
return a[0].orderNumber - b[0].orderNumber
|
return a[0].orderNumber - b[0].orderNumber
|
||||||
}) }} -->
|
}) }} -->
|
||||||
|
|
||||||
<div
|
<div class="question" v-for="
|
||||||
class="question"
|
|
||||||
v-for="
|
|
||||||
(value, index) in formateArr([data.assessmentEssayQuestionDtoList, data.assessmentMultipleChoiceDtoList, data.assessmentScoringQuestionDtoList, data.assessmentSingleChoiceDtoList]).sort((a, b) => {
|
(value, index) in formateArr([data.assessmentEssayQuestionDtoList, data.assessmentMultipleChoiceDtoList, data.assessmentScoringQuestionDtoList, data.assessmentSingleChoiceDtoList]).sort((a, b) => {
|
||||||
return a[0].orderNumber - b[0].orderNumber
|
return a[0].orderNumber - b[0].orderNumber
|
||||||
}) "
|
}) " :key="index" :style="{ 'margin-top': index === 0 ? '57px' : '41px' }">
|
||||||
:key="index"
|
|
||||||
:style="{ 'margin-top': index === 0 ? '57px' : '41px' }"
|
|
||||||
>
|
|
||||||
<div v-if="value[0].questionType == '4'">
|
<div v-if="value[0].questionType == '4'">
|
||||||
<div
|
<div class="question" v-for="(value, index) in data.assessmentScoringQuestionDtoList" :key="index"
|
||||||
class="question"
|
:style="{ 'margin-top': index === 0 ? '57px' : '41px' }">
|
||||||
v-for="(value, index) in data.assessmentScoringQuestionDtoList"
|
|
||||||
:key="index"
|
|
||||||
:style="{ 'margin-top': index === 0 ? '57px' : '41px' }"
|
|
||||||
>
|
|
||||||
<div class="text">{{ value.assessmentScTitle }}</div>
|
<div class="text">{{ value.assessmentScTitle }}</div>
|
||||||
<div class="answer">
|
<div class="answer">
|
||||||
<div class="answerL">完全没用</div>
|
<div class="answerL">完全没用</div>
|
||||||
<div class="answerC">
|
<div class="answerC">
|
||||||
<div
|
<div class="answerCitem" v-for="(item, key) in Array.from(
|
||||||
class="answerCitem"
|
|
||||||
v-for="(item, key) in Array.from(
|
|
||||||
{ length: value.assessmentMaxScore },
|
{ length: value.assessmentMaxScore },
|
||||||
(k, i) => i
|
(k, i) => i
|
||||||
)"
|
)" :key="key" :style="{
|
||||||
:key="key"
|
|
||||||
:style="{
|
|
||||||
'margin-left': key === 0 ? '15px' : '10px',
|
'margin-left': key === 0 ? '15px' : '10px',
|
||||||
background:
|
background:
|
||||||
value.selectAnswer === item
|
value.selectAnswer === item
|
||||||
@@ -81,16 +66,14 @@
|
|||||||
value.selectAnswer === item
|
value.selectAnswer === item
|
||||||
? '#fff'
|
? '#fff'
|
||||||
: 'rgba(86, 163, 249, 1)',
|
: 'rgba(86, 163, 249, 1)',
|
||||||
}"
|
}" @click="
|
||||||
@click="
|
|
||||||
() => {
|
() => {
|
||||||
if (data.isSubmit) {
|
if (data.isSubmit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
value.selectAnswer = item;
|
value.selectAnswer = item;
|
||||||
}
|
}
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<div>{{ item + 1 }}</div>
|
<div>{{ item + 1 }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,26 +83,18 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="value[0].questionType == '1'">
|
<div v-else-if="value[0].questionType == '1'">
|
||||||
<div
|
<div class="question" style="margin-top: 41px" v-if="
|
||||||
class="question"
|
|
||||||
style="margin-top: 41px"
|
|
||||||
v-if="
|
|
||||||
data.assessmentSingleChoiceDtoList &&
|
data.assessmentSingleChoiceDtoList &&
|
||||||
data.assessmentSingleChoiceDtoList.length
|
data.assessmentSingleChoiceDtoList.length
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{{ data.assessmentSingleChoiceDtoList[0]?.singleStemName }}
|
{{ data.assessmentSingleChoiceDtoList[0]?.singleStemName }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-for="(value, index) in data.assessmentSingleChoiceDtoList" :key="index"
|
||||||
v-for="(value, index) in data.assessmentSingleChoiceDtoList"
|
style="display: flex; align-items: center" :style="{
|
||||||
:key="index"
|
|
||||||
style="display: flex; align-items: center"
|
|
||||||
:style="{
|
|
||||||
'margin-top': index === 0 ? '29px' : '22px',
|
'margin-top': index === 0 ? '29px' : '22px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
}"
|
}" @click="
|
||||||
@click="
|
|
||||||
() => {
|
() => {
|
||||||
if (data.isSubmit) {
|
if (data.isSubmit) {
|
||||||
return;
|
return;
|
||||||
@@ -129,72 +104,46 @@
|
|||||||
});
|
});
|
||||||
value.select = true;
|
value.select = true;
|
||||||
}
|
}
|
||||||
"
|
">
|
||||||
>
|
<img style="width: 19px; height: 18px; cursor: pointer" :src="value.select ? checkbox : checkbox2" />
|
||||||
<img
|
|
||||||
style="width: 19px; height: 18px; cursor: pointer"
|
|
||||||
:src="value.select ? checkbox : checkbox2"
|
|
||||||
/>
|
|
||||||
<div class="people">{{ value.singleOptionName }}</div>
|
<div class="people">{{ value.singleOptionName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="value[0].questionType == '2'">
|
<div v-else-if="value[0].questionType == '2'">
|
||||||
<div
|
<div class="question" style="margin-top: 41px" v-if="
|
||||||
class="question"
|
|
||||||
style="margin-top: 41px"
|
|
||||||
v-if="
|
|
||||||
data.assessmentMultipleChoiceDtoList &&
|
data.assessmentMultipleChoiceDtoList &&
|
||||||
data.assessmentMultipleChoiceDtoList.length
|
data.assessmentMultipleChoiceDtoList.length
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{{ data.assessmentMultipleChoiceDtoList[0]?.multipleStemName }}
|
{{ data.assessmentMultipleChoiceDtoList[0]?.multipleStemName }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-for="(value, index) in data.assessmentMultipleChoiceDtoList" :key="index"
|
||||||
v-for="(value, index) in data.assessmentMultipleChoiceDtoList"
|
style="display: flex; align-items: center" :style="{
|
||||||
:key="index"
|
|
||||||
style="display: flex; align-items: center"
|
|
||||||
:style="{
|
|
||||||
'margin-top': index === 0 ? '29px' : '22px',
|
'margin-top': index === 0 ? '29px' : '22px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
}"
|
}" @click="
|
||||||
@click="
|
|
||||||
() => {
|
() => {
|
||||||
if (data.isSubmit) {
|
if (data.isSubmit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
value.select = !value.select;
|
value.select = !value.select;
|
||||||
}
|
}
|
||||||
"
|
">
|
||||||
>
|
<img style="width: 19px; height: 18px; cursor: pointer" :src="value.select ? checkbox : checkbox2" />
|
||||||
<img
|
|
||||||
style="width: 19px; height: 18px; cursor: pointer"
|
|
||||||
:src="value.select ? checkbox : checkbox2"
|
|
||||||
/>
|
|
||||||
<div class="people">{{ value.multipleOptionName }}</div>
|
<div class="people">{{ value.multipleOptionName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="value[0].questionType == '3'">
|
<div v-else-if="value[0].questionType == '3'">
|
||||||
<div
|
<div class="question" style="margin-top: 41px" v-for="(item, i) in data.assessmentEssayQuestionDtoList"
|
||||||
class="question"
|
:key="i">
|
||||||
style="margin-top: 41px"
|
|
||||||
v-for="(item, i) in data.assessmentEssayQuestionDtoList"
|
|
||||||
:key="i"
|
|
||||||
>
|
|
||||||
<div class="text">{{ item.assessmentQaTitle }}</div>
|
<div class="text">{{ item.assessmentQaTitle }}</div>
|
||||||
<div style="width: 713px; margin-top: 31px; position: relative">
|
<div style="width: 713px; margin-top: 31px; position: relative">
|
||||||
<el-input
|
<el-input v-model="item.content" :autosize="{ minRows: 5, maxRows: 5 }" resize="none" maxlength="200"
|
||||||
v-model="item.content"
|
type="textarea" :readonly="!!data.isSubmit" />
|
||||||
:autosize="{ minRows: 5, maxRows: 5 }"
|
|
||||||
resize="none"
|
|
||||||
maxlength="200"
|
|
||||||
type="textarea"
|
|
||||||
:readonly="!!data.isSubmit"
|
|
||||||
/>
|
|
||||||
<div class="words">{{ item.content?.length || 0 }}/200</div>
|
<div class="words">{{ item.content?.length || 0 }}/200</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -340,20 +289,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div
|
<div style="display: flex; justify-content: center" v-if="
|
||||||
style="display: flex; justify-content: center"
|
|
||||||
v-if="
|
|
||||||
data.assessmentEssayQuestionDtoList?.length ||
|
data.assessmentEssayQuestionDtoList?.length ||
|
||||||
data.assessmentMultipleChoiceDtoList?.length ||
|
data.assessmentMultipleChoiceDtoList?.length ||
|
||||||
data.assessmentSingleChoiceDtoList?.length ||
|
data.assessmentSingleChoiceDtoList?.length ||
|
||||||
data.assessmentScoringQuestionDtoList?.length
|
data.assessmentScoringQuestionDtoList?.length
|
||||||
"
|
">
|
||||||
>
|
<div class="submit" @click="submit" :style="{ background: data.isSubmit ? '#999' : '#2478ff' }">
|
||||||
<div
|
|
||||||
class="submit"
|
|
||||||
@click="submit"
|
|
||||||
:style="{ background: data.isSubmit ? '#999' : '#2478ff' }"
|
|
||||||
>
|
|
||||||
提交
|
提交
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -368,8 +310,12 @@
|
|||||||
</span></div>
|
</span></div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button class="cancel" style="color: #387DF7; border: 1px solid #387DF7;padding: 8px 32px; border-radius: 4px;" @click="centerDialogVisible = false">取消</el-button>
|
<el-button class="cancel"
|
||||||
<el-button class="back" style="background: #387DF7;box-shadow: 1px 2px 15px 1px rgba(56,125,247,0.34);border: 0px;padding: 8px 32px;" type="primary" @click="returnclick">
|
style="color: #387DF7; border: 1px solid #387DF7;padding: 8px 32px; border-radius: 4px;"
|
||||||
|
@click="centerDialogVisible = false">取消</el-button>
|
||||||
|
<el-button class="back"
|
||||||
|
style="background: #387DF7;box-shadow: 1px 2px 15px 1px rgba(56,125,247,0.34);border: 0px;padding: 8px 32px;"
|
||||||
|
type="primary" @click="returnclick">
|
||||||
返回
|
返回
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
@@ -386,7 +332,7 @@ import { ElMessage } from "element-plus";
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
query: { courseId, id: taskId, type, pName, sName },
|
query: { courseId, id: taskId, type, pName, sName, chapterOrStageId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const returnclick = () => {
|
const returnclick = () => {
|
||||||
@@ -405,7 +351,7 @@ function formateArr(arr1) {
|
|||||||
return newarr
|
return newarr
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId });
|
const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId, type, chapterOrStageId, targetId: taskId });
|
||||||
console.log('我是需要排序得题目', data)
|
console.log('我是需要排序得题目', data)
|
||||||
|
|
||||||
function goHome() {
|
function goHome() {
|
||||||
@@ -417,6 +363,17 @@ const open=()=>{
|
|||||||
centerDialogVisible.value = true
|
centerDialogVisible.value = true
|
||||||
};
|
};
|
||||||
function submit() {
|
function submit() {
|
||||||
|
if (1 > 0) {
|
||||||
|
console.log(data)
|
||||||
|
console.log('我是提交的数据', {
|
||||||
|
targetId: taskId, // 项目、路径图或开课的Id
|
||||||
|
chapterOrStageId: chapterOrStageId, // 关卡或者阶段Id 关卡Id不允许为空
|
||||||
|
assessmentId: courseId,
|
||||||
|
taskId,
|
||||||
|
type,
|
||||||
|
result: JSON.stringify(data.value),
|
||||||
|
})
|
||||||
|
}
|
||||||
if (data.value.isSubmit) {
|
if (data.value.isSubmit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -463,6 +420,8 @@ function submit() {
|
|||||||
}
|
}
|
||||||
data.value.isSubmit = !data.value.isSubmit;
|
data.value.isSubmit = !data.value.isSubmit;
|
||||||
request(ASSESSMENT_SUBMIT, {
|
request(ASSESSMENT_SUBMIT, {
|
||||||
|
targetId: taskId, // 项目、路径图或开课的Id
|
||||||
|
chapterOrStageId: chapterOrStageId, // 关卡或者阶段Id 关卡Id不允许为空
|
||||||
assessmentId: courseId,
|
assessmentId: courseId,
|
||||||
taskId,
|
taskId,
|
||||||
type,
|
type,
|
||||||
@@ -481,9 +440,11 @@ function submit() {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.return {
|
.return {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10%;
|
right: 10%;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -491,6 +452,7 @@ function submit() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prevnext {
|
.prevnext {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -548,6 +510,7 @@ function submit() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: 11px;
|
margin-left: 11px;
|
||||||
margin-right: 11px;
|
margin-right: 11px;
|
||||||
|
|
||||||
// justify-content: center;
|
// justify-content: center;
|
||||||
.answerCitem {
|
.answerCitem {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
|||||||