Browse Source

活动(查,删,增接口),充值明细查接口

Hongxilin
hongxilin 6 months ago
parent
commit
cae92a3429
  1. 9
      vue/gold-system/src/views/index.vue
  2. 259
      vue/gold-system/src/views/managerecharge/activity.vue
  3. 196
      vue/gold-system/src/views/recharge/adminRecharge.vue
  4. 218
      vue/gold-system/src/views/recharge/allRecharge.vue

9
vue/gold-system/src/views/index.vue

@ -6,7 +6,12 @@ import { VscGlobe } from 'vue-icons-plus/vsc'
const router = useRouter();
//
const admin = ref({
adminId: 1,
name:'客服A',
area:'新加坡'
})
</script>
@ -99,7 +104,7 @@ const router = useRouter();
<el-sub-menu index="1" class="admin">
<template #title>
<img style="width: 30px;height: 30px; border-radius: 50%;" src="../assets/金币管理系统logo.png" alt="出错了" />
<span style="margin-left: 10px;">用户名</span>
<span style="margin-left: 10px;">{{ admin.name }}</span>
</template>
<el-menu-item index="1-1">查看个人信息</el-menu-item>
<el-menu-item index="1-2">退出登录</el-menu-item>

259
vue/gold-system/src/views/managerecharge/activity.vue

