1
|
1
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
2
|
|
-import { emailRule, phoneRule } from '/@/utils/rules';
|
|
2
|
+import { dingRule, emailRule, phoneRule } from '/@/utils/rules';
|
3
|
3
|
import { useComponentRegister } from '/@/components/Form';
|
4
|
4
|
import { OrgTreeSelect } from '../../common/OrgTreeSelect';
|
5
|
5
|
useComponentRegister('OrgTreeSelect', OrgTreeSelect);
|
...
|
...
|
@@ -31,6 +31,11 @@ export const columns: BasicColumn[] = [ |
31
|
31
|
width: 180,
|
32
|
32
|
},
|
33
|
33
|
{
|
|
34
|
+ title: '钉钉',
|
|
35
|
+ dataIndex: 'dingtalk',
|
|
36
|
+ width: 160,
|
|
37
|
+ },
|
|
38
|
+ {
|
34
|
39
|
title: '备注',
|
35
|
40
|
dataIndex: 'remark',
|
36
|
41
|
width: 120,
|
...
|
...
|
@@ -109,6 +114,17 @@ export const formSchema: FormSchema[] = [ |
109
|
114
|
},
|
110
|
115
|
},
|
111
|
116
|
{
|
|
117
|
+ field: 'dingtalk',
|
|
118
|
+ label: '钉钉',
|
|
119
|
+ component: 'Input',
|
|
120
|
+ helpMessage: '请输入与钉钉相关联的手机号',
|
|
121
|
+ rules: dingRule,
|
|
122
|
+ componentProps: {
|
|
123
|
+ placeholder: '不填默认为手机号码',
|
|
124
|
+ maxLength: 11,
|
|
125
|
+ },
|
|
126
|
+ },
|
|
127
|
+ {
|
112
|
128
|
field: 'remark',
|
113
|
129
|
label: '备注',
|
114
|
130
|
component: 'InputTextArea',
|
...
|
...
|
|