Commit 5f8050782114b042f5c99ecd393dceb3391211fa
Merge branch 'fix/DEFECT-1831' into 'main_dev'
fix: 修复引用模版时未引用模版的平台类型 See merge request yunteng/thingskit-front!1131
Showing
3 changed files
with
2 additions
and
9 deletions
... | ... | @@ -152,11 +152,7 @@ |
152 | 152 | |
153 | 153 | const handleTemplateChange = async (_, option) => { |
154 | 154 | const { productAndDevice } = option; |
155 | - // if (!productAndDevice) return; | |
156 | - // selectOptions.value = productAndDevice?.map((item) => ({ | |
157 | - // label: item.profileName || item.name, | |
158 | - // value: item.profileId, | |
159 | - // })); | |
155 | + setFieldsValue({ platform: option?.platform }); | |
160 | 156 | await nextTick(); |
161 | 157 | // 赋值 |
162 | 158 | selectDeviceProfileRef.value?.setFieldsValue( | ... | ... |
... | ... | @@ -101,10 +101,6 @@ export const formSchema: FormSchema[] = [ |
101 | 101 | onPreview: (fileList: FileItem) => { |
102 | 102 | createImgPreview({ imageList: [fileList.url!] }); |
103 | 103 | }, |
104 | - // showUploadList: { | |
105 | - // showDownloadIcon: true, | |
106 | - // showRemoveIcon: true, | |
107 | - // }, | |
108 | 104 | }; |
109 | 105 | }, |
110 | 106 | }, | ... | ... |