|
@@ -279,9 +279,19 @@ const addMonitoringPoint = () => {
|
|
};
|
|
};
|
|
const addAllGatewayList = (value: number) => {
|
|
const addAllGatewayList = (value: number) => {
|
|
handleRequest(async () => {
|
|
handleRequest(async () => {
|
|
- const data = await getDeviceGroupList({
|
|
|
|
- parentId: value,
|
|
|
|
- });
|
|
|
|
|
|
+ let item;
|
|
|
|
+ if (value === -1) {
|
|
|
|
+ item = {
|
|
|
|
+ parentId: value,
|
|
|
|
+ haveChild: true,
|
|
|
|
+ };
|
|
|
|
+ } else {
|
|
|
|
+ item = {
|
|
|
|
+ parentId: value,
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const data = await getDeviceGroupList(item);
|
|
if (data.length) {
|
|
if (data.length) {
|
|
if (value === -1) {
|
|
if (value === -1) {
|
|
oneDeviceGroup.value = data;
|
|
oneDeviceGroup.value = data;
|