个人经历
-州级以上荣誉
- -年度先进
- -创新
- +活动
@@ -93,13 +72,43 @@事务
- +党务
荣誉
+年度先进
+创新
- +活动
+论文
+项目
论文
+事务
项目
- -事务
- -党务
- +From fba8fd83a9612225ce726a7ff443a9e4167c8b33 Mon Sep 17 00:00:00 2001 From: yzw <2431960323@qq.com> Date: Tue, 20 Dec 2022 20:57:44 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8Evuex=E4=B8=AD=E5=AD=98=E5=82=A8=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/person.js | 4 ++-- src/store/modules/user.js | 11 ++++++++++- vue.config.js | 3 +-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/api/person.js b/src/api/person.js index 73da75b..a72ce11 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getPersonData(params) { return request({ - url: '/person/person-information2', + url: '/person/information2', method: 'get', params }) @@ -10,7 +10,7 @@ export function getPersonData(params) { export function getPersonTag(params) { return request({ - url: '/person/person_tag', + url: '/person/tag', method: 'get', params }) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 8a06aea..4b805e3 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -4,7 +4,8 @@ import { resetRouter } from '@/router' const getDefaultState = () => { return { token: '', - id_card: '' + id_card: '', + role: '' } } @@ -19,6 +20,9 @@ const mutations = { }, SET_ID_CARD: (state, id_card) => { state.id_card = id_card; + }, + SET_ROLE: (state, role) => { + state.role = role } } @@ -30,6 +34,11 @@ const actions = { login({ user_num: username.trim(), password: password }).then(response => { commit('SET_TOKEN', response.token) commit('SET_ID_CARD', username) + // 解码jwt 获得role + let payload = response.token.split('.')[1] + let data = JSON.parse(decodeURIComponent(escape(window.atob(payload)))); + let role = data.role + commit('SET_ROLE', role) // 存储到本地 关闭页面后,自动登录的功能还在考虑 // if (response.code == 0) { // sessionStorage['zssr_token'] = response.token; diff --git a/vue.config.js b/vue.config.js index 99c8caa..7329422 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,9 +39,8 @@ module.exports = { proxy: { '/': { // target: 'http://127.0.0.1:4523/m1/1256020-0-default/', - target: 'http://127.0.0.1:8000', - // target: 'http://192.168.31.102:8000', // target: 'http://222.20.95.239:8000', + target: 'http://127.0.0.1:8123', changeOrigin: true, pathRewrite: { } From d11c5e4856d8c192840bb6507e0951c282829cdc Mon Sep 17 00:00:00 2001 From: yzw <2431960323@qq.com> Date: Mon, 26 Dec 2022 19:19:24 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=91=98=E5=B7=A5=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E7=BB=8F=E5=8E=86=E5=92=8C=E8=80=83=E6=A0=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/person.js | 9 + src/views/person/components/PersonPicture.vue | 239 +++++++++++++++++- .../person/components/WorkInformation.vue | 3 +- src/views/person/information.vue | 8 +- 4 files changed, 241 insertions(+), 18 deletions(-) diff --git a/src/api/person.js b/src/api/person.js index a72ce11..bf156d6 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -79,3 +79,12 @@ export function getReviewRoutine(params) { params }) } + +export function getAppraise(params) { + return request({ + url: '/person/appraise', + method: 'get', + params + }) +} + diff --git a/src/views/person/components/PersonPicture.vue b/src/views/person/components/PersonPicture.vue index 7b0cccb..095ab5a 100644 --- a/src/views/person/components/PersonPicture.vue +++ b/src/views/person/components/PersonPicture.vue @@ -22,10 +22,81 @@
个人经历
+考核
+州级以上荣誉
绩效
+年度先进
+ +创新
+ +活动
+ +事务
+ +党务
个人经历
-州级以上荣誉
- -年度先进
- -创新
- +活动
@@ -93,13 +72,43 @@事务
- +党务
荣誉
+年度先进
+创新
- +活动
+论文
+项目
论文
+事务
项目
- -事务
- -党务
- +论文
+项目
+ +厂里累计有 {{ totalPersonProjectNum }} - 人负责过项目,最多有人负责过7次项目。 + 人负责过项目,最多有人负责过5次项目。
立项最多的年份是2021年,共计13个项目;立项最少的年份是2022年,仅1个项目。