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