From 02ffefefe454456e3eebf4a32769277859e6d171 Mon Sep 17 00:00:00 2001 From: yzw <2431960323@qq.com> Date: Wed, 11 Jan 2023 11:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E4=BA=86?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E6=9F=A5=E6=94=B9=E7=9A=84=E5=89=8D=E7=AB=AF=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/person.js | 32 + src/utils/request.js | 1 + src/views/Test/test1.vue | 100 +- .../person/basic/components/AddInfo.vue | 869 +++++++++++++++++- .../person/basic/components/DeleteInfo.vue | 87 +- .../manage/person/basic/components/SMInfo.vue | 208 +++-- vue.config.js | 4 +- 7 files changed, 1208 insertions(+), 93 deletions(-) diff --git a/src/api/person.js b/src/api/person.js index 87af371..39680da 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -142,4 +142,36 @@ export function getParty(params) { method: 'get', params }) +} + +export function selectBasicInfo(params) { + return request({ + url: '/person/information', + method: 'get', + params + }) +} + +export function modifyBasicInfo(data) { + return request({ + url: '/person/information/modify', + method: 'post', + data + }) +} + +export function addBasicInfo(data) { + return request({ + url: '/person/information/add', + method: 'post', + data + }) +} + +export function deleteBasicInfo(params) { + return request({ + url: '/person/information/delete', + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 4ddcc72..e251b5b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -83,6 +83,7 @@ service.interceptors.response.use( response => { const res = response.data + return res // 状态码 if (res.code !== 0) { Message({ diff --git a/src/views/Test/test1.vue b/src/views/Test/test1.vue index 7687ffc..a81b39f 100644 --- a/src/views/Test/test1.vue +++ b/src/views/Test/test1.vue @@ -68,15 +68,13 @@ - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> @@ -94,29 +92,25 @@ - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> @@ -158,22 +152,19 @@ - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> - + :style="{width: '100%'}"> @@ -197,8 +188,7 @@ - + :style="{width: '100%'}"> @@ -238,7 +228,6 @@ - - + :style="{width: '100%'}"> @@ -293,8 +281,7 @@ - + :style="{width: '100%'}"> @@ -324,11 +311,46 @@ + :style="{width: '100%'}"> + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + 提交 @@ -398,6 +420,12 @@ export default { field182: null, file: "本级人事部门", retire_age: "", + field185: "", + certificate: undefined, + card_num: undefined, + politics: undefined, + party_start_time: "2023-01-10", + remark: "", }, rules: { name: [{ @@ -516,6 +544,24 @@ export default { field182: [], file: [], retire_age: [], + field185: [], + certificate: [{ + required: true, + message: '请输入证件类型', + trigger: 'blur' + }], + card_num: [{ + required: true, + message: '请输入身份证号', + trigger: 'blur' + }], + politics: [{ + required: true, + message: '请输入政治面貌', + trigger: 'blur' + }], + party_start_time: [], + remark: [], }, } }, diff --git a/src/views/manage/person/basic/components/AddInfo.vue b/src/views/manage/person/basic/components/AddInfo.vue index c3be519..5c833cf 100644 --- a/src/views/manage/person/basic/components/AddInfo.vue +++ b/src/views/manage/person/basic/components/AddInfo.vue @@ -1,3 +1,868 @@ \ No newline at end of file +
+ + + + +
基本信息
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
教育信息
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
技术技能
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
岗位信息
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
职务信息
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
履历 & 档案
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
备注
+
+ + + + + + + +
+
+ + + + 提交 + 重置 + + +
+
+
+ + + + + \ No newline at end of file diff --git a/src/views/manage/person/basic/components/DeleteInfo.vue b/src/views/manage/person/basic/components/DeleteInfo.vue index 6fdd66c..517e3d3 100644 --- a/src/views/manage/person/basic/components/DeleteInfo.vue +++ b/src/views/manage/person/basic/components/DeleteInfo.vue @@ -1,3 +1,86 @@ \ No newline at end of file +
+ +
+ + + + + \ No newline at end of file diff --git a/src/views/manage/person/basic/components/SMInfo.vue b/src/views/manage/person/basic/components/SMInfo.vue index 755ef05..4226321 100644 --- a/src/views/manage/person/basic/components/SMInfo.vue +++ b/src/views/manage/person/basic/components/SMInfo.vue @@ -4,10 +4,11 @@ + + + + + - + - + + + +
备注
+
+ + + + + + + +
+
+ 提交 @@ -659,61 +693,67 @@ + - diff --git a/vue.config.js b/vue.config.js index 52e4358..545dfd8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,8 +39,8 @@ module.exports = { proxy: { '/': { // target: 'http://222.20.95.239:8000', - // target: 'http://127.0.0.1:4523/m1/1256020-0-default', - target: 'http://127.0.0.1:8123', + target: 'http://127.0.0.1:4523/m1/1256020-0-default', + // target: 'http://127.0.0.1:8123', changeOrigin: true, pathRewrite: { }