2
0

Merge remote-tracking branch 'origin/main'

This commit is contained in:
zhongzm
2024-12-18 17:24:38 +08:00

View File

@@ -3,6 +3,7 @@ import { ref } from 'vue'
import type {TableColumnsType} from 'ant-design-vue'
import {WifiOutlined} from '@ant-design/icons-vue'
import {useI18n} from "vue-i18n";
import {clientAuth, clientInfo, clientUnAuth} from '@/service/ue/client';
const {t} = useI18n();
@@ -50,6 +51,28 @@ const deviceList = ref<DeviceInfo[]>([
speed: '8.1 Mbps'
}
])
/**
* 模拟测试上网
* @param type
*/
function clickBtn(type: string) {
if (type === "auth") {
clientAuth().then((res) => {
alert(JSON.stringify(res))
})
}
if (type === "unauth") {
clientUnAuth().then((res) => {
alert(JSON.stringify(res))
})
}
if (type === "info") {
clientInfo().then((res) => {
alert(JSON.stringify(res))
})
}
}
</script>
<template>
@@ -83,6 +106,13 @@ const deviceList = ref<DeviceInfo[]>([
>
</a-table>
</a-card>
<!-- 终端测试上网 -->
<a-space wrap>
<a-button type="primary" @click="clickBtn('auth')">终端上网</a-button>
<a-button @click="clickBtn('unauth')">终端下线</a-button>
<a-button type="dashed" @click="clickBtn('info')">终端信息</a-button>
</a-space>
</div>
</template>