Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI推理平台
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lichunliang
AI推理平台
Commits
63039b5f
Commit
63039b5f
authored
Apr 10, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭回放按钮
parent
1043d9f6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
180 additions
and
194 deletions
+180
-194
.env
.env
+6
-6
.gitignore
.gitignore
+1
-0
dist248.zip
dist248.zip
+0
-0
index.ts
src/api/index.ts
+171
-186
index.vue
src/views/AlarmCenter/AlarmLog/index.vue
+2
-2
No files found.
.env
View file @
63039b5f
...
...
@@ -68,9 +68,9 @@ VITE_STORAGE_PREFIX=SOY_
# VITE_SERVICE_URL=http://192.168.2.16:9998
## 开发环境(黄国安)
#
VITE_VIDEO_URL=ws://192.168.2.14:9999
#
VITE_WEBSOCKET_URL=ws://192.168.2.14:9999
#
VITE_SERVICE_URL=http://192.168.2.14:9998
VITE_VIDEO_URL=ws://192.168.2.14:9999
VITE_WEBSOCKET_URL=ws://192.168.2.14:9999
VITE_SERVICE_URL=http://192.168.2.14:9998
# # 测试环境(测试机)
...
...
@@ -84,9 +84,9 @@ VITE_STORAGE_PREFIX=SOY_
# VITE_SERVICE_URL=http://192.168.3.248:9998
# # 华远正式环境(外网)
VITE_VIDEO_URL=ws://220.194.146.65:9999
VITE_WEBSOCKET_URL=ws://220.194.146.65:9999
VITE_SERVICE_URL=http://220.194.146.65:9996
#
VITE_VIDEO_URL=ws://220.194.146.65:9999
#
VITE_WEBSOCKET_URL=ws://220.194.146.65:9999
#
VITE_SERVICE_URL=http://220.194.146.65:9996
# # 华远正式环境(内网)
...
...
.gitignore
View file @
63039b5f
...
...
@@ -33,3 +33,4 @@ package-lock.json
yarn.lock
.VSCodeCounter
*.rar
dist248.zip
deleted
100644 → 0
View file @
1043d9f6
File deleted
src/api/index.ts
View file @
63039b5f
import
{
extend
}
from
'
dayjs
'
;
import
axios
from
'
axios
'
;
import
type
{
IArea
,
ItablePagination
}
from
'
../views/AlgorithmConfiguration/index
'
;
import
{
localStg
}
from
'
@/utils/storage
'
;
import
{
useRouter
}
from
'
vue-router
'
;
import
{
useMessage
}
from
'
naive-ui
'
;
import
{
Windows
}
from
'
@vicons/fa
'
;
axios
.
defaults
.
baseURL
=
'
/v1
'
;
import
{
extend
}
from
"
dayjs
"
;
import
axios
from
"
axios
"
;
import
type
{
IArea
,
ItablePagination
,
}
from
"
../views/AlgorithmConfiguration/index
"
;
import
{
localStg
}
from
"
@/utils/storage
"
;
import
{
useRouter
}
from
"
vue-router
"
;
import
{
useMessage
}
from
"
naive-ui
"
;
import
{
Windows
}
from
"
@vicons/fa
"
;
axios
.
defaults
.
baseURL
=
"
/v1
"
;
const
router
=
useRouter
();
const
message
=
useMessage
();
...
...
@@ -16,24 +18,18 @@ const message = useMessage();
// return window.href = '/login';
// };
const
gloabalReqErrorMsg
=
(
e
)
=>
{
switch
(
e
.
code
)
{
case
"
ERR_BAD_REQUEST
"
:
return
window
.
$message
.
error
(
"
权限过期!
"
)
return
window
.
$message
.
error
(
"
权限过期!
"
)
;
}
};
axios
.
interceptors
.
request
.
use
(
(
req
)
=>
{
let
token
=
localStg
.
get
(
"
token
"
);
}
axios
.
interceptors
.
request
.
use
((
req
)
=>
{
let
token
=
localStg
.
get
(
'
token
'
);
if
(
token
)
req
.
headers
[
'
token
'
]
=
`
${
token
}
`
;
if
(
token
)
req
.
headers
[
"
token
"
]
=
`
${
token
}
`
;
// let whiteRouteList = ['login']
...
...
@@ -42,71 +38,82 @@ axios.interceptors.request.use((req) => {
// }
return
req
;
},
(
e
)
=>
Promise
.
reject
(
e
));
},
(
e
)
=>
Promise
.
reject
(
e
),
);
axios
.
interceptors
.
response
.
use
((
res
)
=>
{
console
.
log
(
'
------------------------- res
'
,
res
)
axios
.
interceptors
.
response
.
use
(
(
res
)
=>
{
if
(
res
.
status
===
401
)
{
location
.
href
=
'
http://yj.hylgzl.com/login
'
;
// 山西华远大屏
location
.
href
=
"
http://yj.hylgzl.com/login
"
;
// 山西华远大屏
// window.location.href = '/login'
};
}
return
res
;
},
(
e
)
=>
{
},
(
e
)
=>
{
// window.location.href = '/login'
console
.
log
(
'
250227
'
,
e
)
window
.
location
.
href
=
"
http://yj.hylgzl.com/login
"
;
});
},
);
// 区域 - 查
export
const
api_getAreaNode
=
async
():
Promise
<
any
>
=>
await
axios
.
get
(
'
/menus/tree
'
);
export
const
api_getAreaNode
=
async
():
Promise
<
any
>
=>
await
axios
.
get
(
"
/menus/tree
"
);
// 区域 - 增
export
const
api_addAreaNode
=
async
(
data
:
IArea
):
Promise
<
any
>
=>
await
axios
.
post
(
'
/menus
'
,
data
);
export
const
api_addAreaNode
=
async
(
data
:
IArea
):
Promise
<
any
>
=>
await
axios
.
post
(
"
/menus
"
,
data
);
// 区域 - 改
export
const
api_modifyAreaNode
=
async
(
data
:
IArea
):
Promise
<
any
>
=>
await
axios
.
put
(
'
/menus
'
,
data
);
export
const
api_modifyAreaNode
=
async
(
data
:
IArea
):
Promise
<
any
>
=>
await
axios
.
put
(
"
/menus
"
,
data
);
// 区域 - 删
export
const
api_deleteAreaNode
=
async
(
id
:
number
|
string
):
Promise
<
any
>
=>
await
axios
.
delete
(
`/menus/
${
id
}
`
);
export
const
api_deleteAreaNode
=
async
(
id
:
number
|
string
):
Promise
<
any
>
=>
await
axios
.
delete
(
`/menus/
${
id
}
`
);
// 区域 = 查
export
const
api_getCameras
=
async
():
Promise
<
any
>
=>
await
axios
.
get
(
`/menus`
);
export
const
api_getCameras
=
async
():
Promise
<
any
>
=>
await
axios
.
get
(
`/menus`
);
// 摄像头 - 查
export
const
api_getCameraList
=
async
(
params
:
ItablePagination
):
Promise
<
any
>
=>
await
axios
.
get
(
`/cameras/page`
,
{
params
});
export
const
api_getCameraList
=
async
(
params
:
ItablePagination
,
):
Promise
<
any
>
=>
await
axios
.
get
(
`/cameras/page`
,
{
params
});
// 摄像头 - 增
export
const
api_addCameras
=
async
(
data
:
any
):
Promise
<
any
>
=>
await
axios
.
post
(
`/cameras`
,
data
);
export
const
api_addCameras
=
async
(
data
:
any
):
Promise
<
any
>
=>
await
axios
.
post
(
`/cameras`
,
data
);
// 摄像头 - 改
export
const
api_modifyCameras
=
async
(
data
:
any
):
Promise
<
any
>
=>
await
axios
.
put
(
`/cameras`
,
data
);
export
const
api_modifyCameras
=
async
(
data
:
any
):
Promise
<
any
>
=>
await
axios
.
put
(
`/cameras`
,
data
);
// 摄像头 - 删
export
const
api_delCameras
=
async
(
id
:
any
):
Promise
<
any
>
=>
await
axios
.
delete
(
`/cameras/
${
id
}
`
);
export
const
api_delCameras
=
async
(
id
:
any
):
Promise
<
any
>
=>
await
axios
.
delete
(
`/cameras/
${
id
}
`
);
// 模板下载
export
const
api_downWebCam
=
async
(
id
:
string
):
Promise
<
any
>
=>
await
axios
.
get
(
`/export/
${
id
}
`
);
export
const
api_downWebCam
=
async
(
id
:
string
):
Promise
<
any
>
=>
await
axios
.
get
(
`/export/
${
id
}
`
);
// 导出 - blob
export
const
api_exportBlobFile
=
async
(
ids
:
string
):
Promise
<
any
>
=>
await
axios
.
get
(
`/export/
${
ids
}
`
,
{
responseType
:
'
blob
'
});
await
axios
.
get
(
`/export/
${
ids
}
`
,
{
responseType
:
"
blob
"
});
// 文件上传 - base64 -> ip
export
const
api_base64ToWebURl
=
async
(
image
:
string
):
Promise
<
any
>
=>
await
axios
.
post
(
`/common/image`
,
{
image
});
export
const
api_base64ToWebURl
=
async
(
image
:
string
):
Promise
<
any
>
=>
await
axios
.
post
(
`/common/image`
,
{
image
});
// 算法 - 查
export
const
api_algorithms
=
async
(
params
:
ItablePagination
):
Promise
<
any
>
=>
axios
.
get
(
`/algorithms/page`
,
{
params
});
// 算法 - 改
export
const
api_modifyAlgorithms
=
async
(
id
:
string
,
grade
:
string
):
Promise
<
any
>
=>
axios
.
put
(
`/algorithms/
${
id
}
/
${
grade
}
`
);
export
const
api_modifyAlgorithms
=
async
(
id
:
string
,
grade
:
string
,
):
Promise
<
any
>
=>
axios
.
put
(
`/algorithms/
${
id
}
/
${
grade
}
`
);
// ============================================================================================ 新增分析任务
// ================ 临时 | S
...
...
@@ -128,32 +135,38 @@ interface IModifyTaskParam {
videoVo
:
IAnalyItemParam
[];
}
// ================ 临时 | E
// 新增类
type
IAddTaskParam
=
IModifyTaskParam
;
// 视频分析任务-新增任务
export
const
api_addTask
=
async
(
data
:
IAddTaskParam
):
Promise
<
any
>
=>
axios
.
post
(
`/videos`
,
data
);
export
const
api_addTask
=
async
(
data
:
IAddTaskParam
):
Promise
<
any
>
=>
axios
.
post
(
`/videos`
,
data
);
// 视频分析任务-编辑任务
export
const
api_modifyTask
=
async
(
data
:
IModifyTaskParam
):
Promise
<
any
>
=>
axios
.
put
(
`/videos`
,
data
);
export
const
api_modifyTask
=
async
(
data
:
IModifyTaskParam
):
Promise
<
any
>
=>
axios
.
put
(
`/videos`
,
data
);
// 视频分析任务分页查询
export
const
api_getTask
=
async
(
data
:
ItablePagination
):
Promise
<
any
>
=>
axios
.
get
(
`/videos/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
&taskName=
${
data
.
taskName
}
`
);
axios
.
get
(
`/videos/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
&taskName=
${
data
.
taskName
}
`
,
);
// 视频分析任务-单删
export
const
api_delTask
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
delete
(
`/videos/
${
id
}
`
);
export
const
api_delTask
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
delete
(
`/videos/
${
id
}
`
);
// 视频分析任务-变更任务状态
export
const
api_modifyTaskStatus
=
async
(
id
:
string
,
status
:
string
):
Promise
<
any
>
=>
axios
.
put
(
`/videos/
${
id
}
/
${
status
}
`
);
export
const
api_modifyTaskStatus
=
async
(
id
:
string
,
status
:
string
,
):
Promise
<
any
>
=>
axios
.
put
(
`/videos/
${
id
}
/
${
status
}
`
);
// 视频分析任务 - 单条数据
export
const
api_findModifyTaskInfo
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
get
(
`/videos/
${
id
}
`
);
export
const
api_findModifyTaskInfo
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
get
(
`/videos/
${
id
}
`
);
// ================================================================================= 报警分页日志查询 | S
interface
IAlarmLogParam
{
...
...
@@ -165,17 +178,19 @@ interface IAlarmLogParam {
status
?:
string
;
}
// 获取报警日志
export
const
api_getAlarmLog
=
async
(
params
:
IAlarmLogParam
):
Promise
<
any
>
=>
axios
.
get
(
`/alarm/logs/page`
,
{
params
});
export
const
api_getAlarmLog
=
async
(
params
:
IAlarmLogParam
):
Promise
<
any
>
=>
axios
.
get
(
`/alarm/logs/page`
,
{
params
});
// 删除日志记录
export
const
api_delAlarmLog
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
delete
(
`/alarm/logs/
${
id
}
`
);
export
const
api_delAlarmLog
=
async
(
id
:
string
):
Promise
<
any
>
=>
axios
.
delete
(
`/alarm/logs/
${
id
}
`
);
// 修改报警日志状态
export
const
api_modifyAlarmLog
=
async
(
id
:
string
,
status
:
string
):
Promise
<
any
>
=>
axios
.
put
(
`/alarm/logs/
${
id
}
/
${
status
}
`
);
export
const
api_modifyAlarmLog
=
async
(
id
:
string
,
status
:
string
,
):
Promise
<
any
>
=>
axios
.
put
(
`/alarm/logs/
${
id
}
/
${
status
}
`
);
// ================================================================================= 报警分页日志查询 | E
...
...
@@ -185,9 +200,6 @@ interface IPushParamTask {
videoTaskName
?:
string
;
}
interface
IPushParamResult
{
contentName
?:
string
;
contentRemark
?:
string
;
...
...
@@ -195,9 +207,6 @@ interface IPushParamResult {
pushId
?:
string
;
}
interface
IPushParamCamera
{
contentName
:
string
;
contentRemark
:
string
;
...
...
@@ -205,9 +214,6 @@ interface IPushParamCamera {
pushId
:
string
;
}
interface
IPushParamAlgorithm
{
contentName
:
string
;
contentRemark
:
string
;
...
...
@@ -215,82 +221,75 @@ interface IPushParamAlgorithm {
pushId
:
string
;
}
interface
IPushParam
{
algorithmList
?:
IPushParamAlgorithm
[]
,
cameraList
?:
IPushParamCamera
[]
,
algorithmList
?:
IPushParamAlgorithm
[]
;
cameraList
?:
IPushParamCamera
[]
;
id
?:
string
;
pushAddress
?:
string
;
pushName
?:
string
;
resultList
?:
IPushParamResult
[]
,
resultList
?:
IPushParamResult
[]
;
status
?:
string
;
videoTaskVoList
?:
IPushParamTask
[]
videoTaskVoList
?:
IPushParamTask
[]
;
}
// 新增报警推送
export
const
api_addAlarmPush
=
async
(
data
:
IPushParam
)
=>
{
return
await
axios
.
post
(
`/pushs`
,
data
)
return
await
axios
.
post
(
`/pushs`
,
data
)
;
};
// 修改报警推送
export
const
api_modifyAlarmPush
=
async
(
data
:
IPushParam
)
=>
{
return
await
axios
.
put
(
`/pushs`
,
data
)
return
await
axios
.
put
(
`/pushs`
,
data
)
;
};
// 报警推送查单全部
export
const
api_findPushItem
=
async
(
id
)
=>
{
return
await
axios
.
get
(
`/pushs/
${
id
}
`
)
}
return
await
axios
.
get
(
`/pushs/
${
id
}
`
)
;
}
;
// 推送删除
export
const
api_delPushItem
=
async
(
id
)
=>
{
return
await
axios
.
delete
(
`/pushs/
${
id
}
`
)
}
return
await
axios
.
delete
(
`/pushs/
${
id
}
`
)
;
}
;
// 算法信息
export
const
api_getKeyOfAnaly
=
async
()
=>
{
return
await
axios
.
get
(
`/pushs/algorithm`
)
return
await
axios
.
get
(
`/pushs/algorithm`
)
;
};
// 视频源信息
export
const
api_getKeyOfVideoSource
=
async
()
=>
{
return
await
axios
.
get
(
`/pushs/camera`
)
return
await
axios
.
get
(
`/pushs/camera`
)
;
};
// 视频任务信息
export
const
api_getKeyTaskInfo
=
async
()
=>
{
return
await
axios
.
get
(
`/pushs/video_task`
)
return
await
axios
.
get
(
`/pushs/video_task`
)
;
};
// 推送 - 测试
export
const
api_test
=
async
()
=>
{
return
await
axios
.
get
(
'
/pushs/test
'
)
}
return
await
axios
.
get
(
"
/pushs/test
"
);
};
// 视频推送 - 视频任务列表
export
const
api_videoTaskKey
=
async
()
=>
{
return
await
axios
.
get
(
`/videos/list`
)
}
return
await
axios
.
get
(
`/videos/list`
);
};
// 视频推送 - 分页查询
export
const
api_pushList
=
async
(
data
)
=>
{
return
await
axios
.
get
(
`/pushs/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
)
}
return
await
axios
.
get
(
`/pushs/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
,
);
};
// ===================================================== 报警提醒 | E
// 报警提醒 - 算法列表
export
const
api_algorithmsList
=
async
()
=>
{
return
await
axios
.
get
(
`/algorithms/list`
)
}
return
await
axios
.
get
(
`/algorithms/list`
);
};
interface
popUpsConfigParam
{
ids
:
string
;
...
...
@@ -301,71 +300,67 @@ interface popUpsConfigParam {
// 报警提醒 - 修改弹窗相关配置
export
const
api_algorithmsPopUpsConfig
=
async
(
data
:
popUpsConfigParam
)
=>
{
await
axios
.
put
(
`/algorithms/popUps`
,
data
)
}
await
axios
.
put
(
`/algorithms/popUps`
,
data
);
};
// 算法提醒 - 分页查询
export
const
api_algorithmsPopUpsPage
=
async
(
data
:
any
)
=>
{
return
await
axios
.
get
(
`/algorithms/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
)
}
return
await
axios
.
get
(
`/algorithms/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
,
);
};
// 算法提醒 - 修改弹窗配置回显
export
const
api_algorithmsPopUpsFind
=
async
()
=>
{
// /algorithms/list
return
await
axios
.
get
(
`/algorithms/list`
)
}
return
await
axios
.
get
(
`/algorithms/list`
);
};
// 算法提醒 - 删除语音
export
const
api_algorithmsPopUpsDel
=
async
(
id
:
string
)
=>
{
return
await
axios
.
put
(
`/algorithms/audio/
${
id
}
`
)
}
return
await
axios
.
put
(
`/algorithms/audio/
${
id
}
`
)
;
}
;
// 视频回放 - 临时测试
// /videos/test
export
const
api_videoTest
=
async
()
=>
{
return
await
axios
.
get
(
`/videos/test`
)
}
return
await
axios
.
get
(
`/videos/test`
);
};
// ========================================================= 用户角色管理 | S
// 用户分页查询
export
const
api_userList
=
async
(
data
:
any
)
=>
{
return
await
axios
.
get
(
`/users/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
&userName=
${
data
.
userName
}
`
)
}
return
await
axios
.
get
(
`/users/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
&userName=
${
data
.
userName
}
`
,
);
};
// 新增用户
export
const
api_addUserInfo
=
async
(
data
:
any
)
=>
{
return
await
axios
.
post
(
`/users`
,
data
)
}
return
await
axios
.
post
(
`/users`
,
data
);
};
// 修改用户信息
export
const
api_modifyUserInfo
=
async
(
data
:
any
)
=>
{
return
await
axios
.
put
(
`/users`
,
data
)
}
return
await
axios
.
put
(
`/users`
,
data
);
};
// 删除用户信息
export
const
api_delUserInfo
=
async
(
id
:
string
)
=>
{
return
await
axios
.
delete
(
`/users/
${
id
}
`
)
}
return
await
axios
.
delete
(
`/users/
${
id
}
`
);
};
// 修改密码
export
const
api_modifyUserPass
=
async
(
id
:
string
,
password
:
string
)
=>
{
return
await
axios
.
put
(
`/users/
${
id
}
/
${
password
}
`
)
}
return
await
axios
.
put
(
`/users/
${
id
}
/
${
password
}
`
);
};
// 查询角色管理
export
const
api_roleList
=
async
()
=>
{
return
await
axios
.
get
(
'
/roles/list
'
)
}
return
await
axios
.
get
(
"
/roles/list
"
);
}
;
// ======================================================== 角色管理 | E
...
...
@@ -377,98 +372,88 @@ interface IRoleParam {
// 新增角色
export
const
api_addRole
=
async
(
data
:
IRoleParam
)
=>
{
return
await
axios
.
post
(
'
/roles
'
,
data
)
}
return
await
axios
.
post
(
"
/roles
"
,
data
);
}
;
// 查询角色详情
export
const
api_findfRoleInfo
=
async
(
id
:
string
)
=>
{
return
await
axios
.
post
(
`/roles/
${
id
}
`
)
}
return
await
axios
.
post
(
`/roles/
${
id
}
`
)
;
}
;
// ============================== 音视频相关 | S
// 音频文件
export
const
getAudioFile
=
async
(
audioId
:
string
)
=>
{
return
await
axios
.
get
(
`/play/
${
audioId
}
`
)
return
await
axios
.
get
(
`/play/
${
audioId
}
`
)
;
// return await axios.get(`/play/${audioId}?audioId=${audioId}`)
}
};
// 视频文件
export
const
getVideoFile
=
async
(
fileName
:
string
)
=>
{
return
await
axios
.
get
(
`/playVideo/
${
fileName
}
`
)
}
return
await
axios
.
get
(
`/playVideo/
${
fileName
}
`
);
};
// 修改角色信息
export
const
api_modifyRoleInfo
=
async
(
data
:
any
)
=>
{
return
await
axios
.
put
(
`/roles`
,
data
)
}
return
await
axios
.
put
(
`/roles`
,
data
);
};
// 删除角色
export
const
api_delRoleInfo
=
async
(
id
:
string
)
=>
{
return
await
axios
.
delete
(
`/roles/
${
id
}
`
)
}
return
await
axios
.
delete
(
`/roles/
${
id
}
`
);
};
// 权限 - 权限树列表
export
const
api_permissionTreeList
=
async
()
=>
{
return
await
axios
.
get
(
`/permission/tree`
)
}
return
await
axios
.
get
(
`/permission/tree`
)
;
}
;
// ======================================== 首页 - /datas/points-count
export
const
api_pointsCount
=
async
()
=>
{
return
await
axios
.
get
(
`/datas/points-count`
)
}
return
await
axios
.
get
(
`/datas/points-count`
);
};
export
const
api_taskCount
=
async
()
=>
{
return
await
axios
.
get
(
`/datas/task-count`
)
}
return
await
axios
.
get
(
`/datas/task-count`
);
};
export
const
api_logCount
=
async
(
date
)
=>
{
return
await
axios
.
get
(
`/datas/log-count/
${
date
[
0
]}
/
${
date
[
1
]}
`
)
}
return
await
axios
.
get
(
`/datas/log-count/
${
date
[
0
]}
/
${
date
[
1
]}
`
);
};
// ================================= 登录注册
// 登录
export
const
api_login
=
async
(
data
:
any
)
=>
{
return
await
axios
.
post
(
'
/logins/login
'
,
data
)
}
return
await
axios
.
post
(
"
/logins/login
"
,
data
);
}
;
// 权限查询
export
const
api_permission
=
async
()
=>
{
return
await
axios
.
get
(
'
/logins/list
'
)
}
return
await
axios
.
get
(
"
/logins/list
"
);
};
// 查询详情
// /v1/roles/{id}
export
const
api_roleInfo
=
async
(
id
:
string
)
=>
{
return
axios
.
get
(
`/roles/
${
id
}
`
)
}
return
axios
.
get
(
`/roles/
${
id
}
`
)
;
}
;
// 视频任务分析 - 接口
export
const
api_videosPage
=
async
(
data
)
=>
{
return
axios
.
get
(
`/videos/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
)
}
return
axios
.
get
(
`/videos/page?pageNum=
${
data
.
pageNum
}
&pageSize=
${
data
.
pageSize
}
`
,
);
};
// 报警累计
export
const
api_getAlarmResultData
=
async
()
=>
{
return
axios
.
get
(
`/datas/day`
)
}
return
axios
.
get
(
`/datas/day`
);
};
// 根据ID查询信息
export
const
api_getUserInfo
=
async
(
id
:
string
)
=>
{
return
axios
.
get
(
`/users/
${
id
}
`
)
}
return
axios
.
get
(
`/users/
${
id
}
`
)
;
}
;
src/views/AlarmCenter/AlarmLog/index.vue
View file @
63039b5f
...
...
@@ -494,9 +494,9 @@ onMounted(() => {
<!-- ======================= 状态 | E -->
</NFlex>
<NButton
@
click.stop=
"() =>
{
<
!--
<
NButton
@
click.stop=
"() =>
{
isDefaultPreview = false;
}" strong secondary type="info" size="small">回放
</NButton>
}" strong secondary type="info" size="small">回放
</NButton>
-->
</NFlex>
</
template
>
<!-- 图片区域 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment