From 2a5f7c0ee7f68d98cf2d1f4d63ce21d6048e2f15 Mon Sep 17 00:00:00 2001 From: wanglei Date: Fri, 31 Oct 2025 11:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E4=BB=BB=E5=8A=A1=E8=AF=84=E5=88=86?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/kaohe/pingce.js | 10 + ruoyi-ui/src/api/kaohe/vote.js | 9 + ruoyi-ui/src/store/modules/user.js | 5 + ruoyi-ui/src/views/index.vue | 20 +- ruoyi-ui/src/views/kaohe/pingce/index.vue | 240 ++++++++++++++++++---- ruoyi-ui/src/views/system/user/index.vue | 14 +- 6 files changed, 245 insertions(+), 53 deletions(-) diff --git a/ruoyi-ui/src/api/kaohe/pingce.js b/ruoyi-ui/src/api/kaohe/pingce.js index 122ce4f..8b9459a 100644 --- a/ruoyi-ui/src/api/kaohe/pingce.js +++ b/ruoyi-ui/src/api/kaohe/pingce.js @@ -71,3 +71,13 @@ export function generateResult(data) { params: data }) } + + +// 新增考核评测 +export function pcItemVotes(data) { + return request({ + url: '/kaohe/template/pcItemVotes', + method: 'post', + data: data + }) +} diff --git a/ruoyi-ui/src/api/kaohe/vote.js b/ruoyi-ui/src/api/kaohe/vote.js index 297779e..741c855 100644 --- a/ruoyi-ui/src/api/kaohe/vote.js +++ b/ruoyi-ui/src/api/kaohe/vote.js @@ -52,3 +52,12 @@ export function listByConditons(query) { params: query }) } + +// 首页查询接口新 +export function ListByVoteIds(query) { + return request({ + url: '/kaohe/vote/ListByVoteIds', + method: 'get', + params: query + }) +} diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index dd207e8..1f2e437 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -14,6 +14,7 @@ const user = { avatar: '', pcId: null, itemIds: null, + voteIds: null, roles: [], permissions: [] }, @@ -40,6 +41,9 @@ const user = { SET_ITEMIDS: (state, itemIds) => { state.itemIds = itemIds }, + SET_VOTEIDS: (state, voteIds) => { + state.voteIds = voteIds + }, SET_ROLES: (state, roles) => { state.roles = roles }, @@ -87,6 +91,7 @@ const user = { commit('SET_AVATAR', avatar) commit('SET_PCID', user.pcId) commit('SET_ITEMIDS', user.itemIds) + commit('SET_VOTEIDS', user.voteIds) /* 初始密码提示 */ /*if(res.isDefaultModifyPwd) { MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 4b2391d..5861cb8 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -31,7 +31,7 @@ diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 3a145b3..55b658f 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -62,7 +62,19 @@ - + + +