Commit 5b0be6fcef05d14bec1d812a48ab2cd07df26d5a

Authored by xp.Huang
2 parents dd8b654b 41a9829d

Merge branch 'local_dev_branch_by_ft' into 'main_dev'

feat: 组态新增一个字段 codeType

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