|
@@ -0,0 +1,317 @@
|
|
|
+import { ZtTableColumnProps } from '/#/utils';
|
|
|
+import { FormSchema } from '/@/components/Table';
|
|
|
+
|
|
|
+/**
|
|
|
+ * 列表columns
|
|
|
+ */
|
|
|
+export const columns = [
|
|
|
+ {
|
|
|
+ title: '赛事名称',
|
|
|
+ dataIndex: 'roleName',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '封面',
|
|
|
+ dataIndex: 'roleCode',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '比赛时间',
|
|
|
+ dataIndex: 'createTime',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '比赛项目与价格',
|
|
|
+ dataIndex: 'createTime',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报名结束时间',
|
|
|
+ dataIndex: 'createTime',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+];
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '赛事名称',
|
|
|
+ component: 'Input',
|
|
|
+ colProps: { span: 6 },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: '',
|
|
|
+ label: '比赛项目',
|
|
|
+ component: 'Input',
|
|
|
+ colProps: { span: 6 },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: '',
|
|
|
+ label: '报名结束时间',
|
|
|
+ component: 'RangePicker',
|
|
|
+ colProps: { span: 8 },
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const formSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ field: 'title1',
|
|
|
+ slot: 'title1',
|
|
|
+ label: '',
|
|
|
+ component: 'Input',
|
|
|
+ labelWidth: 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '赛事名称',
|
|
|
+ component: 'Input',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 14,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'file',
|
|
|
+ label: '封面',
|
|
|
+ component: 'JImageUpload',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 18,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'fileimg',
|
|
|
+ label: '背景图',
|
|
|
+ component: 'JImageUpload',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 18,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '主办单位',
|
|
|
+ component: 'Input',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 14,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'time',
|
|
|
+ label: '报名结束时间',
|
|
|
+ component: 'DatePicker',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 14,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ componentProps: {
|
|
|
+ format: 'YYYY-MM-DD hh:mm:ss',
|
|
|
+ showTime: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'dirver',
|
|
|
+ slot: 'RangePicker',
|
|
|
+ label: '',
|
|
|
+ component: 'RangePicker',
|
|
|
+ labelWidth: 0,
|
|
|
+ colProps: {
|
|
|
+ span: 28,
|
|
|
+ xs: 28,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'RangePicker',
|
|
|
+ label: '比赛时间',
|
|
|
+ component: 'RangePicker',
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 14,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'ScheduleData1',
|
|
|
+ label: '赛程安排',
|
|
|
+ component: 'Input',
|
|
|
+ slot: 'ZtCustomTable1',
|
|
|
+ defaultValue: [],
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 18,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'title3',
|
|
|
+ slot: 'title3',
|
|
|
+ label: '',
|
|
|
+ component: 'RangePicker',
|
|
|
+ labelWidth: 0,
|
|
|
+ colProps: {
|
|
|
+ span: 28,
|
|
|
+ xs: 28,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'ScheduleData2',
|
|
|
+ label: '比赛项目与价格',
|
|
|
+ component: 'Input',
|
|
|
+ slot: 'ZtCustomTable2',
|
|
|
+ defaultValue: [],
|
|
|
+ required: true,
|
|
|
+ labelWidth: 120,
|
|
|
+ colProps: {
|
|
|
+ span: 14,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'address',
|
|
|
+ label: '比赛地点',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ labelWidth: 120,
|
|
|
+ required: true,
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '平台场地', value: 1 },
|
|
|
+ { label: '其他场地', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 24,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'address',
|
|
|
+ label: '平台场地',
|
|
|
+ component: 'Select',
|
|
|
+ labelWidth: 120,
|
|
|
+ required: true,
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '平台场地', value: 1 },
|
|
|
+ { label: '其他场地', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 16,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'address',
|
|
|
+ label: '图文说明',
|
|
|
+ component: 'JEditor',
|
|
|
+ labelWidth: 120,
|
|
|
+ required: true,
|
|
|
+ colProps: {
|
|
|
+ span: 16,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'title4',
|
|
|
+ slot: 'title4',
|
|
|
+ label: '',
|
|
|
+ component: 'RangePicker',
|
|
|
+ labelWidth: 0,
|
|
|
+ colProps: {
|
|
|
+ span: 28,
|
|
|
+ xs: 28,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'baoxain',
|
|
|
+ label: '配套保险',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ labelWidth: 120,
|
|
|
+ required: true,
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '平台场地', value: 1 },
|
|
|
+ { label: '其他场地', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 24,
|
|
|
+ xs: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const ScheduleArrangementColums: ZtTableColumnProps[] = [
|
|
|
+ {
|
|
|
+ title: '比赛项目',
|
|
|
+ key: 'Select',
|
|
|
+ dataIndex: 'project',
|
|
|
+ width: 220,
|
|
|
+ props: {
|
|
|
+ placeholder: '请选择比赛项目',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '时间段',
|
|
|
+ key: 'RangePicker',
|
|
|
+ dataIndex: 'time',
|
|
|
+ width: 450,
|
|
|
+ props: {
|
|
|
+ format: 'YYYY-MM-DD hh:mm:ss',
|
|
|
+ showTime: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '安排',
|
|
|
+ key: 'Input',
|
|
|
+ dataIndex: 'Schedule',
|
|
|
+ width: 220,
|
|
|
+ props: {
|
|
|
+ placeholder: '请输入',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'op',
|
|
|
+ dataIndex: 'operation',
|
|
|
+ title: 'operation',
|
|
|
+ fixed: 'right',
|
|
|
+ },
|
|
|
+];
|
|
|
+export const SchedulePricesColums: ZtTableColumnProps[] = [
|
|
|
+ {
|
|
|
+ title: '比赛项目',
|
|
|
+ key: 'Select',
|
|
|
+ dataIndex: 'project',
|
|
|
+ width: 220,
|
|
|
+ props: {
|
|
|
+ placeholder: '请选择比赛项目',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '价格',
|
|
|
+ key: 'InputNumber',
|
|
|
+ dataIndex: 'price',
|
|
|
+ width: 250,
|
|
|
+ props: {
|
|
|
+ step: 0.01,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'op',
|
|
|
+ dataIndex: 'operation',
|
|
|
+ title: 'operation',
|
|
|
+ fixed: 'right',
|
|
|
+ },
|
|
|
+];
|