From 09a22a3113a05de7f6f367b715b4ad2496e67d96 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 3 Apr 2025 21:18:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20data.ts=20=E6=8C=89=E7=85=A7=20fieldName?= =?UTF-8?q?=E3=80=81label=E3=80=81component=E3=80=81rules=E3=80=81dependen?= =?UTF-8?q?cies=20=E8=BF=99=E6=A0=B7=E7=9A=84=E9=A1=BA=E5=BA=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/sms/channel/data.ts | 4 ++-- apps/web-antd/src/views/system/sms/template/data.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/web-antd/src/views/system/sms/channel/data.ts b/apps/web-antd/src/views/system/sms/channel/data.ts index 231831109..d7cda29f7 100644 --- a/apps/web-antd/src/views/system/sms/channel/data.ts +++ b/apps/web-antd/src/views/system/sms/channel/data.ts @@ -10,18 +10,18 @@ import { DICT_TYPE, getDictOptions } from '#/utils/dict'; export function useFormSchema(): VbenFormSchema[] { return [ { - component: 'Input', fieldName: 'id', label: 'id', + component: 'Input', dependencies: { triggerFields: [''], show: () => false, }, }, { - component: 'Input', fieldName: 'signature', label: '短信签名', + component: 'Input', rules: 'required', }, { diff --git a/apps/web-antd/src/views/system/sms/template/data.ts b/apps/web-antd/src/views/system/sms/template/data.ts index 226d75a59..1d197ec84 100644 --- a/apps/web-antd/src/views/system/sms/template/data.ts +++ b/apps/web-antd/src/views/system/sms/template/data.ts @@ -11,9 +11,9 @@ import { DICT_TYPE, getDictOptions } from '#/utils/dict'; export function useFormSchema(): VbenFormSchema[] { return [ { - component: 'Input', fieldName: 'id', label: 'id', + component: 'Input', dependencies: { triggerFields: [''], show: () => false, @@ -30,15 +30,15 @@ export function useFormSchema(): VbenFormSchema[] { rules: 'required', }, { - component: 'Input', fieldName: 'name', label: '模板名称', + component: 'Input', rules: 'required', }, { - component: 'Input', fieldName: 'code', label: '模板编码', + component: 'Input', rules: 'required', }, { @@ -65,15 +65,15 @@ export function useFormSchema(): VbenFormSchema[] { rules: z.number().default(CommonStatusEnum.ENABLE), }, { - component: 'Textarea', fieldName: 'content', label: '模板内容', + component: 'Textarea', rules: 'required', }, { - component: 'Input', fieldName: 'apiTemplateId', label: '短信 API 的模板编号', + component: 'Input', }, { fieldName: 'remark', @@ -140,9 +140,9 @@ export function useGridFormSchema(): VbenFormSchema[] { export function useSendSmsFormSchema(): VbenFormSchema[] { return [ { - component: 'Input', fieldName: 'mobile', label: '手机号码', + component: 'Input', rules: 'required', }, {