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 | 22 | label: '设备名称', |
23 | 23 | required: true, |
24 | 24 | component: 'Input', |
25 | + colProps: { span: 14 }, | |
25 | 26 | componentProps: { |
26 | 27 | placeholder: '设备名称', |
27 | 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 | 39 | field: 'sn', |
32 | 40 | label: 'SN码', |
33 | 41 | component: 'Input', | ... | ... |
... | ... | @@ -53,8 +53,8 @@ |
53 | 53 | </template> |
54 | 54 | <template #name="{ record }"> |
55 | 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 | 58 | </Tooltip> |
59 | 59 | </div> |
60 | 60 | <Tooltip title="设备SN码" placement="topRight"> | ... | ... |