mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
Merge remote-tracking branch 'origin/develop' into manage-release
# Conflicts: # src/App.vue
This commit is contained in:
@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
|
|||||||
import { getCookie } from "@/api/utils";
|
import { getCookie } from "@/api/utils";
|
||||||
|
|
||||||
import { USER_INFO } from "@/api/api";
|
import { USER_INFO } from "@/api/api";
|
||||||
console.log("版本1.3.5------------");
|
console.log("版本1.3.6------------");
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-13 11:42:48
|
* @Date: 2023-01-13 11:42:48
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-01 19:07:28
|
* @LastEditTime: 2023-03-03 13:47:22
|
||||||
* @FilePath: /stu_h5/src/api/api.js
|
* @FilePath: /stu_h5/src/api/api.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -31,7 +31,7 @@ export const ACTIVITY = '/activity'
|
|||||||
export const EXAMINATION_QUERY = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post`
|
export const EXAMINATION_QUERY = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post`
|
||||||
export const TASK_OFFCOURSE_NOTASK_SIGN = '/stu/task/offcourse/notask/sign post'
|
export const TASK_OFFCOURSE_NOTASK_SIGN = '/stu/task/offcourse/notask/sign post'
|
||||||
export const TASK_OFFCOURSE_SIGN = '/stu/task/offcourse/sign post'
|
export const TASK_OFFCOURSE_SIGN = '/stu/task/offcourse/sign post'
|
||||||
export const LINK_DETAILS = linkId => `/link/getOne?linkId=${linkId}`
|
export const LINK_DETAILS = `/link/getOne`
|
||||||
export const STUDY_RECORD = '/stu/task/thirdTask/submit post'
|
export const STUDY_RECORD = '/stu/task/thirdTask/submit post'
|
||||||
export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById'
|
export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById'
|
||||||
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
||||||
@@ -42,13 +42,13 @@ export const ROUTER_DETAILS = '/admin/router/detail'
|
|||||||
export const TASK_LIST = '/stu/tasks'
|
export const TASK_LIST = '/stu/tasks'
|
||||||
export const ONLINE_PROCESS = '/onlineClasses/queryOnlineClassesStudyDetail post'
|
export const ONLINE_PROCESS = '/onlineClasses/queryOnlineClassesStudyDetail post'
|
||||||
export const PROJECT_PROCESS = '/stu/project/process'
|
export const PROJECT_PROCESS = '/stu/project/process'
|
||||||
export const EVALUATION_DETAIL = evaluationId => `/evaluation/queryEvaluationDetailById?evaluationId=${evaluationId} post`
|
export const EVALUATION_DETAIL = `/evaluation/queryEvaluationDetailById`
|
||||||
export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
|
export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
|
||||||
export const DISCUSS_LIST = '/discussSubmit/taskList'
|
export const DISCUSS_LIST = '/discussSubmit/taskList'
|
||||||
export const DISCUSS_DETAIL = '/discussSubmit/detail'
|
export const DISCUSS_DETAIL = '/discussSubmit/detail'
|
||||||
export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndReview'
|
export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndReview'
|
||||||
export const VOTE_DETAIL2 = `/vote/queryVoteById`
|
export const VOTE_DETAIL2 = `/vote/queryVoteById`
|
||||||
export const VOTE_DETAIL3 = voteId => `/vote/queryVoteById?voteId=${voteId}`
|
export const VOTE_DETAIL3 = `/vote/queryVoteById`
|
||||||
// 投票详情接口
|
// 投票详情接口
|
||||||
export const VOTE_DETAIL_SUBMIT = `voteSubmit/vote/commit post`
|
export const VOTE_DETAIL_SUBMIT = `voteSubmit/vote/commit post`
|
||||||
|
|
||||||
@@ -83,3 +83,5 @@ export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask post`
|
|||||||
// 测评任务去学习
|
// 测评任务去学习
|
||||||
export const EvaluationToLearn = '/evaluation/evaluationToLearn post'
|
export const EvaluationToLearn = '/evaluation/evaluationToLearn post'
|
||||||
export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + 'file/img'
|
export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + 'file/img'
|
||||||
|
// 查询单个测评的状态
|
||||||
|
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
:key="i"
|
:key="i"
|
||||||
class="cha"
|
class="cha"
|
||||||
:style="{
|
:style="{
|
||||||
top: `${imgAttr.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
top: `${imgAttr?.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||||
left: `${imgAttr.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
left: `${imgAttr?.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -152,16 +152,41 @@ const imageAttrs = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const imgAttr = computed(
|
const imgAttr = computed(() => {
|
||||||
() =>
|
if (props.img) {
|
||||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] || {}
|
return (
|
||||||
);
|
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] ||
|
||||||
const imgAttrindex = computed(() =>
|
{}
|
||||||
Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图背景"
|
);
|
||||||
? 1
|
}
|
||||||
: Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图2"
|
});
|
||||||
? 2
|
const imgAttrindex = computed(
|
||||||
: 3
|
() => {
|
||||||
|
// console.log("props.img.includes1", props.img);
|
||||||
|
// console.log("props.img", props.img.includes("路径图背景"));
|
||||||
|
if (
|
||||||
|
props.img &&
|
||||||
|
Object.keys(imageAttrs).find((e) => props.img.includes(e)) ===
|
||||||
|
"路径图背景"
|
||||||
|
) {
|
||||||
|
return 1;
|
||||||
|
} else if (
|
||||||
|
props.img &&
|
||||||
|
Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图2"
|
||||||
|
) {
|
||||||
|
return 2;
|
||||||
|
} else if (
|
||||||
|
props.img &&
|
||||||
|
Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图3"
|
||||||
|
) {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图背景"
|
||||||
|
// ? 1
|
||||||
|
// : Object.keys(imageAttrs).find((e) => props.img.includes(e)) === "路径图2"
|
||||||
|
// ? 2
|
||||||
|
// : 3
|
||||||
);
|
);
|
||||||
console.log("imgAttrindex", imgAttrindex);
|
console.log("imgAttrindex", imgAttrindex);
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-17 19:47:07
|
* @Date: 2023-01-17 19:47:07
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-02-28 15:31:03
|
* @LastEditTime: 2023-03-03 10:30:46
|
||||||
* @FilePath: /stu_h5/src/store/index.js
|
* @FilePath: /stu_h5/src/store/index.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -81,8 +81,8 @@ export default createStore({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
getProjectInfo(content, { projectId }) {
|
getProjectInfo(content, { projectId, type }) {
|
||||||
request(PROJECT_PROCESS, { projectId }).then(res => {
|
request(PROJECT_PROCESS, { projectId, type }).then(res => {
|
||||||
content.commit('SET_PROJECT_INFO', res.data)
|
content.commit('SET_PROJECT_INFO', res.data)
|
||||||
content.commit('INIT_PROJECT_INFO')
|
content.commit('INIT_PROJECT_INFO')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const state = reactive({
|
|||||||
|
|
||||||
const { isAllowSign, closeBtn } = toRefs(state);
|
const { isAllowSign, closeBtn } = toRefs(state);
|
||||||
|
|
||||||
const { data } = useRequest(ACTIVITY, { activityId }, (e) => {
|
const { data } = useRequest(ACTIVITY, { activityId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
router.push({
|
router.push({
|
||||||
path: "/notpath",
|
path: "/notpath",
|
||||||
|
|||||||
@@ -182,12 +182,12 @@ import dayjs from "dayjs";
|
|||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
||||||
|
const router = useRouter();
|
||||||
const {
|
const {
|
||||||
query: { courseId, chapterOrStageId, infoId, id, btype },
|
query: { courseId, chapterOrStageId, infoId, id, btype, type },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
const { data } = useRequest(VOTE_DETAIL3(courseId), {}, (e) => {
|
const { data } = useRequest(VOTE_DETAIL3, { voteId: courseId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
router.push({
|
router.push({
|
||||||
path: "/notpath",
|
path: "/notpath",
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ const {
|
|||||||
query: { id, type },
|
query: { id, type },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
request(DISCUSS_LIST, {
|
request(DISCUSS_LIST, {
|
||||||
type: type == 1 ? 2 : 1,
|
type: type,
|
||||||
id,
|
id,
|
||||||
})
|
})
|
||||||
.then((e) => {
|
.then((e) => {
|
||||||
|
|||||||
@@ -71,7 +71,12 @@ import ReturnHead from "@/components/ReturnHead.vue";
|
|||||||
import { computed, reactive, toRefs, onUnmounted, ref, watch } from "vue";
|
import { computed, reactive, toRefs, onUnmounted, ref, watch } from "vue";
|
||||||
import img from "@/assets/image/uploadimg.png";
|
import img from "@/assets/image/uploadimg.png";
|
||||||
import { request, useRequest } from "@/api/request";
|
import { request, useRequest } from "@/api/request";
|
||||||
import { EVALUATION_DETAIL, STUDY_RECORD, EvaluationToLearn } from "@/api/api";
|
import {
|
||||||
|
EVALUATION_DETAIL,
|
||||||
|
STUDY_RECORD,
|
||||||
|
EvaluationToLearn,
|
||||||
|
QueryEvaluationTaskStatusOne,
|
||||||
|
} from "@/api/api";
|
||||||
import { useRoute } from "vue-router/dist/vue-router";
|
import { useRoute } from "vue-router/dist/vue-router";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { useUserInfo } from "@/api/utils";
|
import { useUserInfo } from "@/api/utils";
|
||||||
@@ -86,10 +91,12 @@ const {
|
|||||||
chapterOrStageId,
|
chapterOrStageId,
|
||||||
infoId,
|
infoId,
|
||||||
btype,
|
btype,
|
||||||
|
quizTaskId,
|
||||||
|
type,
|
||||||
},
|
},
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { data } = useRequest(EVALUATION_DETAIL(evaluationId), {}, (e) => {
|
const { data } = useRequest(EVALUATION_DETAIL, { evaluationId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
router.push({
|
router.push({
|
||||||
path: "/notpath",
|
path: "/notpath",
|
||||||
@@ -128,26 +135,77 @@ onUnmounted(() => {
|
|||||||
});
|
});
|
||||||
const goOuterChain = () => {
|
const goOuterChain = () => {
|
||||||
console.log("点击去查看");
|
console.log("点击去查看");
|
||||||
request(EvaluationToLearn, {
|
if (quizTaskId == null) {
|
||||||
businessType: btype == 1 ? "project" : "learningpath",
|
request(EvaluationToLearn, {
|
||||||
chapterId: chapterOrStageId,
|
businessType: btype == 1 ? "project" : "learningpath",
|
||||||
courseId: evaluationId,
|
chapterId: chapterOrStageId,
|
||||||
quizKid: data.value.evaluationTypeId,
|
courseId: evaluationId,
|
||||||
routerOrProjectId: infoId,
|
quizKid: data.value.evaluationTypeId,
|
||||||
studentId: userInfo.value.id,
|
routerOrProjectId: infoId,
|
||||||
studentName: userInfo.value.realName,
|
studentId: userInfo.value.id,
|
||||||
})
|
studentName: userInfo.value.realName,
|
||||||
.then((res) => {
|
|
||||||
console.log(res);
|
|
||||||
// if (res.code == 200) {
|
|
||||||
// let jumpUrl = res.data.quizUrl;
|
|
||||||
// // 此处写跳转url
|
|
||||||
// window.open(jumpUrl, "_top");
|
|
||||||
// }
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.then((res) => {
|
||||||
console.log(err);
|
console.log(res);
|
||||||
});
|
if (res.code == 200) {
|
||||||
|
let jumpUrl = res.data.quizUrl;
|
||||||
|
// 此处写跳转url
|
||||||
|
window.open(jumpUrl, "_top");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
request(QueryEvaluationTaskStatusOne, {
|
||||||
|
quizTaskId: quizTaskId,
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
if (res.data.complete_status == 2) {
|
||||||
|
ElMessage.error("您已完成测评");
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
// 重新查询跳转
|
||||||
|
// 调用接口 跳转页面
|
||||||
|
console.log("我是查询测评跳转链接所传递得参数", {
|
||||||
|
businessType: btype === 2 ? "learningpath" : "project",
|
||||||
|
chapterId: chapterOrStageId,
|
||||||
|
courseId: evaluationId,
|
||||||
|
quizKid: data.value.evaluationTypeId,
|
||||||
|
routerOrProjectId: infoId,
|
||||||
|
studentId: userInfo.value.id,
|
||||||
|
studentName: userInfo.value.realName,
|
||||||
|
});
|
||||||
|
request(EvaluationToLearn, {
|
||||||
|
businessType: "learningpath",
|
||||||
|
chapterId: chapterOrStageId,
|
||||||
|
courseId: evaluationId,
|
||||||
|
quizKid: data.value.evaluationTypeId,
|
||||||
|
routerOrProjectId: infoId,
|
||||||
|
studentId: userInfo.value.id,
|
||||||
|
studentName: userInfo.value.realName,
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
let jumpUrl = res.data.quizUrl;
|
||||||
|
// 此处写跳转url
|
||||||
|
window.open(jumpUrl, "_top");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// window.open(
|
// window.open(
|
||||||
// evaType == 0
|
// evaType == 0
|
||||||
// ? window.location.protocol +
|
// ? window.location.protocol +
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-02-06 18:26:23
|
* @Date: 2023-02-06 18:26:23
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-02 02:38:59
|
* @LastEditTime: 2023-03-03 09:37:16
|
||||||
* @FilePath: /stu_h5/src/views/examination/ExternalExam.vue
|
* @FilePath: /stu_h5/src/views/examination/ExternalExam.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -45,14 +45,14 @@ import { EXTERNALEXAM } from "@/api/api";
|
|||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
||||||
const {
|
const {
|
||||||
query: { courseId },
|
query: { courseId, type },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
datainfo: {},
|
datainfo: {},
|
||||||
});
|
});
|
||||||
//获取基本信息
|
//获取基本信息
|
||||||
request(EXTERNALEXAM, { externalId: courseId })
|
request(EXTERNALEXAM, { externalId: courseId, type })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("获取考试", res);
|
console.log("获取考试", res);
|
||||||
if (res.code === 6) {
|
if (res.code === 6) {
|
||||||
|
|||||||
@@ -314,7 +314,7 @@
|
|||||||
name="third"
|
name="third"
|
||||||
:disabed="dayjs().isBefore(dayjs(data.planDto?.beginTime))"
|
:disabed="dayjs().isBefore(dayjs(data.planDto?.beginTime))"
|
||||||
>
|
>
|
||||||
<div class="work" v-if="data.examinationDto?.examinationTestName">
|
<div class="work" v-if="data.examinationDto">
|
||||||
<div class="question">
|
<div class="question">
|
||||||
{{ data.examinationDto?.examinationName }}
|
{{ data.examinationDto?.examinationName }}
|
||||||
</div>
|
</div>
|
||||||
@@ -418,7 +418,14 @@ const handleClick = (tab, event) => {
|
|||||||
console.log("附件", tab, event);
|
console.log("附件", tab, event);
|
||||||
};
|
};
|
||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
window.open(url);
|
console.log(
|
||||||
|
"url2",
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
|
);
|
||||||
|
window.open(
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
|
"_top"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
ElMessage.warning("未到开始时间,请耐心等待!");
|
ElMessage.warning("未到开始时间,请耐心等待!");
|
||||||
@@ -537,9 +544,9 @@ function toSurvery() {
|
|||||||
path: "/investigatpage",
|
path: "/investigatpage",
|
||||||
query: {
|
query: {
|
||||||
id: taskId,
|
id: taskId,
|
||||||
courseId: data.value.planDto.evaluateId,
|
courseId: data.value.planDto.assessmentId,
|
||||||
pName: "面授课",
|
pName: "面授课",
|
||||||
infoId: data.value.planDto.offcoursePlanId,
|
infoId: data.value.planDto.id,
|
||||||
chapterOrStageId: 0,
|
chapterOrStageId: 0,
|
||||||
sName: data.value.planDto.name,
|
sName: data.value.planDto.name,
|
||||||
type,
|
type,
|
||||||
@@ -559,9 +566,9 @@ function toWork() {
|
|||||||
router.push({
|
router.push({
|
||||||
path: "/homeworkpage",
|
path: "/homeworkpage",
|
||||||
query: {
|
query: {
|
||||||
courseId: data.value.workDto.workId,
|
courseId: data.value.planDto.homeWorkId,
|
||||||
id: taskId,
|
id: taskId,
|
||||||
infoId: data.value.offcourseDto.offcourseId,
|
infoId: data.value.planDto.id,
|
||||||
chapterOrStageId: 0,
|
chapterOrStageId: 0,
|
||||||
type,
|
type,
|
||||||
pName: "面授课",
|
pName: "面授课",
|
||||||
@@ -579,14 +586,24 @@ function toExamItem(obj) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("obj", obj.examinationTestId);
|
console.log("obj", obj);
|
||||||
window.open(
|
if (obj.examType === 2) {
|
||||||
window.location.protocol +
|
router.push({
|
||||||
import.meta.env.VITE_BOE_EXAM_DETAIL_URL +
|
path: "/externalexam",
|
||||||
"/mobile/pages/exam/exam?id=" +
|
query: {
|
||||||
obj.examinationTestId,
|
courseId: obj.id,
|
||||||
"_top"
|
type,
|
||||||
); //测评
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
window.open(
|
||||||
|
window.location.protocol +
|
||||||
|
import.meta.env.VITE_BOE_EXAM_DETAIL_URL +
|
||||||
|
obj.id,
|
||||||
|
"_top"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// router.push({ path: import.meta.env.VITE_BOE_EXAM_DETAIL_URL+ obj.examinationTestId });
|
// router.push({ path: import.meta.env.VITE_BOE_EXAM_DETAIL_URL+ obj.examinationTestId });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -181,12 +181,13 @@ const handleClick = (tab, event) => {
|
|||||||
};
|
};
|
||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
console.log(
|
console.log(
|
||||||
"下载url",
|
"url2",
|
||||||
import.meta.env.VITE_FILE_PATH,
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
process.env.VITE_FILE_PATH,
|
);
|
||||||
url
|
window.open(
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
|
"_top"
|
||||||
);
|
);
|
||||||
window.open(import.meta.env.VITE_FILE_PATH + url);
|
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
ElMessage.warning("未在有效时间范围内,请耐心等待!");
|
ElMessage.warning("未在有效时间范围内,请耐心等待!");
|
||||||
|
|||||||
@@ -184,7 +184,14 @@ const handleClick = (tab, event) => {
|
|||||||
console.log("附件", tab, event);
|
console.log("附件", tab, event);
|
||||||
};
|
};
|
||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
window.open(import.meta.env.VITE_FILE_PATH + url);
|
console.log(
|
||||||
|
"url2",
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
|
);
|
||||||
|
window.open(
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
|
"_top"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
ElMessage.warning("未在有效时间范围内,请耐心等待!");
|
ElMessage.warning("未在有效时间范围内,请耐心等待!");
|
||||||
|
|||||||
@@ -193,7 +193,14 @@ const handleClick = (tab, event) => {
|
|||||||
console.log("附件", tab, event);
|
console.log("附件", tab, event);
|
||||||
};
|
};
|
||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
window.open(import.meta.env.VITE_FILE_PATH + url);
|
console.log(
|
||||||
|
"url2",
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
|
);
|
||||||
|
window.open(
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
|
"_top"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
let timer = null;
|
let timer = null;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-13 11:42:48
|
* @Date: 2023-01-13 11:42:48
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-02-18 15:27:53
|
* @LastEditTime: 2023-03-04 10:42:36
|
||||||
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -108,7 +108,14 @@ const fileList = computed(() =>
|
|||||||
);
|
);
|
||||||
//下载
|
//下载
|
||||||
function downloadFile(url) {
|
function downloadFile(url) {
|
||||||
window.open(url);
|
console.log(
|
||||||
|
"url222",
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
|
);
|
||||||
|
window.open(
|
||||||
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
|
"_top"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ const {
|
|||||||
// console.log("type", type);
|
// console.log("type", type);
|
||||||
const { data } =
|
const { data } =
|
||||||
taskId && taskId !== "undefined"
|
taskId && taskId !== "undefined"
|
||||||
? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => {
|
? useRequest(TASK_WORK_DETAIL, { workId, taskId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
console.log("作业判断", e);
|
console.log("作业判断", e);
|
||||||
router.push({
|
router.push({
|
||||||
@@ -125,7 +125,7 @@ const { data } =
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
: useRequest(TASK_WORK_DETAIL, { workId }, (e) => {
|
: useRequest(TASK_WORK_DETAIL, { workId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
console.log("作业判断", e);
|
console.log("作业判断", e);
|
||||||
router.push({
|
router.push({
|
||||||
|
|||||||
@@ -233,8 +233,6 @@ const {
|
|||||||
id: taskId,
|
id: taskId,
|
||||||
infoId,
|
infoId,
|
||||||
type,
|
type,
|
||||||
pName,
|
|
||||||
sName,
|
|
||||||
chapterOrStageId,
|
chapterOrStageId,
|
||||||
projectStatus,
|
projectStatus,
|
||||||
projectEndTime,
|
projectEndTime,
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="notice" style="margin-top: 0">
|
<div class="notice" style="margin-top: 0">
|
||||||
<div class="noticebox">
|
<div class="noticebox">
|
||||||
<div class="avator">
|
<!-- <div class="avator">
|
||||||
<img class="avaimg" :src="teacherInfo.avatar" />
|
<img class="avaimg" :src="teacherInfo.avatar" />
|
||||||
<div class="avaname">{{ data.userInfoBo?.userName }}</div>
|
<div class="avaname">{{ data.userInfoBo?.userName }}</div>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="mani">
|
<div class="mani">
|
||||||
<div class="joininfo">{{ data?.liveName }}</div>
|
<div class="joininfo">{{ data?.liveName }}</div>
|
||||||
<div class="contenttitle">
|
<div class="contenttitle">
|
||||||
@@ -222,7 +222,7 @@ const returnclick = () => {
|
|||||||
router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId }, (e) => {
|
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId, type }, (e) => {
|
||||||
console.log("直播判断", e);
|
console.log("直播判断", e);
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
router.push({
|
router.push({
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ const {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
console.log("外链信息", linkId);
|
console.log("外链信息", linkId);
|
||||||
|
|
||||||
const { data } = useRequest(LINK_DETAILS(linkId), {}, (e) => {
|
const { data } = useRequest(LINK_DETAILS, { linkId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
router.push({
|
router.push({
|
||||||
path: "/notpath",
|
path: "/notpath",
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ function toFinish(d) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 此处判断外部考试跳转
|
// 此处判断外部考试跳转
|
||||||
if (d.startTime == null || d.endTime == null) {
|
if (d.examType == 2) {
|
||||||
// 点击即更新状态 进行中
|
// 点击即更新状态 进行中
|
||||||
request(SubmitExternalExam, {
|
request(SubmitExternalExam, {
|
||||||
chapterId: data.value.currentStageId,
|
chapterId: data.value.currentStageId,
|
||||||
@@ -389,6 +389,7 @@ function toFinish(d) {
|
|||||||
path: "/externalexam",
|
path: "/externalexam",
|
||||||
query: {
|
query: {
|
||||||
courseId: d.courseId,
|
courseId: d.courseId,
|
||||||
|
type: ROUTER,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -435,6 +436,7 @@ function toFinish(d) {
|
|||||||
path: "/projectdetails",
|
path: "/projectdetails",
|
||||||
query: {
|
query: {
|
||||||
projectId: d.courseId,
|
projectId: d.courseId,
|
||||||
|
type: ROUTER,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -461,6 +463,7 @@ function toFinish(d) {
|
|||||||
targetId: d.targetId,
|
targetId: d.targetId,
|
||||||
evaType: d.evaType,
|
evaType: d.evaType,
|
||||||
btype: 2,
|
btype: 2,
|
||||||
|
quizTaskId: d.quizTaskId,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: "";
|
: "";
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="goclass"
|
class="goclass"
|
||||||
@click="toFinish(el)"
|
@click="toFinish(el, item.stageName, item.id)"
|
||||||
:style="{
|
:style="{
|
||||||
background:
|
background:
|
||||||
el.statusName !== '已结束' &&
|
el.statusName !== '已结束' &&
|
||||||
@@ -221,12 +221,12 @@ import { PROJECT, TASK_TYPES } from "@/api/CONST";
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
const {
|
const {
|
||||||
query: { courseId, projectId },
|
query: { courseId, projectId, type },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { commit, dispatch, state } = useStore();
|
const { commit, dispatch, state } = useStore();
|
||||||
const data = computed(() => state.projectInfo);
|
const data = computed(() => state.projectInfo);
|
||||||
useRequest(PROJECT_PROCESS, { projectId: projectId }, (e) => {
|
useRequest(PROJECT_PROCESS, { projectId: projectId, type }, (e) => {
|
||||||
if (e.code === 6) {
|
if (e.code === 6) {
|
||||||
console.log("eee", e);
|
console.log("eee", e);
|
||||||
router.push({
|
router.push({
|
||||||
@@ -242,7 +242,7 @@ watch(data, () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
dispatch("getProjectInfo", { projectId });
|
dispatch("getProjectInfo", { projectId, type });
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => data.value.stageProcessList,
|
() => data.value.stageProcessList,
|
||||||
@@ -457,13 +457,13 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 此处判断外部考试跳转
|
// 此处判断外部考试跳转
|
||||||
if (d.startTime == null || d.endTime == null) {
|
if (d.examType == 2) {
|
||||||
// 点击即更新状态 进行中
|
// 点击即更新状态 进行中 chapterOrStageId
|
||||||
request(SubmitExternalExam, {
|
request(SubmitExternalExam, {
|
||||||
chapterId: data.value.currentStageId,
|
chapterId: chapterOrStageId,
|
||||||
externalId: d.courseId,
|
externalId: d.courseId,
|
||||||
externalName: d.name,
|
externalName: d.name,
|
||||||
targetId: routerId,
|
targetId: data.value.projectId,
|
||||||
studentNo: userInfo.value.userNo,
|
studentNo: userInfo.value.userNo,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -476,6 +476,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
path: "/externalexam",
|
path: "/externalexam",
|
||||||
query: {
|
query: {
|
||||||
courseId: d.courseId,
|
courseId: d.courseId,
|
||||||
|
type: PROJECT,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -539,7 +540,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
courseId: d.courseId,
|
courseId: d.courseId,
|
||||||
pName: data.value.name,
|
pName: data.value.name,
|
||||||
sName,
|
sName,
|
||||||
chapterOrStageId: data.value.currentStageId,
|
chapterOrStageId: chapterOrStageId,
|
||||||
studentId: userInfo.value.id,
|
studentId: userInfo.value.id,
|
||||||
status: d.status,
|
status: d.status,
|
||||||
targetId: d.targetId,
|
targetId: d.targetId,
|
||||||
@@ -565,7 +566,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
// courseId: d.courseId,
|
// courseId: d.courseId,
|
||||||
// pName: data.value.name,
|
// pName: data.value.name,
|
||||||
// sName,
|
// sName,
|
||||||
// chapterOrStageId: data.value.currentStageId,
|
// chapterOrStageId: chapterOrStageId,
|
||||||
// studentId: userInfo.value.id,
|
// studentId: userInfo.value.id,
|
||||||
// status: d.status,
|
// status: d.status,
|
||||||
// targetId: d.targetId,
|
// targetId: d.targetId,
|
||||||
|
|||||||
Reference in New Issue
Block a user