From 7b52d582887de623742b7b6ecab5cb6b43eca05c Mon Sep 17 00:00:00 2001 From: dongwug Date: Tue, 8 Nov 2022 11:58:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A1=B9=E7=9B=AE=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=A4=A7=E7=BA=B2=E5=88=97=E8=A1=A8=E6=B8=B2=E6=9F=93=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexVote.js | 8 +- src/views/projectcenter/TaskPage.vue | 362 +++++++++++++++------------ 2 files changed, 204 insertions(+), 166 deletions(-) diff --git a/src/api/indexVote.js b/src/api/indexVote.js index ce450782..fd1a7437 100644 --- a/src/api/indexVote.js +++ b/src/api/indexVote.js @@ -42,7 +42,7 @@ import qs from 'qs'; // 接口-请求 //基础票数上传接口 -// export const baseVoteupload = (obj) => http.post('/vote/baseVoteupload', obj) +export const baseVoteupload = (obj) => http.post('/vote/baseVoteupload', obj) //创建题干信息接口 export const createOptionMessage = (obj) => http.post('/vote/createOptionMessage', obj) @@ -53,6 +53,12 @@ export const createVote = (obj) => http.post('/vote/createVote', obj) //删除投票信息 export const deleteVoteMessage = (obj) => http.post('/vote/deleteVoteMessage', { params: obj }) +//删除题干信息接口 +export const deleteVoteStem = (obj) => http.post('/vote/deleteVoteStem', { params: obj }) + +//删除题选项息接口 +export const deleteVoteStemOption = (obj) => http.post('/vote/deleteVoteStemOption', { params: obj }) + //修改投票信息接口 export const editVote = (obj) => http.post('/vote/editVote', obj) diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 42a53158..0be5c04e 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -259,11 +259,11 @@
+ 必修 选修
开始时间
-
{{ item.beginTime }}
+
{{ item.createTime }}
- {{ item.complete }}/{{ item.total }}人 + {{ item.finishStuCnt }}/{{ item.totalStuCnt }}人
{{ item.percent }}%{{ (item.finishStuCnt/item.totalStuCnt)*100 }}%
@@ -349,7 +350,7 @@ class="operation" style="cursor: pointer" :style="{ - display: item.course === '面授' ? 'flex' : 'none', + display: item.type == '2' ? 'flex' : 'none', }" @click="showFS" > @@ -358,10 +359,10 @@
@@ -395,20 +396,20 @@ class="operation" style="cursor: pointer; margin-right: 35px" @click=" - item.course === '在线' || - item.course === '案例' || - item.course === '外链' || - item.course === '讨论' || - item.course === '直播' || - item.course === '调研' || - item.course === '投票' || - item.course === '活动' + item.type == '1' || + item.type == '3' || + item.type == '7' || + item.type == '8' || + item.type == '6' || + item.type == '11' || + item.type == '12' || + item.type == '9' ? showTime(item.course, item.name) - : item.course === '考试' || item.course === '测评' + : item.type == '5' || item.type == '10' ? showTest(item.course, item.name) - : item.course === '面授' + : item.type == '面授' ? showFace(item.course) - : item.course === '作业' + : item.type == '作业' ? showWork(item.course) : null " @@ -1647,7 +1648,7 @@