This commit is contained in:
王创世 2025-02-20 15:37:25 +08:00
parent 3ef4949d6d
commit 31a9d5ba98
3 changed files with 652 additions and 426 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,23 +15,28 @@
:hover="true" :hover="true"
size="large" size="large"
table-layout="auto" table-layout="auto"
cellEmptyContent="-" c cellEmptyContent="-"
c
> >
<template #photo_image="{ row }"> <template #photo_image="{ row }">
<img v-if="row.photo_image" :src="$store.state.user.apiUrl+row.photo_image" style="width: 50px;height: 50px"> <img
v-if="row.photo_image"
:src="$store.state.user.apiUrl + row.photo_image"
style="width: 50px; height: 50px"
/>
</template> </template>
<template #gender="{ row }"> <template #gender="{ row }">
{{ row.gender == 1 ? "男" : "女" }} {{ row.gender == 1 ? '男' : '女' }}
</template> </template>
<template #if_xianshi="{ row }"> <template #if_xianshi="{ row }">
<t-tag theme="primary" v-if="row.if_xianshi==0">待审核</t-tag> <t-tag theme="primary" v-if="row.if_xianshi == 0">待审核</t-tag>
<t-tag theme="success" v-if="row.if_xianshi==1">审核通过</t-tag> <t-tag theme="success" v-if="row.if_xianshi == 1">审核通过</t-tag>
<t-tag theme="danger" v-if="row.if_xianshi==2">已拒绝</t-tag> <t-tag theme="danger" v-if="row.if_xianshi == 2">已拒绝</t-tag>
</template> </template>
<template #select="{ row }"> <template #select="{ row }">
<t-space size="24px"> <t-space size="24px">
<t-button theme="default" v-if="row.if_xianshi==0" @click="openMode(row,1)">审核</t-button> <t-button theme="default" v-if="row.if_xianshi == 0" @click="openMode(row, 1)">审核</t-button>
<t-button theme="default" v-if="row.if_xianshi!=0" @click="openMode(row,0)">详情</t-button> <t-button theme="default" v-if="row.if_xianshi != 0" @click="openMode(row, 0)">详情</t-button>
</t-space> </t-space>
</template> </template>
</t-table> </t-table>
@ -44,110 +49,202 @@
></t-pagination> ></t-pagination>
</div> </div>
</div> </div>
<t-dialog header="信息审核" :confirmBtn="null" :visible="ShenMode" :onClose="onCloseMy" :cancelBtn="null" <t-dialog
width="1000px" top="50px"> header="信息审核"
<div style="text-align: center;width: 900px;height: 700px;margin: 0 auto;position: relative;overflow-y: scroll;"> :confirmBtn="null"
:visible="ShenMode"
:onClose="onCloseMy"
:cancelBtn="null"
width="1000px"
top="50px"
>
<div
style="text-align: center; width: 900px; height: 700px; margin: 0 auto; position: relative; overflow-y: scroll"
>
<t-space direction="vertical"> <t-space direction="vertical">
<t-row> <t-row>
<t-col :span="2"> <t-col :span="2">
<div style="font-size: 16px;font-weight: 600">类别</div> <div style="font-size: 16px; font-weight: 600">类别</div>
</t-col> </t-col>
<t-col :span="4"> <t-col :span="4">
<div style="font-size: 16px;font-weight: 600">原信息</div> <div style="font-size: 16px; font-weight: 600">原信息</div>
</t-col>
<t-col :span="2">
</t-col> </t-col>
<t-col :span="2"> </t-col>
<t-col :span="4"> <t-col :span="4">
<div style="font-size: 16px;font-weight: 600">新信息</div> <div style="font-size: 16px; font-weight: 600">新信息</div>
</t-col> </t-col>
</t-row> </t-row>
<t-row style="font-size: 16px"> <t-row style="font-size: 16px">
<t-col :span="2"> <t-col :span="2">
<t-space direction="vertical"> <t-space direction="vertical">
<div style="height: 100px;text-align: center;line-height: 100px" v-if="typeof (updateInfo.member_log.background_image) !='undefined'">名片背景图</div> <div
<div style="height: 100px;text-align: center;line-height: 100px" v-if="typeof (updateInfo.member_log.photo_image) !='undefined'">形象照</div> style="height: 100px; text-align: center; line-height: 100px"
<div v-if="typeof (updateInfo.member_log.position_name) !='undefined'">协会职务</div> v-if="typeof updateInfo.member_log.background_image != 'undefined'"
<div v-if="typeof (updateInfo.member_log.nikename) !='undefined'">姓名</div> >
<div v-if="typeof (updateInfo.member_log.gender_name) !='undefined'">性别</div> 名片背景图
<div v-if="typeof (updateInfo.member_log.phone) !='undefined'">联系方式</div> </div>
<div style="height: 200px" v-if="typeof (updateInfo.member_log.introduction) !='undefined'">个人经历</div> <div
<div style="height: 100px;text-align: center;line-height: 100px" v-if="typeof (updateInfo.member_log.company_image) !='undefined'">公司图标</div> style="height: 100px; text-align: center; line-height: 100px"
<div v-if="typeof (updateInfo.member_log.enterprise_name) !='undefined'">公司名称</div> v-if="typeof updateInfo.member_log.photo_image != 'undefined'"
<div v-if="typeof (updateInfo.member_log.industry_id) !='undefined'">公司行业</div> >
<div v-if="typeof (updateInfo.member_log.enterprise_location) !='undefined'">公司地址</div> 形象照
<div style="height: 200px" v-if="typeof (updateInfo.member_log.enterprise_Introduction) !='undefined'">公司介绍</div> </div>
<div v-if="typeof updateInfo.member_log.position_name != 'undefined'">协会职务</div>
<div v-if="typeof updateInfo.member_log.nikename != 'undefined'">姓名</div>
<div v-if="typeof updateInfo.member_log.gender_name != 'undefined'">性别</div>
<div v-if="typeof updateInfo.member_log.phone != 'undefined'">联系方式</div>
<div style="height: 200px" v-if="typeof updateInfo.member_log.introduction != 'undefined'">
个人经历
</div>
<div
style="height: 100px; text-align: center; line-height: 100px"
v-if="typeof updateInfo.member_log.company_image != 'undefined'"
>
公司图标
</div>
<div v-if="typeof updateInfo.member_log.enterprise_name != 'undefined'">公司名称</div>
<div v-if="typeof updateInfo.member_log.industry_id != 'undefined'">公司行业</div>
<div v-if="typeof updateInfo.member_log.enterprise_location != 'undefined'">公司地址</div>
<div style="height: 200px" v-if="typeof updateInfo.member_log.enterprise_Introduction != 'undefined'">
公司介绍
</div>
</t-space> </t-space>
</t-col> </t-col>
<t-col :span="4"> <t-col :span="4">
<t-space direction="vertical"> <t-space direction="vertical">
<div v-if="typeof (updateInfo.member.background_image) !='undefined'" style="height: 100px;"> <div v-if="typeof updateInfo.member.background_image != 'undefined'" style="height: 100px">
<img v-if="updateInfo.member.background_image!=''" <img
:src="$store.state.user.apiUrl+updateInfo.member.background_image" v-if="updateInfo.member.background_image != ''"
style="height: 100px;width:100%"> :src="$store.state.user.apiUrl + updateInfo.member.background_image"
<div v-if="updateInfo.member.background_image==''" style="height: 100px; width: 100%"
style="height: 100px;text-align: center;line-height: 100px"> />
<div
v-if="updateInfo.member.background_image == ''"
style="height: 100px; text-align: center; line-height: 100px"
>
</div> </div>
</div> </div>
<div v-if="updateInfo.member.photo_image" style="height: 100px;"><img
:src="$store.state.user.apiUrl+updateInfo.member.photo_image" <div v-if="updateInfo.member.photo_image" style="height: 100px">
style="width: 100px;height: 100px"></div> <img
<div v-if="typeof (updateInfo.member.position_name) !='undefined'">{{ updateInfo.member.position_name }}</div> :src="$store.state.user.apiUrl + updateInfo.member.photo_image"
<div v-if="typeof (updateInfo.member.nikename) !='undefined'">{{ updateInfo.member.nikename }}</div> style="width: 100px; height: 100px"
<div v-if="typeof (updateInfo.member.gender_name) !='undefined'">{{ updateInfo.member.gender_name }}</div> />
<div v-if="typeof (updateInfo.member.phone) !='undefined'">{{ updateInfo.member.phone }}</div> </div>
<div style="height: 200px;overflow: scroll;" v-if="typeof (updateInfo.member.introduction) !='undefined'">{{ updateInfo.member.introduction }}</div> <div v-if="typeof updateInfo.member.position_name != 'undefined'">
<div v-if="typeof (updateInfo.member.company_image) !='undefined'" style="height: 100px;"> {{ updateInfo.member.position_name }}
<img v-if="updateInfo.member.company_image!=''" </div>
:src="$store.state.user.apiUrl+updateInfo.member.company_image" <div v-if="typeof updateInfo.member.nikename != 'undefined'">{{ updateInfo.member.nikename }}</div>
style="height: 100px"> <div v-if="typeof updateInfo.member.gender_name != 'undefined'">
<div v-if="updateInfo.member.company_image==''" {{ updateInfo.member.gender_name }}
style="height: 100px;text-align: center;line-height: 100px"> </div>
<div v-if="typeof updateInfo.member.phone != 'undefined'">{{ updateInfo.member.phone }}</div>
<div
style="height: 200px; overflow: scroll"
v-if="typeof updateInfo.member.introduction != 'undefined'"
>
{{ updateInfo.member.introduction }}
</div>
<div v-if="typeof updateInfo.member.company_image != 'undefined'" style="height: 100px">
<img
v-if="updateInfo.member.company_image != ''"
:src="$store.state.user.apiUrl + updateInfo.member.company_image"
style="height: 100px"
/>
<div
v-if="updateInfo.member.company_image == ''"
style="height: 100px; text-align: center; line-height: 100px"
>
</div> </div>
</div> </div>
<div v-if="typeof (updateInfo.member.enterprise_name) !='undefined'">{{ updateInfo.member.enterprise_name }}</div> <div v-if="typeof updateInfo.member.enterprise_name != 'undefined'">
<div v-if="typeof (updateInfo.member.industry_id) !='undefined'">{{updateInfo.member.industry_id==-1?'其他行业':updateInfo.member.industry_name }}</div> {{ updateInfo.member.enterprise_name }}
<div v-if="typeof (updateInfo.member.enterprise_location) !='undefined'">{{ updateInfo.member.enterprise_location==''?'':updateInfo.member.enterprise_location }}</div> </div>
<div style="height: 200px;overflow: scroll;" v-if="typeof (updateInfo.member.enterprise_Introduction) !='undefined'">{{ updateInfo.member.enterprise_Introduction }}</div> <div v-if="typeof updateInfo.member.industry_id != 'undefined'">
{{ updateInfo.member.industry_id == -1 ? '其他行业' : updateInfo.member.industry_name }}
</div>
<div v-if="typeof updateInfo.member.enterprise_location != 'undefined'">
{{ updateInfo.member.enterprise_location == '' ? '无' : updateInfo.member.enterprise_location }}
</div>
<div
style="height: 200px; overflow: scroll"
v-if="typeof updateInfo.member.enterprise_Introduction != 'undefined'"
>
{{ updateInfo.member.enterprise_Introduction }}
</div>
</t-space> </t-space>
</t-col> </t-col>
<t-col :span="2"> <t-col :span="2">
<div style="position: absolute;width: 100%;"> <div style="position: absolute; width: 100%">
<SwapRightIcon size="2em"/> <SwapRightIcon size="2em" />
</div> </div>
</t-col> </t-col>
<t-col :span="4"> <t-col :span="4">
<t-space direction="vertical"> <t-space direction="vertical">
<div v-if="updateInfo.member_log.background_image" style="height: 100px;"><img <div v-if="updateInfo.member_log.background_image" style="height: 100px">
:src="$store.state.user.apiUrl+updateInfo.member_log.background_image" <img
style="height: 100px;width:100%"></div> :src="$store.state.user.apiUrl + updateInfo.member_log.background_image"
<div v-if="updateInfo.member_log.photo_image" style="height: 100px;"><img style="height: 100px; width: 100%"
:src="$store.state.user.apiUrl+updateInfo.member_log.photo_image" />
style="width: 100px;height: 100px"></div> </div>
<div v-if="typeof (updateInfo.member_log.position_name) !='undefined'">{{ updateInfo.member_log.position_name }}</div> <div v-if="updateInfo.member_log.photo_image" style="height: 100px">
<div v-if="typeof (updateInfo.member_log.nikename) !='undefined'">{{ updateInfo.member_log.nikename }}</div> <img
<div v-if="typeof (updateInfo.member_log.gender_name) !='undefined'">{{ updateInfo.member_log.gender_name }}</div> :src="$store.state.user.apiUrl + updateInfo.member_log.photo_image"
<div v-if="typeof (updateInfo.member_log.phone) !='undefined'">{{ updateInfo.member_log.phone }}</div> style="width: 100px; height: 100px"
<div style="height: 200px;overflow: scroll;" v-if="typeof (updateInfo.member_log.introduction) !='undefined'">{{ updateInfo.member_log.introduction }}</div> />
<div v-if="typeof (updateInfo.member_log.company_image) !='undefined'" style="height: 100px;"> </div>
<img v-if="updateInfo.member_log.company_image!=''" <div v-if="typeof updateInfo.member_log.position_name != 'undefined'">
:src="$store.state.user.apiUrl+updateInfo.member_log.company_image" {{ updateInfo.member_log.position_name }}
style="width: 100px;height: 100px"> </div>
<div v-if="updateInfo.member_log.company_image==''" <div v-if="typeof updateInfo.member_log.nikename != 'undefined'">
style="height: 100px;text-align: center;line-height: 100px"> {{ updateInfo.member_log.nikename }}
</div>
<div v-if="typeof updateInfo.member_log.gender_name != 'undefined'">
{{ updateInfo.member_log.gender_name }}
</div>
<div v-if="typeof updateInfo.member_log.phone != 'undefined'">{{ updateInfo.member_log.phone }}</div>
<div
style="height: 200px; overflow: scroll"
v-if="typeof updateInfo.member_log.introduction != 'undefined'"
>
{{ updateInfo.member_log.introduction }}
</div>
<div v-if="typeof updateInfo.member_log.company_image != 'undefined'" style="height: 100px">
<img
v-if="updateInfo.member_log.company_image != ''"
:src="$store.state.user.apiUrl + updateInfo.member_log.company_image"
style="width: 100px; height: 100px"
/>
<div
v-if="updateInfo.member_log.company_image == ''"
style="height: 100px; text-align: center; line-height: 100px"
>
</div> </div>
</div> </div>
<div v-if="typeof (updateInfo.member_log.enterprise_name) !='undefined'">{{ updateInfo.member_log.enterprise_name }}</div> <div v-if="typeof updateInfo.member_log.enterprise_name != 'undefined'">
<div v-if="typeof (updateInfo.member_log.industry_id) !='undefined'">{{updateInfo.member_log.industry_id==-1?'其他行业':updateInfo.member_log.industry_name }}</div> {{ updateInfo.member_log.enterprise_name }}
<div v-if="typeof (updateInfo.member_log.enterprise_location) !='undefined'">{{ updateInfo.member_log.enterprise_location }}</div> </div>
<div style="height: 200px;overflow: scroll;" v-if="typeof (updateInfo.member_log.enterprise_Introduction) !='undefined'">{{ updateInfo.member_log.enterprise_Introduction }}</div> <div v-if="typeof updateInfo.member_log.industry_id != 'undefined'">
{{ updateInfo.member_log.industry_id == -1 ? '其他行业' : updateInfo.member_log.industry_name }}
</div>
<div v-if="typeof updateInfo.member_log.enterprise_location != 'undefined'">
{{ updateInfo.member_log.enterprise_location }}
</div>
<div
style="height: 200px; overflow: scroll"
v-if="typeof updateInfo.member_log.enterprise_Introduction != 'undefined'"
>
{{ updateInfo.member_log.enterprise_Introduction }}
</div>
</t-space> </t-space>
</t-col> </t-col>
</t-row> </t-row>
</t-space> </t-space>
<div style="text-align: center;margin-top: 50px" v-if="type==1">
<div style="text-align: center; margin-top: 50px" v-if="type == 1">
<t-popconfirm content="确定要审核通过吗?" v-model="v1" @confirm="shenDo(1)"> <t-popconfirm content="确定要审核通过吗?" v-model="v1" @confirm="shenDo(1)">
<t-button theme="success">审核通过</t-button> <t-button theme="success">审核通过</t-button>
</t-popconfirm> </t-popconfirm>
@ -155,7 +252,7 @@
<template slot="content"> <template slot="content">
<p class="title">拒绝理由</p> <p class="title">拒绝理由</p>
<p class="describe" style="margin-top: 10px"> <p class="describe" style="margin-top: 10px">
<t-input v-model="content" placeholder="请输入拒绝理由"/> <t-input v-model="content" placeholder="请输入拒绝理由" />
</p> </p>
</template> </template>
<t-button theme="danger" style="margin-left: 30px">审核拒绝</t-button> <t-button theme="danger" style="margin-left: 30px">审核拒绝</t-button>
@ -166,11 +263,11 @@
</t-card> </t-card>
</template> </template>
<script lang="ts"> <script lang="ts">
import store from "@/store"; import store from '@/store';
import {SwapRightIcon} from "tdesign-icons-vue"; import { SwapRightIcon } from 'tdesign-icons-vue';
export default { export default {
components: {SwapRightIcon}, components: { SwapRightIcon },
data() { data() {
return { return {
v1: false, v1: false,
@ -180,29 +277,29 @@ export default {
list: [], list: [],
tabIndex: 0, tabIndex: 0,
columns: [ columns: [
{colKey: 'nikename', title: '会员姓名'}, { colKey: 'nikename', title: '会员姓名' },
{colKey: 'createtime', title: '申请时间'}, { colKey: 'createtime', title: '申请时间' },
{colKey: 'if_xianshi', title: '状态'}, { colKey: 'if_xianshi', title: '状态' },
{colKey: 'select', title: '操作', width: 200}, { colKey: 'select', title: '操作', width: 200 },
], ],
total: 0, total: 0,
page: 1, page: 1,
size: 10, size: 10,
updateInfo: { updateInfo: {
member: {}, member: {},
member_log: {} member_log: {},
}, },
member_id: 0, member_id: 0,
id: 0, id: 0,
content: '', content: '',
type: 0, type: 0,
} };
}, },
mounted() { mounted() {
this.getList(); this.getList();
}, },
methods: { methods: {
tabIndexChange(d){ tabIndexChange(d) {
console.log(d); console.log(d);
this.list = []; this.list = [];
this.total = 0; this.total = 0;
@ -215,17 +312,16 @@ export default {
} }
if (dis == 1) { if (dis == 1) {
this.content = '您提交的信息修改已通过审核!'; this.content = '您提交的信息修改已通过审核!';
}else{ } else {
} }
this.$request this.$request
.post("/member_log/update", { .post('/member_log/update', {
member_id: this.member_id, member_id: this.member_id,
id: this.id, id: this.id,
if_xianshi: dis, if_xianshi: dis,
if_member: dis, if_member: dis,
content: this.content, content: this.content,
member_log: JSON.stringify(this.updateInfo.member_log) member_log: JSON.stringify(this.updateInfo.member_log),
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
@ -246,7 +342,7 @@ export default {
this.member_id = d.member_id; this.member_id = d.member_id;
this.id = d.id; this.id = d.id;
this.$request this.$request
.post("/member_log/find", {member_id: d.member_id, id: d.id}) .post('/member_log/find', { member_id: d.member_id, id: d.id })
.then((res) => { .then((res) => {
this.ShenMode = true; this.ShenMode = true;
console.log(res); console.log(res);
@ -261,7 +357,7 @@ export default {
}, },
getList() { getList() {
this.$request this.$request
.post("/member_log/index", {page: this.page, size: this.size,if_xianshi:this.tabIndex}) .post('/member_log/index', { page: this.page, size: this.size, if_xianshi: this.tabIndex })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.list = res.data.ret; this.list = res.data.ret;
@ -280,8 +376,8 @@ export default {
this.list = []; this.list = [];
this.getList(); this.getList();
}, },
} },
} };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
::-webkit-scrollbar { ::-webkit-scrollbar {

View File

@ -1,8 +1,8 @@
import axios from 'axios'; import axios from 'axios';
import store from '../store' import store from '../store';
//const API_HOST = env === 'mock' ? '/' : proxy[env].API; // 如果是mock模式 就不配置host 会走本地Mock拦截 //const API_HOST = env === 'mock' ? '/' : proxy[env].API; // 如果是mock模式 就不配置host 会走本地Mock拦截
//const API_HOST ="https://hnyea.0rui.cn/api/"; const API_HOST = 'https://hnyea.0rui.cn/api/';
const API_HOST ="/api/"; //const API_HOST ="/api/";
const CODE = { const CODE = {
LOGIN_TIMEOUT: 1000000, LOGIN_TIMEOUT: 1000000,
REQUEST_SUCCESS: 0, REQUEST_SUCCESS: 0,
@ -22,18 +22,18 @@ instance.interceptors.retry = 3;
instance.interceptors.request.use((config) => { instance.interceptors.request.use((config) => {
// 在原有配置基础上添加新参数 // 在原有配置基础上添加新参数
if(store.state.user.association){ if (store.state.user.association) {
if(typeof (store.state.user.association)=='object'){ if (typeof store.state.user.association == 'object') {
var association=store.state.user.association; var association = store.state.user.association;
}else{ } else {
var association=JSON.parse(store.state.user.association); var association = JSON.parse(store.state.user.association);
} }
const token = store.state.user.token; const token = store.state.user.token;
if (token) { if (token) {
// 添加token请求头 // 添加token请求头
config.headers.token = token; config.headers.token = token;
} }
config.data = { ...config.data, association_id: 1}; config.data = { ...config.data, association_id: 1 };
} }
return config; return config;
}); });