主页登录页

master
code_nan 2024-01-15 21:30:37 +08:00
parent 48adb7ca3e
commit 6f92ef1360
13 changed files with 2263 additions and 2249 deletions

4487
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
window.GLOBAL_CONFIG = {
apiURL: "http://127.0.0.1:8889/face",
apiURL: "http://192.168.1.108:8889/face",
IMG_SERVER_URL: "http://192.168.1.133:9000",
SOCKET_URL: "ws://127.0.0.1:8889/face/webSocketServer",
rtspApi_URL: window.location.protocol + '//' + window.location.hostname + ':' + window.location.port,

BIN
src/assets/images/bg2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 KiB

BIN
src/assets/images/bg3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
src/assets/img/camera2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 KiB

0
src/mixins/resize.js Normal file
View File

View File

@ -112,3 +112,25 @@ export function replaceImgUrl(url) {
return url
}
}
export function debounce(func, wait, immediate) {
let timeout, args, context, timestamp, result
const later = function() {
// 据上一次触发时间间隔
const last = +new Date() - timestamp
// 上次被包装函数被调用时间间隔 last 小于设定时间间隔 wait
if (last < wait && last > 0) {
timeout = setTimeout(later, wait - last)
} else {
timeout = null
// 如果设定为immediate===true因为开始边界已经调用过了此处无需调用
if (!immediate) {
result = func.apply(context, args)
if (!timeout) context = args = null
}
}
}
}

View File

@ -98,6 +98,7 @@ export default {
count: '209'
}, {
id: '2',
name: '设备2',
count: '126'
}, {