Showing
3 changed files
with
50 additions
and
4 deletions
| @@ -281,7 +281,6 @@ export const step1Schemas: FormSchema[] = [ | @@ -281,7 +281,6 @@ export const step1Schemas: FormSchema[] = [ | ||
| 281 | const result = await getGatewayDevice(params as any); | 281 | const result = await getGatewayDevice(params as any); |
| 282 | return result.map((item) => ({ ...item, alias: item.alias || item.name })); | 282 | return result.map((item) => ({ ...item, alias: item.alias || item.name })); |
| 283 | } catch (e) { | 283 | } catch (e) { |
| 284 | - console.error(e); | ||
| 285 | return []; | 284 | return []; |
| 286 | } | 285 | } |
| 287 | }, | 286 | }, |
| @@ -1000,7 +999,6 @@ export const CommandSchemas = ( | @@ -1000,7 +999,6 @@ export const CommandSchemas = ( | ||
| 1000 | const result = await getModelServices({ deviceProfileId }); | 999 | const result = await getModelServices({ deviceProfileId }); |
| 1001 | return result || []; | 1000 | return result || []; |
| 1002 | } catch (error) { | 1001 | } catch (error) { |
| 1003 | - console.error(error); | ||
| 1004 | return []; | 1002 | return []; |
| 1005 | } | 1003 | } |
| 1006 | }, | 1004 | }, |
| @@ -86,8 +86,7 @@ | @@ -86,8 +86,7 @@ | ||
| 86 | image: [{ uid: buildUUID(), name: 'name', url: v.image } as FileItem], | 86 | image: [{ uid: buildUUID(), name: 'name', url: v.image } as FileItem], |
| 87 | }); | 87 | }); |
| 88 | } | 88 | } |
| 89 | - const { image, ...params } = v; | ||
| 90 | - console.log(image, props.isUpdate); | 89 | + const { ...params } = v; |
| 91 | setFieldsValue({ ...params, category: params?.categoryId ? 1 : 2 }); | 90 | setFieldsValue({ ...params, category: params?.categoryId ? 1 : 2 }); |
| 92 | }; | 91 | }; |
| 93 | //获取数据 | 92 | //获取数据 |
src/views/device/profiles/step/index.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="en"> | ||
| 3 | + <head> | ||
| 4 | + <meta charset="UTF-8" /> | ||
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| 6 | + <title>Document</title> | ||
| 7 | + <style> | ||
| 8 | + body { | ||
| 9 | + padding: 50px; | ||
| 10 | + } | ||
| 11 | + | ||
| 12 | + section { | ||
| 13 | + width: 20px; | ||
| 14 | + height: 100px; | ||
| 15 | + overflow: hidden; | ||
| 16 | + display: flex; | ||
| 17 | + flex-direction: column; | ||
| 18 | + justify-content: center; | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + div { | ||
| 22 | + width: 20px; | ||
| 23 | + height: 50px; | ||
| 24 | + position: relative; | ||
| 25 | + background-color: aqua; | ||
| 26 | + border-top-right-radius: 10px; | ||
| 27 | + border-bottom-right-radius: 10px; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + div::before { | ||
| 31 | + position: absolute; | ||
| 32 | + width: 20px; | ||
| 33 | + height: 30px; | ||
| 34 | + top: -28px; | ||
| 35 | + left: 0; | ||
| 36 | + content: ''; | ||
| 37 | + pointer-events: none; | ||
| 38 | + border-radius: 0 0 0 15px; | ||
| 39 | + box-shadow: -10px 0 0 0 aqua; | ||
| 40 | + } | ||
| 41 | + </style> | ||
| 42 | + </head> | ||
| 43 | + | ||
| 44 | + <body> | ||
| 45 | + <section> | ||
| 46 | + <div> </div> | ||
| 47 | + </section> | ||
| 48 | + </body> | ||
| 49 | +</html> |