feat: 会议室查看
This commit is contained in:
@@ -127,10 +127,26 @@ function handleDownloadExcel() {
|
||||
);
|
||||
}
|
||||
|
||||
async function handleView(row: Required<CleanForm>) {
|
||||
function handleView(row: Required<CleanForm>) {
|
||||
modalApi.setData({ id: row.id, readonly: true });
|
||||
modalApi.open();
|
||||
}
|
||||
|
||||
function handleAudit(row:any) {
|
||||
// 审核逻辑
|
||||
// TODO: 实现审核功能
|
||||
console.log('审核', row);
|
||||
modalApi.setData({ id: row.id, readonly: true,audit:true });
|
||||
modalApi.open();
|
||||
}
|
||||
|
||||
function handleRefund(row:any) {
|
||||
// 退定逻辑
|
||||
// TODO: 实现退定功能
|
||||
console.log('退定', row);
|
||||
modalApi.setData({ id: row.id, readonly: true,refund:true });
|
||||
modalApi.open();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -170,26 +186,13 @@ async function handleView(row: Required<CleanForm>) {
|
||||
<template #action="{ row }">
|
||||
<Space>
|
||||
<ghost-button @click.stop="handleView(row)"> 查看 </ghost-button>
|
||||
<ghost-button
|
||||
v-access:code="['property:clean:edit']"
|
||||
@click.stop="handleEdit(row)"
|
||||
>
|
||||
{{ $t('pages.common.edit') }}
|
||||
</ghost-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getVxePopupContainer"
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="handleDelete(row)"
|
||||
>
|
||||
<ghost-button
|
||||
danger
|
||||
v-access:code="['property:clean:remove']"
|
||||
@click.stop=""
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</ghost-button>
|
||||
</Popconfirm>
|
||||
<template v-if="row.state === 0">
|
||||
<ghost-button type="primary" @click.stop="handleAudit(row)">审核</ghost-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<ghost-button danger @click.stop="handleRefund(row)" v-if="row.isUnbooking === 0">退定</ghost-button>
|
||||
<ghost-button disabled v-else>已退定</ghost-button>
|
||||
</template>
|
||||
</Space>
|
||||
</template>
|
||||
</BasicTable>
|
||||
|
Reference in New Issue
Block a user