Commit 088fef31edb1ca8331349332ae01749e49b4b48a
Merge branch 'ft' into 'main_dev'
fix: DEFECT-1567 场景联动未选择设备也新增成功了 See merge request yunteng/thingskit-front!867
Showing
2 changed files
with
4 additions
and
3 deletions
... | ... | @@ -57,7 +57,7 @@ export const formSchema: FormSchema[] = [ |
57 | 57 | valueField: 'fileList', |
58 | 58 | componentProps: () => { |
59 | 59 | return { |
60 | - // listType: 'picture-card', | |
60 | + listType: 'picture-card', | |
61 | 61 | maxFileLimit: 1, |
62 | 62 | api: async (file: File) => { |
63 | 63 | try { |
... | ... | @@ -73,7 +73,7 @@ export const formSchema: FormSchema[] = [ |
73 | 73 | return {}; |
74 | 74 | } |
75 | 75 | }, |
76 | - showUploadList: true, | |
76 | + // showUploadList: true, | |
77 | 77 | onDownload(file) { |
78 | 78 | console.log(file); |
79 | 79 | }, |
... | ... | @@ -91,7 +91,7 @@ export const formSchema: FormSchema[] = [ |
91 | 91 | component: 'Input', |
92 | 92 | componentProps: { |
93 | 93 | placeholder: '请输入大屏名称', |
94 | - maxLength: 255, | |
94 | + maxLength: 32, | |
95 | 95 | }, |
96 | 96 | }, |
97 | 97 | { | ... | ... |
... | ... | @@ -119,6 +119,7 @@ |
119 | 119 | } |
120 | 120 | if (validate.triggerType == undefined) return createMessage.error('请选择设备触发方式'); |
121 | 121 | if (validate.type1 == undefined) return createMessage.error('请选择属性触发方式'); |
122 | + if (validate.device == undefined) return createMessage.error('请选择设备'); | |
122 | 123 | if (validate.device == 'PART') { |
123 | 124 | if (validate.entityId == undefined) return createMessage.error('请选择设备'); |
124 | 125 | } | ... | ... |