UDM用户看板

This commit is contained in:
lai
2025-03-26 20:38:51 +08:00
parent cef90a49f9
commit 35c7b86865
2 changed files with 16 additions and 9 deletions

View File

@@ -10,12 +10,19 @@
* *
*/ */
(function () { (function () {
// host = ip:port // baseUrl = protocol://ip:port
// const host = '192.168.8.100:33030'; // baseUrl = 'http://192.168.8.100:33030';
const host = `${window.location.hostname}:33030`; const protocol = window.location.protocol
let wsprotocol = "ws:"
const hostname = window.location.hostname
let host = `${hostname}:33030`;
if (protocol === 'https:') {
host = `${hostname}:33443`;
wsprotocol = "wss:"
}
// Service Address // Service Address
sessionStorage.setItem('baseUrl', `http://${host}`); sessionStorage.setItem('baseUrl', `${protocol}//${host}`);
// websocket Address // websocket Address
sessionStorage.setItem('wsUrl', `ws://${host}`); sessionStorage.setItem('wsUrl', `${wsprotocol}//${host}`);
})(); })();

View File

@@ -198,7 +198,7 @@ async function fnGetSkim() {
// UDM // UDM
listUDMSub({ neId: udmNeId.value, pageNum: 1, pageSize: 1 }).then(res => { listUDMSub({ neId: udmNeId.value, pageNum: 1, pageSize: 1 }).then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
skimState.udmSubNum = res.data.total; skimState.udmSubNum = res.total;
} }
}); });
} }
@@ -263,7 +263,7 @@ function fnSelectUDM(e: any) {
udmNeId.value = e.key; udmNeId.value = e.key;
listUDMSub({ neId: udmNeId.value, pageNum: 1, pageSize: 1 }).then(res => { listUDMSub({ neId: udmNeId.value, pageNum: 1, pageSize: 1 }).then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
skimState.udmSubNum = res.data.total; skimState.udmSubNum = res.total;
} }
}); });
} }