@ -1,39 +1,90 @@
<script setup>
import { ref, onMounted, reactive, computed } from "vue";
import ElementPlus from "element-plus";
import { ElMessage, ElMessageBox } from 'element-plus'
import axios from 'axios';
//
//
const admin = ref({
adminId: 1,
name: '客服A',
area: '新加坡'
})
//
const tableData = ref([]);
//
const total = ref(100);
//
const getTime = ref([]);
//
const activity = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 5,
})
//
const total = ref(100)
//
const addObj = ref({
add: '',
})
//
const delObj = ref({
del: '',
});
//
const tableHeight = computed(function () {
return (getObj.value.pageSize + 1) * 50 + 'px';
});
// ref
const Ref = ref(null);
//
//
const get = async function () {
const get = async function (val) {
try {
//
if (typeof val === 'number') {
getObj.value.pageNum = val;
}
//
if (getTime.value != null) {
if (getTime.value.startDate != '' && getTime.value.endDate != '') {
activity.value.startDate = getTime.value[0];
activity.value.endDate = getTime.value[1];
}
} else {
activity.value.startDate = '';
activity.value.endDate = '';
}
console.log('搜索参数', getObj.value);
// POST
const result = await axios.post('http://192.168.8.93:10010/recharge/activity/select', getObj.value);
const result = await axios.post('http://192.168.8.93:10010/recharge/activity/select', {...getObj.value,activity:{...activity.value}});
//
console.log('请求成功', result);
//
tableData.value = result.data.data.list;
console.log('tableData', tableData.value);
// UI
//
total.value = result.data.data.total;
console.log('total', total.value);
} catch (error) {
console.log('请求失败', error);
//
}
}
//
const reset = function () {
getObj.value = {};
getObj.value.pageNum = 1;
getObj.value.pageSize = 5;
getTime.value = {};
activity.value = {};
get();
}
//
const addActivityVisible = ref(false)
//
@ -46,27 +97,124 @@ const closeAddActivityVisible = function () {
}
//
const addActicity = function () {
//
addObj.value = {};
addObj.value.adminId = admin.value.adminId;
addObj.value.adminName = admin.value.name;
addObj.value.dept = admin.value.area;
addObj.value.freeGold = '0';
addObj.value.rechargeRatio = 0;
addObj.value.startTime = null;
addObj.value.endTime = null;
openAddActivityVisible();
}
//
const addObj = reactive({
activityName: '',
freeGold: '',
rechargeRatio: '',
startTime: '',
endTime: '',
adminName: '',
})
//
const add = async function () {
Ref.value.validate(async (valid) => {
if (valid) {
try {
console.log('添加对象', addObj.value);
// POST
const result = await axios.post('http://192.168.8.93:10010/recharge/activity/add', addObj.value);
//
console.log('请求成功', result);
//
get();
//
closeAddActivityVisible();
//
ElMessage({
type: 'success',
message: '活动添加成功!',
})
} catch (error) {
console.log('请求失败', error);
//
}
} else {
//
ElMessage({
type: 'error',
message: '请检查输入内容',
})
}
})
const Delete = function (index, row) {
console.log(index, row)
}
const del = function (row) {
delObj.value.activityId = row.activityId;
console.log('delObj', delObj.value);
}
const delConfirm = async function () {
try {
console.log('delObj', delObj.value);
// POST
const result = await axios.post('http://192.168.8.93:10010/recharge/activity/edit', delObj.value);
//
console.log('请求成功', result);
//
get();
} catch (error) {
console.log('请求失败', error);
//
}
}
//
//
const handleStartTimeChange = () => {
Ref.value.validateField('endTime');
};
const checkFreeGoldRadio = function (rule, value, callback) {
if (addObj.value.freeGold == 1) {
if (value == '0' || value == null || value == '') {
callback(new Error('请输入免费金币兑换比'))
} else {
callback();
}
} else {
callback()
}
}
const checkStartTime = function (rule, value, callback) {
if (value <= new Date()) {
callback(new Error('开始时间不能小于当前时间'))
} else {
callback()
}
}
const checkEndTime = function (rule, value, callback) {
if (value <= new Date()) {
callback(new Error('结束时间不能小于当前时间'))
} else if (value <= addObj.value.startTime) {
callback(new Error('结束时间不能小于开始时间'))
} else {
callback()
}
}
const rules = reactive({
activityName: [{ required: true, message: '请输入活动名称', trigger: 'blur' },],
freeGold: [{ required: true, message: '请选择是否赠送免费金币', trigger: 'blur' },],
rechargeRatio: [{ validator: checkFreeGoldRadio, trigger: 'blur' },],
startTime: [
{ required: true, message: '请选择开始时间', trigger: 'blur' },
{ validator: checkStartTime, trigger: 'blur' },
],
endTime: [
{ required: true, message: '请选择结束时间', trigger: 'blur' },
{ validator: checkEndTime, trigger: 'blur' },
],
})
//
onMounted(async function(){
onMounted(async function () {
get();
})
@ -79,16 +227,17 @@ onMounted(async function(){
<div class="head-card">
<div class="head-card-element">
<el-text class="mx-1" size="large">活动名称</el-text>
<el-input v-model="input" style="width: 240px" placeholder="请输入活动名称" clearable />
<el-input v-model="activity.activityName" style="width: 240px" placeholder="请输入活动名称"
clearable />
</div>
<div class="head-card-element">
<el-text class="mx-1" size="large">添加时间</el-text>
<el-time-picker v-model="value1" is-range range-separator="" start-placeholder="起始时间"
<el-date-picker v-model="getTime" type="daterange" range-separator="" start-placeholder="起始时间"
end-placeholder="结束时间" />
</div>
<div class="head-card-btn">
<el-button>重置</el-button>
<el-button type="primary">查询</el-button>
<el-button @click="reset()">重置</el-button>
<el-button type="primary" @click="get()">查询</el-button>
</div>
</div>
</el-card>
@ -102,34 +251,44 @@ onMounted(async function(){
style="color: #048EFB; border:1px solid #048EFB">新增活动</el-button>
</div>
<div>
<el-table :data="tableData" style="width: 100%">
<el-table :data="tableData" :height="tableHeight" style="width: 100%">
<el-table-column prop="activityName" label="活动名称" />
<el-table-column prop="startTime" label="开始时间" />
<el-table-column prop="endTime" label="结束时间" />
<el-table-column prop="rechargeRatio" label="免费兑换比" />
<el-table-column prop="rechargeRatio" label="免费兑换比">
<template #default="scope">
<span>{{ scope.row.rechargeRatio }}:1</span>
</template>
</el-table-column>
<el-table-column prop="status" label="状态">
<template #default="scope">
<div class="status">
<span v-if="scope.row.status === '进行中'">
<span v-if="scope.row.status === 1">
<div class="status">
<span class="green-dot"></span>
</span>
<span v-if="scope.row.status === '未开始'">
<span>进行中</span>
</div>
</span>
<span v-if="scope.row.status === 0">
<div class="status">
<span class="red-dot"></span>
</span>
<span v-if="scope.row.status === '已结束'">
<span>未开始</span>
</div>
</span>
<span v-if="scope.row.status === 2">
<div class="status">
<span class="grey-dot"></span>
</span>
<span>{{ scope.row.status }}</span>
</div>
<span>已结束</span>
</div>
</span>
</template>
</el-table-column>
<el-table-column prop="adminName" label="添加人" />
<el-table-column prop="name" label="添加人" />
<el-table-column prop="createTime" label="添加时间" />
<el-table-column prop="operation" label="操作">
<template #default="scope">
<el-popconfirm title="确定将此条活动删除吗?">
<el-popconfirm title="确定将此条活动删除吗?" @confirm="delConfirm">
<template #reference>
<el-button type="primary" text @click="Delete(scope.$index, scope.row)">
<el-button type="primary" text @click="del(scope.row)">
删除
</el-button>
</template>
@ -148,7 +307,7 @@ onMounted(async function(){
<!-- 分页 -->
<el-pagination background layout="prev, pager, next" :total="total" :page-size="getObj.pageSize"
:current-page="getObj.pageNum" />
:current-page="getObj.pageNum" @current-change="get" />
</el-card>
</el-col>
@ -157,33 +316,35 @@ onMounted(async function(){
<el-dialog v-model="addActivityVisible" title="新增活动" width="500" :before-close="closeAddActivityVisible">
<template #footer>
<el-form :model="addObj" label-width="auto" style="max-width: 600px">
<el-form :model="addObj" ref="Ref" :rules="rules" label-width="auto" style="max-width: 600px">
<el-form-item label="活动名称:">
<el-form-item prop="activityName" label="活动名称:">
<el-input v-model="addObj.activityName" placeholder="请输入活动名称" style="width: 220px;" />
</el-form-item>
<el-form-item label="免费金币:">
<el-form-item prop="freeGold" label="免费金币:">
<el-radio-group v-model="addObj.freeGold">
<el-radio value="0">无赠送</el-radio>
<el-radio value="0" @change="addObj.rechargeRatio = '0'">无赠送</el-radio>
<el-radio value="1">有赠送</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="免费金币兑换比:">
<el-input v-model="addObj.rechargeRatio" placeholder="请输入" style="width: 80px;" />1
<el-form-item prop="rechargeRatio" label="免费金币兑换比:">
<el-input v-model="addObj.rechargeRatio" :disabled="addObj.freeGold === '0' ? true : false"
placeholder="请输入" style="width: 80px;" />1
<div style="color: grey;">(提示当前规则每10新币可兑换1免费金币)</div>
</el-form-item>
<el-form-item label="开始时间:">
<el-time-picker v-model="addObj.startTime" />
<el-form-item prop="startTime" label="开始时间:">
<el-date-picker v-model="addObj.startTime" type="date" placeholder="请选择开始时间"
@change="handleStartTimeChange" />
</el-form-item>
<el-form-item label="结束时间:">
<el-time-picker v-model="addObj.endTime" />
<el-form-item prop="endTime" label="结束时间:">
<el-date-picker v-model="addObj.endTime" type="date" placeholder="请选择结束时间" />
</el-form-item>
<el-form-item label="添加人:">
<el-form-item prop="adminName" label="添加人:">
<el-input v-model="addObj.adminName" disabled style="width: 220px;" />
</el-form-item>
@ -191,7 +352,7 @@ onMounted(async function(){
<div class="dialog-footer">
<el-button @click="closeAddActivityVisible">取消</el-button>
<el-button type="primary" @click="closeAddActivityVisible">
<el-button type="primary" @click="add()">
提交
</el-button>
</div>

196
vue/gold-system/src/views/recharge/adminRecharge.vue

@ -3,94 +3,35 @@ import { ref, onMounted, reactive, computed } from "vue";
import ElementPlus from "element-plus";
import { AiFillRead } from "vue-icons-plus/ai";
const tableData = [
{
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因驳回理由驳回理由驳回理由驳回理由驳回理由驳回理由驳回理由',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
},
{
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
},
//
//
const admin = ref({
adminId: 1,
name: '客服A',
area: '新加坡'
})
]
//
const tableData = ref([]);
// recharge
const rechargeVo = ref({
name: admin.value.name,
area: admin.value.area,
adminId: admin.value.adminId,
});
//
const getObj = ref({
pageNum: 1,
pageSize: 5,
});
//
const total = ref(100)
//
const value = ref('')
//
const activeName = ref('all')
const options = [
{
value: 'Option1',
@ -114,30 +55,60 @@ const options = [
},
]
//
const getObj = ref({
page: 1,
size: 10,
})
//
const total = ref(100)
//
const activeName = ref('all')
//
const tableHeight = computed(function () {
return (getObj.value.pageSize + 2) * 60 + 'px';
});
//
//
const get = async function (val) {
try {
//
if (typeof val === 'number') {
getObj.value.pageNum = val;
}
console.log('搜索参数', getObj.value);
// POST
const result = await axios.post('http://192.168.8.93:10010/recharge/recharge', {...getObj.value,rechargeVo:{...rechargeVo.value}});
//
console.log('请求成功', result);
//
tableData.value = result.data.data.list;
console.log('tableData', tableData.value);
//
total.value = result.data.data.total;
console.log('total', total.value);
} catch (error) {
console.log('请求失败', error);
//
}
}
//
const adminAll = function () {
console.log('adminAll');
rechargeVo.value.status='';
get();
}
//
const adminWait = function () {
rechargeVo.value.status=0;
get();
console.log('adminWait');
}
//
const adminPass = function () {
rechargeVo.value.status=1;
get();
console.log('adminPass');
}
//
const adminReject = function () {
rechargeVo.value.status=2;
get();
console.log('adminReject');
}
//
@ -198,8 +169,8 @@ const Delete = function (index, row) {
<el-col :span="21">
<div class="head-card-element">
<el-text class="mx-1" size="large">充值时间</el-text>
<el-time-picker v-model="value1" is-range range-separator="" start-placeholder="起始时间"
end-placeholder="结束时间" />
<el-date-picker v-model="getTime" type="datetimerange" range-separator=""
start-placeholder="起始时间" end-placeholder="结束时间" />
<el-button style="margin-left: 10px;"></el-button>
<el-button></el-button>
<el-button>近7天</el-button>
@ -225,7 +196,7 @@ const Delete = function (index, row) {
<el-tab-pane label="已驳回" name="reject"></el-tab-pane>
</el-tabs>
<div>
<el-table :data="tableData" style="width: 100%">
<el-table :data="tableData" :height="tableHeight" style="width: 100%">
<el-table-column prop="name" label="姓名" width="100px" />
<el-table-column prop="homilyId" label="精网号" width="150px" />
<el-table-column prop="area" label="所属地区" width="100px" />
@ -239,18 +210,24 @@ const Delete = function (index, row) {
<el-table-column prop="adminName" label="提交人" width="100px" />
<el-table-column prop="status" label="状态" width="100px">
<template #default="scope">
<div class="status">
<span v-if="scope.row.status === '进行中'">
<span v-if="scope.row.status === 1">
<div class="status">
<span class="green-dot"></span>
</span>
<span v-if="scope.row.status === '未开始'">
<span class="red-dot"></span>
</span>
<span v-if="scope.row.status === '已结束'">
<span>已通过</span>
</div>
</span>
<span v-if="scope.row.status === 0">
<div class="status">
<span class="grey-dot"></span>
</span>
<span>{{ scope.row.status }}</span>
</div>
<span>待审核</span>
</div>
</span>
<span v-if="scope.row.status === 2">
<div class="status">
<span class="red-dot"></span>
<span>已驳回</span>
</div>
</span>
</template>
</el-table-column>
<el-table-column prop="reason" label="驳回理由" width="200px" show-overflow-tooltip />
@ -278,7 +255,8 @@ const Delete = function (index, row) {
</div>
<!-- 分页 -->
<el-pagination background layout="prev, pager, next" :total="total" />
<el-pagination background layout="prev, pager, next" :total="total" :page-size="getObj.pageSize"
:current-page="getObj.pageNum" @current-change="get" />
</el-card>
</el-col>
@ -291,7 +269,7 @@ const Delete = function (index, row) {
<el-form :model="editObj" label-width="auto" style="max-width: 600px">
<el-form-item label="活动名称:">
<el-input v-model="addObj.activityName" placeholder="请输入活动名称" style="width: 220px;"/>
<el-input v-model="addObj.activityName" placeholder="请输入活动名称" style="width: 220px;" />
</el-form-item>
<el-form-item label="免费金币:">
@ -315,7 +293,7 @@ const Delete = function (index, row) {
</el-form-item>
<el-form-item label="添加人:">
<el-input v-model="addObj.adminName" disabled style="width: 220px;"/>
<el-input v-model="addObj.adminName" disabled style="width: 220px;" />
</el-form-item>
</el-form>

218
vue/gold-system/src/views/recharge/allRecharge.vue

@ -2,94 +2,24 @@
import { ref, onMounted, reactive, computed } from "vue";
import ElementPlus from "element-plus";
import { AiFillRead } from "vue-icons-plus/ai";
import axios from 'axios';
//
//
const tableData = ref([]);
const tableData = [
{
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因驳回理由驳回理由驳回理由驳回理由驳回理由驳回理由驳回理由',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
},
{
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
}, {
name: '梁凡',
homilyId: '123456',
area: '北京',
activityName: '这是活动名称',
rechargeGold: '1000',
paidGold: '500',
freeGold: '500',
remark: '这是备注',
rechargeWay: '微信',
rechargeVoucher: '123456789',
adminName: '张三',
status: '进行中',
reason: '原因',
rechargeTime: '2023-12-22 00:00:00',
createTime: '2023-01-01 00:00:00',
},
]
// recharge
const rechargeVo = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 5,
});
//
const total = ref(100);
//
const value = ref('')
//
const activeName = ref('all')
const options = [
{
value: 'Option1',
@ -113,30 +43,61 @@ const options = [
},
]
//
const getObj = ref({
page: 1,
size: 10,
})
//
const total = ref(100)
//
const activeName = ref('all')
//
const tableHeight = computed(function () {
return (getObj.value.pageSize + 2) * 60 + 'px';
});
//
//
const get = async function (val) {
try {
//
if (typeof val === 'number') {
getObj.value.pageNum = val;
}
console.log('搜索参数', getObj.value);
// POST
const result = await axios.post('http://192.168.8.93:10010/recharge/recharge', {...getObj.value,rechargeVo:{...rechargeVo.value}});
//
console.log('请求成功', result);
//
tableData.value = result.data.data.list;
console.log('tableData', tableData.value);
//
total.value = result.data.data.total;
console.log('total', total.value);
} catch (error) {
console.log('请求失败', error);
//
}
}
//
const adminAll = function () {
console.log('adminAll');
rechargeVo.value.status='';
get();
}
//
const adminWait = function () {
rechargeVo.value.status=0;
get();
console.log('adminWait');
}
//
const adminPass = function () {
rechargeVo.value.status=1;
get();
console.log('adminPass');
}
//
const adminReject = function () {
rechargeVo.value.status=2;
get();
console.log('adminReject');
}
//
@ -157,6 +118,11 @@ const Delete = function (index, row) {
console.log(index, row)
}
//
onMounted(async function () {
get();
})
</script>
<template>
@ -197,8 +163,8 @@ const Delete = function (index, row) {
<el-col :span="21">
<div class="head-card-element">
<el-text class="mx-1" size="large">充值时间</el-text>
<el-time-picker v-model="value1" is-range range-separator="" start-placeholder="起始时间"
end-placeholder="结束时间" />
<el-date-picker v-model="getTime" type="datetimerange" range-separator=""
start-placeholder="起始时间" end-placeholder="结束时间" />
<el-button style="margin-left: 10px;"></el-button>
<el-button></el-button>
<el-button>近7天</el-button>
@ -224,8 +190,8 @@ const Delete = function (index, row) {
<el-tab-pane label="已驳回" name="reject"></el-tab-pane>
</el-tabs>
<div>
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="name" label="姓名" width="100px" />
<el-table :data="tableData" :height="tableHeight" style="width: 100%">
<el-table-column prop="username" label="姓名" width="100px" />
<el-table-column prop="homilyId" label="精网号" width="150px" />
<el-table-column prop="area" label="所属地区" width="100px" />
<el-table-column prop="activityName" label="活动名称" width="150px" />
@ -234,50 +200,44 @@ const Delete = function (index, row) {
<el-table-column prop="freeGold" label="免费金币" width="100px" />
<el-table-column prop="remark" label="备注" width="200px" show-overflow-tooltip />
<el-table-column prop="rechargeWay" label="支付方式" width="100px" />
<el-table-column prop="rechargeVoucher" label="支付凭证" width="150px" />
<el-table-column prop="rechargeVoucher" label="支付凭证" width="150px">
<template #default="scope">
<el-image :src="scope.row.rechargeVoucher" alt="凭证"
style="width: 50px; height: 50px" />
</template>
</el-table-column>
<el-table-column prop="adminName" label="提交人" width="100px" />
<el-table-column prop="status" label="状态" width="100px">
<template #default="scope">
<div class="status">
<span v-if="scope.row.status === '进行中'">
<span v-if="scope.row.status === 1">
<div class="status">
<span class="green-dot"></span>
</span>
<span v-if="scope.row.status === '未开始'">
<span class="red-dot"></span>
</span>
<span v-if="scope.row.status === '已结束'">
<span>已通过</span>
</div>
</span>
<span v-if="scope.row.status === 0">
<div class="status">
<span class="grey-dot"></span>
</span>
<span>{{ scope.row.status }}</span>
</div>
<span>待审核</span>
</div>
</span>
<span v-if="scope.row.status === 2">
<div class="status">
<span class="red-dot"></span>
<span>已驳回</span>
</div>
</span>
</template>
</el-table-column>
<el-table-column prop="reason" label="驳回理由" width="200px" show-overflow-tooltip />
<el-table-column prop="rechargeTime" label="交款时间" width="200px" />
<el-table-column prop="createTime" label="提交时间" width="200px" />
<el-table-column fixed="right" prop="operation" label="操作" width="150px">
<template #default="scope">
<el-popconfirm title="确定将此条活动删除吗?">
<template #reference>
<el-button type="primary" text @click="Delete(scope.$index, scope.row)">
修改
</el-button>
</template>
<template #actions="{ confirm, cancel }">
<el-button size="small" @click="cancel">取消</el-button>
<el-button type="primary" size="small" @click="confirm">
确定
</el-button>
</template>
</el-popconfirm>
</template>
</el-table-column>
</el-table>
</div>
<!-- 分页 -->
<el-pagination background layout="prev, pager, next" :total="total" />
<el-pagination background layout="prev, pager, next" :total="total" :page-size="getObj.pageSize"
:current-page="getObj.pageNum" @current-change="get" />
</el-card>
</el-col>

Loading…
Cancel
Save