|
@@ -505,7 +505,7 @@ const addCustomizationData = () => {
|
|
|
customFormula: '',
|
|
|
unit: '',
|
|
|
decimalDigits: undefined,
|
|
|
- paramGroupId: undefined,
|
|
|
+ paramGroupId: groupingList.value.length ? groupingList.value[0].id : undefined,
|
|
|
groupSerialNum: 1,
|
|
|
groupParamSerialNum: undefined,
|
|
|
isProcessData: false,
|
|
@@ -516,7 +516,7 @@ const addCustomizationData = () => {
|
|
|
decimalDigitsShow: false,
|
|
|
groupSerialNumShow: false,
|
|
|
paramGroupIdShow: false,
|
|
|
- paramGroupName: '',
|
|
|
+ paramGroupName: groupingList.value.length ? groupingList.value[0].groupName : '',
|
|
|
});
|
|
|
};
|
|
|
|
|
@@ -760,6 +760,10 @@ const finish = async () => {
|
|
|
throw new Error(t('createDevice.parameterEncodingRepeat'));
|
|
|
}
|
|
|
|
|
|
+ if (customizationData.value.some((item) => item.paramGroupName == '')) {
|
|
|
+ throw new Error(t('createDevice.groupNameEmpty'));
|
|
|
+ }
|
|
|
+
|
|
|
deviceParamGroups.value = [];
|
|
|
customParameters.value = [];
|
|
|
deviceGateways.value = [];
|