config.ts
2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import { BasicColumn, FormSchema } from '/@/components/Table';
import { transformTime } from '/@/hooks/web/useDateToLocaleString';
import { h } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const columns: BasicColumn[] = [
{
title: t('common.createTimeText'),
dataIndex: 'createdTime',
width: 200,
format: (_text: string, record: Recordable) => {
return transformTime(record.createdTime);
},
},
{
title: t('tenant.config.form.name'),
dataIndex: 'name',
width: 200,
},
{
title: t('tenant.config.form.illustrate'),
dataIndex: 'description',
width: 120,
},
{
title: t('tenant.config.form.default'),
dataIndex: 'default',
width: 200,
format: (_text: string, record: Recordable) => {
return record.default == false ? t('common.noText') : t('common.yesText');
},
},
];
export const searchFormSchema: FormSchema[] = [
{
field: 'textSearch',
label: t('tenant.config.form.tenantConfigName'),
colProps: { span: 6 },
component: 'Input',
componentProps: {
maxLength: 255,
},
},
];
export const formSchema: FormSchema[] = [
{
field: 'name',
label: t('tenant.config.form.name'),
colProps: { span: 24 },
required: true,
component: 'Input',
componentProps: {
maxLength: 255,
},
},
// {
// field: 'isolatedTbRuleEngine',
// label: '',
// component: 'Checkbox',
// ifShow: false,
// renderComponentContent: () => {
// return h('span', {}, [
// h('span', {}, '隔离板芯容器中的加工'),
// h('span', { style: { color: 'grey' } }, '(每个独立租户需要单独的微服务)'),
// ]);
// },
// },
// {
// field: 'isolatedTbCore',
// label: '',
// component: 'Checkbox',
// ifShow: false,
// renderComponentContent: () => {
// return h('span', {}, [
// h('span', {}, '在独立的规则引擎中处理'),
// h('span', { style: { color: 'grey' } }, '(每个独立租户需要单独的微服务)'),
// ]);
// },
// },
{
field: 'isolatedTbRuleEngine',
label: '',
component: 'Checkbox',
// ifShow: false,
renderComponentContent: () => {
return h('span', {}, [
h('span', {}, '使用独立的规则引擎服务'),
h('span', { style: { color: 'grey' } }, '每个独立租户需要单独的规则引擎微服务'),
]);
},
slot: 'isolatedTbRuleEngine',
},
{
field: 'description',
label: t('tenant.config.form.illustrate'),
colProps: { span: 24 },
component: 'InputTextArea',
componentProps: {
maxLength: 255,
},
},
];