Commit 5860e087294e7b6a80b8699592b3afc960868038
Merge branch 'dev-ww' into 'main'
perf: device list create device add alias field See merge request huang/yun-teng-iot-front!391
Showing
2 changed files
with
10 additions
and
2 deletions
@@ -22,12 +22,20 @@ export const step1Schemas: FormSchema[] = [ | @@ -22,12 +22,20 @@ export const step1Schemas: FormSchema[] = [ | ||
22 | label: '设备名称', | 22 | label: '设备名称', |
23 | required: true, | 23 | required: true, |
24 | component: 'Input', | 24 | component: 'Input', |
25 | + colProps: { span: 14 }, | ||
25 | componentProps: { | 26 | componentProps: { |
26 | placeholder: '设备名称', | 27 | placeholder: '设备名称', |
27 | maxLength: 30, | 28 | maxLength: 30, |
28 | }, | 29 | }, |
29 | }, | 30 | }, |
30 | { | 31 | { |
32 | + field: 'alias', | ||
33 | + label: '别名 ', | ||
34 | + component: 'Input', | ||
35 | + labelWidth: 60, | ||
36 | + colProps: { span: 10 }, | ||
37 | + }, | ||
38 | + { | ||
31 | field: 'sn', | 39 | field: 'sn', |
32 | label: 'SN码', | 40 | label: 'SN码', |
33 | component: 'Input', | 41 | component: 'Input', |
@@ -53,8 +53,8 @@ | @@ -53,8 +53,8 @@ | ||
53 | </template> | 53 | </template> |
54 | <template #name="{ record }"> | 54 | <template #name="{ record }"> |
55 | <div> | 55 | <div> |
56 | - <Tooltip :title="record.name" placement="topRight"> | ||
57 | - {{ record.name.slice(0, 13) }} | 56 | + <Tooltip :title="record.alias || record.name" placement="topRight"> |
57 | + {{ record.alias || record.name.slice(0, 13) }} | ||
58 | </Tooltip> | 58 | </Tooltip> |
59 | </div> | 59 | </div> |
60 | <Tooltip title="设备SN码" placement="topRight"> | 60 | <Tooltip title="设备SN码" placement="topRight"> |