From c6c5c7a6970e9753a642c8f397cf6a4756b363ac Mon Sep 17 00:00:00 2001 From: wanglei Date: Fri, 20 Jun 2025 09:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E7=A5=A8/=E8=AF=84=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/kaohe/pingce/index.vue | 14 +-- ruoyi-ui/src/views/kaohe/vote/index.vue | 10 +- ruoyi-ui/src/views/votepage.vue | 119 +++++++++++++++++++++- 3 files changed, 131 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index 635f170..008d592 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -333,7 +333,7 @@ {{ scope.row.vote.remark }} - + @@ -836,7 +836,6 @@ export default { voteSubmitForm(){ this.$refs["touPiaoForm"].validate(valid => { if (valid) { - console.log(this.vote.form); if (this.vote.form.id != null) { updateVote(this.vote.form).then(response => { @@ -855,7 +854,10 @@ export default { }) }, voteCancel(){ - + this.vote.open = false; + }, + goVotepage(row){ + this.$router.push({ path: '/votepage', query: { id: row.vote.id }}); } } } diff --git a/ruoyi-ui/src/views/kaohe/vote/index.vue b/ruoyi-ui/src/views/kaohe/vote/index.vue index 2785515..db4b3f4 100644 --- a/ruoyi-ui/src/views/kaohe/vote/index.vue +++ b/ruoyi-ui/src/views/kaohe/vote/index.vue @@ -32,7 +32,7 @@ - + 去投票 + @click="goVotepage(scope.row)" + >去投票 / 评分 @@ -324,6 +325,9 @@ export default { this.download('kaohe/vote/export', { ...this.queryParams }, `vote_${new Date().getTime()}.xlsx`) + }, + goVotepage(row){ + this.$router.push({ path: '/votepage', query: { id: row.id }}); } } } diff --git a/ruoyi-ui/src/views/votepage.vue b/ruoyi-ui/src/views/votepage.vue index 46d0b9e..5dbd784 100644 --- a/ruoyi-ui/src/views/votepage.vue +++ b/ruoyi-ui/src/views/votepage.vue @@ -1,13 +1,126 @@ -