From 351626701c8f894b113f0ddd3751ffaf9c95d815 Mon Sep 17 00:00:00 2001 From: caozc Date: Wed, 1 Mar 2023 00:23:29 +0800 Subject: [PATCH 01/54] =?UTF-8?q?fix:=E6=8A=95=E7=A5=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=8A=95=E7=A5=A8=E6=97=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=20=20=20=20=20=E9=A1=B9=E7=9B=AE=E5=A4=8D=E5=88=B6=20=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E8=BD=AC=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CheckVote.vue | 19 ++++++++----------- src/views/projectcenter/ProjectManage.vue | 7 +++++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/drawers/CheckVote.vue b/src/components/drawers/CheckVote.vue index f68db461..cfbde7df 100644 --- a/src/components/drawers/CheckVote.vue +++ b/src/components/drawers/CheckVote.vue @@ -19,7 +19,7 @@
投票题目
-
+
{{ index+1 +"."+ item.voteStemName }}
@@ -50,7 +50,8 @@ import { toRefs,reactive } from '@vue/reactivity'; import {computed} from "vue"; import { useStore } from "vuex"; -import * as api from "../../api/indexTaskManage"; +// import * as api from "../../api/indexTaskManage"; +import {queryStemByStemId} from '@/api/indexVote'; export default { name:"CheckWork", @@ -126,19 +127,15 @@ export default { function getData() { console.log('我是请求的参数', { "courseId": props.courseID, - "studentId": userInfo.value.id, - "voteSubmitId": props.voteID + "userInfo": userInfo.value, + "voteId": props.voteID }) - api.QueryVoteTaskDetailById({ - "courseId": props.courseID, - "studentId": userInfo.value.id, - "voteSubmitId": props.voteID - }).then(res=>{ + queryStemByStemId(props.courseID).then(res=>{ console.log(res) state.voteResource = res.data.data - let choiceArr = [] - let dataQuestion = state.voteResource.ballotVo.voteStemVoList + //2023-02-28 + let dataQuestion = state.voteResource.voteStemDtoList for(let i=0;i getTableDate()); - message.success("复制成功"); + .then(() => { + state.tableLoading = false; + message.success("复制成功"); + getTableDate() + }); }; //打开提交审核弹窗 const showReviewModal = (projectId) => { From 5f1157c028fe484b7f4725a77650e2afd4d9ab2f Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 11:48:11 +0800 Subject: [PATCH 02/54] -- fix bug --- src/components/NavLeft.vue | 21 +++ src/views/learningpath/LevelAddDetail.vue | 169 +++++++++++----------- 2 files changed, 107 insertions(+), 83 deletions(-) diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 277ef48a..de2108a1 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -240,6 +240,27 @@ + + + + + + 受众管理 + + +
diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 56d32975..db151e35 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -82,8 +82,8 @@
@@ -118,9 +118,9 @@
学习模式: + style="border: 1px solid rgba(0, 0, 0, 0.25);width: 120px;height: 38px; border-radius: 10px;text-align: center;line-height: 38px;"> {{ - routerInfo.routerInfo.unlockMode == 1 ? '自由学习模式' : routerInfo.routerInfo.unlockMode == 2 || routerInfo.routerInfo.unlockMode == 3 ? '闯关模式' : '' + routerInfo.routerInfo.unlockMode == 1 ? "自由学习模式" : routerInfo.routerInfo.unlockMode == 2 || routerInfo.routerInfo.unlockMode == 3 ? "闯关模式" : "" }} @@ -216,8 +216,8 @@ animation="500">
@@ -1169,7 +1173,11 @@
取消
- + 确定
@@ -4867,21 +4875,21 @@ export default defineComponent({ //二维码 const qrcodeVisible = (record, type) => { + // `${location.protocol}//${location.host}${import.meta.env.VUE_APP_BASE_API}/stu/project/redirectDetail?courseId=${record.id}` state.codevisible = true; state.codeInfo = { title: type == 1 ? "【课程】二维码" : "【签到】二维码", name: record.name ? record.name : "", url: type == 1 - ? window.location.protocol + - process.env.VUE_APP_COURSE_STUDY + - record.offcourseId + ? process.env.VUE_APP_BASE_API + + `/stu/project/redirectDetail?courseId=${record.id}` : process.env.VUE_APP_BASE_API + `/admin/student/studentSign?taskId=${ record.id }&taskType=${2}&type=${3}`, }; - console.log("codeInfo", state.codeInfo); + console.log("codeInfo", state.codeInfo, record); state.codeIndex = 0; state.codeType = type; }; diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index d7dc1af8..f29c0a3d 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2598,7 +2598,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_ONLINE_CLASS_URL + - item.targetId; + item.courseId; } if (item.type == 2) { let date1 = new Date(item.endTime).getTime(); From 2ebd49fa2f9c577413295436cd49dd8c4afca405 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:31:30 +0800 Subject: [PATCH 06/54] -- fix bug --- src/components/drawers/AddEval.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index add28f11..6cd6935f 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -175,7 +175,7 @@ async function confirm() { } else { const data = props.taskList[taskIndex.value] data.name = formData.value.evaluationName - data.info = formData.value + data.info = {...formData.value} data.duration = dayjs(formData.value.evaluationEndTime).diff(formData.value.evaluationStartTime,'minutes') } emit('update:taskList', [...props.taskList]) From 6dd6208747e6e7ce2dbf86265b8ccdfcaaaedcdc Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:34:06 +0800 Subject: [PATCH 07/54] -- fix bug --- src/components/drawers/AddEval.vue | 2 +- src/components/drawers/AddHomework.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index db32a1eb..41f726fc 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -210,7 +210,7 @@ async function confirm() { } else { const data = props.taskList[taskIndex.value]; data.name = formData.value.evaluationName; - data.info = formData.value; + data.info = {...formData.value}; data.duration = dayjs(formData.value.evaluationEndTime).diff( formData.value.evaluationStartTime, "minutes" diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index 201ee932..bc689a0f 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -138,7 +138,7 @@ function confirm() { } else { const data = props.taskList[taskIndex.value] data.name = formData.value.workName - data.info = formData.value + data.info = {...formData.value} data.duration = dayjs(formData.value.submitEndTime).diff(formData.value.submitStartTime,'minutes') } emit('update:taskList', [...props.taskList]) From da565f0933186c0bd525d81f7baeac3038b1ddd9 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:45:29 +0800 Subject: [PATCH 08/54] -- fix bug --- src/views/projectcenter/TaskAdd.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index a5c779b1..b64bdb60 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -35,7 +35,7 @@ 说明
-
+
@@ -513,6 +513,11 @@ const closeModal = () => { }; //显示添加阶段弹窗 const showModal = () => { + formValue.value = {} + stage.value = true +}; +const editModal = () => { + formValue.value = projectInfo.value.stageList[activeIndex.value] stage.value = true }; @@ -522,6 +527,10 @@ function editStage() { message.warning("请输入阶段名称!"); return } + if(formValue.value.id){ + stage.value = false + return + } //替换 默认阶段 if (projectInfo.value.stageList.length === 1 && projectInfo.value.stageList[0].id === '0') { formValue.value.taskDraftDtoList = [...projectInfo.value.stageList[0].taskDraftDtoList] From 615d1517c4ee10397c9478b042e305abae22bf50 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:51:16 +0800 Subject: [PATCH 09/54] -- fix bug --- src/views/learningpath/LevelAddDetail.vue | 30 ++++++++++------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index db151e35..6fd40d65 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -4,7 +4,7 @@
关卡
-
+
添加关卡
@@ -33,7 +33,7 @@
-
+
@@ -376,7 +376,6 @@ import dialog from "@/utils/dialog"; const { query: { routerId } } = useRoute(); const modal = ref(false); -const ischapterEdit = ref(false); const visiblene = ref(false); const cancleLoading = ref(false); const confirmLoading = ref(false); @@ -408,18 +407,14 @@ watch(() => routerInfo.value.chapterList, () => { }); }, { deep: true }); -const showModal = (e, type) => { - ischapterEdit.value = (type === "edit"); - console.log(ischapterEdit.value); - if (type == "edit") { - console.log("关卡信息:" + e.name); - formValue.value = e;//回传修改的信息 - } else { - //关卡信息初始化 - formValue.value = {}; - } +const showModal = () => { + formValue.value = {}; modal.value = true; }; +function showEditModal(ele){ + formValue.value =ele; + modal.value = false; +} const closeModal = () => { modal.value = false; }; @@ -429,11 +424,12 @@ const editChapter = () => { if (!formValue.value.name) { return message.warning("请输入关卡名称"); } - if (ischapterEdit.value) { - routerInfo.value.chapterList = [{ ...formValue.value, draftTaskList: [] }]; - } else { - routerInfo.value.chapterList.push({ ...formValue.value, draftTaskList: [] }); + if(formValue.value.id){ + closeModal(); + return } + routerInfo.value.chapterList.push({ ...formValue.value, draftTaskList: [] }); + activeIndex.value = activeIndex.value + 1 formValue.value = { draftTaskList: [] }; closeModal(); }; From 8f33a96e67e95fb2f234fd687b70f72ea590594e Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:53:27 +0800 Subject: [PATCH 10/54] -- fix bug --- src/views/learningpath/LevelAddDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 6fd40d65..0a33b76b 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -413,7 +413,7 @@ const showModal = () => { }; function showEditModal(ele){ formValue.value =ele; - modal.value = false; + modal.value = true; } const closeModal = () => { modal.value = false; From a9900bc66c0155431f1948ee6e5392109f05c769 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 2 Mar 2023 16:59:23 +0800 Subject: [PATCH 11/54] -- fix bug --- src/views/learningpath/LevelAddDetail.vue | 2 +- src/views/projectcenter/TaskAdd.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 0a33b76b..4d15fe10 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -408,7 +408,7 @@ watch(() => routerInfo.value.chapterList, () => { }, { deep: true }); const showModal = () => { - formValue.value = {}; + formValue.value = {draftTaskList: []} modal.value = true; }; function showEditModal(ele){ diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index b64bdb60..e00e397c 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -513,7 +513,7 @@ const closeModal = () => { }; //显示添加阶段弹窗 const showModal = () => { - formValue.value = {} + formValue.value = {taskDraftDtoList: []} stage.value = true }; const editModal = () => { From b5bcf54a4b0aeabfc1a98f48fd120dda3165dbd9 Mon Sep 17 00:00:00 2001 From: lixg Date: Thu, 2 Mar 2023 19:04:46 +0800 Subject: [PATCH 12/54] =?UTF-8?q?feat:=E6=98=BE=E7=A4=BA=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index d4366401..c07592a2 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -851,9 +851,9 @@ 删除 - +
From 893cda59216500b340be3ed552302ee8372299eb Mon Sep 17 00:00:00 2001 From: lixg Date: Thu, 2 Mar 2023 20:50:35 +0800 Subject: [PATCH 13/54] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 1 + src/views/courselibrary/components/seeModal.vue | 6 +++++- src/views/courselibrary/courseModal.vue | 10 +++++++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index c07592a2..f94077ab 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -4456,6 +4456,7 @@ export default defineComponent({ state.lookCourseModal = true; item.attach = item.attach == "" ? [] : item.attach.split(","); state.faceDetailObj = item; + console.log("获取查看信息", item); }; // const handleTea = async () => { // console.log("item22224444"); diff --git a/src/views/courselibrary/components/seeModal.vue b/src/views/courselibrary/components/seeModal.vue index 092b86b6..9afde740 100644 --- a/src/views/courselibrary/components/seeModal.vue +++ b/src/views/courselibrary/components/seeModal.vue @@ -405,6 +405,7 @@ export default defineComponent({ detail({ offcourseId: Number(props.detail.id), }).then((res) => { + console.log("res", res); if (res.data.code === 200) { let item = res.data.data; if (item.jobTypeIds) { @@ -428,13 +429,16 @@ export default defineComponent({ ); let arrObj = []; arrObj = orgSelectIds.map((item, index) => { - return { value: item, lebel: orgSelectNames[index] }; + return { value: item, label: orgSelectNames[index] }; }); console.log("arrObj-------------", arrObj); state.orgSelect = arrObj; } } }); + }, + { + deep: true, } ); diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue index 4216ee9f..164ee631 100644 --- a/src/views/courselibrary/courseModal.vue +++ b/src/views/courselibrary/courseModal.vue @@ -457,7 +457,11 @@
取消
- +
保存
@@ -847,9 +851,9 @@ export default defineComponent({ orgSelectNames += item.label + ","; }); } + console.log("orgSelectIds&orgSelectNames2", orgSelectIds, orgSelectNames); orgSelectIds = orgSelectIds.slice(0, orgSelectIds.length - 1); orgSelectNames = orgSelectNames.slice(0, orgSelectNames.length - 1); - console.log("orgSelectIds&orgSelectNames2", orgSelectIds, orgSelectNames); let selectJobId = ""; if (state.selectJobId.length) { @@ -1027,7 +1031,7 @@ export default defineComponent({ ); let arrObj = []; arrObj = orgSelectIds.map((item, index) => { - return { value: item, lebel: orgSelectNames[index] }; + return { value: item, label: orgSelectNames[index] }; }); console.log("arrObj-------------", arrObj); state.orgSelect = arrObj; From 4caedbff7cec8549b7f2e02556c0c8553e3266b2 Mon Sep 17 00:00:00 2001 From: lpq Date: Thu, 2 Mar 2023 21:13:43 +0800 Subject: [PATCH 14/54] =?UTF-8?q?=E5=85=B1=E4=BA=AB=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 8 +++++--- src/views/projectcenter/LibraryAdd.vue | 2 +- src/views/projectcenter/TaskPage.vue | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index f29c0a3d..2e7b1258 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2786,9 +2786,11 @@ export default { // 共享文档文件下载 const downloadFile = (url) => { - console.log(url); - if (url) { - window.open(url); + debugger + const urlNew = url.slice(1); + console.log(urlNew); + if (urlNew) { + window.open(process.env.VUE_APP_FILE_PATH + urlNew); } // if(url){ // const filename = '操作指南' diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 4f3d7a5c..a3ee2489 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -1171,7 +1171,7 @@ export default defineComponent({ state.scoresum = Number(result[0].pointsCount) + Number(result[1].pointsCount) + Number(result[2].pointsCount) + Number(result[3].pointsCount) + Number(result[4].pointsCount) + Number(result[5].pointsCount) + Number(result[6].pointsCount) + Number(result[7].pointsCount) - state.score1 = result[0].pointsCount; + state.score1 = result[0].pointsCount; state.done2 = result[1].typeDescConfig; state.done3 = result[1].pointsCount; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 5996e071..94b9522f 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -4678,6 +4678,7 @@ export default { } // 共享文档文件下载 const downloadFile = (url) => { + debugger url && window.open(url); }; function stageChange(item, index) { From 56b919cde6b25984011bfe84526210ac3e27076e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E8=BF=9B1?= <963286636@qq.com> Date: Thu, 2 Mar 2023 23:07:58 +0800 Subject: [PATCH 15/54] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/router/RouterCommonManage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index 89e0abe0..4f6ef758 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -505,7 +505,7 @@ export default { window.open(`${process.env.VUE_APP_BASE_API}/admin/online/manage/exportOnline?chapterId=${props.datasource.chapterId}&type=${2}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}`) }else if(props.datasource.type==11){ {/* 评估导出 */} - window.open(`${process.env.VUE_APP_BASE_API}admin/assessment/manage/exportAssessmentMessage?chapterId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&courseId=${props.datasource.courseId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) + window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/exportAssessmentMessage?chapterId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&courseId=${props.datasource.courseId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) }else{ window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) } From 1dc4270f8ba85535a2cfada85087f7dc1123d4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E8=BF=9B1?= <963286636@qq.com> Date: Fri, 3 Mar 2023 00:03:09 +0800 Subject: [PATCH 16/54] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/project/ProjectOnlineManage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index ae6c97ac..e92e95e2 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -498,7 +498,7 @@ export default { window.open(`${process.env.VUE_APP_BASE_API}/admin/online/manage/exportOnline?chapterId=${props.datasource.stageId}&type=${1}&targetId=${props.datasource.projectId}&taskId=${props.datasource.courseId}`) }else if(props.datasource.type==11){ {/* 评估导出 */} - window.open(`${process.env.VUE_APP_BASE_API}admin/assessment/manage/exportAssessmentMessage?chapterId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&courseId=${props.datasource.courseId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) + window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/exportAssessmentMessage?chapterId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&courseId=${props.datasource.courseId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) }else{ window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`) } From ffb469e80f99cbcbefc1cbc803be238d85845eb1 Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 3 Mar 2023 10:49:37 +0800 Subject: [PATCH 17/54] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=92=8C=E5=AD=A6=E4=B9=A0=E8=B7=AF=E5=BE=84=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 8 ++++---- src/views/projectcenter/TaskPage.vue | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index f29c0a3d..0044ce3a 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2637,7 +2637,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_H5 + - "/externalexam?courseId=" + + "/externalexam?type=2&courseId=" + item.courseId; } else { codeUrl = @@ -2705,7 +2705,7 @@ export default { item.courseId + "&evaType=" + item.evaType + - "&targetId=" + + "&type=2&targetId=" + item.targetId; } @@ -2737,7 +2737,7 @@ export default { item.id + "&chapterOrStageId=" + item.chapterId + - "&infoId=" + + "&type=2&infoId=" + state.routerId; } // 项目 @@ -2745,7 +2745,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_H5 + - "/projectdetails?projectId=" + + "/projectdetails?type=2&projectId=" + item.courseId; } state.codevisible = true; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 5996e071..c32d1870 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -3925,7 +3925,7 @@ export default { }; //创建小组 const createGroup = async () => { - debugger + debugger; console.log("state.groupPageList" + state.groupPageList); const id = state.groupInfo.id; const d = state.groupPageList @@ -4513,7 +4513,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_H5 + - "/faceteach?type=2&courseId=" + + "/faceteach?type=1&courseId=" + item.courseId + "&id=" + item.id; @@ -4540,7 +4540,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_H5 + - "/externalexam?courseId=" + + "/externalexam?type=1&courseId=" + item.courseId; } else { codeUrl = @@ -4607,7 +4607,7 @@ export default { process.env.VUE_APP_H5 + "/evaluation?courseId=" + item.courseId + - "&evaType=" + + "&type=1&evaType=" + item.evaType + "&targetId=" + item.targetId; @@ -4638,7 +4638,7 @@ export default { process.env.VUE_APP_H5 + "/ballotpage?courseId=" + item.courseId + - "&btype=2&id=" + + "&type=1&btype=2&id=" + item.id + "&chapterOrStageId=" + item.stageId + @@ -4663,7 +4663,7 @@ export default { url: window.location.protocol + process.env.VUE_APP_H5 + - "/projectdetails?projectId=" + + "/projectdetails?type=1&projectId=" + state.projectId, }; state.codeInfo = obj; From 630752547d32c5bbdf51b83a25862f39dc73dd7d Mon Sep 17 00:00:00 2001 From: peiqingliu <1226880979@qq.com> Date: Fri, 3 Mar 2023 11:26:24 +0800 Subject: [PATCH 18/54] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index f29c0a3d..664f68ee 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2787,8 +2787,10 @@ export default { // 共享文档文件下载 const downloadFile = (url) => { console.log(url); - if (url) { - window.open(url); + let urlNew = url.slice(1); + console.log(urlNew); + if (urlNew) { + window.open(process.env.VUE_APP_FILE_PATH + urlNew); } // if(url){ // const filename = '操作指南' From 49fa5ae375201d93dc3eec7987447e4a79c2721c Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 3 Mar 2023 11:54:08 +0800 Subject: [PATCH 19/54] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 7 +- src/views/projectcenter/LibraryAdd.vue | 1010 +++++++++++++----------- src/views/projectcenter/TaskPage.vue | 12 +- 3 files changed, 551 insertions(+), 478 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index 9a78c17e..146e6cdb 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2790,7 +2790,12 @@ export default { let urlNew = url.slice(1); console.log(urlNew); if (urlNew) { - window.open(process.env.VUE_APP_FILE_PATH + urlNew); + window.open( + window.location.protocol + + process.env.VUE_APP_BOE_API_URL + + process.env.VUE_APP_FILE_PATH + + urlNew + ); } // if(url){ // const filename = '操作指南' diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 4f3d7a5c..2725efa6 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -2,7 +2,7 @@
- +
{{ projectInfo.name || "-" }}
@@ -34,23 +34,21 @@
--> - +
- +
返回
-
+
@@ -59,12 +57,15 @@
任务大纲
编辑 @@ -83,12 +84,12 @@
{{ item.percent }}%{{ item.percent }}%
- +
- +
- +
创建任务 @@ -286,9 +287,9 @@
关闭 @@ -314,10 +315,10 @@
编辑公告:
 
@@ -341,13 +342,13 @@
获取规则
-
+
规则
- + 编辑
@@ -362,7 +363,7 @@
当前设计下,学员可以获得 {{ scoresum }}积分 + >积分
完成【必修/选修】获得 完成作业成绩不低于 {{ done2 }}分获得 {{ done3 }}积分 + >分获得 {{ done3 }}积分
{{ four1 }}名学完在线课程获得 + >名学完在线课程获得 {{ four2 }}积分 {{ four3 }}名提交作业且成绩不低于 + >{{ four3 }}名提交作业且成绩不低于 {{ four4 }}分获得 {{ four5 }}积分 + >积分
考试成绩高于{{ five1 }}分获得 {{ five2 }}积分 + >分获得 {{ five2 }}积分
考勤正常学员获得 {{ six1 }}积分 + >积分
成为小组长获得{{ seven1 }}积分 + >积分 优秀学员可获得 {{ seven2 }}积分 @@ -409,97 +410,64 @@
当前设计下,学员可以获得 {{ scoresum }}积分 + >积分
完成【必修/选修】获得 积分 + > 积分
- 完成作业成绩不低于 - - 分获得 - - 积分 + 完成作业成绩不低于 + + 分获得 + + 积分
- - - 名学完在线课程获得 - - 积分 - - - 名提交作业且成绩不低于 - - 分获得 - - 积分 + + + 名学完在线课程获得 + + 积分 + + + 名提交作业且成绩不低于 + + 分获得 + + 积分
- 考试成绩高于 - - 分获得 - - 积分 + 考试成绩高于 + + 分获得 + + 积分
- 考勤正常学员获得 - - 积分 + 考勤正常学员获得 + + 积分
- 成为小组长获得 - - 积分 + 成为小组长获得 + + 积分 优秀学员可获得 - - 积分 + + 积分
-
@@ -529,9 +497,9 @@
封面图:
@@ -539,7 +507,7 @@
项目时间:
{{ projectInfo.beginTime }} ~ + >{{ projectInfo.beginTime }} ~ {{ projectInfo.endTime }}
@@ -548,54 +516,65 @@
项目经理:
{{ - projectInfo.manager - }} + projectInfo.manager + }}
资源归属:
{{ - (projectInfo.sourceBelongFullName || '') + projectInfo.sourceBelongName - }} + (projectInfo.sourceBelongFullName || "") + + projectInfo.sourceBelongName + }}
项目级别:
- +
培训体系:
- +
同步学习记录:
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
是否BOEU实施:
- BOEU实施BOEU实施
-
+
项目说明:
{{ - projectInfo.remark - }} + projectInfo.remark + }}
@@ -612,45 +591,51 @@
上传共享文档
上传上传
支持:pdf.ppt.pptx.doc.docx.xls.xlsx.jpeg.png.gif.zip
- +
- +
- +
- +
- +
- - + +
@@ -698,17 +722,30 @@
{{ - item.name - }} + style=" + font: oblique bold 16px Sans-serif; + width: 300px; + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + " + >{{ item.name }} 下载 + href="javascript:void(0);" + @click=" + downloadFile( + item.response ? item.response.data : '' + ) + " + style="margin-left: 5px" + >下载 删除删除
@@ -716,17 +753,15 @@
- -
@@ -741,12 +776,12 @@
当前关卡:
@@ -756,8 +791,7 @@
-
+
@@ -771,10 +805,10 @@ import { onMounted, computed, } from "vue"; -import {message} from "ant-design-vue"; +import { message } from "ant-design-vue"; import * as api from "@/api/indexTemplate"; -import {useRoute, useRouter} from "vue-router"; -import {scoreRule, setScoreRule} from "@/api/indexTaskadd"; +import { useRoute, useRouter } from "vue-router"; +import { scoreRule, setScoreRule } from "@/api/indexTaskadd"; import ProjectLevel from "@/components/project/ProjectLevel"; import TrainClass from "@/components/project/TrainClass"; @@ -786,7 +820,7 @@ export default defineComponent({ }, setup() { const state = reactive({ - templateInfo:{}, + templateInfo: {}, //任务大纲列表 taskSyllabus: [ // { @@ -869,26 +903,26 @@ export default defineComponent({ ], // 模板编辑列表 managerOptions: [ - {value: "李俊国"}, - {value: "将小米"}, - {value: "刘孟君"}, + { value: "李俊国" }, + { value: "将小米" }, + { value: "刘孟君" }, ], sourceBelongOptions: [ - {value: "项目一"}, - {value: "项目二"}, - {value: "项目三"}, + { value: "项目一" }, + { value: "项目二" }, + { value: "项目三" }, ], levelOptions: [ - {value: "集团级"}, - {value: "组织级"}, - {value: "现地级"}, - {value: "部门级"}, + { value: "集团级" }, + { value: "组织级" }, + { value: "现地级" }, + { value: "部门级" }, ], systemOptions: [ - {value: "集团级"}, - {value: "组织级"}, - {value: "现地级"}, - {value: "部门级"}, + { value: "集团级" }, + { value: "组织级" }, + { value: "现地级" }, + { value: "部门级" }, ], taskSyllabusActive: 0, //在线管理等页面传递参数 @@ -944,17 +978,19 @@ export default defineComponent({ const value = ref(""); const textnum = "150"; const routered = useRouter(); - const {query: {projectTemplateId}} = useRoute(); + const { + query: { projectTemplateId }, + } = useRoute(); const changeopclo = () => { state.projectInfo.noticeFlag = state.checked ? 1 : 0; api - .templateEdit(state.projectInfo) - .then((res) => { - console.log(res); - }) - .catch((err) => { - console.log(err); - }); + .templateEdit(state.projectInfo) + .then((res) => { + console.log(res); + }) + .catch((err) => { + console.log(err); + }); }; const changecheck2 = () => { @@ -967,14 +1003,14 @@ export default defineComponent({ // return message.warning("请输入合法数字"); // } return ( - Number(state.score1) + - Number(state.done3) + - Number(state.four2) + - Number(state.four5) + - Number(state.five2) + - Number(state.six1) + - Number(state.seven1) + - Number(state.seven2) + Number(state.score1) + + Number(state.done3) + + Number(state.four2) + + Number(state.four5) + + Number(state.five2) + + Number(state.six1) + + Number(state.seven1) + + Number(state.seven2) ); }); const changecheck3 = () => { @@ -1017,50 +1053,49 @@ export default defineComponent({ // 获取详情 const getDetail = () => { api.templateEditDetail(projectTemplateId).then((res) => { - state.templateInfo = res.data.data - state.taskSyllabus = []; - state.projectInfo = res.data.data.projectTemplateInfo; - state.noticeContent = state.projectInfo.notice; - state.checked = state.projectInfo.noticeFlag == 1; - console.log( - "res.data.data.projectTemplateInfo", - res.data.data.projectTemplateInfo - ); - try { - state.fileList = JSON.parse( - res.data.data.projectTemplateInfo.attach - ); - } catch { - state.fileList = []; - } - state.attachSwitch = res.data.data.projectTemplateInfo.attachSwitch == 1; - let data = res.data.data.stageList; - console.log("data=====", data); - for (let i in data) { - console.log("what ------ > ", i, data); - // if (data[i].taskTemplateList.length !== 0) { - if (!data[i].name) { - continue; - } - state.taskSyllabus.push({ - text: data[i].name ? data[i].name : "无阶段任务", - children: [], - }); - // } + state.templateInfo = res.data.data; + state.taskSyllabus = []; + state.projectInfo = res.data.data.projectTemplateInfo; + state.noticeContent = state.projectInfo.notice; + state.checked = state.projectInfo.noticeFlag == 1; + console.log( + "res.data.data.projectTemplateInfo", + res.data.data.projectTemplateInfo + ); + try { + state.fileList = JSON.parse(res.data.data.projectTemplateInfo.attach); + } catch { + state.fileList = []; + } + state.attachSwitch = + res.data.data.projectTemplateInfo.attachSwitch == 1; + let data = res.data.data.stageList; + console.log("data=====", data); + for (let i in data) { + console.log("what ------ > ", i, data); + // if (data[i].taskTemplateList.length !== 0) { + if (!data[i].name) { + continue; + } + state.taskSyllabus.push({ + text: data[i].name ? data[i].name : "无阶段任务", + children: [], + }); + // } - for (let j in data[i].taskTemplateList) { - state.taskSyllabus[i].children.push({ - course: checkType(data[i].taskTemplateList[j].type), - name: data[i].taskTemplateList[j].name, - classify: data[i].taskTemplateList[j].flag, - beginTime: "", - total: 0, //总人数 - complete: 0, //完成人数 - percent: 0, - }); - } - } - }) + for (let j in data[i].taskTemplateList) { + state.taskSyllabus[i].children.push({ + course: checkType(data[i].taskTemplateList[j].type), + name: data[i].taskTemplateList[j].name, + classify: data[i].taskTemplateList[j].flag, + beginTime: "", + total: 0, //总人数 + complete: 0, //完成人数 + percent: 0, + }); + } + } + }); }; // 发布公告 @@ -1070,45 +1105,45 @@ export default defineComponent({ return message.warning("请输入公告内容"); } api - .templateEdit(state.projectInfo) - .then((res) => { - state.noticeContent = state.projectInfo.notice; - message.success("公告发布成功"); - console.log(res); - }) - .catch((err) => { - message.error("公告发布失败" + err); - console.log(err); - }); + .templateEdit(state.projectInfo) + .then((res) => { + state.noticeContent = state.projectInfo.notice; + message.success("公告发布成功"); + console.log(res); + }) + .catch((err) => { + message.error("公告发布失败" + err); + console.log(err); + }); state.editFlag = false; }; // 删除阶段 const stateDel = (id) => { api - .deleteStage(id) - .then((res) => { - message.success("删除阶段成功"); - console.log(res); - }) - .catch((err) => { - message.error("删除阶段失败" + err); - console.log(err); - }); + .deleteStage(id) + .then((res) => { + message.success("删除阶段成功"); + console.log(res); + }) + .catch((err) => { + message.error("删除阶段失败" + err); + console.log(err); + }); }; // 删除任务 const taskDel = (id) => { api - .deleteTask(id) - .then((res) => { - message.success("删除任务成功"); - console.log(res); - }) - .catch((err) => { - message.error("删除任务失败" + err); - console.log(err); - }); + .deleteTask(id) + .then((res) => { + message.success("删除任务成功"); + console.log(res); + }) + .catch((err) => { + message.error("删除任务失败" + err); + console.log(err); + }); }; const toEdit = () => { routered.push({ @@ -1128,15 +1163,15 @@ export default defineComponent({ stageId: 0, }; api - .editStagek(obj) - .then((res) => { - message.success("编辑阶段成功"); - console.log(res); - }) - .catch((err) => { - message.error("编辑阶段失败" + err); - console.log(err); - }); + .editStagek(obj) + .then((res) => { + message.success("编辑阶段成功"); + console.log(res); + }) + .catch((err) => { + message.error("编辑阶段失败" + err); + console.log(err); + }); }; //新建或编辑阶段任务 const taskEdit = () => { @@ -1148,56 +1183,68 @@ export default defineComponent({ projectTaskId: 0, projectTemplateId: localStorage.getItem("projectTemplateId"), stageId: 0, - type: 0 + type: 0, }; api - .editTask(obj) - .then((res) => { - message.success("编辑任务成功"); - console.log(res); - }) - .catch((err) => { - message.error("编辑任务失败" + err); - console.log(err); - }); + .editTask(obj) + .then((res) => { + message.success("编辑任务成功"); + console.log(res); + }) + .catch((err) => { + message.error("编辑任务失败" + err); + console.log(err); + }); }; const getScoreRule = () => { scoreRule({ projectId: projectTemplateId, }) - .then((res) => { - let result = res.data.data; - //Write operation failed: computed value is readonly 总积分 + .then((res) => { + let result = res.data.data; + //Write operation failed: computed value is readonly 总积分 - state.scoresum = Number(result[0].pointsCount) + Number(result[1].pointsCount) + Number(result[2].pointsCount) + Number(result[3].pointsCount) + Number(result[4].pointsCount) + Number(result[5].pointsCount) + Number(result[6].pointsCount) + Number(result[7].pointsCount) + state.scoresum = + Number(result[0].pointsCount) + + Number(result[1].pointsCount) + + Number(result[2].pointsCount) + + Number(result[3].pointsCount) + + Number(result[4].pointsCount) + + Number(result[5].pointsCount) + + Number(result[6].pointsCount) + + Number(result[7].pointsCount); - state.score1 = result[0].pointsCount; + state.score1 = result[0].pointsCount; - state.done2 = result[1].typeDescConfig; - state.done3 = result[1].pointsCount; + state.done2 = result[1].typeDescConfig; + state.done3 = result[1].pointsCount; - state.four1 = result[2].typeDescConfig; - state.four2 = result[2].pointsCount; + state.four1 = result[2].typeDescConfig; + state.four2 = result[2].pointsCount; - state.four3 = result[3].typeDescConfig.slice(0,result[3].typeDescConfig.indexOf(';')); - state.four4 = result[3].typeDescConfig.slice(result[3].typeDescConfig.indexOf(';')+1); - state.four5 = result[3].pointsCount; + state.four3 = result[3].typeDescConfig.slice( + 0, + result[3].typeDescConfig.indexOf(";") + ); + state.four4 = result[3].typeDescConfig.slice( + result[3].typeDescConfig.indexOf(";") + 1 + ); + state.four5 = result[3].pointsCount; - state.five1 = result[4].typeDescConfig; - state.five2 = result[4].pointsCount; + state.five1 = result[4].typeDescConfig; + state.five2 = result[4].pointsCount; - state.six1 = result[5].pointsCount; + state.six1 = result[5].pointsCount; - state.seven1 = result[6].pointsCount; + state.seven1 = result[6].pointsCount; - state.seven2 = result[7].pointsCount; - - }) - .catch((err) => { - console.log("获取项目积分规则失败了", err); - }); + state.seven2 = result[7].pointsCount; + }) + .catch((err) => { + console.log("获取项目积分规则失败了", err); + }); }; - const handleChange2 = ({file, fileList}) => { + const handleChange2 = ({ file, fileList }) => { console.log(fileList); let list = []; if (file.status !== "uploading") { @@ -1227,30 +1274,30 @@ export default defineComponent({ }); //要编辑项目 api - .templateEdit({ - name: state.projectInfo.name, - category: state.projectInfo.category, - picUrl: state.projectInfo.picUrl, - manager: state.projectInfo.manager, - managerId: state.projectInfo.managerId || 0, - sourceBelongId: state.projectInfo.sourceBelongId, - level: state.projectInfo.level, - systemId: state.projectInfo.systemId, - boeFlag: state.projectInfo.boeFlag ? 1 : 0, - courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0, - notice: state.projectInfo.notice, - noticeFlag: state.projectInfo.noticeFlag, - projectTemplateId: localStorage.getItem("projectTemplateId"), - remark: state.projectInfo.remark, - status: state.projectInfo.status, - attach: str, - }) - .then((res) => { - console.log("上传成功", res); - }) - .catch((err) => { - console.log("上传失败了", err); - }); + .templateEdit({ + name: state.projectInfo.name, + category: state.projectInfo.category, + picUrl: state.projectInfo.picUrl, + manager: state.projectInfo.manager, + managerId: state.projectInfo.managerId || 0, + sourceBelongId: state.projectInfo.sourceBelongId, + level: state.projectInfo.level, + systemId: state.projectInfo.systemId, + boeFlag: state.projectInfo.boeFlag ? 1 : 0, + courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0, + notice: state.projectInfo.notice, + noticeFlag: state.projectInfo.noticeFlag, + projectTemplateId: localStorage.getItem("projectTemplateId"), + remark: state.projectInfo.remark, + status: state.projectInfo.status, + attach: str, + }) + .then((res) => { + console.log("上传成功", res); + }) + .catch((err) => { + console.log("上传失败了", err); + }); } if (file.status === "done") { @@ -1270,114 +1317,116 @@ export default defineComponent({ let str = JSON.stringify(state.fileList); api - .templateEdit({ - sourceBelongId: state.projectInfo.sourceBelongId, - projectTemplateId: localStorage.getItem("projectTemplateId"), - attach: str, - }) - .then((res) => { - console.log(res) - message.destroy(); - message.success("删除成功"); - return - }) - .catch((err) => { - console.log(err) - message.destroy(); - message.warning("删除失败"); - return - }); + .templateEdit({ + sourceBelongId: state.projectInfo.sourceBelongId, + projectTemplateId: localStorage.getItem("projectTemplateId"), + attach: str, + }) + .then((res) => { + console.log(res); + message.destroy(); + message.success("删除成功"); + return; + }) + .catch((err) => { + console.log(err); + message.destroy(); + message.warning("删除失败"); + return; + }); }; // 设置上传图片开关 const checkedClose = (data, a) => { console.log(data, a); console.log("模板id:" + projectTemplateId); - console.log("开关数据:" + JSON.stringify(data) + "====" + JSON.stringify(a)) + console.log( + "开关数据:" + JSON.stringify(data) + "====" + JSON.stringify(a) + ); state.attachSwitch = data; // 更新开关状态 api - .templateEdit({ - sourceBelongId: state.projectInfo.sourceBelongId, - projectTemplateId: projectTemplateId, - attachSwitch: state.attachSwitch ? 1 : -1, - }) - .then((res) => { - console.log("开关更新成功", res); - }) - .catch((err) => { - console.log("开关更新失败", err); - }); + .templateEdit({ + sourceBelongId: state.projectInfo.sourceBelongId, + projectTemplateId: projectTemplateId, + attachSwitch: state.attachSwitch ? 1 : -1, + }) + .then((res) => { + console.log("开关更新成功", res); + }) + .catch((err) => { + console.log("开关更新失败", err); + }); }; //设置积分规则 const editRule = () => { let obj = { projectId: projectTemplateId, - datas:[ + datas: [ { - "type": 1, - "pointsCount": Number(state.score1), - "typeDesc": "完成【必修/选修】获得%p积分", - "typeDescConfig": "" + type: 1, + pointsCount: Number(state.score1), + typeDesc: "完成【必修/选修】获得%p积分", + typeDescConfig: "", }, { - "type": 2, - "pointsCount": Number(state.done3), - "typeDesc": "完成作业成绩不低于%d分获得%p积分", - "typeDescConfig": state.done2 + type: 2, + pointsCount: Number(state.done3), + typeDesc: "完成作业成绩不低于%d分获得%p积分", + typeDescConfig: state.done2, }, { - "type": 3, - "pointsCount": Number(state.four2), - "typeDesc": "前%d名学完在线课程获得%p积分", - "typeDescConfig": state.four1 + type: 3, + pointsCount: Number(state.four2), + typeDesc: "前%d名学完在线课程获得%p积分", + typeDescConfig: state.four1, }, { - "type": 4, - "pointsCount": Number(state.four5), - "typeDesc": "前%d名提交作业且成绩不低于%d分获得%p积分", - "typeDescConfig": state.four3 + ';' + state.four4 + type: 4, + pointsCount: Number(state.four5), + typeDesc: "前%d名提交作业且成绩不低于%d分获得%p积分", + typeDescConfig: state.four3 + ";" + state.four4, }, { - "type": 5, - "pointsCount": Number(state.five2), - "typeDesc": "考试成绩高于%d分获得%p积分", - "typeDescConfig": state.five1 + type: 5, + pointsCount: Number(state.five2), + typeDesc: "考试成绩高于%d分获得%p积分", + typeDescConfig: state.five1, }, { - "type": 6, - "pointsCount": Number(state.six1), - "typeDesc": "考勤正常学员获得%p积分", - "typeDescConfig": "" + type: 6, + pointsCount: Number(state.six1), + typeDesc: "考勤正常学员获得%p积分", + typeDescConfig: "", }, { - "type": 7, - "pointsCount": Number(state.seven1), - "typeDesc": "成为小组长获得%p积分", - "typeDescConfig": "" + type: 7, + pointsCount: Number(state.seven1), + typeDesc: "成为小组长获得%p积分", + typeDescConfig: "", }, { - "type": 8, - "pointsCount": Number(state.seven2), - "typeDesc": "优秀学员可获得%p积分", - "typeDescConfig": "" - } - ] + type: 8, + pointsCount: Number(state.seven2), + typeDesc: "优秀学员可获得%p积分", + typeDescConfig: "", + }, + ], }; console.log(obj); setScoreRule(obj) - .then((res) => { - console.log(res.data, "修改成功"); - message.destroy(); - return message.success("修改积分规则成功"); - }) - .catch((err) => { - console.log(err.data); - message.destroy(); - return message.warning("修改积分规则失败"); - }); + .then((res) => { + console.log(res.data, "修改成功"); + message.destroy(); + return message.success("修改积分规则成功"); + }) + .catch((err) => { + console.log(err.data); + message.destroy(); + return message.warning("修改积分规则失败"); + }); // scoreRule({ // projectId: props.projectId, // }); @@ -1387,10 +1436,19 @@ export default defineComponent({ // 共享文档文件下载 const downloadFile = (url) => { - console.log(url) - if (url) { - window.open(url) + console.log(url); + let urlNew = url.slice(1); + if (urlNew) { + window.open( + window.location.protocol + + process.env.VUE_APP_BOE_API_URL + + process.env.VUE_APP_FILE_PATH + + urlNew + ); } + // if (url) { + // window.open(url) + // } // if(url){ // const filename = '操作指南' // const x = new XMLHttpRequest() @@ -1406,7 +1464,7 @@ export default defineComponent({ // } // x.send() // } - } + }; return { ...toRefs(state), @@ -1431,7 +1489,7 @@ export default defineComponent({ checkedClose, editNotice, deFile, - downloadFile + downloadFile, }; }, }); diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index c32d1870..0d079455 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -4678,7 +4678,17 @@ export default { } // 共享文档文件下载 const downloadFile = (url) => { - url && window.open(url); + console.log(url); + let urlNew = url.slice(1); + if (urlNew) { + window.open( + window.location.protocol + + process.env.VUE_APP_BOE_API_URL + + process.env.VUE_APP_FILE_PATH + + urlNew + ); + } + // url && window.open(url); }; function stageChange(item, index) { state.choosedStageName = item.name; From 3e703c6c5a545020f46b0a3b81789ac04a5fb0b3 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 12:41:39 +0800 Subject: [PATCH 20/54] -- fix bug --- src/components/student/TableStudent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/student/TableStudent.vue b/src/components/student/TableStudent.vue index 76ee2af2..109c4a77 100644 --- a/src/components/student/TableStudent.vue +++ b/src/components/student/TableStudent.vue @@ -680,7 +680,7 @@ function bathDel() { ); } tableData.value.loading = true; - delStudentList({ ids: stuSelectKeys.value }).then(() => getStuList()); + delStudentList({ ids: stuSelectKeys.value,type:props.type,targetId:props.id }).then(() => getStuList()); } const deleteModalVisible = ref(false); From 90fdbd9234688721e443a417e68b1967ae985a71 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 13:53:52 +0800 Subject: [PATCH 21/54] -- fix bug --- src/views/courselibrary/CoursewareManage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index f94077ab..679ac4ea 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -4655,7 +4655,7 @@ export default defineComponent({ state.manageStuLoading = true; console.log(787666, item); state.faceClassification = item.contentTxt; - state.faceStatus = item.kkty; + state.faceStatus = item.status; state.currentFaceId = item.id; getCourseStudentList(); state.newCourseName = item.name; From e0c95dc063a9de8e71b2d623701a547b47c14f51 Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 14:03:56 +0800 Subject: [PATCH 22/54] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E8=80=83=E8=AF=95?= =?UTF-8?q?=E5=80=BC=E6=9C=AA=E6=B8=85=E7=A9=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddTest.vue | 4 +++- src/views/examine/ProjectReviewed.vue | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index 79707622..1b11c0ac 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -116,7 +116,7 @@
-
+
@@ -327,6 +327,8 @@ watch(() => formData.value.examType, () => { const closeDrawer = () => { visible.value = false taskIndex.value = -1 + formData.value.examinationLimit = '' + formData.value.examinationExplain = '' resetFields() dateTime.value = [] }; diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue index fda6a627..98956358 100644 --- a/src/views/examine/ProjectReviewed.vue +++ b/src/views/examine/ProjectReviewed.vue @@ -89,10 +89,10 @@ @expand="expandTable" :pagination="false" />
-
+
取消
-
+
确定
From f284dff0ec1d35440d04452f1c87d3796f9caea8 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 14:22:46 +0800 Subject: [PATCH 23/54] -- fix bug --- src/components/student/CommonStudent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index bd096ee8..afd1beed 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -780,7 +780,7 @@ const submitAuth = () => { if (props.type === 2) { stageVisible.value = true; } else { - handleStageOk(); + handleDialogOk(); } }; From 99647d6c98c4d790ea47d4d4c254a74de51d2a5f Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 14:27:00 +0800 Subject: [PATCH 24/54] =?UTF-8?q?style:=E5=AE=A1=E6=A0=B8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examine/CourseReviewed.vue | 7 +++- src/views/examine/CourseReviewedN.vue | 7 +++- src/views/examine/ProjectReviewed.vue | 7 +++- src/views/examine/ProjectReviewedN.vue | 7 +++- src/views/learningpath/LearningPath.vue | 44 +++++++++---------------- 5 files changed, 40 insertions(+), 32 deletions(-) diff --git a/src/views/examine/CourseReviewed.vue b/src/views/examine/CourseReviewed.vue index 02f8b97a..e109a6d1 100644 --- a/src/views/examine/CourseReviewed.vue +++ b/src/views/examine/CourseReviewed.vue @@ -678,7 +678,12 @@ export default { background-image: url("../../assets/images/courseManage/search0.png"); } } - + .btn2:active { + background: #0982ff; + } + .btn1:active { + background: #0982ff; + } .btn2 { background: #4ea6ff; border: 1px solid #4ea6ff; diff --git a/src/views/examine/CourseReviewedN.vue b/src/views/examine/CourseReviewedN.vue index 2ac34b36..0efa77fc 100644 --- a/src/views/examine/CourseReviewedN.vue +++ b/src/views/examine/CourseReviewedN.vue @@ -1613,7 +1613,12 @@ export default { background-image: url("../../assets/images/courseManage/search0.png"); } } - + .btn2:active { + background: #0982ff; + } + .btn1:active { + background: #0982ff; + } .btn2 { background: #4ea6ff; border: 1px solid #4ea6ff; diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue index 98956358..0ae5a659 100644 --- a/src/views/examine/ProjectReviewed.vue +++ b/src/views/examine/ProjectReviewed.vue @@ -599,7 +599,12 @@ export default { background-image: url("../../assets/images/courseManage/search0.png"); } } - + .btn22:active { + background: #0982ff; + } + .btn11:active { + background: #0982ff; + } .btn22 { background: #4ea6ff; border: 1px solid #4ea6ff; diff --git a/src/views/examine/ProjectReviewedN.vue b/src/views/examine/ProjectReviewedN.vue index cccf8fd8..d122c9b9 100644 --- a/src/views/examine/ProjectReviewedN.vue +++ b/src/views/examine/ProjectReviewedN.vue @@ -383,7 +383,12 @@ export default { background-image: url("../../assets/images/courseManage/search0.png"); } } - + .btn2:active { + background: #0982ff; + } + .btn1:active { + background: #0982ff; + } .btn2 { background: #4ea6ff; border: 1px solid #4ea6ff; diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index e1074981..9604ac94 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -2359,7 +2359,7 @@ export default { .btnn { padding: 0px 26px 0px 26px; height: 38px; - background: #ffffff; + background: rgba(64, 158, 255, 1); border-radius: 8px; border: 1px solid rgba(64, 158, 255, 1); display: flex; @@ -2376,7 +2376,7 @@ export default { .btnText { font-size: 14px; font-weight: 400; - color: #4ea6ff; + color: #fff; line-height: 36px; margin-left: 5px; } @@ -2394,32 +2394,32 @@ export default { .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); } } - .btn1:hover { - background: rgba(64, 158, 255, 0.76); + // .btn1:hover { + // background: rgba(64, 158, 255, 0.76); - .search { - background-image: url("../../assets/images/courseManage/search0.png"); - } + // .search { + // background-image: url("../../assets/images/courseManage/search0.png"); + // } - .btnText { - color: #ffffff; - } - } + // .btnText { + // color: #ffffff; + // } + // } .btn1:active { background: #0982ff; } - .btn2:hover { - background: rgba(64, 158, 255, 0.1); - } + // .btn2:hover { + // background: rgba(64, 158, 255, 0.1); + // } .btn2:active { - background: rgba(64, 158, 255, 0.2); + background: #0982ff; } } @@ -2462,18 +2462,6 @@ export default { } } - .btn3:hover { - background: rgba(64, 158, 255, 0.76); - - .search { - background-image: url("../../assets/images/courseManage/add0.png"); - } - - .btnText { - color: #ffffff; - } - } - .btn3:active { background: #0982ff; } From d415b71f65ac6a78dc09e7025ac84da95baaccf2 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 14:50:27 +0800 Subject: [PATCH 25/54] -- fix bug --- src/views/courselibrary/CoursewareManage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 679ac4ea..6e5f4565 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3623,6 +3623,8 @@ export default defineComponent({ state.EditTestId = 0; state.assessmentId = null; state.assessmentName = ""; + state.workInfo = {}; + state.examInfo = {}; state.EditWorkId = null; state.beforeValue = null; //考勤 开始前 state.afterStartValue = null; //考勤 开始后 From 43866dd142479534ea4c50f6e13ad3da452817df Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 14:52:03 +0800 Subject: [PATCH 26/54] style --- src/views/projectcenter/ProjectManage.vue | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index ad1f355d..71acdef2 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -1829,7 +1829,7 @@ export default { .btn { padding: 0px 26px 0px 26px; height: 38px; - background: rgba(64, 158, 255, 0); + background: #4ea6ff; border-radius: 8px; border: 1px solid rgba(64, 158, 255, 1); display: flex; @@ -1846,7 +1846,7 @@ export default { .btnText { font-size: 14px; font-weight: 400; - color: rgba(64, 158, 255, 1); + color: #fff; line-height: 36px; margin-left: 5px; } @@ -1890,32 +1890,32 @@ export default { .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); } } - .btn1:hover { - background: rgba(64, 158, 255, 0.76); + // .btn1:hover { + // background: rgba(64, 158, 255, 0.76); - .search { - background-image: url("../../assets/images/courseManage/search0.png"); - } + // .search { + // background-image: url("../../assets/images/courseManage/search0.png"); + // } - .btnText { - color: #ffffff; - } - } + // .btnText { + // color: #ffffff; + // } + // } .btn1:active { background: #0982ff; } - .btn2:hover { - background: rgba(64, 158, 255, 0.1); - } + // .btn2:hover { + // background: rgba(64, 158, 255, 0.1); + // } .btn2:active { - background: rgba(64, 158, 255, 0.2); + background: #0982ff; } } @@ -1958,9 +1958,9 @@ export default { } } - .btn3:hover { - background: rgba(64, 158, 255, 0.76); - } + // .btn3:hover { + // background: rgba(64, 158, 255, 0.76); + // } .btn3:active { background: #0982ff; From 87a9b25339c5f91323c74cfa0069b3698a8d426c Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 14:57:09 +0800 Subject: [PATCH 27/54] style --- src/views/projectcenter/TemplateLibrary.vue | 36 +++++---------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/src/views/projectcenter/TemplateLibrary.vue b/src/views/projectcenter/TemplateLibrary.vue index b4a78532..ad7c00d5 100644 --- a/src/views/projectcenter/TemplateLibrary.vue +++ b/src/views/projectcenter/TemplateLibrary.vue @@ -368,10 +368,15 @@ export default defineComponent({ } .btnText2 { - color: rgba(64, 158, 255, 1); + color: rgb(255, 255, 255); } } - + .btn1:active { + background: #0982ff; + } + .btn2:active { + background: #0982ff; + } .btn1 { background: #4ea6ff; @@ -383,39 +388,14 @@ export default defineComponent({ } .btn2 { - background: #ffffff; + background: #4ea6ff; border: 1px solid #4ea6ff; .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); - } - } - - .btn1:hover { - background: rgb(255, 255, 255); - border: 1px solid #4ea6ff; - - .search { - background-image: url("../../assets/images/courseManage/search1.png"); - } - - .btnText { - color: rgba(64, 158, 255, 1); - } - } - - .btn2:hover { - background: rgba(64, 158, 255, 1); - - .search { background-image: url("../../assets/images/courseManage/reset0.png"); } - - .btnText { - color: #ffffff; - } } } } From ff4f1a9d8c92eec721d2893e1d378e7ccce590c8 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 15:50:41 +0800 Subject: [PATCH 28/54] -- fix bug --- src/components/student/OnlineClassModelStudent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/student/OnlineClassModelStudent.vue b/src/components/student/OnlineClassModelStudent.vue index cc6e5b4e..1ac78573 100644 --- a/src/components/student/OnlineClassModelStudent.vue +++ b/src/components/student/OnlineClassModelStudent.vue @@ -193,7 +193,8 @@ function onStuSelectChange(e) { stuSelectKeys.value = e; } -const openDrawer = () => { +const openDrawer = (raw) => { + console.log(raw); visiable.value = true; }; From 43435b0b4197ca1e08c03dbc0ab9b374b3701995 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 16:50:07 +0800 Subject: [PATCH 29/54] -- fix bug --- src/components/student/OnlineClassModelStudent.vue | 10 +++++++--- src/views/courselibrary/OnlineManage.vue | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/student/OnlineClassModelStudent.vue b/src/components/student/OnlineClassModelStudent.vue index 1ac78573..bc4f5d62 100644 --- a/src/components/student/OnlineClassModelStudent.vue +++ b/src/components/student/OnlineClassModelStudent.vue @@ -8,16 +8,16 @@ >
- xxxxxxxx 课程 + {{formData.name}} 课程
内容分类:12312
- 授课教师:12312 + 授课教师:{{ formData.sysType1 }}/{{ formData.sysType2 }}/{{ formData.sysType3 }}
- 审核状态:12312 + 审核状态:{{ formData.status }}
@@ -62,6 +62,7 @@ ({ @@ -195,6 +198,7 @@ function onStuSelectChange(e) { const openDrawer = (raw) => { console.log(raw); + formData.value = raw visiable.value = true; }; diff --git a/src/views/courselibrary/OnlineManage.vue b/src/views/courselibrary/OnlineManage.vue index 647efc00..9b6778c2 100644 --- a/src/views/courselibrary/OnlineManage.vue +++ b/src/views/courselibrary/OnlineManage.vue @@ -19,7 +19,7 @@ security="restricted" sandbox="allow-forms allow-scripts allow-same-origin allow-popups" > - +
\ No newline at end of file diff --git a/src/views/research/ResearchAdd.vue b/src/views/research/ResearchAdd.vue index 8b5fbbaf..a41405a2 100644 --- a/src/views/research/ResearchAdd.vue +++ b/src/views/research/ResearchAdd.vue @@ -82,6 +82,8 @@ height: 40px; margin-left: 14px; border-radius: 8px; + color:#fff; + background-color: #4ea6ff; " @click="handleAllCancel" > diff --git a/src/views/research/ResearchManage.vue b/src/views/research/ResearchManage.vue index 275eb8b7..21eab1d3 100644 --- a/src/views/research/ResearchManage.vue +++ b/src/views/research/ResearchManage.vue @@ -144,7 +144,7 @@
- + {{ !formData.id ? "下一步" : "确定" }} @@ -589,7 +589,7 @@ const handleNext = async () => { .btnn { padding: 0px 26px 0px 26px; height: 38px; - background: #ffffff; + background: #4ea6ff; border-radius: 8px; border: 1px solid rgba(64, 158, 255, 1); display: flex; @@ -606,7 +606,7 @@ const handleNext = async () => { .btnText { font-size: 14px; font-weight: 400; - color: #4ea6ff; + color: #fff; line-height: 36px; margin-left: 5px; } @@ -624,29 +624,29 @@ const handleNext = async () => { .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); } } - .btn1:hover { - background: rgba(64, 158, 255, 0.76); + // .btn1:hover { + // background: rgba(64, 158, 255, 0.76); - .search { - background-image: url("../../assets/images/courseManage/search0.png"); - } + // .search { + // background-image: url("../../assets/images/courseManage/search0.png"); + // } - .btnText { - color: #ffffff; - } - } + // .btnText { + // color: #ffffff; + // } + // } .btn1:active { background: #0982ff; } - .btn2:hover { - background: rgba(64, 158, 255, 0.1); - } + // .btn2:hover { + // background: rgba(64, 158, 255, 0.1); + // } .btn2:active { background: rgba(64, 158, 255, 0.2); @@ -692,17 +692,17 @@ const handleNext = async () => { } } - .btn3:hover { - background: rgba(64, 158, 255, 0.76); + // .btn3:hover { + // background: rgba(64, 158, 255, 0.76); - .search { - background-image: url("../../assets/images/courseManage/add0.png"); - } + // .search { + // background-image: url("../../assets/images/courseManage/add0.png"); + // } - .btnText { - color: #ffffff; - } - } + // .btnText { + // color: #ffffff; + // } + // } .btn3:active { background: #0982ff; From ef7fddd6e098c21a3eba2d6165d1c5fb092a3f8f Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 21:17:15 +0800 Subject: [PATCH 41/54] =?UTF-8?q?style=EF=BC=9A=E4=B8=8B=E8=BD=BD=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DownLoad.vue | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/views/DownLoad.vue b/src/views/DownLoad.vue index 9903a356..b1461e4b 100644 --- a/src/views/DownLoad.vue +++ b/src/views/DownLoad.vue @@ -34,7 +34,7 @@
- +
重置
@@ -290,24 +290,24 @@ export default { margin-left: 10px; } } - .btn1:hover { - background: rgba(64, 158, 255, 0.76); + // .btn1:hover { + // background: rgba(64, 158, 255, 0.76); - .search { - background-image: url("../assets/images/courseManage/search0.png"); - } + // .search { + // background-image: url("../assets/images/courseManage/search0.png"); + // } - .btnText { - color: #ffffff; - } - } + // .btnText { + // color: #ffffff; + // } + // } .btn1:active { background: #0982ff; } - .btn2:hover { - background: rgba(64, 158, 255, 0.1); - } + // .btn2:hover { + // background: rgba(64, 158, 255, 0.1); + // } .btn2:active { background: rgba(64, 158, 255, 0.2); } @@ -317,12 +317,11 @@ export default { display: flex; align-items: center; justify-content: center; - color: #4ea6ff; + color: #fff; font-size: 14px; - background: #ffffff; + background: #4ea6ff; border-radius: 8px; cursor: pointer; - border: 1px solid #4ea6ff; .wz { margin-left: 10px; } From 733ec7b646e204dc5263ad29c95b7260457b6586 Mon Sep 17 00:00:00 2001 From: caozc Date: Fri, 3 Mar 2023 22:09:55 +0800 Subject: [PATCH 42/54] =?UTF-8?q?fix=EF=BC=9A=E3=80=90=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=9B=BE-=E5=A4=96=E9=83=A8=E8=80=83?= =?UTF-8?q?=E8=AF=95=E3=80=91=E5=AF=BC=E5=87=BA=E6=95=B0=E6=8D=AE=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=AF=BC=E5=87=BA=EF=BC=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drawers/router/RouterExaminationExternalManage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/router/RouterExaminationExternalManage.vue b/src/components/drawers/router/RouterExaminationExternalManage.vue index 830e49af..943992bf 100644 --- a/src/components/drawers/router/RouterExaminationExternalManage.vue +++ b/src/components/drawers/router/RouterExaminationExternalManage.vue @@ -437,7 +437,7 @@ {/* 导出数据 */} function exportData() { - window.open(`${process.env.VUE_APP_BASE_API}/admin/external/exam/manage/exportExternalExam?chapterId=${props.datasource.chapterId}&type=${1}&targetId=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}`) + window.open(`${process.env.VUE_APP_BASE_API}/admin/external/exam/manage/exportExternalExam?chapterId=${props.datasource.chapterId}&type=${1}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}`) } return { ...toRefs(state), From 80778b87d99568d6583b2f828d43ba211dc32fbc Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 22:28:45 +0800 Subject: [PATCH 43/54] style --- src/App.vue | 4 ++-- src/components/common/CommonAlert.vue | 2 +- src/components/student/TableStudent.vue | 6 +++--- src/views/courselibrary/CoursewareManage.vue | 14 ++++++++------ src/views/research/ResearchAdd.vue | 3 ++- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index 24fde76b..bc766a13 100644 --- a/src/App.vue +++ b/src/App.vue @@ -155,8 +155,8 @@ const getDictList = (param) => api1.getDictTree({code: param,}).then((res) => re } .white { - background: #fff; - color: #4ea6ff; + // background: #fff; + // color: #4ea6ff; } .cus-input { diff --git a/src/components/common/CommonAlert.vue b/src/components/common/CommonAlert.vue index f2847e0b..ba1f3d55 100644 --- a/src/components/common/CommonAlert.vue +++ b/src/components/common/CommonAlert.vue @@ -22,7 +22,7 @@
{{ content }}
-
+
取消
diff --git a/src/components/student/TableStudent.vue b/src/components/student/TableStudent.vue index 109c4a77..6a081afa 100644 --- a/src/components/student/TableStudent.vue +++ b/src/components/student/TableStudent.vue @@ -68,7 +68,7 @@ 重置 @@ -104,7 +104,7 @@ 导入学员 @@ -131,7 +131,7 @@ 批量删除 diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index ddfc4893..a52c1421 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -6250,9 +6250,10 @@ export default defineComponent({ .btn { padding: 0px 26px 0px 26px; height: 40px; - background: rgba(64, 158, 255, 0); + background: rgba(64, 158, 255, 1); border-radius: 8px; border: 1px solid rgba(64, 158, 255, 1); + color: #fff; display: flex; align-items: center; justify-content: center; @@ -6266,7 +6267,7 @@ export default defineComponent({ .btnText { font-size: 14px; font-weight: 400; - color: rgba(64, 158, 255, 1); + color: #fff; line-height: 36px; margin-left: 5px; } @@ -6297,7 +6298,7 @@ export default defineComponent({ width: 16px; height: 18px; margin-right: 6px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); } } } @@ -6872,9 +6873,10 @@ export default defineComponent({ .btnn { padding: 0px 26px 0px 26px; height: 38px; - background: #ffffff; + background: #4ea6ff; border-radius: 8px; border: 1px solid rgba(64, 158, 255, 1); + color:#fff; display: flex; align-items: center; justify-content: center; @@ -6889,7 +6891,7 @@ export default defineComponent({ .btnText { font-size: 14px; font-weight: 400; - color: #4ea6ff; + color: #fff; line-height: 36px; margin-left: 5px; } @@ -6907,7 +6909,7 @@ export default defineComponent({ .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); } } diff --git a/src/views/research/ResearchAdd.vue b/src/views/research/ResearchAdd.vue index a41405a2..40f92151 100644 --- a/src/views/research/ResearchAdd.vue +++ b/src/views/research/ResearchAdd.vue @@ -667,7 +667,8 @@ export default { cursor: pointer; width: 80px; height: 40px; - color: #4ea6ff; + color: #fff; + background: #4ea6ff; border: 1px solid #4ea6ff; border-radius: 4px; display: flex; From e69d0d442e420ff5a8a0e7d774fb3c2605af8b90 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 3 Mar 2023 23:05:46 +0800 Subject: [PATCH 44/54] -- fix bug --- src/views/learningpath/LevelAddDetail.vue | 1 + src/views/projectcenter/TaskAdd.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 603a0613..cbfdf832 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -564,6 +564,7 @@ const submitStorage = async () => { } confirmLoading.value = true; await request(ROUTER_DETAIL_MODIFY, routerInfo.value); + await getDetail(); message.success("关卡和任务数据已保存"); confirmLoading.value = false; }; diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 0c05ce0e..104d0b5e 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -613,6 +613,7 @@ const submitStorage = async () => { } confirmLoading.value = true await request(PROJECT_DETAIL_MODIFY, projectInfo.value) + await getTask() message.success("阶段和任务数据已保存") confirmLoading.value = false }; From 77aac9cdcf423f69d4bcce571b6633dc5361550f Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Sat, 4 Mar 2023 02:53:02 +0800 Subject: [PATCH 45/54] -- fix bug --- src/api/apis.js | 1 + src/components/common/CommonAlert.vue | 52 +++++++---- src/components/student/TableModelStudent.vue | 25 ++--- src/components/student/TableStudent.vue | 69 ++++++++------ src/utils/useCommon.js | 98 +++++++++++++------- 5 files changed, 147 insertions(+), 98 deletions(-) diff --git a/src/api/apis.js b/src/api/apis.js index fb053205..a136ade9 100644 --- a/src/api/apis.js +++ b/src/api/apis.js @@ -6,3 +6,4 @@ export const ROUTER_DETAIL_MODIFY = '/admin/router/routerInfoTemp post'; export const PROJECT_DETAIL_MODIFY = '/admin/project/projectInfoTemp post'; export const PROJECT_TEMPLATE_DETAIL_MODIFY = '/admin/project/template/editStageAndTask post'; export const PROJECT_RELEASE = '/admin/project/realease'; +export const ASYNC_STUDENT_STATUS = '/admin/cache/getStudentAsyncStatus'; diff --git a/src/components/common/CommonAlert.vue b/src/components/common/CommonAlert.vue index ba1f3d55..0a8aee89 100644 --- a/src/components/common/CommonAlert.vue +++ b/src/components/common/CommonAlert.vue @@ -1,13 +1,13 @@