中控功能(只有基础功能,无样式)

This commit is contained in:
1378012178@qq.com 2026-01-06 10:22:12 +08:00
parent e6ece054c0
commit 52bf0f075d
4 changed files with 2197 additions and 2 deletions

View File

@ -0,0 +1,293 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync',
syncProject = '/iot/tplink/projectInfo/sync',
syncRegion = '/iot/tplink/regionInfo/sync',
list = '/iot/tplink/cameraInfo/list',
syncProjectIpcDevice = '/iot/tplink/cameraInfo/syncProjectIpcDevice',
ipcCapability = '/iot/tplink/cameraInfo/getIpcCapability',
nuList = '/iot/tplink/cameraInfo/nuList',
edit = '/iot/tplink/cameraInfo/edit',
rebootDevice = '/iot/tplink/cameraInfo/rebootDevice',
previewUrl = '/iot/tplink/cameraInfo/getPreviewUrl',
getImageCommon = '/iot/tplink/cameraInfo/getImageCommon',
setImageCommon = '/iot/tplink/cameraInfo/setImageCommon',
getOsdCapability = '/iot/tplink/cameraInfo/getOsdCapability',
getOsd = '/iot/tplink/cameraInfo/getOsd',
setOsd = '/iot/tplink/cameraInfo/setOsd',
getTamperDet = '/iot/tplink/cameraInfo/getTamperDet',
setTamperDet = '/iot/tplink/cameraInfo/setTamperDet',
getTamperNotif = '/iot/tplink/cameraInfo/getTamperNotif',
setTamperNotif = '/iot/tplink/cameraInfo/setTamperNotif',
testAudio = '/iot/tplink/cameraInfo/testAudio',
getAlarmInfo = '/iot/tplink/cameraInfo/getAlarmInfo',
setAlarmInfo = '/iot/tplink/cameraInfo/setAlarmInfo',
getAlarmPlan = '/iot/tplink/cameraInfo/getAlarmPlan',
setAlarmPlan = '/iot/tplink/cameraInfo/setAlarmPlan',
getVideoParams = '/iot/tplink/cameraInfo/getVideoParams',
setVideoParams = '/iot/tplink/cameraInfo/setVideoParams',
configRecovery = '/iot/tplink/cameraInfo/configRecovery',
searchVideo = '/iot/tplink/cameraInfo/searchVideo',
getPlaybackUrlList = '/iot/tplink/cameraInfo/getPlaybackUrlList',
deletePlaybackChn = '/iot/tplink/cameraInfo/deletePlaybackChn',
getMultitransUrl = '/iot/tplink/cameraInfo/getMultitransUrl',
getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs',
setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs',
getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress',
uploadToServer = '/iot/tplink/cameraInfo/uploadToServer',
stopUploadToServer = '/iot/tplink/cameraInfo/stopUploadToServer',
getUploadToServerProcess = '/iot/tplink/cameraInfo/getUploadToServerProcess',
motionCtrl = '/iot/tplink/cameraInfo/motionCtrl',
nuAndCameraList = '/centercontrol/centercontrol/nuList',
nuDirectiveOrderList = '/centercontrol/centercontrol/list',
}
/**
*
* @param params
*/
export const queryProjectTreeSync = (params?) => defHttp.get({ url: Api.queryProjectTreeSync, params });
/**
*
* @param params
*/
export const queryRegionTreeSync = (params?) => defHttp.get({ url: Api.queryRegionTreeSync, params });
/**
*
* @param params
*/
export const syncProject = (params?) => defHttp.get({ url: Api.syncProject, params });
/**
*
* @param params
*/
export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params });
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
* IPC设备
* @param params
*/
export const syncProjectIpcDevice = (params) => defHttp.get({ url: Api.syncProjectIpcDevice, params });
/**
* IPC能力集
* @param params
*/
export const getIpcCapability = (params) => defHttp.get({ url: Api.ipcCapability, params });
/**
* url
* @param params
*/
export const getPreviewUrl = (params) => defHttp.get({ url: Api.previewUrl, params });
/**
*
* @param params
*/
export const nuList = (params) => defHttp.get({ url: Api.nuList, params });
/**
*
* @param params
*/
export const update = (params) => {
return defHttp.post({ url: Api.edit, params });
};
/**
*
* @param params
*/
export const rebootDevice = (params) => {
return defHttp.post({ url: Api.rebootDevice, params });
};
/**
*
* @param params
*/
export const getImageCommon = (params) => defHttp.post({ url: Api.getImageCommon, params });
/**
*
* @param params
*/
export const setImageCommon = (params) => defHttp.post({ url: Api.setImageCommon, params });
/**
* OSD能力集参数
* @param params
*/
export const getOsdCapability = (params) => defHttp.post({ url: Api.getOsdCapability, params });
/**
* OSD参数
* @param params
*/
export const getOsd = (params) => defHttp.post({ url: Api.getOsd, params });
/**
* OSD参数
* @param params
*/
export const setOsd = (params) => defHttp.post({ url: Api.setOsd, params });
/**
*
* @param params
*/
export const getTamperDet = (params) => defHttp.post({ url: Api.getTamperDet, params });
/**
*
* @param params
*/
export const setTamperDet = (params) => defHttp.post({ url: Api.setTamperDet, params });
/**
*
* @param params
*/
export const getTamperNotif = (params) => defHttp.post({ url: Api.getTamperNotif, params });
/**
*
* @param params
*/
export const setTamperNotif = (params) => defHttp.post({ url: Api.setTamperNotif, params });
/**
*
* @param params
*/
export const testAudio = (params) => defHttp.post({ url: Api.testAudio, params });
/**
* /
* @param params
*/
export const getAlarmInfo = (params) => defHttp.post({ url: Api.getAlarmInfo, params });
/**
* /
* @param params
*/
export const setAlarmInfo = (params) => defHttp.post({ url: Api.setAlarmInfo, params });
/**
* /
* @param params
*/
export const getAlarmPlan = (params) => defHttp.post({ url: Api.getAlarmPlan, params });
/**
* /
* @param params
*/
export const setAlarmPlan = (params) => defHttp.post({ url: Api.setAlarmPlan, params });
/**
*
* @param params
*/
export const getVideoParams = (params) => defHttp.post({ url: Api.getVideoParams, params });
/**
*
* @param params
*/
export const setVideoParams = (params) => defHttp.post({ url: Api.setVideoParams, params });
/**
*
* @param params
*/
export const configRecovery = (params) => defHttp.post({ url: Api.configRecovery, params });
/**
*
* @param params
*/
export const searchVideo = (params) => defHttp.get({ url: Api.searchVideo, params });
/**
* url
* @param params
*/
export const getPlaybackUrlList = (params) => defHttp.get({ url: Api.getPlaybackUrlList, params });
/**
* url
* @param params
*/
export const deletePlaybackChn = (params) => defHttp.get({ url: Api.deletePlaybackChn, params });
/**
* --Multitrans能力
* @param params
*/
export const getMultitransUrl = (params) => defHttp.get({ url: Api.getMultitransUrl, params });
/**
* --
* @param params
*/
export const getRecordCfgs = (params) => defHttp.get({ url: Api.getRecordCfgs, params });
/**
* --
* @param params
*/
export const setRecordCfgs = (params) => defHttp.get({ url: Api.setRecordCfgs, params });
/**
* --
* @param params
*/
export const getBatchProgress = (params) => defHttp.get({ url: Api.getBatchProgress, params });
/**
*
* @param params
*/
export const uploadToServer = (params) => defHttp.get({ url: Api.uploadToServer, params });
/**
*
* @param params
*/
export const stopUploadToServer = (params) => defHttp.get({ url: Api.stopUploadToServer, params });
/**
*
* @param params
*/
export const getUploadToServerProcess = (params) => defHttp.get({ url: Api.getUploadToServerProcess, params });
/**
*
* @param params
*/
export const motionCtrl = (params) => defHttp.get({ url: Api.motionCtrl, params }, { isTransformResponse: false });
/**
*
* @param params
*/
export const nuAndCameraList = (params) => defHttp.get({ url: Api.nuAndCameraList, params });
/**
*
* @param params
*/
export const nuDirectiveOrderList = (params) => defHttp.get({ url: Api.nuDirectiveOrderList, params });

