|
@@ -112,6 +112,8 @@ const getGatewayList = () => {
|
|
getObtainListInterfaces(gatewayData.value[0].modelId);
|
|
getObtainListInterfaces(gatewayData.value[0].modelId);
|
|
postLinkGetList(gatewayData.value[0].id);
|
|
postLinkGetList(gatewayData.value[0].id);
|
|
selectedRowId.value = String(gatewayData.value[0].id);
|
|
selectedRowId.value = String(gatewayData.value[0].id);
|
|
|
|
+ } else {
|
|
|
|
+ interfaceList.value = [];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -124,6 +126,7 @@ const addGatewayList = () => {
|
|
const addReset = () => {
|
|
const addReset = () => {
|
|
gatewayQuery.value.searchContent = '';
|
|
gatewayQuery.value.searchContent = '';
|
|
gatewayQuery.value.state = -1;
|
|
gatewayQuery.value.state = -1;
|
|
|
|
+ addGatewayList();
|
|
};
|
|
};
|
|
|
|
|
|
const rowClick = (record: GatewayListItem) => {
|
|
const rowClick = (record: GatewayListItem) => {
|
|
@@ -183,6 +186,8 @@ const postLinkGetList = (id: number) => {
|
|
interfaceList.value = interfaceOriginalData.value;
|
|
interfaceList.value = interfaceOriginalData.value;
|
|
activeKey.value = interfaceList.value[0].id;
|
|
activeKey.value = interfaceList.value[0].id;
|
|
getObtainListPhysicalInterfaces(interfaceList.value[0].interfaceId);
|
|
getObtainListPhysicalInterfaces(interfaceList.value[0].interfaceId);
|
|
|
|
+ } else {
|
|
|
|
+ interfaceList.value = [];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -370,6 +375,7 @@ onMounted(() => {
|
|
type="text"
|
|
type="text"
|
|
class="icon-button gateway-left-top-icon"
|
|
class="icon-button gateway-left-top-icon"
|
|
@click="gatewayEditor = true"
|
|
@click="gatewayEditor = true"
|
|
|
|
+ :disabled="!interfaceList.length"
|
|
>
|
|
>
|
|
<AFlex align="center">
|
|
<AFlex align="center">
|
|
<SvgIcon name="edit-o" />
|
|
<SvgIcon name="edit-o" />
|