增加视频监控页面

This commit is contained in:
15683799673
2025-07-21 03:38:19 +08:00
parent f18b3ae03e
commit ee1365cd4c
17 changed files with 403 additions and 106 deletions

View File

@@ -1,61 +0,0 @@
import type { FactoryVO, FactoryForm, FactoryQuery } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询厂商管理列表
* @param params
* @returns 厂商管理列表
*/
export function factoryList(params?: FactoryQuery) {
return requestClient.get<PageResult<FactoryVO>>('/property/factory/list', { params });
}
/**
* 导出厂商管理列表
* @param params
* @returns 厂商管理列表
*/
export function factoryExport(params?: FactoryQuery) {
return commonExport('/property/factory/export', params ?? {});
}
/**
* 查询厂商管理详情
* @param id id
* @returns 厂商管理详情
*/
export function factoryInfo(id: ID) {
return requestClient.get<FactoryVO>(`/property/factory/${id}`);
}
/**
* 新增厂商管理
* @param data
* @returns void
*/
export function factoryAdd(data: FactoryForm) {
return requestClient.postWithMsg<void>('/property/factory', data);
}
/**
* 更新厂商管理
* @param data
* @returns void
*/
export function factoryUpdate(data: FactoryForm) {
return requestClient.putWithMsg<void>('/property/factory', data);
}
/**
* 删除厂商管理
* @param id id
* @returns void
*/
export function factoryRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/factory/${id}`);
}

View File

@@ -1,94 +0,0 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface FactoryVO {
/**
*
*/
id: string | number;
/**
* 厂商编码
*/
factoryNo: string;
/**
* 设备厂商名称
*/
factoryName: string;
/**
* 备注
*/
remark: string;
/**
* 数据状态1有效0无效
*/
dataState: number;
/**
* 搜索值
*/
searchValue: string;
}
export interface FactoryForm extends BaseEntity {
/**
*
*/
id?: string | number;
/**
* 厂商编码
*/
factoryNo?: string;
/**
* 设备厂商名称
*/
factoryName?: string;
/**
* 备注
*/
remark?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface FactoryQuery extends PageQuery {
/**
* 厂商编码
*/
factoryNo?: string;
/**
* 设备厂商名称
*/
factoryName?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}