bug:用户审核
This commit is contained in:
parent
1cb0ac2978
commit
02a2ad0902
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="system-menu-container layout-padding">
|
<div class="system-menu-container layout-padding">
|
||||||
<ProTable ref="tableRef" :request-api="appuserPageGet" @selection-change="handleSelectionChange" :columns="columns" :pagination="true"
|
<ProTable ref="tableRef" :request-api="appuserPageGet" @selection-change="handleSelectionChange" :columns="columns" :pagination="true"
|
||||||
:tool-button="false" :initParams="initParam" row-key="userId">
|
:tool-button="false" :initParams="initParam" row-key="id">
|
||||||
<template #tools>
|
<template #tools>
|
||||||
<el-popconfirm title="确认批量审核吗?" @confirm="onBatchAudit">
|
<el-popconfirm title="确认批量审核吗?" @confirm="onBatchAudit">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #auditStatus="scope">
|
<template #auditStatus="scope">
|
||||||
<el-tag :type="statusList[scope.row.auditStatus]">
|
<el-tag :type="statusList[scope.row.auditStatus]">
|
||||||
{{ scope.row.auditRemark }}
|
{{ statusNameList[scope.row.auditStatus] }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
<template #ss="scope">
|
<template #ss="scope">
|
||||||
@ -142,9 +142,11 @@ const columns = ref([
|
|||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
const handleSelectionChange = (val) => {
|
const handleSelectionChange = (val) => {
|
||||||
console.log(val);
|
console.log(val);
|
||||||
selectedListIds.value = val.map((item) => item.userId);
|
selectedListIds.value = val.map((item) => item.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const statusNameList = ['未提交','未审核','已通过','未通过'];
|
||||||
|
|
||||||
const columnsUser = ref([
|
const columnsUser = ref([
|
||||||
{ prop: 'index', label: '序号', align: 'center' },
|
{ prop: 'index', label: '序号', align: 'center' },
|
||||||
{ prop: 'eventName', label: '赛事名称', search: { el: 'input' } },
|
{ prop: 'eventName', label: '赛事名称', search: { el: 'input' } },
|
||||||
@ -190,7 +192,7 @@ const onOpenMenu = (row) => {
|
|||||||
|
|
||||||
const onBatchAudit = async () => {
|
const onBatchAudit = async () => {
|
||||||
console.log(selectedListIds.value);
|
console.log(selectedListIds.value);
|
||||||
const { succeeded, data } = await appuserAuditPost({ ids: selectedListIds.value });
|
const { succeeded, data } = await appuserAuditPost({ ids: selectedListIds.value , status: 2 });
|
||||||
if (succeeded) {
|
if (succeeded) {
|
||||||
ElMessage.success('操作成功');
|
ElMessage.success('操作成功');
|
||||||
// initParam.value.refresh = !initParam.value.refresh;
|
// initParam.value.refresh = !initParam.value.refresh;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user