init
This commit is contained in:
44
src/api/cai/accountBusiness.js
Normal file
44
src/api/cai/accountBusiness.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询账户业务列表
|
||||||
|
export function listAccountBusiness(query) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountBusiness/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询账户业务详细
|
||||||
|
export function getAccountBusiness(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountBusiness/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增账户业务
|
||||||
|
export function addAccountBusiness(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountBusiness',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改账户业务
|
||||||
|
export function updateAccountBusiness(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountBusiness',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除账户业务
|
||||||
|
export function delAccountBusiness(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountBusiness/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
44
src/api/cai/accountDetail.js
Normal file
44
src/api/cai/accountDetail.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询账户明细列表
|
||||||
|
export function listAccountDetail(query) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountDetail/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询账户明细详细
|
||||||
|
export function getAccountDetail(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountDetail/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增账户明细
|
||||||
|
export function addAccountDetail(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountDetail',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改账户明细
|
||||||
|
export function updateAccountDetail(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountDetail',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除账户明细
|
||||||
|
export function delAccountDetail(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountDetail/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
44
src/api/cai/accountRecharge.js
Normal file
44
src/api/cai/accountRecharge.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询充值记录列表
|
||||||
|
export function listAccountRecharge(query) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountRecharge/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询充值记录详细
|
||||||
|
export function getAccountRecharge(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountRecharge/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增充值记录
|
||||||
|
export function addAccountRecharge(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountRecharge',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改充值记录
|
||||||
|
export function updateAccountRecharge(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountRecharge',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除充值记录
|
||||||
|
export function delAccountRecharge(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/accountRecharge/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
44
src/api/cai/anchorApply.js
Normal file
44
src/api/cai/anchorApply.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询播主申请管理列表
|
||||||
|
export function listAnchorApply(query) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/anchorApply/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询播主申请管理详细
|
||||||
|
export function getAnchorApply(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/anchorApply/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增播主申请管理
|
||||||
|
export function addAnchorApply(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/anchorApply',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改播主申请管理
|
||||||
|
export function updateAnchorApply(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/anchorApply',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除播主申请管理
|
||||||
|
export function delAnchorApply(id) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/anchorApply/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -78,6 +78,11 @@ export const userRiskLowList = [
|
|||||||
{ value: 2, label: '高风险',listClass: listClass.danger},
|
{ value: 2, label: '高风险',listClass: listClass.danger},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
export const anchorApplyStatus = [
|
||||||
|
{ value: 1, label: '审核中',listClass: listClass.info},
|
||||||
|
{ value: 2, label: '审核不通过',listClass: listClass.danger},
|
||||||
|
{ value: 3, label: '审核通过',listClass: listClass.primary},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
122
src/views/cai/accountBusiness/index.vue
Normal file
122
src/views/cai/accountBusiness/index.vue
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="accountBusinessList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<!-- 1.充值 , 2 :提现 3:视频 4 礼物 5 系统 6 兑换 7.私信-->
|
||||||
|
<el-table-column label="业务编码" align="center" prop="businessCode" />
|
||||||
|
<el-table-column label="业务名称" align="center" prop="businessName" />
|
||||||
|
<!-- <el-table-column label="业务分类" align="center" prop="cateId" />-->
|
||||||
|
<el-table-column label="账户类型" align="center" prop="accountType" />
|
||||||
|
<el-table-column label="描述" align="center" prop="remark" />
|
||||||
|
<el-table-column label="状态标识" align="center" prop="status" />
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listAccountBusiness, getAccountBusiness, delAccountBusiness, addAccountBusiness, updateAccountBusiness } from "@/api/cai/accountBusiness";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "AccountBusiness",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 账户业务表格数据
|
||||||
|
accountBusinessList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
cateId: undefined,
|
||||||
|
businessName: undefined,
|
||||||
|
businessCode: undefined,
|
||||||
|
businessDesc: undefined,
|
||||||
|
accountType: undefined,
|
||||||
|
accountTypeCode: undefined,
|
||||||
|
status: undefined,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询账户业务列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listAccountBusiness(this.queryParams).then(response => {
|
||||||
|
this.accountBusinessList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal.confirm('是否确认删除账户业务编号为"' + ids + '"的数据项?').then(() => {
|
||||||
|
this.loading = true;
|
||||||
|
return delAccountBusiness(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
117
src/views/cai/accountDetail/index.vue
Normal file
117
src/views/cai/accountDetail/index.vue
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="accountDetailList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="用户ID" align="center" prop="userId" />
|
||||||
|
<!-- ID 1 。充值的金额 2 。收益的金额 3 。充值的彩币 4 收益的彩币-->
|
||||||
|
<el-table-column label="账户类型" align="center" prop="accountType" />
|
||||||
|
<el-table-column label="类别" align="center" prop="cateId" />
|
||||||
|
<el-table-column label="业务码" align="center" prop="businessCode" />
|
||||||
|
<el-table-column label="原有紫贝" align="center" prop="beforeAmount" />
|
||||||
|
<el-table-column label="变化值" align="center" prop="changeValue" />
|
||||||
|
<el-table-column label="变化后紫贝" align="center" prop="afterAmount" />
|
||||||
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180" />
|
||||||
|
<el-table-column label="关键字" align="center" prop="trackParam" />
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" width="400" show-overflow-tooltip/>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listAccountDetail } from '@/api/cai/accountDetail'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "AccountDetail",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 账户明细表格数据
|
||||||
|
accountDetailList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
userId: undefined,
|
||||||
|
accountType: undefined,
|
||||||
|
cateId: undefined,
|
||||||
|
businessCode: undefined,
|
||||||
|
orderNo: undefined,
|
||||||
|
beforeAmount: undefined,
|
||||||
|
afterAmount: undefined,
|
||||||
|
changeValue: undefined,
|
||||||
|
createTime1: undefined,
|
||||||
|
trackUserId: undefined,
|
||||||
|
trackParam: undefined,
|
||||||
|
operateIp: undefined,
|
||||||
|
isAdmin: undefined
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询账户明细列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listAccountDetail(this.queryParams).then(response => {
|
||||||
|
this.accountDetailList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
131
src/views/cai/accountRecharge/index.vue
Normal file
131
src/views/cai/accountRecharge/index.vue
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="accountRechargeList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="用户ID" align="center" prop="userId" />
|
||||||
|
<el-table-column label="商品ID" align="center" prop="goodsId" />
|
||||||
|
<el-table-column label="订单号" align="center" prop="orderNo" />
|
||||||
|
<el-table-column label="订单名" align="center" prop="orderName" />
|
||||||
|
<!-- 1 金额 2 彩币-->
|
||||||
|
<el-table-column label="账户" align="center" prop="accountType" />
|
||||||
|
<el-table-column label="充值类型 0 手工充值 1 线上充值" align="center" prop="rechargeType" />
|
||||||
|
<el-table-column label="充值金额" align="center" prop="rechargeMoney" />
|
||||||
|
<el-table-column label="状态 1 申请 2 审核通过 3,审核不通过" align="center" prop="status" />
|
||||||
|
<el-table-column label="充值平台类型" align="center" prop="platformType" />
|
||||||
|
<el-table-column label="充值平台名称" align="center" prop="platformName" />
|
||||||
|
<el-table-column label="" align="center" prop="payNo" />
|
||||||
|
<el-table-column label="" align="center" prop="rechargeReward" />
|
||||||
|
<el-table-column label="" align="center" prop="verifyTime" width="180" />
|
||||||
|
<el-table-column label="" align="center" prop="operateIp" />
|
||||||
|
<el-table-column label="类型: 0积分(默认),1会员" align="center" prop="type" />
|
||||||
|
<el-table-column label="" align="center" prop="appid" />
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listAccountRecharge, getAccountRecharge, delAccountRecharge, addAccountRecharge, updateAccountRecharge } from "@/api/cai/accountRecharge";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "AccountRecharge",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 充值记录表格数据
|
||||||
|
accountRechargeList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
userId: undefined,
|
||||||
|
goodsId: undefined,
|
||||||
|
orderNo: undefined,
|
||||||
|
orderName: undefined,
|
||||||
|
accountType: undefined,
|
||||||
|
rechargeType: undefined,
|
||||||
|
rechargeMoney: undefined,
|
||||||
|
status: undefined,
|
||||||
|
platformType: undefined,
|
||||||
|
platformName: undefined,
|
||||||
|
payNo: undefined,
|
||||||
|
returnContent: undefined,
|
||||||
|
rechargeReward: undefined,
|
||||||
|
verifyTime: undefined,
|
||||||
|
operateIp: undefined,
|
||||||
|
type: undefined,
|
||||||
|
appid: undefined
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询充值记录列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listAccountRecharge(this.queryParams).then(response => {
|
||||||
|
this.accountRechargeList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="蜜瓜号" align="center" prop="usercode" />
|
<el-table-column label="蜜瓜号" align="center" prop="usercode" />
|
||||||
<el-table-column label="昵称" align="center" prop="nickname" />
|
<el-table-column label="昵称" align="center" prop="nickname" />
|
||||||
<el-table-column label="手机" align="center" prop="mobile" />
|
<el-table-column label="手机" align="center" prop="mobile" width="120"/>
|
||||||
<el-table-column label="头像" align="center" prop="avatar" >
|
<el-table-column label="头像" align="center" prop="avatar" >
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<image-preview :src="scope.row.avatar" />
|
<image-preview :src="scope.row.avatar" />
|
||||||
|
|||||||
165
src/views/cai/anchorApply/index.vue
Normal file
165
src/views/cai/anchorApply/index.vue
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="anchorApplyList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="蜜瓜号" align="center" prop="usercode" />
|
||||||
|
<el-table-column label="昵称" align="center" prop="nickname" />
|
||||||
|
<el-table-column label="手机" align="center" prop="mobile" />
|
||||||
|
<el-table-column label="头像" align="center" prop="avatar" >
|
||||||
|
<template v-slot="scope">
|
||||||
|
<image-preview :src="scope.row.avatar" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="性别" align="center" prop="gender">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<cai-dict-tag :options="genderList" :value="scope.row.gender" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="审核状态" align="center" prop="status" >
|
||||||
|
<template v-slot="scope">
|
||||||
|
<cai-dict-tag :options="anchorApplyStatus" :value="scope.row.status" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="审核时间" align="center" prop="auditTime" width="180" />
|
||||||
|
<el-table-column label="审核备注" align="center" prop="auditRemark" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['cai:anchorApply:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['cai:anchorApply:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { addAnchorApply, listAnchorApply, updateAnchorApply } from '@/api/cai/anchorApply'
|
||||||
|
import { anchorApplyStatus, genderList } from '@/constant/statusMap'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "AnchorApply",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
anchorApplyStatus,genderList,
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 播主申请管理表格数据
|
||||||
|
anchorApplyList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
userId: undefined,
|
||||||
|
agreeProtocol: undefined,
|
||||||
|
status: undefined,
|
||||||
|
auditCount: undefined,
|
||||||
|
auditTime: undefined,
|
||||||
|
auditRemark: undefined
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询播主申请管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listAnchorApply(this.queryParams).then(response => {
|
||||||
|
this.anchorApplyList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.buttonLoading = true;
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateAnchorApply(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addAnchorApply(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user