code review:优化收银台的实现,解决 TODO

This commit is contained in:
YunaiV
2023-08-10 23:30:37 +08:00
parent 551ebbd41d
commit 7625e6757c
8 changed files with 55 additions and 184 deletions

View File

@ -54,15 +54,6 @@
>
<Icon icon="ep:plus" class="mr-5px" /> 新增
</el-button>
<el-button
type="success"
plain
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['system:tenant:export']"
>
<Icon icon="ep:download" class="mr-5px" /> 导出
</el-button>
</el-form-item>
</el-form>
</ContentWrap>
@ -392,20 +383,6 @@ const handleDelete = async (id: number) => {
} catch {}
}
/** 导出按钮操作 */
const handleExport = async () => {
try {
// 导出的二次确认
await message.exportConfirm()
// 发起导出
exportLoading.value = true
const data = await AppApi.exportApp(queryParams)
download.excel(data, '支付应用信息.xls')
} finally {
exportLoading.value = false
}
}
/**
* 根据渠道编码判断渠道列表中是否存在
*