mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 19:06:48 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-stu into develop
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div>{{ sName }}</div>
|
||||
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
||||
<div style="font-weight: 700; font-size: 16px">作业详情</div>
|
||||
<!--
|
||||
<!--
|
||||
<div class="preNext">
|
||||
<button class="btn btn01"></button>
|
||||
<span class="content" style="margin-left: 6px">上一个</span>
|
||||
@@ -16,15 +16,17 @@
|
||||
</div>-->
|
||||
|
||||
<div class="return">
|
||||
<div style="display: flex" @click="returnclick">
|
||||
<img
|
||||
class="img2" style="margin-right:22px;"
|
||||
src="../../assets/image/return.png"
|
||||
/>
|
||||
<div class="text">返回</div>
|
||||
<div style="display: flex" @click="returnclick">
|
||||
<img
|
||||
class="img2"
|
||||
style="margin-right: 22px"
|
||||
src="../../assets/image/return.png"
|
||||
/>
|
||||
<div class="text">返回</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div @click="returnclick">返回</div>
|
||||
<!-- 面包屑导航 -->
|
||||
<div class="debateTitle" style="color: #fff">
|
||||
【作业】管理者进阶腾飞班 - 中级管理者作业
|
||||
@@ -34,7 +36,7 @@
|
||||
<div class="detail">
|
||||
<div class="detailT">
|
||||
<div
|
||||
style="
|
||||
style="
|
||||
margin-left: 45px;
|
||||
margin-right: 42px;
|
||||
position: relative;
|
||||
@@ -43,8 +45,8 @@
|
||||
>
|
||||
<div class="title">
|
||||
<img
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">作业名称</div>
|
||||
<div class="box"></div>
|
||||
@@ -58,52 +60,52 @@
|
||||
</div>
|
||||
<UploadImg v-model="fileList" ref="uploadRef">
|
||||
<button
|
||||
class="shangchuan"
|
||||
style="cursor: pointer"
|
||||
@mousemove="showFileList = 1"
|
||||
@mouseout="showFileList = 0"
|
||||
class="shangchuan"
|
||||
style="cursor: pointer"
|
||||
@mousemove="showFileList = 1"
|
||||
@mouseout="showFileList = 0"
|
||||
>
|
||||
上传
|
||||
</button>
|
||||
</UploadImg>
|
||||
<div
|
||||
class="uploadDetail"
|
||||
:style="{ display: showFileList ? 'block' : 'none' }"
|
||||
@mousemove="showFileList = 1"
|
||||
@mouseout="showFileList = 0"
|
||||
style="padding-top: 60px"
|
||||
class="uploadDetail"
|
||||
:style="{ display: showFileList ? 'block' : 'none' }"
|
||||
@mousemove="showFileList = 1"
|
||||
@mouseout="showFileList = 0"
|
||||
style="padding-top: 60px"
|
||||
>
|
||||
<div class="triangle"></div>
|
||||
<div class="square clearfix">
|
||||
<div
|
||||
class="squarecontent1"
|
||||
v-for="(file, i) in fileList"
|
||||
:key="i"
|
||||
class="squarecontent1"
|
||||
v-for="(file, i) in fileList"
|
||||
:key="i"
|
||||
>
|
||||
<FileTypeImg
|
||||
v-model="file.name"
|
||||
:style="{ margin: '12px 15px 0 27px' }"
|
||||
v-model="file.name"
|
||||
:style="{ margin: '12px 15px 0 27px' }"
|
||||
></FileTypeImg>
|
||||
<div class="rarDetail">
|
||||
<span class="detail1" style="margin-right: 130px">
|
||||
{{ file.name }}
|
||||
</span>
|
||||
<span class="detail2" style="margin-right: 10px"
|
||||
>{{ file.percentage }}%</span
|
||||
>{{ file.percentage }}%</span
|
||||
>
|
||||
<span class="detail1">{{
|
||||
{
|
||||
ready: "正在上传",
|
||||
abort: "暂停",
|
||||
uploading: "正在上传",
|
||||
fail: "上传失败",
|
||||
success: "上传成功",
|
||||
}[file.status]
|
||||
}}</span>
|
||||
{
|
||||
ready: "正在上传",
|
||||
abort: "暂停",
|
||||
uploading: "正在上传",
|
||||
fail: "上传失败",
|
||||
success: "上传成功",
|
||||
}[file.status]
|
||||
}}</span>
|
||||
<div class="progress">
|
||||
<div
|
||||
class="progressinner"
|
||||
:style="{ width: `${(291 * file.percentage) / 100}px` }"
|
||||
class="progressinner"
|
||||
:style="{ width: `${(291 * file.percentage) / 100}px` }"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -134,8 +136,8 @@
|
||||
|
||||
<div class="title">
|
||||
<img
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">作业内容</div>
|
||||
<div class="box"></div>
|
||||
@@ -143,10 +145,10 @@
|
||||
|
||||
<div class="join">
|
||||
<el-input
|
||||
v-model="sbValue.content"
|
||||
:autosize="{ minRows: 12.5, maxRows: 12.5 }"
|
||||
resize="none"
|
||||
type="textarea"
|
||||
v-model="sbValue.content"
|
||||
:autosize="{ minRows: 12.5, maxRows: 12.5 }"
|
||||
resize="none"
|
||||
type="textarea"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: center">
|
||||
@@ -157,8 +159,8 @@
|
||||
|
||||
<div class="title" style="margin-top: 0px">
|
||||
<img
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">历史纪录</div>
|
||||
<div class="box"></div>
|
||||
@@ -170,10 +172,10 @@
|
||||
<div class="content2">作业内容</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(value, index) in submitList"
|
||||
:key="index"
|
||||
class="historytitle2"
|
||||
:style="{
|
||||
v-for="(value, index) in submitList"
|
||||
:key="index"
|
||||
class="historytitle2"
|
||||
:style="{
|
||||
'border-bottom':
|
||||
index === submitList.length - 1
|
||||
? '1px solid rgba(215, 229, 253, 0)'
|
||||
@@ -183,7 +185,7 @@
|
||||
<div class="content1">{{ value.createTime }}</div>
|
||||
<div class="content2">
|
||||
<div
|
||||
style="
|
||||
style="
|
||||
width: 95%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -201,8 +203,8 @@
|
||||
<div class="right">
|
||||
<div class="righttitle">
|
||||
<img
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">截止时间</div>
|
||||
<div class="box"></div>
|
||||
@@ -219,21 +221,21 @@
|
||||
<div class="endtimetext">
|
||||
距离结束还有
|
||||
<span class="te">{{
|
||||
parseInt(
|
||||
dayjs(data?.submitEndTime).diff(dayjs(), "minute") / 60
|
||||
)
|
||||
}}</span
|
||||
parseInt(
|
||||
dayjs(data?.submitEndTime).diff(dayjs(), "minute") / 60
|
||||
)
|
||||
}}</span
|
||||
> 小时 <span class="te">{{
|
||||
dayjs(data?.submitEndTime).diff(dayjs(), "minute") % 60
|
||||
}}</span
|
||||
> 分钟
|
||||
> 分钟
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="righttitle">
|
||||
<img
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
style="width: 20px; height: 20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
|
||||
<div class="text">作业说明</div>
|
||||
@@ -242,9 +244,9 @@
|
||||
<div class="explain clearfix">
|
||||
<!-- todo #作业任务详情 作业说明是作业要求字段么?-->
|
||||
<div
|
||||
class="explain1"
|
||||
style="margin-top: 26px"
|
||||
v-html="data?.workRequirement"
|
||||
class="explain1"
|
||||
style="margin-top: 26px"
|
||||
v-html="data?.workRequirement"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -254,8 +256,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {reactive, ref, toRefs} from "vue";
|
||||
import {request, useRequest} from "@/api/request";
|
||||
import { reactive, ref, toRefs } from "vue";
|
||||
import { request, useRequest } from "@/api/request";
|
||||
import {
|
||||
TASK_WORK_COMMIT,
|
||||
TASK_WORK_DETAIL,
|
||||
@@ -263,37 +265,38 @@ import {
|
||||
WORK_HISTROY,
|
||||
} from "@/api/api";
|
||||
import dayjs from "dayjs";
|
||||
import {useRouter} from "vue-router";
|
||||
import { useRouter } from "vue-router";
|
||||
import UploadImg from "@/components/img/UploadImg.vue";
|
||||
import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import {useRoute} from "vue-router/dist/vue-router";
|
||||
import { useRoute } from "vue-router/dist/vue-router";
|
||||
|
||||
const fileList = ref([]);
|
||||
const uploadRef = ref();
|
||||
const showFileList = ref(0);
|
||||
const sbValue = ref({
|
||||
content: '',
|
||||
attach: ''
|
||||
})
|
||||
content: "",
|
||||
attach: "",
|
||||
});
|
||||
const router = useRouter();
|
||||
const returnclick = () => {
|
||||
router.back();
|
||||
};
|
||||
|
||||
const {
|
||||
query: {courseId: workId, type, id: taskId, pName, sName},
|
||||
query: { courseId: workId, type, id: taskId, pName, sName },
|
||||
} = useRoute();
|
||||
|
||||
const {data} = useRequest(TASK_WORK_DETAIL, {workId, taskId});
|
||||
const {data: submitList} = useRequest(TASK_WORK_SUBMIT_LIST, {workerId:workId});
|
||||
const { data } = useRequest(TASK_WORK_DETAIL, { workId, taskId });
|
||||
const { data: submitList } = useRequest(TASK_WORK_SUBMIT_LIST, {
|
||||
workerId: workId,
|
||||
});
|
||||
|
||||
const handleClick = () => {
|
||||
console.log(sbValue.value)
|
||||
console.log(fileList)
|
||||
console.log(sbValue.value);
|
||||
console.log(fileList);
|
||||
request(TASK_WORK_COMMIT, {
|
||||
projectOrRouterLogo: type,
|
||||
workUploadContent: sbValue.value.content,
|
||||
workUploadAddress: fileList.value.map(e => e.url).join(',') || '',
|
||||
workUploadAddress: fileList.value.map((e) => e.url).join(",") || "",
|
||||
workId,
|
||||
type,
|
||||
taskId,
|
||||
@@ -322,14 +325,14 @@ function reUpload(i) {
|
||||
line-height: 24px;
|
||||
position: relative;
|
||||
}
|
||||
.return{
|
||||
.return {
|
||||
position: absolute;
|
||||
right: 10%;
|
||||
.text{
|
||||
.text {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
.preNext {
|
||||
@@ -723,25 +726,25 @@ function reUpload(i) {
|
||||
|
||||
.allbox1 {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
rgba(160, 193, 230, 0) 0%,
|
||||
rgba(161, 195, 231, 0.2) 100%
|
||||
0deg,
|
||||
rgba(160, 193, 230, 0) 0%,
|
||||
rgba(161, 195, 231, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.allbox2 {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
rgba(177, 219, 229, 0) 0%,
|
||||
rgba(172, 216, 227, 0.2) 100%
|
||||
0deg,
|
||||
rgba(177, 219, 229, 0) 0%,
|
||||
rgba(172, 216, 227, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.allbox3 {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
rgba(195, 209, 234, 0) 0%,
|
||||
rgba(191, 206, 231, 0.2) 100%
|
||||
0deg,
|
||||
rgba(195, 209, 234, 0) 0%,
|
||||
rgba(191, 206, 231, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
<div @click="returnfun" class="text">学习路径图</div>
|
||||
<div class="info" style="margin-right: 14px" v-if="userInfo.jobName">
|
||||
<img
|
||||
style="width: 20px; height: 18px; margin-right: 10px"
|
||||
src="../../assets/image/pm.png"
|
||||
style="width: 20px; height: 18px; margin-right: 10px"
|
||||
src="../../assets/image/pm.png"
|
||||
/>
|
||||
<div style="margin-top: 1px">{{ userInfo.jobName }}</div>
|
||||
</div>
|
||||
<div class="info" v-if="userInfo.bandDesc">
|
||||
<img
|
||||
style="width: 18px; height: 17px; margin-right: 11px"
|
||||
src="../../assets/image/band.png"
|
||||
style="width: 18px; height: 17px; margin-right: 11px"
|
||||
src="../../assets/image/band.png"
|
||||
/>
|
||||
<div style="margin-top: 2px">{{ userInfo.bandDesc }}</div>
|
||||
</div>
|
||||
@@ -58,9 +58,9 @@
|
||||
<!-- </el-popover>-->
|
||||
</div>
|
||||
<div
|
||||
:style="{ display: showmapdetail ? 'flex' : 'none' }"
|
||||
class="titleR"
|
||||
@click="returnfun"
|
||||
:style="{ display: showmapdetail ? 'flex' : 'none' }"
|
||||
class="titleR"
|
||||
@click="returnfun"
|
||||
>
|
||||
返回列表
|
||||
</div>
|
||||
@@ -70,29 +70,29 @@
|
||||
<div style="min-width: 770px; width: 100%">
|
||||
<el-table :data="data" style="width: 100%" @row-click="gofun">
|
||||
<el-table-column
|
||||
prop="img"
|
||||
label="缩略图"
|
||||
#default="scope"
|
||||
align="center"
|
||||
width="255"
|
||||
prop="img"
|
||||
label="缩略图"
|
||||
#default="scope"
|
||||
align="center"
|
||||
width="255"
|
||||
>
|
||||
<img
|
||||
:src="scope.row.picUrl"
|
||||
style="width: 230px; height: 155px"
|
||||
:src="scope.row.picUrl"
|
||||
style="width: 230px; height: 155px"
|
||||
/>
|
||||
</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"
|
||||
align="center"
|
||||
prop="introduce"
|
||||
label="路径介绍"
|
||||
#default="scope"
|
||||
>
|
||||
<el-popover
|
||||
placement="top-start"
|
||||
title="路径介绍"
|
||||
trigger="hover"
|
||||
:content="scope.row.remark"
|
||||
placement="top-start"
|
||||
title="路径介绍"
|
||||
trigger="hover"
|
||||
:content="scope.row.remark"
|
||||
>
|
||||
<template #reference>
|
||||
<div>{{ scope.row.remark }}</div>
|
||||
@@ -101,19 +101,28 @@
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="organizationName"
|
||||
label="归属组织"
|
||||
align="center"
|
||||
prop="organizationName"
|
||||
label="归属组织"
|
||||
/>
|
||||
<el-table-column
|
||||
#default="scope"
|
||||
align="center"
|
||||
:width="150"
|
||||
prop="state"
|
||||
label="状态"
|
||||
#default="scope"
|
||||
align="center"
|
||||
:width="150"
|
||||
prop="state"
|
||||
label="状态"
|
||||
>
|
||||
<img :src="ongoing"
|
||||
style="width: 99px; height: 99px"
|
||||
<img
|
||||
:src="
|
||||
scope.row.status === 0
|
||||
? ongoing
|
||||
: scope.row.status === 1
|
||||
? completed
|
||||
: scope.row.status === -1
|
||||
? nostarted
|
||||
: null
|
||||
"
|
||||
style="width: 99px; height: 99px"
|
||||
/>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -124,11 +133,11 @@
|
||||
<!-- 路径列表-->
|
||||
<!-- 路径详情图 -->
|
||||
<div
|
||||
:style="{ display: showmapdetail ? 'flex' : 'none' }"
|
||||
class="mapdetail"
|
||||
:style="{ display: showmapdetail ? 'flex' : 'none' }"
|
||||
class="mapdetail"
|
||||
>
|
||||
<div v-for="(item, i) in detail?.rows" :key="i">
|
||||
<img :src="useImage(`222_0${i + 2}.png`)"/>
|
||||
<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;">-->
|
||||
@@ -139,24 +148,24 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {reactive, toRefs, ref, onMounted, computed} from "vue";
|
||||
import { reactive, toRefs, ref, onMounted, computed } from "vue";
|
||||
import nostarted from "../../assets/image/nostarted.png";
|
||||
import completed from "../../assets/image/completed.png";
|
||||
import ongoing from "../../assets/image/ongoing.png";
|
||||
import {boeRequest, request, usePage, useRequest} from "@/api/request";
|
||||
import { boeRequest, request, usePage, useRequest } from "@/api/request";
|
||||
import {
|
||||
ROUTER_CHAPTER_LIST,
|
||||
ROUTER_LIST,
|
||||
ROUTER_UNCOMPLETE_LIST,
|
||||
} from "@/api/api";
|
||||
import {useImage} from "@/api/utils";
|
||||
import {useRouter} from "vue-router";
|
||||
import { useImage } from "@/api/utils";
|
||||
import { useRouter } from "vue-router";
|
||||
import store from "@/store";
|
||||
|
||||
const detail = ref();
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
const {data} = usePage(ROUTER_LIST, {});
|
||||
|
||||
const { data } = usePage(ROUTER_LIST, {});
|
||||
console.log("datadata", data);
|
||||
const router = useRouter();
|
||||
const returnclick = () => {
|
||||
router.back();
|
||||
@@ -167,29 +176,33 @@ const returnclick = () => {
|
||||
const state = reactive({
|
||||
showmapdetail: false,
|
||||
});
|
||||
const {showmapdetail} = toRefs(state);
|
||||
const { showmapdetail } = toRefs(state);
|
||||
|
||||
const returnfun = () => {
|
||||
state.showmapdetail = false;
|
||||
};
|
||||
|
||||
async function gofun({routerId, name: routerName}) {
|
||||
async function gofun({ routerId, name: routerName }) {
|
||||
// console.log(routerId)
|
||||
// const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
|
||||
// detail.value = data.data
|
||||
// state.showmapdetail = true;
|
||||
// router.push({path: "/pathdetails", query: {routerId}});
|
||||
import.meta.env.MODE === 'development' ? router.push({
|
||||
path: "/pathdetails",
|
||||
query: {routerId, routerName}
|
||||
}) : window.open(`http://localhost:5173/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`)
|
||||
import.meta.env.MODE === "development"
|
||||
? router.push({
|
||||
path: "/pathdetails",
|
||||
query: { routerId, routerName },
|
||||
})
|
||||
: window.open(
|
||||
`http://localhost:5173/fe-student/pathdetails¶ms=${encodeURIComponent(
|
||||
`routerId=${routerId}&routerName=${routerName}`
|
||||
)}`
|
||||
);
|
||||
}
|
||||
|
||||
function toUnTask() {
|
||||
}
|
||||
function toUnTask() {}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
.modal {
|
||||
}
|
||||
|
||||
|
||||
@@ -15,38 +15,40 @@
|
||||
<div class="title">
|
||||
<div class="titleL">{{ i.chapterName }}</div>
|
||||
<div class="titleR" :style="{ display: 'flex' }">
|
||||
<img src="../../assets/image/pathdetails/circle.png"/>
|
||||
<img src="../../assets/image/pathdetails/circle.png" />
|
||||
<div class="titleRT">进行中</div>
|
||||
</div>
|
||||
<div
|
||||
class="titleR"
|
||||
:style="{ display: i.status === 2 ? 'flex' : 'none' }"
|
||||
class="titleR"
|
||||
:style="{ display: i.status === 2 ? 'flex' : 'none' }"
|
||||
>
|
||||
<img src="../../assets/image/pathdetails/circle2.png"/>
|
||||
<img src="../../assets/image/pathdetails/circle2.png" />
|
||||
<div class="titleRT" style="color: rgba(102, 102, 102, 1)">
|
||||
未开始
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="course"
|
||||
v-for="(value, index) in i.taskProcessList.filter(e =>!whiteTypes(e.type))"
|
||||
:key="index"
|
||||
class="course"
|
||||
v-for="(value, index) in i.taskProcessList.filter(
|
||||
(e) => !whiteTypes(e.type)
|
||||
)"
|
||||
:key="index"
|
||||
>
|
||||
<div>
|
||||
<div class="coursename">{{ value.name }} </div>
|
||||
<div class="coursename">{{ value.name }}</div>
|
||||
<div class="coursetag">
|
||||
<div
|
||||
class="tag1"
|
||||
style="margin-right: 11px; margin-top: 16px"
|
||||
v-if="value.flag"
|
||||
class="tag1"
|
||||
style="margin-right: 11px; margin-top: 16px"
|
||||
v-if="value.flag"
|
||||
>
|
||||
必修
|
||||
</div>
|
||||
<div
|
||||
class="tag2"
|
||||
style="margin-right: 11px; margin-top: 16px"
|
||||
v-if="!value.flag"
|
||||
class="tag2"
|
||||
style="margin-right: 11px; margin-top: 16px"
|
||||
v-if="!value.flag"
|
||||
>
|
||||
选修
|
||||
</div>
|
||||
@@ -64,17 +66,17 @@
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div
|
||||
class="progressBox"
|
||||
:style="{ display: value.type === 1 ? 'block' : 'none' }"
|
||||
class="progressBox"
|
||||
:style="{ display: value.type === 1 ? 'block' : 'none' }"
|
||||
>
|
||||
<div>当前进度</div>
|
||||
<div class="progress">
|
||||
<div style="width: 291px">
|
||||
<el-progress
|
||||
:percentage="value.currentRatio"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
:percentage="value.currentRatio"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
{
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -87,13 +89,13 @@
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
style="
|
||||
style="
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #277aff;
|
||||
margin-left: 10px;
|
||||
"
|
||||
:style="{
|
||||
:style="{
|
||||
color: {
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -110,18 +112,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="goclass"
|
||||
:style="{
|
||||
class="goclass"
|
||||
:style="{
|
||||
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
|
||||
}"
|
||||
@click="toFinish(value,i.chapterName)"
|
||||
@click="toFinish(value, i.chapterName)"
|
||||
>
|
||||
{{
|
||||
value.status === 1
|
||||
? "已完成"
|
||||
: types.path[value.type]
|
||||
? types.toName[value.type]
|
||||
: "未开放"
|
||||
? "已完成"
|
||||
: types.path[value.type]
|
||||
? types.toName[value.type]
|
||||
: "未开放"
|
||||
}}
|
||||
</div>
|
||||
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
|
||||
@@ -149,34 +151,33 @@
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane label="课程公告" name="first">
|
||||
<div class="notice">
|
||||
{{ data.remark || '暂无公告' }}
|
||||
{{ data.remark || "暂无公告" }}
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<!--
|
||||
<!--
|
||||
<el-tab-pane label="共享文档" name="second"> -->
|
||||
<!-- <div style="padding: 19px 30px 17px 28px">-->
|
||||
<!-- <div-->
|
||||
<!-- v-for="(value, index) in sharedoc"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- style="-->
|
||||
<!-- display: flex;-->
|
||||
<!-- align-items: center;-->
|
||||
<!-- margin-bottom: 15px;-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <img :src="value.img" style="width: 22px; height: 26px"/>-->
|
||||
<!-- <div class="sharedocname">{{ value.name }}</div>-->
|
||||
<!-- <div class="download">-->
|
||||
<!-- <img-->
|
||||
<!-- src="../../assets/image/download.png"-->
|
||||
<!-- style="width: 16px; height: 15px"-->
|
||||
<!-- />-->
|
||||
<!-- <div style="margin-left: 7px">下载</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-tab-pane>-->
|
||||
|
||||
<!-- <div style="padding: 19px 30px 17px 28px">-->
|
||||
<!-- <div-->
|
||||
<!-- v-for="(value, index) in sharedoc"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- style="-->
|
||||
<!-- display: flex;-->
|
||||
<!-- align-items: center;-->
|
||||
<!-- margin-bottom: 15px;-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <img :src="value.img" style="width: 22px; height: 26px"/>-->
|
||||
<!-- <div class="sharedocname">{{ value.name }}</div>-->
|
||||
<!-- <div class="download">-->
|
||||
<!-- <img-->
|
||||
<!-- src="../../assets/image/download.png"-->
|
||||
<!-- style="width: 16px; height: 15px"-->
|
||||
<!-- />-->
|
||||
<!-- <div style="margin-left: 7px">下载</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-tab-pane>-->
|
||||
</el-tabs>
|
||||
</div>
|
||||
<!-- 课程公告及共享文档 -->
|
||||
@@ -185,18 +186,18 @@
|
||||
<div class="info">
|
||||
<div class="title">
|
||||
<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="box"></div>
|
||||
</div>
|
||||
<!-- todo #路径详情 个人信息缺少img和介绍-->
|
||||
<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="`/upload${userInfo.avatar}`"/>
|
||||
<img class="peopleimg" :src="`/upload${userInfo.avatar}`" />
|
||||
<div style="margin-left: 17px">
|
||||
<div class="teacherName">
|
||||
<div style="margin-right: 5px">
|
||||
@@ -213,14 +214,14 @@
|
||||
<div class="info" style="padding-top: 20px">
|
||||
<div class="title">
|
||||
<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="box"></div>
|
||||
</div>
|
||||
<div class="rate">
|
||||
<div class="ratetext">上次学到:启航班-领导寄语</div>
|
||||
<div class="ratetext">上次学到:{{ data.lastLearned }}</div>
|
||||
<div class="ratebtn">继续学习</div>
|
||||
</div>
|
||||
<div style="margin-top: 16px">
|
||||
@@ -229,14 +230,10 @@
|
||||
<div class="progress">
|
||||
<div style="width: 291px">
|
||||
<el-progress
|
||||
:percentage="
|
||||
parseInt(
|
||||
(data.currentChapterCnt / data.totalChapterCnt) * 100
|
||||
)
|
||||
"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
:percentage="parseInt(data.totalProgress * 100)"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
{
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -244,17 +241,13 @@
|
||||
3: 'rgba(59, 94, 251, 1)',
|
||||
4: 'rgba(57, 219, 183, 1)',
|
||||
5: 'rgba(57, 219, 183, 1)',
|
||||
}[
|
||||
parseInt(
|
||||
data.currentChapterCnt / data.totalChapterCnt
|
||||
)
|
||||
]
|
||||
}[parseInt(data.totalProgress)]
|
||||
"
|
||||
/>
|
||||
</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: {
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -262,16 +255,10 @@
|
||||
3: 'rgba(59, 94, 251, 1)',
|
||||
4: 'rgba(57, 219, 183, 1)',
|
||||
5: 'rgba(57, 219, 183, 1)',
|
||||
}[
|
||||
parseInt(data.currentChapterCnt / data.totalChapterCnt)
|
||||
],
|
||||
}[parseInt(data.totalProgress)],
|
||||
}"
|
||||
>
|
||||
{{
|
||||
parseInt(
|
||||
(data.currentChapterCnt / data.totalChapterCnt) * 100
|
||||
)
|
||||
}}%
|
||||
{{ parseInt(data.totalProgress * 100) }}%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -282,12 +269,10 @@
|
||||
<div class="progress">
|
||||
<div style="width: 291px">
|
||||
<el-progress
|
||||
:percentage="
|
||||
parseInt((data.currentReqCnt / data.totalReqCnt) * 100)
|
||||
"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
:percentage="parseInt(data.compulsoryProgress * 100)"
|
||||
:show-text="false"
|
||||
:stroke-width="8"
|
||||
:color="
|
||||
{
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -295,18 +280,18 @@
|
||||
3: 'rgba(59, 94, 251, 1)',
|
||||
4: 'rgba(57, 219, 183, 1)',
|
||||
5: 'rgba(57, 219, 183, 1)',
|
||||
}[parseInt(data.currentReqCnt / data.totalReqCnt)]
|
||||
}[parseInt(data.compulsoryProgress)]
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
style="
|
||||
style="
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #277aff;
|
||||
margin-left: 10px;
|
||||
"
|
||||
:style="{
|
||||
:style="{
|
||||
color: {
|
||||
0: 'rgba(238, 112, 108, 1)',
|
||||
1: 'rgba(255, 151, 38, 1)',
|
||||
@@ -314,12 +299,10 @@
|
||||
3: 'rgba(59, 94, 251, 1)',
|
||||
4: 'rgba(57, 219, 183, 1)',
|
||||
5: 'rgba(57, 219, 183, 1)',
|
||||
}[parseInt(data.currentReqCnt / data.totalReqCnt)],
|
||||
}[parseInt(data.compulsoryProgress)],
|
||||
}"
|
||||
>
|
||||
{{
|
||||
parseInt((data.currentReqCnt / data.totalReqCnt) * 100)
|
||||
}}%
|
||||
{{ parseInt(data.compulsoryProgress * 100) }}%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -334,7 +317,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {computed, reactive, ref, watch} from "vue";
|
||||
import { computed, reactive, ref, watch } from "vue";
|
||||
import word from "@/assets/image/file/word.png";
|
||||
import ppt from "@/assets/image/file/ppt.png";
|
||||
import pdf from "@/assets/image/file/pdf.png";
|
||||
@@ -344,30 +327,28 @@ import medal1 from "@/assets/image/medal/medal1.png";
|
||||
import medal2 from "@/assets/image/medal/medal2.png";
|
||||
import medal3 from "@/assets/image/medal/medal3.png";
|
||||
import img from "@/assets/image/uploadimg.png";
|
||||
import {boeRequest, useRequest, request} from "@/api/request";
|
||||
import {ROUTER_PROCESS, LINK_DETAILS} from "@/api/api";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {ElMessage} from "element-plus";
|
||||
import {useUserInfo} from "@/api/utils";
|
||||
import { boeRequest, useRequest, request } from "@/api/request";
|
||||
import { ROUTER_PROCESS, LINK_DETAILS } from "@/api/api";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useUserInfo } from "@/api/utils";
|
||||
import store from "@/store";
|
||||
|
||||
const {
|
||||
query: {routerId, routerName},
|
||||
query: { routerId, routerName },
|
||||
} = useRoute();
|
||||
const router = useRouter();
|
||||
const returnclick = () => {
|
||||
router.back();
|
||||
};
|
||||
const {data} = useRequest(ROUTER_PROCESS, {routerId});
|
||||
|
||||
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
||||
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
|
||||
console.log("userInfo", userInfo);
|
||||
const activeName = ref("first");
|
||||
|
||||
const handleClick = (tab, event) => {
|
||||
console.log(tab, event);
|
||||
};
|
||||
const path = {1: "path"};
|
||||
const path = { 1: "path" };
|
||||
|
||||
const types = ref({
|
||||
typeName: {
|
||||
@@ -407,13 +388,18 @@ const types = ref({
|
||||
4: "/homeworkpage",
|
||||
5: import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
|
||||
6: "/livebroadcast",
|
||||
7: ({courseId}) => request(LINK_DETAILS(courseId), {}).then(({data: {linkAddress}}) => window.open(linkAddress)),//外联
|
||||
7: ({ courseId }) =>
|
||||
request(LINK_DETAILS(courseId), {}).then(({ data: { linkAddress } }) =>
|
||||
window.open(linkAddress)
|
||||
), //外联
|
||||
8: "/discusspage",
|
||||
9: "/moreactive",
|
||||
10: ({
|
||||
evaTyp,
|
||||
targetId
|
||||
}) => window.open((evaTyp === 1 ? import.meta.env.VITE_BOE_TEST_DETAIL_URL : import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId), //测评
|
||||
10: ({ evaTyp, targetId }) =>
|
||||
window.open(
|
||||
(evaTyp === 1
|
||||
? import.meta.env.VITE_BOE_TEST_DETAIL_URL
|
||||
: import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId
|
||||
), //测评
|
||||
11: "/surveydetail",
|
||||
12: "/ballotpage",
|
||||
13: "/projectdetails",
|
||||
@@ -426,20 +412,29 @@ function toFinish(d, sName) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof types.value.path[d.type] === 'string') {
|
||||
types.value.path[d.type] && types.value.path[d.type].startsWith("http") && window.open(types.value.path[d.type] + d.targetId)
|
||||
types.value.path[d.type] && types.value.path[d.type].startsWith("/") && router.push({
|
||||
path: types.value.path[d.type],
|
||||
query: {id: d.routerTaskId, type: 1, courseId: d.courseId, pName: data.value.name, sName},
|
||||
})
|
||||
} else if (typeof types.value.path[d.type] === 'function') {
|
||||
types.value.path[d.type](d)
|
||||
if (typeof types.value.path[d.type] === "string") {
|
||||
types.value.path[d.type] &&
|
||||
types.value.path[d.type].startsWith("http") &&
|
||||
window.open(types.value.path[d.type] + d.targetId);
|
||||
types.value.path[d.type] &&
|
||||
types.value.path[d.type].startsWith("/") &&
|
||||
router.push({
|
||||
path: types.value.path[d.type],
|
||||
query: {
|
||||
id: d.routerTaskId,
|
||||
type: 1,
|
||||
courseId: d.courseId,
|
||||
pName: data.value.name,
|
||||
sName,
|
||||
},
|
||||
});
|
||||
} else if (typeof types.value.path[d.type] === "function") {
|
||||
types.value.path[d.type](d);
|
||||
}
|
||||
}
|
||||
|
||||
function whiteTypes(type) {
|
||||
|
||||
return import.meta.env.VITE_TASK_WHITE_TYPE.includes('-'+ type + '-')
|
||||
return import.meta.env.VITE_TASK_WHITE_TYPE.includes("-" + type + "-");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user