Feature/0723/zr #8

Merged
chenzhen merged 26 commits from feature/0723/ZR into release/0.01 2026-08-06 13:51:34 +08:00
Collaborator
No description provided.
zhurui added 15 commits 2026-08-05 17:57:51 +08:00
chenzhen reviewed 2026-08-05 18:08:34 +08:00
@@ -30,2 +30,2 @@
linkUrl: '',
area: '广东省深圳市',
params: 'EV20260701001',
area: '深圳市',
Owner

mock 删了

mock 删了
chenzhen reviewed 2026-08-05 18:08:43 +08:00
@@ -3,3 +3,3 @@
* GET /admin/finance/paymentFlow/page
*/
import type { PaymentFlowVO, PaymentFlowQueryParams, PageData } from '@/api/payments';
import type { PaymentFlowVO, PaymentFlowQueryParams, PaymentFlowPageData } from '@/api/payments';
Owner

this

this
chenzhen reviewed 2026-08-05 18:09:58 +08:00
chenzhen reviewed 2026-08-05 18:14:40 +08:00
@@ -514,0 +473,4 @@
name="title"
rules={[
{ required: true, message: '请输入' },
{ max: TITLE_MAX, message: `标题最多 ${TITLE_MAX} 个字符` },
Owner

这个抽离 到form 上

这个抽离 到form 上
chenzhen reviewed 2026-08-05 18:14:49 +08:00
@@ -534,0 +492,4 @@
{ required: true, message: '请上传 Banner 图片' },
{
validator: async () => {
if (formData.imageStatus === 'uploading') {
Owner

this

this
chenzhen reviewed 2026-08-05 18:15:08 +08:00
@@ -542,0 +552,4 @@
<Form.Item
label="跳转类型"
name="type"
rules={[{ required: true, message: '请选择跳转类型' }]}
Owner

this

this
chenzhen reviewed 2026-08-05 18:15:40 +08:00
@@ -542,0 +565,4 @@
{formData.type === '1' && (
<Form.Item label="关联赛事" name="relatedEventId">
<Select
v-model:value={formData.relatedEventId}
Owner

直接绑定表单 value 不就行了 这个tsx 为啥 还要用v-model

直接绑定表单 value 不就行了 这个tsx 为啥 还要用v-model
chenzhen reviewed 2026-08-05 18:15:52 +08:00
@@ -542,0 +596,4 @@
placeholder="https://xxx"
maxlength={URL_MAX}
allowClear
v-model:value={formData.linkUrl}
Owner

this v-model

this v-model
zhurui added 1 commit 2026-08-05 18:19:58 +08:00
chenzhen reviewed 2026-08-05 18:33:43 +08:00
@@ -174,0 +337,4 @@
setTimeout(() => {
formRef.value?.validateFields(['imageUrl']).catch(() => {});
}, 0);
};
Owner

const revalidateImageUrl = async() => {

await formRef.value?.validateFields(['imageUrl']).catch(() => {});

};

const revalidateImageUrl = async() => { await formRef.value?.validateFields(['imageUrl']).catch(() => {}); };
chenzhen reviewed 2026-08-05 18:35:18 +08:00
@@ -159,2 +141,2 @@
setAllData([]);
setTimeout(() => handleSearch(), 350);
pagination.reset();
setTimeout(fetchList, 350);
Owner

你这个也是 都做了 节流了 还加什么 setTimeout 直接一个await 不就行了吗

你这个也是 都做了 节流了 还加什么 setTimeout 直接一个await 不就行了吗
zhurui marked this conversation as resolved
chenzhen reviewed 2026-08-05 18:38:32 +08:00
@@ -66,0 +63,4 @@
key: 'idCard',
width: 180,
customRender: ({ record }: { record?: TournamentAdminInfoSignupVO }) =>
record?.idCard ? record.idCard : <span>-</span>,
Owner

--

--
chenzhen reviewed 2026-08-05 18:42:54 +08:00
@@ -38,3 +34,1 @@
}
});
onUnmounted(() => observer?.disconnect());
if (!el) return;
Owner

何必呢 const el = textRef.value;

何必呢 const el = textRef.value;
chenzhen reviewed 2026-08-05 18:44:38 +08:00
@@ -50,0 +82,4 @@
// 同步 total 到 pagination
useEffect(() => {
const total = (data.value as any)?.data?.total;
if (total !== undefined) pagination.setTotal(total);
Owner

!total

!total
chenzhen reviewed 2026-08-05 18:44:56 +08:00
@@ -137,2 +130,2 @@
setSummary({ totalPay: '0.00', totalRefund: '0.00' });
setTimeout(() => handleSearch(), 350);
pagination.reset();
setTimeout(fetchList, 350);
Owner

this

this
chenzhen reviewed 2026-08-05 18:48:22 +08:00
@@ -172,2 +169,2 @@
setSummary({ totalBalance: '0.00', frozenAmount: '0.00', totalWithdraw: '0.00' });
setTimeout(() => handleSearch(), 350);
pagination.reset();
setTimeout(fetchList, 350);
Owner

this

this
chenzhen reviewed 2026-08-05 18:49:23 +08:00
@@ -181,2 +235,3 @@
</span>
<TextArea
v-model={auditForm.remark}
v-model:value={auditForm.remark}
Owner

不要用 v-model

不要用 v-model
chenzhen reviewed 2026-08-05 18:50:15 +08:00
@@ -159,2 +191,2 @@
setDataSource([]);
setTimeout(() => handleSearch(), 350);
pagination.reset();
setTimeout(fetchList, 350);
Owner

直接await

直接await
chenzhen reviewed 2026-08-05 18:52:13 +08:00
@@ -98,0 +82,4 @@
useEffect(() => {
if (props.visible) {
initFormFromRecord(props.record);
setTimeout(() => formRef.value?.clearValidate(), 0);
Owner

this

this
zhurui added 3 commits 2026-08-06 09:54:30 +08:00
zhurui added 2 commits 2026-08-06 10:24:41 +08:00
zhurui added 2 commits 2026-08-06 10:47:44 +08:00
zhurui added 1 commit 2026-08-06 11:04:39 +08:00
zhurui added 2 commits 2026-08-06 11:57:42 +08:00
chenzhen merged commit 3b68bbe1c9 into release/0.01 2026-08-06 13:51:34 +08:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cpms_org/cpms_operation_platform#8