mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-17 14:56:48 +08:00
init
This commit is contained in:
@@ -115,9 +115,9 @@
|
||||
<div class="tag3" style="margin-left: 11px">考试</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="submit" @click="toExamItem(data.examinationDto)">-->
|
||||
<!-- 去考试-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="submit" @click="toExamItem(data.examinationDto)">-->
|
||||
<!-- 去考试-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -155,16 +155,16 @@ import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import {request, useRequest} from "@/api/request";
|
||||
import {STU_OFFCOURSE_DETAIL} from "@/api/api";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {useUserInfoAvatar} from "@/api/utils";
|
||||
import {useUserInfo} from "@/api/utils";
|
||||
|
||||
const router = useRouter();
|
||||
const {
|
||||
query: {courseId,type},
|
||||
query: {courseId, type},
|
||||
} = useRoute();
|
||||
|
||||
const {data} = useRequest(STU_OFFCOURSE_DETAIL, {courseId});
|
||||
|
||||
const userAvatar = useUserInfoAvatar(computed(() => data.value?.planDto?.teacherId))
|
||||
const {avatar: userAvatar} = useUserInfo(computed(() => data.value?.planDto?.teacherId))
|
||||
|
||||
const state = reactive({
|
||||
activeName: "first",
|
||||
@@ -183,7 +183,10 @@ function toSurvery() {
|
||||
}
|
||||
|
||||
function toWork() {
|
||||
router.push({path: "/homeworkpage", query: {courseId: data.value.workDto.workId, id: data.value.offcourseDto.categoryId, type}})
|
||||
router.push({
|
||||
path: "/homeworkpage",
|
||||
query: {courseId: data.value.workDto.workId, id: data.value.offcourseDto.categoryId, type}
|
||||
})
|
||||
}
|
||||
|
||||
function toExamItem(obj) {
|
||||
|
||||
Reference in New Issue
Block a user