Commit 5f8050782114b042f5c99ecd393dceb3391211fa

Authored by xp.Huang
2 parents daa5a5e7 fb4ddcbe

Merge branch 'fix/DEFECT-1831' into 'main_dev'

fix: 修复引用模版时未引用模版的平台类型

See merge request yunteng/thingskit-front!1131
... ... @@ -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(
... ...
... ... @@ -144,6 +144,7 @@ export const formSchema: FormSchema[] = [
144 144 { label: '移动端', value: Platform.PHONE },
145 145 ],
146 146 },
  147 + dynamicDisabled: ({ model }) => !!model?.enableTemplate,
147 148 },
148 149 {
149 150 field: 'enableTemplate', //前端控制
... ...
... ... @@ -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 },
... ...