feat: 业务模型静态交互完成
parent
6653b56737
commit
bc48347bb1
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-24 17:57:58
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-25 15:20:55
|
||||
* @FilePath: \general-ai-platform-web\mock\businessModel.ts
|
||||
* @Description: mock 业务模型 api
|
||||
*/
|
||||
import {
|
||||
mockGetBaseBusinessModelListData,
|
||||
mockGetBusinessModelListData,
|
||||
} from './pools/businessModelData';
|
||||
import { successMockApiProps } from './typing';
|
||||
import { fetchCurrPageByList } from './utils/apiMock';
|
||||
export default {
|
||||
// 企业业务模型列表
|
||||
'GET /api/businessModel/list': async (req: Request, res: Response) => {
|
||||
// get 使用 query 读取参数
|
||||
const { page, pageSize } = req.query;
|
||||
const resData: successMockApiProps = {
|
||||
...fetchCurrPageByList({
|
||||
...mockGetBusinessModelListData,
|
||||
data: { ...mockGetBusinessModelListData.data, page, pageSize: pageSize || 10 },
|
||||
}),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
// 企业基础业务模型列表
|
||||
'GET /api/businessModel/base/list': async (req: Request, res: Response) => {
|
||||
// get 使用 query 读取参数
|
||||
const { page, pageSize } = req.query;
|
||||
const resData: successMockApiProps = {
|
||||
...fetchCurrPageByList({
|
||||
...mockGetBaseBusinessModelListData,
|
||||
data: { ...mockGetBaseBusinessModelListData.data, page, pageSize: pageSize || 10 },
|
||||
}),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-02 16:28:13
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 17:53:29
|
||||
* @FilePath: \uighur-recognition-web2\mock\device.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**告警列表模块 mock */
|
||||
import { mockGetDeviceData, mockGetUploadDeviceData } from './pools/deviceData';
|
||||
import { successMockApiProps } from './typing';
|
||||
import { fetchCurrPageByList } from './utils/apiMock';
|
||||
export default {
|
||||
// 实时分析告警列表分页
|
||||
'GET /api/device/': async (req: Request, res: Response) => {
|
||||
// get 使用 query 读取参数
|
||||
const { page, pageSize } = req.query;
|
||||
const resData: successMockApiProps = {
|
||||
...fetchCurrPageByList({
|
||||
...mockGetDeviceData,
|
||||
data: { ...mockGetDeviceData.data, page, pageSize: pageSize || 10 },
|
||||
}),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
// 离线分析告警列表分页
|
||||
'GET /api/upload_device/': async (req: Request, res: Response) => {
|
||||
// get 使用 query 读取参数
|
||||
const { page, pageSize } = req.query;
|
||||
const resData: successMockApiProps = {
|
||||
...fetchCurrPageByList({
|
||||
...mockGetUploadDeviceData,
|
||||
data: { ...mockGetUploadDeviceData.data, page, pageSize: pageSize || 10 },
|
||||
}),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
};
|
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-01-25 16:53:15
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-25 15:50:16
|
||||
* @FilePath: \general-ai-platform-web\mock\deviceGroup.ts
|
||||
* @Description: 节点设备设置 mock
|
||||
*/
|
||||
import {
|
||||
mockGetDeviceGroupData1,
|
||||
mockGetDeviceGroupData2,
|
||||
mockGetDeviceGroupData3,
|
||||
mockGetDeviceGroupFkSelectData,
|
||||
mockGetDeviceGroupListData,
|
||||
mockGetDeviceGroupTreeData,
|
||||
} from './pools/deviceGroupData';
|
||||
import { successMockApiProps } from './typing';
|
||||
import { fetchCurrPageByList, fetchMockSuccessFullByOther } from './utils/apiMock';
|
||||
export default {
|
||||
// 设备组列表分页
|
||||
'GET /api/device_group/getDeviceGroupList': async (req: Request, res: Response) => {
|
||||
const { page, pageSize } = req.query;
|
||||
const resData: successMockApiProps = {
|
||||
...fetchCurrPageByList({
|
||||
...mockGetDeviceGroupListData,
|
||||
data: { ...mockGetDeviceGroupListData.data, page, pageSize: pageSize || 10 },
|
||||
}),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
|
||||
// 设备组网点选项列表
|
||||
'GET /api/device_group/getDeviceGroupFkSelect': async (req: Request, res: Response) => {
|
||||
const resData: successMockApiProps = {
|
||||
...fetchMockSuccessFullByOther(mockGetDeviceGroupFkSelectData),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
// 设备组网点树列表
|
||||
'GET /api/device_group/getDeviceGroupTree': async (req: Request, res: Response) => {
|
||||
const resData: successMockApiProps = {
|
||||
...fetchMockSuccessFullByOther(mockGetDeviceGroupTreeData),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
// 设备组详情
|
||||
'GET /api/device_group/getDeviceGroupById': async (req: Request, res: Response) => {
|
||||
const { id } = req.query;
|
||||
let currRes = {};
|
||||
switch (Number(id)) {
|
||||
case 2:
|
||||
currRes = mockGetDeviceGroupData1;
|
||||
break;
|
||||
case 3:
|
||||
currRes = mockGetDeviceGroupData2;
|
||||
break;
|
||||
case 5:
|
||||
currRes = mockGetDeviceGroupData3;
|
||||
break;
|
||||
}
|
||||
|
||||
const resData: successMockApiProps = {
|
||||
...fetchMockSuccessFullByOther(currRes),
|
||||
};
|
||||
res.json(resData);
|
||||
},
|
||||
};
|
@ -1,159 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-02 15:42:40
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 17:48:37
|
||||
* @FilePath: \uighur-recognition-web2\mock\pools\warningRuleData.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**@实时分析设备列表模块 */
|
||||
// 设备列表分页
|
||||
export const mockGetDeviceData = {
|
||||
data: {
|
||||
count: 3,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 3,
|
||||
device_name: '东大街西',
|
||||
device_code: null,
|
||||
device_api: 'test2',
|
||||
is_use: 0,
|
||||
device_status: 1,
|
||||
note: null,
|
||||
test_time: '2024-03-25T14:46:59.254201',
|
||||
test_result: 1,
|
||||
device_ip: '192.168.10.28',
|
||||
device_port: null,
|
||||
create_time: '2024-02-26T14:12:21.632020',
|
||||
update_time: '2024-03-25T14:46:59.256200',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
device_name: '东大街南',
|
||||
device_code: null,
|
||||
device_api: 'test',
|
||||
is_use: 0,
|
||||
device_status: 1,
|
||||
note: null,
|
||||
test_time: '2024-03-22T13:28:38.741433',
|
||||
test_result: 1,
|
||||
device_ip: '192.168.10.10',
|
||||
device_port: null,
|
||||
create_time: '2024-02-26T09:59:36.599018',
|
||||
update_time: '2024-03-22T13:28:38.743432',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
device_name: '东大街东',
|
||||
device_code: null,
|
||||
device_api: null,
|
||||
is_use: 0,
|
||||
device_status: 1,
|
||||
note: null,
|
||||
test_time: '2024-03-22T13:33:21.783679',
|
||||
test_result: 1,
|
||||
device_ip: '192.168.10.28',
|
||||
device_port: null,
|
||||
create_time: '2024-02-26T09:57:25',
|
||||
update_time: '2024-03-22T13:33:21.786678',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
||||
/**@离线分析设备列表模块 */
|
||||
// 设备列表分页
|
||||
export const mockGetUploadDeviceData = {
|
||||
data: {
|
||||
count: 3,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 3,
|
||||
device_name: 'test2',
|
||||
device_uuid: '098eea8c_c649_4a6a_8a39_4f4b9c4c1cc0',
|
||||
upload_or_download: 1,
|
||||
operate_mode: 2,
|
||||
device_ip: '127.0.0.1',
|
||||
device_port: 80,
|
||||
device_username: 'admin',
|
||||
device_password: 'admin',
|
||||
source_directory: null,
|
||||
destination_directory: '/home\\098eea8c_c649_4a6a_8a39_4f4b9c4c1cc0',
|
||||
access_key_id: null,
|
||||
access_key_secret: null,
|
||||
bucket: null,
|
||||
is_use: 1,
|
||||
device_status: 1,
|
||||
note: 'test23',
|
||||
test_time: null,
|
||||
test_result: null,
|
||||
create_time: '2024-04-02T16:42:14.596765',
|
||||
update_time: '2024-04-02T17:19:50.855507',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
device_name: 'test1',
|
||||
device_uuid: '430bce6b_4df5_4dfa_a64c_776934746069',
|
||||
upload_or_download: 2,
|
||||
operate_mode: 3,
|
||||
device_ip: 'test1',
|
||||
device_port: null,
|
||||
device_username: null,
|
||||
device_password: null,
|
||||
source_directory: null,
|
||||
destination_directory: '/home\\430bce6b_4df5_4dfa_a64c_776934746069',
|
||||
access_key_id: '112233',
|
||||
access_key_secret: '332211',
|
||||
bucket: '123456',
|
||||
is_use: 1,
|
||||
device_status: 1,
|
||||
note: '654321',
|
||||
test_time: null,
|
||||
test_result: null,
|
||||
create_time: '2024-04-02T16:06:32.241551',
|
||||
update_time: '2024-04-02T17:20:40.696287',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
device_name: 'test',
|
||||
device_uuid: '252f9533_fd3f_4282_aafe_dadc9b3044c4',
|
||||
upload_or_download: 2,
|
||||
operate_mode: 1,
|
||||
device_ip: '192.10.10.1',
|
||||
device_port: 8080,
|
||||
device_username: 'test',
|
||||
device_password: '123456',
|
||||
source_directory: 'test1',
|
||||
destination_directory: '/home\\252f9533_fd3f_4282_aafe_dadc9b3044c4',
|
||||
access_key_id: null,
|
||||
access_key_secret: null,
|
||||
bucket: null,
|
||||
is_use: 1,
|
||||
device_status: 1,
|
||||
note: 'test1',
|
||||
test_time: null,
|
||||
test_result: null,
|
||||
create_time: '2024-04-02T15:47:37.276475',
|
||||
update_time: '2024-04-02T17:24:02.682003',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
@ -0,0 +1,241 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-01-25 16:32:31
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-25 15:51:57
|
||||
* @FilePath: \general-ai-platform-web\mock\pools\deviceGroupData.ts
|
||||
* @Description: 节点设备设置
|
||||
*/
|
||||
// 设备组节点选项列表
|
||||
export const mockGetDeviceGroupFkSelectData = {
|
||||
data: {
|
||||
list: [
|
||||
{
|
||||
name: '南京节点',
|
||||
id: 1,
|
||||
},
|
||||
{
|
||||
name: '秦淮节点',
|
||||
id: 2,
|
||||
},
|
||||
{
|
||||
name: '江宁节点',
|
||||
id: 3,
|
||||
},
|
||||
{
|
||||
name: '安徽节点',
|
||||
id: 4,
|
||||
},
|
||||
{
|
||||
name: '合肥节点',
|
||||
id: 5,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
// 设备组节点树
|
||||
export const mockGetDeviceGroupTreeData = {
|
||||
data: {
|
||||
tree: [
|
||||
{
|
||||
title: '南京节点',
|
||||
key: 1,
|
||||
children: [
|
||||
{
|
||||
title: '秦淮节点',
|
||||
key: 2,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
title: '江宁节点',
|
||||
key: 3,
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: '合肥节点',
|
||||
key: 4,
|
||||
children: [
|
||||
{
|
||||
title: '包河节点',
|
||||
key: 5,
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
// 设备组列表分页
|
||||
export const mockGetDeviceGroupListData = {
|
||||
data: {
|
||||
list: [
|
||||
{
|
||||
id: 1,
|
||||
createTime: '2023-10-17T10:43:31.254107+08:00',
|
||||
updateTime: '2023-10-17T10:45:25.030034+08:00',
|
||||
name: '南京节点',
|
||||
code: 'DG00002',
|
||||
address: '江苏省南京市南京市栖霞区紫东路南京紫东国际创意园',
|
||||
telephone: '12345',
|
||||
lon: '118.914349',
|
||||
lat: '32.086019',
|
||||
managerName: '张三',
|
||||
managerPhone: '111111111',
|
||||
isEnable: true,
|
||||
parentFkId: 0,
|
||||
remark: '',
|
||||
children: [
|
||||
{
|
||||
id: 2,
|
||||
createTime: '2023-10-17T13:37:31.758471+08:00',
|
||||
updateTime: '2023-10-17T13:39:31.530494+08:00',
|
||||
name: '秦淮节点',
|
||||
code: 'DG00003',
|
||||
address: '江苏省南京市秦淮区中山南路79号',
|
||||
telephone: '',
|
||||
lon: '118.791819',
|
||||
lat: '32.045002',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 1,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '2',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
createTime: '2023-10-17T13:40:28.823372+08:00',
|
||||
updateTime: '2023-10-17T13:40:28.823372+08:00',
|
||||
name: '江宁节点',
|
||||
code: 'DG00004',
|
||||
address: '江苏省南京市经济技术开发区双龙大道1680号',
|
||||
telephone: '',
|
||||
lon: '118.824682',
|
||||
lat: '31.937062',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 1,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '3',
|
||||
},
|
||||
],
|
||||
key: '1',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
createTime: '2023-10-17T15:02:30.725705+08:00',
|
||||
updateTime: '2023-10-17T15:02:30.725705+08:00',
|
||||
name: '安徽节点',
|
||||
code: 'DG00005',
|
||||
address: '',
|
||||
telephone: '',
|
||||
lon: '',
|
||||
lat: '',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 0,
|
||||
remark: '',
|
||||
children: [
|
||||
{
|
||||
id: 5,
|
||||
createTime: '2023-10-17T15:05:13.542992+08:00',
|
||||
updateTime: '2023-10-17T15:08:01.071315+08:00',
|
||||
name: '合肥节点',
|
||||
code: 'DG00006',
|
||||
address: '安徽省合肥市包河区马鞍山路130号',
|
||||
telephone: '',
|
||||
lon: '117.309214',
|
||||
lat: '31.862594',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 4,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '5',
|
||||
},
|
||||
],
|
||||
key: '4',
|
||||
},
|
||||
],
|
||||
total: 0,
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
};
|
||||
|
||||
// 设备组详情
|
||||
export const mockGetDeviceGroupData1 = {
|
||||
data: {
|
||||
deviceGroup: {
|
||||
id: 2,
|
||||
createTime: '2023-10-17T13:37:31.758471+08:00',
|
||||
updateTime: '2023-10-17T13:39:31.530494+08:00',
|
||||
name: '秦淮节点',
|
||||
code: 'DG00003',
|
||||
address: '江苏省南京市秦淮区中山南路79号',
|
||||
telephone: '',
|
||||
lon: '118.791819',
|
||||
lat: '32.045002',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 1,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '',
|
||||
},
|
||||
},
|
||||
};
|
||||
export const mockGetDeviceGroupData2 = {
|
||||
data: {
|
||||
deviceGroup: {
|
||||
id: 3,
|
||||
createTime: '2023-10-17T13:40:28.823372+08:00',
|
||||
updateTime: '2023-10-17T13:40:28.823372+08:00',
|
||||
name: '江宁节点',
|
||||
code: 'DG00004',
|
||||
address: '江苏省南京市经济技术开发区双龙大道1680号',
|
||||
telephone: '',
|
||||
lon: '118.824682',
|
||||
lat: '31.937062',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 1,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '',
|
||||
},
|
||||
},
|
||||
};
|
||||
export const mockGetDeviceGroupData3 = {
|
||||
data: {
|
||||
deviceGroup: {
|
||||
id: 5,
|
||||
createTime: '2023-10-17T15:05:13.542992+08:00',
|
||||
updateTime: '2023-10-17T15:08:01.071315+08:00',
|
||||
name: '合肥节点',
|
||||
code: 'DG00006',
|
||||
address: '安徽省合肥市包河区马鞍山路130号',
|
||||
telephone: '',
|
||||
lon: '117.309214',
|
||||
lat: '31.862594',
|
||||
managerName: '',
|
||||
managerPhone: '',
|
||||
isEnable: true,
|
||||
parentFkId: 4,
|
||||
remark: '',
|
||||
children: null,
|
||||
key: '',
|
||||
},
|
||||
},
|
||||
};
|
@ -1,281 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-02 14:04:18
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 17:05:46
|
||||
* @FilePath: \uighur-recognition-web2\mock\pools\recognitionPeopleData.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**@实时分析告警汇总模块 */
|
||||
// 告警汇总列表分页
|
||||
export const mockGetRecognitionPeopleData = {
|
||||
data: {
|
||||
count: 12,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 3,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:55:00.394393',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:55:00.396393',
|
||||
device_id: 3,
|
||||
device_name: 'cam03',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-08T15:41:08.170979',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-08T15:41:08.171978',
|
||||
device_id: 2,
|
||||
device_name: 'cam02',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:51:08.471682',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:51:08.472683',
|
||||
device_id: 1,
|
||||
device_name: 'cam01',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 30,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:55:00.394393',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:55:00.396393',
|
||||
device_id: 3,
|
||||
device_name: 'cam03',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 32,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-08T15:41:08.170979',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-08T15:41:08.171978',
|
||||
device_id: 2,
|
||||
device_name: 'cam02',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 31,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:51:08.471682',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:51:08.472683',
|
||||
device_id: 1,
|
||||
device_name: 'cam01',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 23,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:55:00.394393',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:55:00.396393',
|
||||
device_id: 3,
|
||||
device_name: 'cam03',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 22,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-08T15:41:08.170979',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-08T15:41:08.171978',
|
||||
device_id: 2,
|
||||
device_name: 'cam02',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 21,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:51:08.471682',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:51:08.472683',
|
||||
device_id: 1,
|
||||
device_name: 'cam01',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 13,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:55:00.394393',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:55:00.396393',
|
||||
device_id: 3,
|
||||
device_name: 'cam03',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 12,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-08T15:41:08.170979',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-08T15:41:08.171978',
|
||||
device_id: 2,
|
||||
device_name: 'cam02',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
{
|
||||
id: 11,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 0,
|
||||
classify_time: '2024-03-25T13:51:08.471682',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:51:08.472683',
|
||||
device_id: 1,
|
||||
device_name: 'cam01',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
||||
|
||||
/**@离线分析告警汇总模块 */
|
||||
// 告警汇总列表分页
|
||||
export const mockGetUploadRecognitionPeopleData = {
|
||||
data: {
|
||||
count: 3,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 3,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-25T14:47:22.991546',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T14:47:22.993546',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: 712,
|
||||
analyse_time: '2024-03-20T15:11:48',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-25T13:57:00.222531',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-25T13:57:00.224531',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: 512,
|
||||
analyse_time: '2024-03-20T15:11:48',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
classify: 1,
|
||||
classify_time: '2024-03-26T13:14:25.219923',
|
||||
similar_person_pk: null,
|
||||
status: 1,
|
||||
note: null,
|
||||
create_time: '2024-03-04T10:24:13',
|
||||
update_time: '2024-03-26T13:14:25.221925',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: 512,
|
||||
analyse_time: '2024-03-20T15:11:48',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
||||
// upload_recognition_people
|
@ -1,322 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-02 14:05:08
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 17:08:19
|
||||
* @FilePath: \uighur-recognition-web2\mock\pools\travelTrackData.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**@实时分析告警追踪模块 */
|
||||
// 告警追踪列表分页
|
||||
export const mockGetTravelTrackData = {
|
||||
data: {
|
||||
count: 20,
|
||||
next: 'http://192.168.10.21:8000/api/travel_track/?page=2&pageSize=10&person_id=0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 15,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 16,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 17,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 18,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 19,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 20,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 21,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 22,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 23,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
{
|
||||
id: 24,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
device_id: 3,
|
||||
device_name: '东大街西',
|
||||
appear_time: '2024-04-02T10:05:19',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-02-27T14:36:37.505000',
|
||||
update_time: '2024-03-04T11:35:18.704087',
|
||||
person_classify: 0,
|
||||
device_note: null,
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
||||
|
||||
/**@离线分析告警追踪模块 */
|
||||
// 告警追踪列表分页
|
||||
export const mockGetUploadTravelTrackData = {
|
||||
data: {
|
||||
count: 9,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 15,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '11分52秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时53分20秒',
|
||||
},
|
||||
{
|
||||
id: 14,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '10分12秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时53分20秒',
|
||||
},
|
||||
{
|
||||
id: 13,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '8分32秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时53分20秒',
|
||||
},
|
||||
{
|
||||
id: 12,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '6分52秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时53分20秒',
|
||||
},
|
||||
{
|
||||
id: 11,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '2',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '5分12秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时53分20秒',
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '10分12秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时3分20秒',
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '8分32秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时3分20秒',
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '6分52秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时3分20秒',
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
video_id: '1',
|
||||
video_name: 'test.mp4',
|
||||
relative_time: '5分12秒',
|
||||
picture_path:
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
is_ignore: 0,
|
||||
cancel_trip: null,
|
||||
create_time: '2024-03-20T15:11:48',
|
||||
update_time: '2024-03-20T15:11:50',
|
||||
person_classify: 1,
|
||||
video_length: '1时3分20秒',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
@ -1,224 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-01 20:26:23
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 17:10:20
|
||||
* @FilePath: \uighur-recognition-web2\mock\pools\warningInfoData.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**@实时分析告警模块 */
|
||||
// 告警列表分页
|
||||
export const mockGetWarningInfoData = {
|
||||
data: {
|
||||
results: [
|
||||
{
|
||||
warning_name: '单人徘徊',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_classify: 0,
|
||||
device_name: '东大街东',
|
||||
device_note: null,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
trigger_time: '2024-04-02T09:43:38.581250',
|
||||
},
|
||||
{
|
||||
warning_name: '单人徘徊',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_classify: 1,
|
||||
device_name: '东大街东',
|
||||
device_note: null,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
trigger_time: '2024-04-02T09:43:38.584291',
|
||||
},
|
||||
{
|
||||
warning_name: '单人徘徊',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_classify: 0,
|
||||
device_name: '东大街东',
|
||||
device_note: null,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
trigger_time: '2024-04-02T09:43:38.588170',
|
||||
},
|
||||
{
|
||||
warning_name: '单人徘徊',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_classify: 1,
|
||||
device_name: '东大街南',
|
||||
device_note: null,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
trigger_time: '2024-04-02T09:43:38.592134',
|
||||
},
|
||||
{
|
||||
warning_name: '单人徘徊',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_classify: 0,
|
||||
device_name: '东大街西',
|
||||
device_note: null,
|
||||
person_id: '0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
trigger_time: '2024-04-02T09:43:38.596134',
|
||||
},
|
||||
],
|
||||
count: 5,
|
||||
},
|
||||
};
|
||||
|
||||
/**@离线分析告警模块 */
|
||||
// 告警列表分页
|
||||
export const mockGetUploadWarningInfoData = {
|
||||
data: {
|
||||
count: 5,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 11,
|
||||
video_id: '2',
|
||||
start_result_id: '14',
|
||||
warning_name: '单人徘徊',
|
||||
warning_type: 1,
|
||||
origin: 'test2.mp4',
|
||||
trigger_time: '2024-04-01 16:25:38.113472',
|
||||
person_id_list: '["0df18ed7-d6e7-445f-824d-6b3942c27915"]',
|
||||
is_ignore: 0,
|
||||
create_time: '2024-04-01T16:25:38.115472',
|
||||
update_time: '2024-04-01T16:25:38.115472',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_list: [
|
||||
[
|
||||
'0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
1,
|
||||
],
|
||||
],
|
||||
video_length: '1时53分20秒',
|
||||
upload_time: '2024-03-20T15:10:17',
|
||||
video_start: '10分12秒',
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
video_id: '2',
|
||||
start_result_id: '11',
|
||||
warning_name: '单人徘徊',
|
||||
warning_type: 1,
|
||||
origin: 'test2.mp4',
|
||||
trigger_time: '2024-04-01 16:25:38.104473',
|
||||
person_id_list: '["0df18ed7-d6e7-445f-824d-6b3942c27915"]',
|
||||
is_ignore: 0,
|
||||
create_time: '2024-04-01T16:25:38.107473',
|
||||
update_time: '2024-04-01T16:25:38.107473',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_list: [
|
||||
[
|
||||
'0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
1,
|
||||
],
|
||||
],
|
||||
video_length: '1时53分20秒',
|
||||
upload_time: '2024-03-20T15:10:17',
|
||||
video_start: '5分12秒',
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
video_id: '1',
|
||||
start_result_id: '7',
|
||||
warning_name: '单人徘徊',
|
||||
warning_type: 1,
|
||||
origin: 'test.mp4',
|
||||
trigger_time: '2024-04-01 16:24:09.085472',
|
||||
person_id_list: '["0df18ed7-d6e7-445f-824d-6b3942c27915"]',
|
||||
is_ignore: 0,
|
||||
create_time: '2024-04-01T16:24:09.087472',
|
||||
update_time: '2024-04-01T16:24:09.087472',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_list: [
|
||||
[
|
||||
'0df18ed7-d6e7-445f-824d-6b3942c27915',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
1,
|
||||
],
|
||||
],
|
||||
video_length: '1时3分20秒',
|
||||
upload_time: '2024-03-20T15:10:17',
|
||||
video_start: '5分12秒',
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
video_id: '1',
|
||||
start_result_id: '4',
|
||||
warning_name: '单人徘徊',
|
||||
warning_type: 1,
|
||||
origin: 'test.mp4',
|
||||
trigger_time: '2024-04-01 16:24:09.080472',
|
||||
person_id_list: '["0df18ed7-d6e7-445f-824d-6b3942c27914"]',
|
||||
is_ignore: 0,
|
||||
create_time: '2024-04-01T16:24:09.082472',
|
||||
update_time: '2024-04-01T16:24:09.082472',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_list: [
|
||||
[
|
||||
'0df18ed7-d6e7-445f-824d-6b3942c27914',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
1,
|
||||
],
|
||||
],
|
||||
video_length: '1时3分20秒',
|
||||
upload_time: '2024-03-20T15:10:17',
|
||||
video_start: '5分12秒',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
video_id: '1',
|
||||
start_result_id: '1',
|
||||
warning_name: '单人徘徊',
|
||||
warning_type: 1,
|
||||
origin: 'test.mp4',
|
||||
trigger_time: '2024-04-01 16:24:09.072472',
|
||||
person_id_list: '["0df18ed7-d6e7-445f-824d-6b3942c27913"]',
|
||||
is_ignore: 0,
|
||||
create_time: '2024-04-01T16:24:09.075472',
|
||||
update_time: '2024-04-01T16:24:09.075472',
|
||||
picture_path: [
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
],
|
||||
person_list: [
|
||||
[
|
||||
'0df18ed7-d6e7-445f-824d-6b3942c27913',
|
||||
'http://192.168.10.82:8080/UR_face/2024-02-27/normal/cam01_AZ8478568_20240206140518032_FACE_SNAP_4098.jpg',
|
||||
1,
|
||||
],
|
||||
],
|
||||
video_length: '1时3分20秒',
|
||||
upload_time: '2024-03-20T15:10:17',
|
||||
video_start: '5分12秒',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
@ -1,107 +0,0 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-02 15:42:40
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-02 15:45:45
|
||||
* @FilePath: \uighur-recognition-web2\mock\pools\warningRuleData.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
/**@实时分析告警规则模块 */
|
||||
// 告警规则分页
|
||||
export const mockGetWarningRuleData = {
|
||||
data: {
|
||||
count: 3,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 3,
|
||||
warning_name: '敏感时间',
|
||||
warning_level: 3,
|
||||
warning_type: 3,
|
||||
is_use: 1,
|
||||
person_number: 1,
|
||||
appear_number: 1,
|
||||
time_interval: null,
|
||||
time_period: null,
|
||||
trigger_start_time: '09:09:16',
|
||||
trigger_end_time: '18:00:00',
|
||||
create_time: null,
|
||||
update_time: '2024-04-01T17:53:40.998904',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
warning_name: '多人聚集',
|
||||
warning_level: 2,
|
||||
warning_type: 2,
|
||||
is_use: 1,
|
||||
person_number: 3,
|
||||
appear_number: 1,
|
||||
time_interval: 1,
|
||||
time_period: null,
|
||||
trigger_start_time: null,
|
||||
trigger_end_time: null,
|
||||
create_time: '2024-01-22T10:59:37',
|
||||
update_time: '2024-04-01T17:53:54.752905',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
warning_name: '单人徘徊',
|
||||
warning_level: 1,
|
||||
warning_type: 1,
|
||||
is_use: 1,
|
||||
person_number: 1,
|
||||
appear_number: 2,
|
||||
time_interval: 1,
|
||||
time_period: 10,
|
||||
trigger_start_time: null,
|
||||
trigger_end_time: null,
|
||||
create_time: '2024-01-22T10:58:57',
|
||||
update_time: '2024-04-01T17:54:01.945906',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
||||
/**@离线分析告警规则模块 */
|
||||
// 告警规则分页
|
||||
export const mockGetUploadWarningRuleData = {
|
||||
data: {
|
||||
count: 2,
|
||||
next: null,
|
||||
previous: null,
|
||||
results: [
|
||||
{
|
||||
id: 2,
|
||||
warning_name: '多人聚集',
|
||||
warning_level: 2,
|
||||
warning_type: 2,
|
||||
is_use: 1,
|
||||
person_number: 3,
|
||||
appear_number: 1,
|
||||
time_interval: 5,
|
||||
time_period: null,
|
||||
create_time: '2024-04-01T16:15:05',
|
||||
update_time: '2024-04-02T14:25:10.087767',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
warning_name: '单人徘徊',
|
||||
warning_level: 1,
|
||||
warning_type: 1,
|
||||
is_use: 1,
|
||||
person_number: 1,
|
||||
appear_number: 2,
|
||||
time_interval: 1,
|
||||
time_period: 10,
|
||||
create_time: '2024-04-01T16:14:35',
|
||||
update_time: '2024-04-02T14:25:16.505613',
|
||||
},
|
||||
],
|
||||
},
|
||||
msg: null,
|
||||
success: true,
|
||||
status: 200,
|
||||
};
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-09 13:46:44
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-25 15:21:56
|
||||
* @FilePath: \general-ai-manage\src\services\testApi\businessModel.ts
|
||||
* @Description: 企业模型mock数据映射
|
||||
*/
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
/** 企业业务模型分页列表 */
|
||||
export async function getBusinessModelList(
|
||||
body: Record<string, any>, //
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.PageResult; msg?: string }>(
|
||||
`/api/businessModel/list`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...body,
|
||||
},
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 企业基础业务模型分页列表 */
|
||||
export async function getBaseBusinessModelList(
|
||||
body: Record<string, any>, //
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.PageResult; msg?: string }>(
|
||||
`/api/businessModel/base/list`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...body,
|
||||
},
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-04-25 15:39:42
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-04-25 15:49:38
|
||||
* @FilePath: \general-ai-platform-web\src\services\testApi\deviceGroup.ts
|
||||
* @Description: 节点设置api
|
||||
*/
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
/** 节点设置分页列表 */
|
||||
// export async function getDeviceGroupList(
|
||||
// body: Record<string, any>, //
|
||||
// options?: { [key: string]: any },
|
||||
// ) {
|
||||
// return request<API.Response & { data?: API.PageResult; msg?: string }>(
|
||||
// `/api/device_group/list`,
|
||||
// {
|
||||
// method: 'GET',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// },
|
||||
// params: {
|
||||
// ...body,
|
||||
// },
|
||||
// ...(options || {}),
|
||||
// },
|
||||
// );
|
||||
// }
|
||||
|
||||
/** 获取设备组树 POST /device_group/getDeviceGroupTree */
|
||||
export async function getDeviceGroupTree(
|
||||
body: Record<string, any>, //
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.PageResult; msg?: string }>(
|
||||
`/api/device_group/getDeviceGroupTree`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...body,
|
||||
},
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue