Commit 5b0be6fcef05d14bec1d812a48ab2cd07df26d5a
Merge branch 'local_dev_branch_by_ft' into 'main_dev'
feat: 组态新增一个字段 codeType See merge request yunteng/thingskit-front!977
Showing
2 changed files
with
5 additions
and
3 deletions
... | ... | @@ -46,6 +46,7 @@ |
46 | 46 | deviceProfileId: props.value.value, |
47 | 47 | }); |
48 | 48 | selectOptions.value = resp.map((item) => ({ |
49 | + ...item, | |
49 | 50 | label: item.alias || item.name, |
50 | 51 | value: item.tbDeviceId, |
51 | 52 | })); |
... | ... | @@ -76,6 +77,7 @@ |
76 | 77 | tempDeviceList.push({ |
77 | 78 | name: newItem.label, |
78 | 79 | deviceId: newItem.value, |
80 | + codeType: newItem.codeType, | |
79 | 81 | }); |
80 | 82 | } |
81 | 83 | }); | ... | ... |
... | ... | @@ -30,7 +30,7 @@ export const PHONE_DEFAULT_CONTENT = |
30 | 30 | // 表格列数据 |
31 | 31 | export const columns: BasicColumn[] = [ |
32 | 32 | { |
33 | - title: '组态名称', | |
33 | + title: '模板名称', | |
34 | 34 | dataIndex: 'name', |
35 | 35 | width: 120, |
36 | 36 | }, |
... | ... | @@ -73,12 +73,12 @@ export const columns: BasicColumn[] = [ |
73 | 73 | export const searchFormSchema: FormSchema[] = [ |
74 | 74 | { |
75 | 75 | field: 'name', |
76 | - label: '组态名称', | |
76 | + label: '模板名称', | |
77 | 77 | component: 'Input', |
78 | 78 | colProps: { span: 8 }, |
79 | 79 | componentProps: { |
80 | 80 | maxLength: 36, |
81 | - placeholder: '请输入组态名称', | |
81 | + placeholder: '请输入模板名称', | |
82 | 82 | }, |
83 | 83 | }, |
84 | 84 | ]; | ... | ... |