|
@@ -1,6 +1,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { onMounted, ref, useTemplateRef } from 'vue';
|
|
import { onMounted, ref, useTemplateRef } from 'vue';
|
|
|
|
|
|
|
|
+import ModalGuidance from '@/layout/ModalGuidance.vue';
|
|
import ConfirmModal from '@/components/ConfirmModal.vue';
|
|
import ConfirmModal from '@/components/ConfirmModal.vue';
|
|
import SvgIcon from '@/components/SvgIcon.vue';
|
|
import SvgIcon from '@/components/SvgIcon.vue';
|
|
import { useRequest } from '@/hooks/request';
|
|
import { useRequest } from '@/hooks/request';
|
|
@@ -14,6 +15,8 @@ import {
|
|
orgGatewayUnregister,
|
|
orgGatewayUnregister,
|
|
} from '@/api';
|
|
} from '@/api';
|
|
|
|
|
|
|
|
+import RegisterGateway from '../register-gateway/RegisterGateway.vue';
|
|
|
|
+
|
|
import type { DefaultOptionType, SelectValue } from 'ant-design-vue/es/select';
|
|
import type { DefaultOptionType, SelectValue } from 'ant-design-vue/es/select';
|
|
import type {
|
|
import type {
|
|
BatchUpdate,
|
|
BatchUpdate,
|
|
@@ -89,7 +92,7 @@ const listPhysicalInterfaces = ref<ListPhysicalInterfaces[]>([]);
|
|
const gatewayLinks = ref<BatchUpdate[]>([]);
|
|
const gatewayLinks = ref<BatchUpdate[]>([]);
|
|
// 添加选中状态
|
|
// 添加选中状态
|
|
const selectedRowId = ref<string | null>(null);
|
|
const selectedRowId = ref<string | null>(null);
|
|
-
|
|
|
|
|
|
+const modalGuidanceRef = useTemplateRef('modalGuidance');
|
|
const activeKey = ref();
|
|
const activeKey = ref();
|
|
const gatewayQuery = ref<GatewayQuery>({
|
|
const gatewayQuery = ref<GatewayQuery>({
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
@@ -267,6 +270,14 @@ const addSave = () => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const addGateway = () => {
|
|
|
|
+ modalGuidanceRef.value?.showView();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+const getProtocolData = () => {
|
|
|
|
+ getGatewayList();
|
|
|
|
+};
|
|
|
|
+
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
addGatewayList();
|
|
addGatewayList();
|
|
});
|
|
});
|
|
@@ -277,7 +288,7 @@ onMounted(() => {
|
|
<AFlex justify="space-between">
|
|
<AFlex justify="space-between">
|
|
<div class="text-top">{{ $t('navigation.gatewayManage') }}</div>
|
|
<div class="text-top">{{ $t('navigation.gatewayManage') }}</div>
|
|
<div>
|
|
<div>
|
|
- <AButton type="primary" class="icon-button">
|
|
|
|
|
|
+ <AButton type="primary" class="icon-button" @click="addGateway">
|
|
<AFlex align="center">
|
|
<AFlex align="center">
|
|
<SvgIcon name="plus" />
|
|
<SvgIcon name="plus" />
|
|
<span> {{ $t('common.add') }} </span>
|
|
<span> {{ $t('common.add') }} </span>
|
|
@@ -425,6 +436,9 @@ onMounted(() => {
|
|
</ACol>
|
|
</ACol>
|
|
</ARow>
|
|
</ARow>
|
|
</div>
|
|
</div>
|
|
|
|
+ <ModalGuidance ref="modalGuidance" @finish="getProtocolData">
|
|
|
|
+ <RegisterGateway />
|
|
|
|
+ </ModalGuidance>
|
|
<ConfirmModal
|
|
<ConfirmModal
|
|
ref="modalComponent"
|
|
ref="modalComponent"
|
|
:title="$t('common.deleteConfirmation')"
|
|
:title="$t('common.deleteConfirmation')"
|