拒绝理由
+
+
-
-
姓名 |
{{ info.nikename }} |
性别 |
- {{ info.gender == 0 ? '女' : '男' }} |
+ {{ info.gender === 0 ? '女' : info.gender === 1 ? '男' : '未填写' }} |
协会职务 |
- {{ info.position_name}} |
+ {{ info.position_name }} |
出生年月日 |
{{ info.birth_time }} |
民族 |
@@ -109,24 +115,26 @@
身份证正面照 |
- |
-
身份证背面照 |
- |
-
主要成就以及获奖情况
|
@@ -160,18 +168,18 @@
|
@@ -188,18 +196,18 @@
|
@@ -221,7 +229,8 @@
{{ info.enterprise_location }} |
企业地址 |
- {{ info.longitude }},{{ info.dimension }}
+ {{ info.longitude }},{{
+ info.dimension }}
|
注册资金(万元) |
{{ info.registered_capital }} |
@@ -253,12 +262,13 @@
营业执照
- |
-
- |
-
是否建立团组织 |
{{ info.if_organization == 0 ? '是' : '否' }} |
-
+
团组织性质 |
{{ info.nature }} |
建团时间 |
{{ info.jiantuan_time }} |
建团人数 |
{{ info.jiantuan_number }} |
@@ -350,12 +361,13 @@
批复文件 |
- |
-
|
@@ -393,12 +405,12 @@
-
+ 拒绝理由
-
+
@@ -437,15 +450,36 @@ export default {
this.getInfo();
},
methods: {
+ openPDF() {
+ const link = document.createElement('a');
+ if (this.info.openid == '' || this.info.openid == null) {
+ //const token = this.$store.state.user.token;
+ //link.href = `https://hnyea.0rui.cn/api/member/getMemberPdf?member_id=${this.info.member_id}&token=${token}`;
+ this.$message.error('当前用户暂无法生成PDF');
+ return;
+ } else {
+ if (this.info.pdf_url == '' || this.info.pdf_url == null) {
+ link.href = `https://hnyea.0rui.cn/api/move/pdf_member/exportPdf?openid=${this.info.openid}`;
+ } else {
+ link.href = `https://hnyea.0rui.cn${this.info.pdf_url}`;
+ }
+ }
+ link.target = '_blank'; // 新标签页打开
+ link.rel = 'noopener noreferrer'; // 安全考虑
+ link.style.display = 'none';
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link); // 清理 DOM
+ },
getInfo() {
this.$request
- .post("/member/find", {member_id: this.member_id})
+ .post("/member/find", { member_id: this.member_id })
.then((res) => {
var key = res.data;
console.log(key);
- key.work_experience =key.work_experience!=''?JSON.parse(key.work_experience):'';
- key.other_contacts = key.other_contacts!=''?JSON.parse(key.other_contacts):'';
- key.tuanweifuzerenxinxi = key.tuanweifuzerenxinxi!=''?JSON.parse(key.tuanweifuzerenxinxi):'';
+ key.work_experience = key.work_experience != '' ? JSON.parse(key.work_experience) : '';
+ key.other_contacts = key.other_contacts != '' ? JSON.parse(key.other_contacts) : '';
+ key.tuanweifuzerenxinxi = key.tuanweifuzerenxinxi != '' ? JSON.parse(key.tuanweifuzerenxinxi) : '';
this.info = key;
})
.catch((e) => {
@@ -482,12 +516,14 @@ export default {
}
.my_table {
- border-collapse: collapse; /* 合并边框 */
+ border-collapse: collapse;
+ /* 合并边框 */
width: 100%;
}
.my_table td {
- border: 1px solid black; /* 设置单元格边框 */
+ border: 1px solid black;
+ /* 设置单元格边框 */
text-align: center;
min-width: 100px;
padding: 13px;
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 33ae561..6032ab8 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -1,8 +1,8 @@
import axios from 'axios';
import store from '../store';
//const API_HOST = env === 'mock' ? '/' : proxy[env].API; // 如果是mock模式 就不配置host 会走本地Mock拦截
-//const API_HOST = 'https://hnyea.0rui.cn/api/';
-const API_HOST = '/api/';
+const API_HOST = 'https://hnyea.0rui.cn/api/';
+//const API_HOST = '/api/';
const CODE = {
LOGIN_TIMEOUT: 1000000,
REQUEST_SUCCESS: 0,
|