mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-18 07:16:48 +08:00
init
This commit is contained in:
@@ -92,8 +92,8 @@
|
||||
</div>
|
||||
<div
|
||||
class="submit"
|
||||
@click="toWork(data.workDto)"
|
||||
v-if="!data.workDto?.workId"
|
||||
@click="toWork"
|
||||
v-if="data.workDto?.workId"
|
||||
>
|
||||
提交
|
||||
</div>
|
||||
@@ -159,7 +159,7 @@ import {useUserInfoAvatar} from "@/api/utils";
|
||||
|
||||
const router = useRouter();
|
||||
const {
|
||||
query: {courseId},
|
||||
query: {courseId,type},
|
||||
} = useRoute();
|
||||
|
||||
const {data} = useRequest(STU_OFFCOURSE_DETAIL, {courseId});
|
||||
@@ -182,8 +182,8 @@ function toSurvery() {
|
||||
router.push({path: "/surveydetail", query: {courseId: data.value.planDto.evaluateId}})
|
||||
}
|
||||
|
||||
function toWork(obj) {
|
||||
router.push({path: "/homeworkpage", query: {id: obj.workId, taskId: data.value.offcourseDto.categoryId, type}})
|
||||
function toWork() {
|
||||
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