bug:单位用户&个人用户参赛记录
This commit is contained in:
parent
ed6cb2b19e
commit
57b55ca4ec
@ -1,12 +1,10 @@
|
|||||||
<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="id">
|
||||||
: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>
|
||||||
<el-button v-auth="'user:general:audit'" size="small" type="primary"> 批量审核
|
<el-button v-auth="'user:general:audit'" size="small" type="primary"> 批量审核 </el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
@ -19,36 +17,23 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
<template #idCardImageUrl="scope">
|
<template #idCardImageUrl="scope">
|
||||||
<PreviewImage
|
<PreviewImage v-if="scope.row.idCardImageUrl" :src="scope.row.idCardImageUrl" width="100px" height="100px" fit="cover" radius="4px" :show-zoom-icon="true" />
|
||||||
v-if="scope.row.idCardImageUrl"
|
|
||||||
:src="scope.row.idCardImageUrl"
|
|
||||||
width="100px"
|
|
||||||
height="100px"
|
|
||||||
fit="cover"
|
|
||||||
radius="4px"
|
|
||||||
:show-zoom-icon="true"
|
|
||||||
/>
|
|
||||||
<span v-else>-</span>
|
<span v-else>-</span>
|
||||||
</template>
|
</template>
|
||||||
<template #action="scope">
|
<template #action="scope">
|
||||||
<el-button v-auth="'user:general:record'" size="small" text type="primary"
|
<el-button v-auth="'user:general:record'" size="small" text type="primary" @click="onOpenMenu(scope.row)"> 参赛记录 </el-button>
|
||||||
@click="onOpenMenu(scope.row)"> 参赛记录 </el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
|
|
||||||
<!-- 弹窗 -->
|
<!-- 弹窗 -->
|
||||||
<el-dialog title="参赛记录" v-model="isShowDialog" width="80%" @close="onDialogClose">
|
<el-dialog title="参赛记录" v-model="isShowDialog" width="80%" @close="onDialogClose">
|
||||||
<ProTable v-if="isShowDialog" ref="table" :request-api="eventrecordPageGet" :columns="columnsUser" :pagination="true"
|
<ProTable v-if="isShowDialog" ref="table" :request-api="eventrecordPageGet" :columns="columnsUser" :pagination="true" :tool-button="false" :initParam="initParamUser">
|
||||||
:tool-button="false" :initParams="initParamUser">
|
|
||||||
<template #index="scope">
|
<template #index="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
</template>
|
</template>
|
||||||
<template #startTime="scope">
|
<template #startTime="scope"> {{ scope.row.startTime }} -- {{ scope.row.endTime }} </template>
|
||||||
{{ scope.row.startTime }} -- {{ scope.row.endTime }}
|
|
||||||
</template>
|
|
||||||
<template #action="scope">
|
<template #action="scope">
|
||||||
<el-button v-auth="'user:general:record'" size="small" text type="primary"
|
<el-button v-auth="'user:general:record'" size="small" text type="primary" @click="lookBook(scope.row)"> 查看证书 </el-button>
|
||||||
@click="lookBook(scope.row)"> 查看证书 </el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -61,9 +46,7 @@
|
|||||||
|
|
||||||
<!-- 弹窗 -->
|
<!-- 弹窗 -->
|
||||||
<el-dialog title="查看证书" v-model="isShowBook" width="80%">
|
<el-dialog title="查看证书" v-model="isShowBook" width="80%">
|
||||||
<div>
|
<div>证书</div>
|
||||||
证书
|
|
||||||
</div>
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="onCancelB">取消</el-button>
|
<el-button @click="onCancelB">取消</el-button>
|
||||||
@ -266,13 +249,12 @@ const lookBook = async (row) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 对话框关闭时清理
|
// 对话框关闭时清理
|
||||||
const onDialogClose = () => {
|
const onDialogClose = () => {
|
||||||
// 清理参数,避免下次查询时使用旧参数
|
// 清理参数,避免下次查询时使用旧参数
|
||||||
initParamUser.value = {
|
initParamUser.value = {
|
||||||
appUserId: null,
|
appUserId: null,
|
||||||
refresh: Date.now()
|
refresh: Date.now(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="system-menu-container layout-padding">
|
<div class="system-menu-container layout-padding">
|
||||||
<ProTable ref="tableRef" :request-api="merchantcertificationPageGet" @selection-change="handleSelectionChange" :columns="columns" :pagination="true"
|
<ProTable
|
||||||
:tool-button="false" :initParams="initParam" row-key="id">
|
ref="tableRef"
|
||||||
|
:request-api="merchantcertificationPageGet"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
:columns="columns"
|
||||||
|
:pagination="true"
|
||||||
|
:tool-button="false"
|
||||||
|
:initParams="initParam"
|
||||||
|
row-key="id"
|
||||||
|
>
|
||||||
<template #tools>
|
<template #tools>
|
||||||
<el-button v-auth="'user:general:audit'" size="small" type="primary" @click="showAuditDialog"> 批量审核
|
<el-button v-auth="'user:general:audit'" size="small" type="primary" @click="showAuditDialog"> 批量审核 </el-button>
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
<template #index="scope">
|
<template #index="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
@ -15,36 +22,23 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
<template #businessLicenseUrl="scope">
|
<template #businessLicenseUrl="scope">
|
||||||
<PreviewImage
|
<PreviewImage v-if="scope.row.businessLicenseUrl" :src="scope.row.businessLicenseUrl" width="100px" height="100px" fit="cover" radius="4px" :show-zoom-icon="true" />
|
||||||
v-if="scope.row.businessLicenseUrl"
|
|
||||||
:src="scope.row.businessLicenseUrl"
|
|
||||||
width="100px"
|
|
||||||
height="100px"
|
|
||||||
fit="cover"
|
|
||||||
radius="4px"
|
|
||||||
:show-zoom-icon="true"
|
|
||||||
/>
|
|
||||||
<span v-else>-</span>
|
<span v-else>-</span>
|
||||||
</template>
|
</template>
|
||||||
<template #action="scope">
|
<template #action="scope">
|
||||||
<el-button v-auth="'user:general:record'" size="small" text type="primary"
|
<el-button v-auth="'user:general:record'" size="small" text type="primary" @click="onOpenMenu(scope.row)"> 参赛记录 </el-button>
|
||||||
@click="onOpenMenu(scope.row)"> 参赛记录 </el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
|
|
||||||
<!-- 弹窗 -->
|
<!-- 弹窗 -->
|
||||||
<el-dialog title="参赛记录" v-model="isShowDialog" width="80%" @close="onDialogClose">
|
<el-dialog title="参赛记录" v-model="isShowDialog" width="80%" @close="onDialogClose">
|
||||||
<ProTable v-if="isShowDialog" ref="table" :request-api="eventrecordPageGet" :columns="columnsUser" :pagination="true"
|
<ProTable v-if="isShowDialog" ref="table" :request-api="eventrecordPageGet" :columns="columnsUser" :pagination="true" :tool-button="false" :initParam="initParamUser">
|
||||||
:tool-button="false" :initParams="initParamUser">
|
|
||||||
<template #index="scope">
|
<template #index="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
</template>
|
</template>
|
||||||
<template #startTime="scope">
|
<template #startTime="scope"> {{ scope.row.startTime }} -- {{ scope.row.endTime }} </template>
|
||||||
{{ scope.row.startTime }} -- {{ scope.row.endTime }}
|
|
||||||
</template>
|
|
||||||
<template #action="scope">
|
<template #action="scope">
|
||||||
<el-button v-auth="'user:general:record'" size="small" text type="primary"
|
<el-button v-auth="'user:general:record'" size="small" text type="primary" @click="lookBook(scope.row)"> 查看证书 </el-button>
|
||||||
@click="lookBook(scope.row)"> 查看证书 </el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -57,9 +51,7 @@
|
|||||||
|
|
||||||
<!-- 弹窗 -->
|
<!-- 弹窗 -->
|
||||||
<el-dialog title="查看证书" v-model="isShowBook" width="80%">
|
<el-dialog title="查看证书" v-model="isShowBook" width="80%">
|
||||||
<div>
|
<div>证书</div>
|
||||||
证书
|
|
||||||
</div>
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="onCancelB">取消</el-button>
|
<el-button @click="onCancelB">取消</el-button>
|
||||||
@ -150,7 +142,7 @@ const columns = ref([
|
|||||||
{ prop: 'address', label: '地址' },
|
{ prop: 'address', label: '地址' },
|
||||||
|
|
||||||
{ prop: 'contactPhone', label: '联系电话', search: { el: 'input' } },
|
{ prop: 'contactPhone', label: '联系电话', search: { el: 'input' } },
|
||||||
{prop: 'businessLicenseUrl', label: '营业执照', width: '130px',},
|
{ prop: 'businessLicenseUrl', label: '营业执照', width: '130px' },
|
||||||
{
|
{
|
||||||
prop: 'auditStatus',
|
prop: 'auditStatus',
|
||||||
label: '审核状态',
|
label: '审核状态',
|
||||||
@ -262,7 +254,7 @@ const lookBook = async (row) => {
|
|||||||
const isShowAuditDialog = ref(false);
|
const isShowAuditDialog = ref(false);
|
||||||
const auditForm = reactive({
|
const auditForm = reactive({
|
||||||
status: 2, // 默认审核通过
|
status: 2, // 默认审核通过
|
||||||
remark: ''
|
remark: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
const showAuditDialog = () => {
|
const showAuditDialog = () => {
|
||||||
@ -280,7 +272,7 @@ const onSubmitAudit = async () => {
|
|||||||
const { succeeded, data } = await merchantcertificationAuditPost({
|
const { succeeded, data } = await merchantcertificationAuditPost({
|
||||||
ids: selectedListIds.value,
|
ids: selectedListIds.value,
|
||||||
status: auditForm.status,
|
status: auditForm.status,
|
||||||
remark: auditForm.remark
|
remark: auditForm.remark,
|
||||||
});
|
});
|
||||||
if (succeeded) {
|
if (succeeded) {
|
||||||
ElMessage.success('操作成功');
|
ElMessage.success('操作成功');
|
||||||
@ -297,7 +289,7 @@ const onDialogClose = () => {
|
|||||||
// 清理参数,避免下次查询时使用旧参数
|
// 清理参数,避免下次查询时使用旧参数
|
||||||
initParamUser.value = {
|
initParamUser.value = {
|
||||||
sysUserId: null,
|
sysUserId: null,
|
||||||
refresh: Date.now()
|
refresh: Date.now(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user