...
|
...
|
@@ -25,9 +25,7 @@ export const formSchemas = (componentKey?: string): FormSchema[] => { |
25
|
25
|
required: !!isTemplate,
|
26
|
26
|
componentProps: ({ formModel }) => {
|
27
|
27
|
return {
|
28
|
|
- options: (unref(contentDataStore.getProductAndDevice) || []).map((item: ProductAndDevice) => ({ label: item.name, value: item.profileId })),
|
29
|
|
- // labelField: 'name',
|
30
|
|
- // valueField: 'profileId',
|
|
28
|
+ options: (unref(contentDataStore.getProductAndDevice) || []).map((item: ProductAndDevice) => ({ label: item.profileName || item.name, value: item.profileId })),
|
31
|
29
|
placeholder: '请选择产品',
|
32
|
30
|
onSelect(value: string) {
|
33
|
31
|
formModel[ContentDataFieldsEnum.DEVICE_PROFILE_ID] = value
|
...
|
...
|
|