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

pull/134/head
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) { async function beforeUpload(file: File) {
// 使Blob.text()FileReader
const fileContent = await file.text(); const fileContent = await file.text();
emit('returnText', fileContent); emit('returnText', fileContent);

View File

@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
// TODO @xingyu pay file-upload image-upload pay
import type { InputProps, TextAreaProps } from 'ant-design-vue'; import type { InputProps, TextAreaProps } from 'ant-design-vue';
import type { FileUploadProps } from './typing'; import type { FileUploadProps } from './typing';

View File

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

View File

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

View File

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

View File

@ -9,6 +9,7 @@ export function getPopupContainer(node?: HTMLElement): HTMLElement {
); );
} }
// TODO @xingyu这个需要 pr 给 vben 官方么?体感上,这个是全局性的哈;
/** /**
* VxeTable * VxeTable
* : https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IB1DM3 * : https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IB1DM3