邓洁: 用户管理接口

This commit is contained in:
邓洁
2023-12-22 23:11:01 +08:00
parent 1cb5c6c258
commit 56f954e354
7 changed files with 372 additions and 144 deletions

View File

@@ -85,6 +85,7 @@ const selectIndex = ref(-1);
const showFan = ref(false);
const drawerLeft = ref(true);
const drawerRight = ref(true);
const currentSiteId = ref(0);
const currentSite = ref("");
const siteList = ref([])
const currentUser = ref("");
@@ -123,6 +124,7 @@ const getOtherInfo = () => {
getLargeScreenInfo().then((res) => {
if (res?.code === 1000) {
routeList.value = res.data.routeList
currentSiteId.value = res.data.siteOption[0].value
currentSite.value = res.data.siteOption[0].label
siteList.value = res.data.siteOption
tunnelId.value = res.data.tunnelOption[0].value
@@ -165,13 +167,12 @@ const manageSelect = (index) => {
if (index === 0) {
router.push("/site");
} else if (index === 1) {
router.push("/tunnel/1");
router.push("/tunnel/"+tunnelId.value);
} else if (index === 2) {
router.push("/user");
router.push("/user/"+currentSiteId.value);
}
};
const handleCommand = (item) => {
console.log('commads', item)
currentSite.value = item.label
getTunnel(item.value)
}