From bf6f1b51afc5da7d463dc2e44c7d120500a74f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Thu, 22 Aug 2024 18:09:35 +0800 Subject: [PATCH] 1 --- src/pages/register/index.vue | 441 +++++++++------ src/pages/user/user_add.vue | 892 ++++++++++++++++++++---------- src/pages/user/user_edit.vue | 989 +++++++++++++++++++++++----------- src/pages/user/user_index.vue | 12 +- src/pages/user/user_info.vue | 362 +++++++------ src/router/index.js | 2 +- src/utils/request.ts | 3 +- 7 files changed, 1755 insertions(+), 946 deletions(-) diff --git a/src/pages/register/index.vue b/src/pages/register/index.vue index 8e93646..dbafda7 100644 --- a/src/pages/register/index.vue +++ b/src/pages/register/index.vue @@ -11,20 +11,46 @@
- - - - + + + + - - - - + + + + + + + + - - -
@@ -33,99 +59,127 @@
2.基本信息
-
+
证件照
-
-
- +
+ - -

点击上传图片

请上传证件照,照片将作为会员证照
-
+
- + - - - - - - - - - - - - - - + - - + + - - - + - - + + + + + + + + + + + + + + + + - - - -
-
- - - + - - - - - - - + + - + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + +
-
身份证照
-
+
- 请上传身份证正面照片 + + +
+
请上传身份证正面照片
上传图片
-
+
- 请上传身份证背面照片 + + +
+
请上传身份证背面照片
- + + - + - + 添加
-
-
起止日期
-
地区单位
-
担任职务
-
操作
-
-
-
{{ item.time }}
-
{{ item.address }}
-
{{ item.book }}
-
- 移除 -
-
+ + + + + + + + + + + + + +
起止日期地区单位担任职务操作
{{ item.time }}{{ item.address }}{{ item.book }} + 移除 +
社会职务资料
@@ -220,7 +281,7 @@ - + 全国人大代表 全国政协委员 全国青联委员 @@ -246,126 +307,107 @@
-
联系人
+
紧急(助理)联系人
- + - + - + 添加
-
-
姓名
-
职务
-
电话
-
操作
-
-
-
{{ item.name }}
-
{{ item.post }}
-
{{ item.phone }}
-
- 移除 -
-
+ + + + + + + + + + + + + + + + + +
姓名职务电话操作
{{ item.name }}{{ item.post }}{{ item.phone }} + 移除 +
3.企业信息
-
+
- - + + + + + + + + + + + - - - + - - - + - - - + - - - - - - - -
-
- - - - - - - - + - - - - - - - + - + + + + + + + + - - -
-
- - - + - - - + - - - + - - - + @@ -375,13 +417,17 @@
公司形象
-
+
- 请上传营业执照 + + +
+
请上传营业执照
上传图片
-
+
- 请上传公司LOGO + + +
+
请上传公司LOGO
- + @@ -465,40 +515,61 @@ - + - + - + - + - + - + - + + + + + + + + +
+
+ + + + +
+
请上传批复文件
+ + 上传图片 + +
- 确定保存 - 生成PDF + 确定保存 + 生成PDF
@@ -561,6 +632,7 @@ export default { address: '', book: '', }, + work_time:[], workList: [], contacts: { name: '', @@ -634,8 +706,9 @@ export default { openid: '', work_experience: '', main_social_positions: '', - reporting_method: 3, + reporting_method: '3', recommendation_content: '', + recommended_cities:'', }, current: 2, industry_list: [], @@ -663,12 +736,16 @@ export default { this.getInfo(); }, methods: { + onChange(value, context){ + this.work.time=value[0]+'至'+value[1]; + }, addWork() { var k = {...this.work}; this.workList.push(k); this.work.time = ''; this.work.address = ''; this.work.book = ''; + this.work_time=[]; }, delWork(index) { this.workList.splice(index, 1); @@ -781,7 +858,7 @@ export default { this.show = true; this.formData.phone = res.data.phone; this.formData.position_id = res.data.position_id; - this.formData.industry_id = res.data.industry_id; + this.formData.industry_id = res.data.industry_id==0?null:res.data.industry_id; this.formData.region_id = res.data.region_id; this.formData.password = res.data.password; this.formData.nikename = res.data.nikename; @@ -839,6 +916,14 @@ export default { this.workList = JSON.parse(res.data.work_experience); this.formData.reporting_method = res.data.reporting_method; this.formData.recommendation_content = res.data.recommendation_content; + this.formData.recommendation_id=res.data.recommendation_id; + this.formData.documents_file=res.data.documents_file; + if( res.data.documents_file==''){ + this.formData.documents_file_show = []; + }else{ + this.formData.documents_file_show = [{url: store.state.user.apiUrl + res.data.documents_file}]; + } + this.formData.recommended_cities=res.data.recommended_cities; } }) .catch((e) => { @@ -1153,10 +1238,10 @@ export default { height: 200px; line-height: 200px; border: 1px dashed #999999; - margin-bottom: 20px; } .sfz:hover { + color: #409EFF; border: 1px dashed #409EFF; } diff --git a/src/pages/user/user_add.vue b/src/pages/user/user_add.vue index 2f20b9d..7be8410 100644 --- a/src/pages/user/user_add.vue +++ b/src/pages/user/user_add.vue @@ -1,269 +1,505 @@ diff --git a/src/router/index.js b/src/router/index.js index b52e50d..4df5246 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -20,7 +20,7 @@ const defaultRouterList = [ { path: '/register', name: 'register', - meta: {title: '会员注册'}, + meta: {title: '入会资料填写'}, component: () => import('@/pages/register/index.vue'), }, { diff --git a/src/utils/request.ts b/src/utils/request.ts index a6fd522..198bb5a 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -4,7 +4,7 @@ import store from '../store' //const API_HOST ="https://hnyea.0rui.cn/api/"; const API_HOST ="/api/"; const CODE = { - LOGIN_TIMEOUT: 100000, + LOGIN_TIMEOUT: 1000000, REQUEST_SUCCESS: 0, REQUEST_FOBID: 1001, }; @@ -41,6 +41,7 @@ instance.interceptors.request.use((config) => { instance.interceptors.response.use( (response) => { const { data } = response; + console.log(data); return data; }, (err) => {