This commit is contained in:
王创世 2024-05-27 18:18:42 +08:00
parent 058f5874d9
commit 72dece78f7
11 changed files with 162 additions and 25 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -12,7 +12,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"
@ -81,7 +81,7 @@
rowKey="index"
:data="info_list"
:columns="info_columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"
@ -167,16 +167,16 @@
width="45%" top="20px">
<t-form>
<t-form-item label="活动标题" name="activity_name">
<t-input placeholder="请输入活动标题" v-model="addForm.activity_name"/>
<t-input placeholder="请输入活动标题" v-model="addForm.activity_name" :style="{ width: '480px' }"/>
</t-form-item>
<t-form-item label="活动简介" name="activity_desc">
<t-input placeholder="请输入活动简介" v-model="addForm.activity_desc"/>
<t-input placeholder="请输入活动简介" v-model="addForm.activity_desc" :style="{ width: '480px' }"/>
</t-form-item>
<t-form-item label="活动地址" name="activity_location">
<t-input placeholder="请输入活动地址" v-model="addForm.activity_location"/>
<t-input placeholder="请输入活动地址" v-model="addForm.activity_location" :style="{ width: '480px' }"/>
</t-form-item>
<t-form-item label="活动类别" name="activity_type">
<t-select v-model="addForm.activity_type">
<t-form-item label="活动类别" name="activity_type" >
<t-select v-model="addForm.activity_type" :style="{ width: '480px' }">
<t-option key="1" label="线下活动" value="1"/>
<t-option key="2" label="调查问卷" value="2"/>
<t-option key="3" label="公益捐赠" value="3"/>
@ -184,10 +184,10 @@
</t-select>
</t-form-item>
<t-form-item v-if="addForm.activity_type==4" label="付费金额" name="money">
<t-input placeholder="请输入付费金额0为免费" v-model="addForm.money"/>
<t-input placeholder="请输入付费金额0为免费" v-model="addForm.money" :style="{ width: '480px' }"/>
</t-form-item>
<t-form-item label="活动简介" name="activity_desc">
<div style="border: 1px solid #ccc;">
<div style="border: 1px solid #ccc;" >
<!-- 工具栏 -->
<Toolbar
style="border-bottom: 1px solid #ccc"
@ -228,7 +228,9 @@
:format-response="formatResponse"
></t-upload>
</t-form-item>
<t-form-item label="活动排序" name="weigh">
<t-input placeholder="请输入排序" v-model="addForm.weigh" :style="{ width: '480px' }"/>
</t-form-item>
<t-form-item label="活动开始时间" name="activity_start_time">
<t-date-picker :clearable="true" :style="{ width: '480px' }" placeholder="活动开始时间"
:enableTimePicker="true" :allow-input="false"
@ -337,6 +339,7 @@ export default {
visible: false,
infoMode: false,
addForm: {
weigh:0,
money:'0',
activity_name: '',
activity_desc: '',
@ -359,7 +362,7 @@ export default {
{colKey: 'photo_image', title: '证件照', align: 'center'},
{colKey: 'nikename', title: '姓名', align: 'center'},
{colKey: 'phone', title: '手机号', align: 'center'},
{colKey: 'position', title: '职位', align: 'center'},
{colKey: 'position_name', title: '职位', align: 'center'},
{colKey: 'application_time', title: '报名时间', align: 'center'},
],
info_pagination: {
@ -369,6 +372,7 @@ export default {
},
list: [],
columns: [
{colKey: 'weigh', title: '排序', align: 'center',width: 80,},
{colKey: 'activity_name', title: '活动标题', align: 'center',width: 200,},
{colKey: 'activity_type', title: '活动类别', width: 200, align: 'center'},
{colKey: 'money', title: '付费金额', align: 'center'},
@ -692,6 +696,7 @@ export default {
this.addMode = true;
this.isEdit = false;
this.addForm = {
weigh:0,
money:0,
activity_name: '',
activity_desc: '',
@ -712,6 +717,7 @@ export default {
}else{
this.activity_video_show = [{url: store.state.user.apiUrl + d.video,name:d.video}];
}
this.addForm.weigh = d.weigh;
this.addForm.activity_name = d.activity_name;
this.addForm.activity_desc = d.activity_desc;
this.addForm.activity_image_show = [{url: store.state.user.apiUrl + d.activity_image}];

View File

@ -6,7 +6,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"

View File

@ -5,7 +5,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"

View File

@ -6,7 +6,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"

View File

@ -0,0 +1,127 @@
<template>
<t-card :bordered="false">
<div class="form-step-container">
<t-table
rowKey="index"
:data="list"
:columns="columns"
:stripe="false"
:bordered="false"
:hover="true"
size="large"
table-layout="auto"
cellEmptyContent="-" c
>
<template #photo_image="{ row }">
<img v-if="row.photo_image" :src="$store.state.user.apiUrl+row.photo_image" style="width: 50px;height: 50px">
</template>
<template #gender="{ row }">
{{ row.gender == 1 ? "男" : "女" }}
</template>
<template #if_xianshi="{ row }">
<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="danger" v-if="row.if_xianshi==2">申请已被拒绝</t-tag>
</template>
<template #select="{ row }">
<t-space size="24px">
<t-button theme="default" v-if="row.if_xianshi==0" @click="openMode()">审核</t-button>
</t-space>
</template>
</t-table>
<div style="margin-top: 30px">
<t-pagination
:total="total"
:page-size="size"
@current-change="onCurrentChange"
:showPageSize="false"
></t-pagination>
</div>
</div>
<t-dialog header="信息审核" :confirmBtn="null" :visible="ShenMode" :onClose="onCloseMy" width="65%" top="50px">
<div style="height: 600px;text-align: center">
<t-space direction="vertical">
<t-row>
<t-col :span="4">
<div style="font-size: 16px;font-weight: 600">旧信息</div>
</t-col>
<t-col :span="4">
</t-col>
<t-col :span="4">
<div style="font-size: 16px;font-weight: 600">新信息</div>
</t-col>
</t-row>
<t-row v-for="item in 5">
<t-col :span="4">
<div>证件照123456</div>
</t-col>
<t-col :span="4">
<div>-></div>
</t-col>
<t-col :span="4">
<div>123456</div>
</t-col>
</t-row>
</t-space>
</div>
</t-dialog>
</t-card>
</template>
<script lang="ts">
import store from "@/store";
export default {
data() {
return {
association: {},
ShenMode: false,
list: [],
tabIndex: 1,
columns: [
{colKey: 'nikename', title: '会员姓名'},
{colKey: 'createtime', title: '申请时间'},
{colKey: 'if_xianshi', title: '状态'},
{colKey: 'select', title: '操作', width: 200},
],
total: 0,
page: 1,
size: 10,
}
},
mounted() {
this.getList();
},
methods: {
openMode() {
this.ShenMode = true;
},
onCloseMy() {
this.ShenMode = false;
},
getList() {
this.$request
.post("/member_log/index", {page: this.page, size: this.size})
.then((res) => {
console.log(res);
this.list = res.data.ret;
this.total = res.data.count;
})
.catch((e) => {
console.log(e);
});
},
onCurrentChange(d) {
this.page = d;
this.getList();
},
onSubmit() {
this.page = 1;
this.list = [];
this.getList();
},
}
}
</script>
<style scoped lang="less">
</style>

View File

@ -49,7 +49,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"
@ -103,7 +103,6 @@ export default {
{ colKey: 'photo_image', title: '证件照'},
{ colKey: 'nikename', title: '会员姓名'},
{ colKey: 'position_name', title: '职位'},
{ colKey: 'gender', title: '性别'},
{ colKey: 'phone', title: '手机号'},
{ colKey: 'nation', title: '民族'},
{ colKey: 'if_xianshi', title: '状态'},
@ -116,7 +115,6 @@ export default {
nikename: '',
phone: ''
},
}
},
mounted() {

View File

@ -6,7 +6,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"

View File

@ -6,7 +6,7 @@
rowKey="index"
:data="list"
:columns="columns"
:stripe="true"
:stripe="false"
:bordered="false"
:hover="true"
size="large"

View File

@ -40,6 +40,12 @@ export default [
component: () => import('@/pages/user/user_edit.vue'),
meta: { title: '会员编辑',hidden:true },
},
{
path: 'user_edit_shen',
name: 'userEditShen',
component: () => import('@/pages/user/user_edit_shen.vue'),
meta: { title: '编辑信息审核' },
},
],
},
{

View File

@ -132,7 +132,7 @@ export const SALE_COLUMNS: TdBaseTableProps['columns'] = [
align: 'left',
ellipsis: true,
colKey: 'productName',
title: '客户名称',
title: '类别',
minWidth: 200,
},
{
@ -144,14 +144,14 @@ export const SALE_COLUMNS: TdBaseTableProps['columns'] = [
{
align: 'center',
colKey: 'count',
title: '订单量',
title: '阅读量',
width: 100,
},
{
align: 'center',
colKey: 'date',
width: 140,
title: '合同签订日期',
title: '日期',
},
{
align: 'center',
@ -174,7 +174,7 @@ export const BUY_COLUMNS: TdBaseTableProps['columns'] = [
align: 'left',
ellipsis: true,
colKey: 'productName',
title: '供应商名称',
title: '分类',
minWidth: 200,
},
{
@ -186,14 +186,14 @@ export const BUY_COLUMNS: TdBaseTableProps['columns'] = [
{
align: 'center',
colKey: 'count',
title: '订单量',
title: '阅读量',
width: 100,
},
{
align: 'center',
colKey: 'date',
width: 140,
title: '合同签订日期',
title: '日期',
},
{
align: 'center',