File diff suppressed because it is too large Load Diff

View File

@ -225,6 +225,7 @@ async function createPreview() {
}); //
player.value = null;
}
console.log("🌊 ~ createPreview ~ a:", formData)
const TumsPlayer = window['tums-player'].default;
player.value = new TumsPlayer('video-container-preview', {
type: "rtsp", // rtsp

View File

@ -383,10 +383,10 @@
<a-spin :spinning="!syncCode" style="display: flex; flex-direction: column; height: 100%;">
<div style="padding: 14px; background-color: white; display: flex; align-items: center; flex-shrink: 0;">
<a-row style="width: 100%;">
<a-col :span="6" style="display: flex; align-items: center;">
<a-col :span="3" style="display: flex; align-items: center;">
<span style="font-weight: bold;font-size: 16px;">镜像码<span style="color: #1890FF;">{{ syncCode }}</span></span>
</a-col>
<a-col :span="3" :push="15" style="display: flex; align-items: center; justify-content: flex-end;">
<a-col :span="3" style="display: flex; align-items: center; justify-content: flex-end;">
<a-button @click="copySyncCodeFunc()" type="primary" style="margin-right: 8px;">复制</a-button>
<a-button @click="updateSyncCodeFunc()" type="primary">更新</a-button>
</a-col>