From eb1721d263d99ffa224692d6da4db834862293f8 Mon Sep 17 00:00:00 2001 From: wuyx Date: Wed, 30 Nov 2022 23:41:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexVote.js | 2 +- src/components/vote/AddVote.vue | 324 ++++++++++++++++---------------- 2 files changed, 159 insertions(+), 167 deletions(-) diff --git a/src/api/indexVote.js b/src/api/indexVote.js index 9cacddc1..0f91f1bb 100644 --- a/src/api/indexVote.js +++ b/src/api/indexVote.js @@ -82,7 +82,7 @@ export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', o //上传组件 export const fileUp = (obj) => http.post('/file/upload', obj, qs.stringify({ obj })); //根据题干ID获取投票任务 -export const queryVoteDetailById = (obj) => http.post('/vote/queryVoteDetailById', obj) +export const queryVoteDetailById = (voteID) => http.post(`/vote/queryVoteDetailById?voteId=${voteID}`) // 测试方法 // import * as api from '../../api/index' diff --git a/src/components/vote/AddVote.vue b/src/components/vote/AddVote.vue index 5aa04497..e49bb756 100644 --- a/src/components/vote/AddVote.vue +++ b/src/components/vote/AddVote.vue @@ -1,83 +1,54 @@