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 @@