review:【ANTD】【Pay 支付】chihuo 关于支付应用、订单的提交

This commit is contained in:
YunaiV
2025-06-07 19:53:14 +08:00
parent acc65c3b06
commit 013f3f3d2d
6 changed files with 7 additions and 1 deletions

View File

@@ -100,7 +100,6 @@ async function handleRemove(file: UploadFile) {
}
async function beforeUpload(file: File) {
// 使用现代的Blob.text()方法替代FileReader
const fileContent = await file.text();
emit('returnText', fileContent);

View File

@@ -1,4 +1,5 @@
<script setup lang="ts">
// TODO @xingyu这个组件只有 pay 在用,和现有的 file-upload 和 image-upload 有点不一致。是不是可以考虑移除,只在 pay 那搞个复用的组件;
import type { InputProps, TextAreaProps } from 'ant-design-vue';
import type { FileUploadProps } from './typing';

View File

@@ -162,6 +162,7 @@ export function useGridColumns<T = PayAppApi.App>(
},
];
}
/** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] {
return [

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu是不是不引入 @form-create/ant-design-vue 组件哈;保持和 vben 一致~
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { PayAppApi } from '#/api/pay/app';
@@ -139,6 +140,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<DocAlert title="支付功能开启" url="https://doc.iocoder.cn/pay/build/" />
</template>
<!-- TODO @xingyu建议和别的一致Modal => FormModal -->
<AppModal @success="onRefresh" />
<ChannelModal @success="onRefresh" />
@@ -281,6 +283,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
/>
</template>
<template #alipayBarConfig="{ row }">
<!-- TODO @xingyu建议用小图标 -->
<TableAction
:actions="[
{

View File

@@ -159,6 +159,7 @@ const [Modal, modalApi] = useVbenModal({
},
});
</script>
<!-- TODO @xingyu支付宝的证书也是支持上传的哈 -->
<template>
<Modal :close-on-click-modal="false" :title="title" class="w-[40%]">
<Form :schema="channelSchema(formType)" />