f
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled

This commit is contained in:
2026-04-18 12:05:45 +08:00
parent e91a8f8664
commit beddbf97ee
6 changed files with 65 additions and 26 deletions

View File

@@ -58,18 +58,18 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
fieldName: 'title',
label: '通知标题',
componentProps: {
allowClear: true,
placeholder: '模糊匹配标题',
},
},
{
component: 'Select',
component: 'Input',
fieldName: 'notification_page',
label: '通知页面',
componentProps: {
allowClear: true,
options: [
{ label: '首页', value: 'home' },
{ label: '个人中心', value: 'profile' },
{ label: '订单页', value: 'order' },
],
placeholder: '模糊匹配路径',
},
},
{
@@ -79,8 +79,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
allowClear: true,
options: [
{ label: '启用', value: 'active' },
{ label: '禁用', value: 'inactive' },
{ label: '启用', value: 1 },
{ label: '禁用', value: 0 },
],
},
},
@@ -115,7 +115,7 @@ export function useColumns<T = NotificationApi.NotificationItem>(
width: 200,
},
{
field: 'show_date',
field: 'start_date',
title: '展示日期',
width: 300,
formatter: ({ row }) => {
@@ -125,7 +125,7 @@ export function useColumns<T = NotificationApi.NotificationItem>(
},
},
{
field: 'show_time',
field: 'start_time',
title: '展示时间',
width: 300,
formatter: ({ row }) => {