...
|
...
|
@@ -4,6 +4,7 @@ import { createImgPreview } from '/@/components/Preview'; |
4
|
4
|
import { uploadThumbnail } from '/@/api/configuration/center/configurationCenter';
|
5
|
5
|
import { useComponentRegister } from '/@/components/Form';
|
6
|
6
|
import { OrgTreeSelect } from '../../common/OrgTreeSelect';
|
|
7
|
+import { getDeviceProfile } from '/@/api/alarm/position';
|
7
|
8
|
|
8
|
9
|
useComponentRegister('OrgTreeSelect', OrgTreeSelect);
|
9
|
10
|
export enum Platform {
|
...
|
...
|
@@ -136,6 +137,24 @@ export const formSchema: FormSchema[] = [ |
136
|
137
|
component: 'OrgTreeSelect',
|
137
|
138
|
},
|
138
|
139
|
{
|
|
140
|
+ field: 'isTemplate',
|
|
141
|
+ label: '模版',
|
|
142
|
+ component: 'Switch',
|
|
143
|
+ defaultValue: 0,
|
|
144
|
+ },
|
|
145
|
+ {
|
|
146
|
+ field: 'productIds',
|
|
147
|
+ label: '产品',
|
|
148
|
+ component: 'ApiSelect',
|
|
149
|
+ required: true,
|
|
150
|
+ componentProps: {
|
|
151
|
+ api: getDeviceProfile,
|
|
152
|
+ mode: 'multiple',
|
|
153
|
+ labelField: 'name',
|
|
154
|
+ valueField: 'tbProfileId',
|
|
155
|
+ },
|
|
156
|
+ },
|
|
157
|
+ {
|
139
|
158
|
field: 'platform',
|
140
|
159
|
label: '平台',
|
141
|
160
|
required: true,
|
...
|
...
|
|