wy
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -9,19 +11,19 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '会议室id',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
options: getDictOptions('wy_yyzt'),
|
||||
},
|
||||
fieldName: 'bookingStatus',
|
||||
label: '预约状态',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
options: getDictOptions('wy_shzt'),
|
||||
},
|
||||
fieldName: 'reviewStatus',
|
||||
label: '审核状态',
|
||||
@@ -101,21 +103,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'checkInEndTime',
|
||||
label: '签到结束时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'approver',
|
||||
label: '审批人',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'approverTime',
|
||||
label: '审批时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'evaluate',
|
||||
@@ -123,17 +110,19 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'addServices',
|
||||
label: '是否需要增值服务',
|
||||
fieldName: 'remark',
|
||||
label: '备注',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
options: getDictOptions('sys_yes_no'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
fieldName: 'dataStatus',
|
||||
label: '数据状态',
|
||||
fieldName: 'addServices',
|
||||
label: '是否需要增值服务',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -141,10 +130,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '会议室id',
|
||||
field: 'tbConferenceId',
|
||||
@@ -152,10 +137,22 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '预约状态',
|
||||
field: 'bookingStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
return renderDict(row.bookingStatus, 'wy_yyzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '审核状态',
|
||||
field: 'reviewStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
return renderDict(row.reviewStatus, 'wy_shzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '会议预订人',
|
||||
@@ -197,14 +194,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '签到结束时间',
|
||||
field: 'checkInEndTime',
|
||||
},
|
||||
{
|
||||
title: '审批人',
|
||||
field: 'approver',
|
||||
},
|
||||
{
|
||||
title: '审批时间',
|
||||
field: 'approverTime',
|
||||
},
|
||||
{
|
||||
title: '评价',
|
||||
field: 'evaluate',
|
||||
@@ -216,10 +205,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '是否需要增值服务',
|
||||
field: 'addServices',
|
||||
},
|
||||
{
|
||||
title: '数据状态',
|
||||
field: 'dataStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
return renderDict(row.addServices, 'sys_yes_no');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
@@ -249,20 +240,20 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '预约状态',
|
||||
fieldName: 'bookingStatus',
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
options: getDictOptions('wy_yyzt'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '审核状态',
|
||||
fieldName: 'reviewStatus',
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
options: getDictOptions('wy_shzt'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
@@ -321,6 +312,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '参会人员',
|
||||
fieldName: 'attendeesName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '参会人数',
|
||||
@@ -350,45 +342,28 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '审批人',
|
||||
fieldName: 'approver',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '审批时间',
|
||||
fieldName: 'approverTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '评价',
|
||||
fieldName: 'evaluate',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '备注',
|
||||
fieldName: 'remark',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '是否需要增值服务',
|
||||
fieldName: 'addServices',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态',
|
||||
fieldName: 'dataStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
options: getDictOptions('sys_yes_no'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user