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 }} - + 去投票 + @click="goVotepage(scope.row)" + >去投票 / 评分 @@ -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 @@ - 投票 + + {{ vote.voteTitle }} + 投票时间:{{ vote.sTime }} - {{ vote.eTime }} + {{ vote.vDescription }} + + + + {{ item.empName }} + {{ item.voteNum||11111110 }} 票 + + 投给TA一票 + + + + + + + {{ item.empName }} + {{ item.voteNum||11111110 }} 票 + + + + + + + -