Browse Source

feat 更新controlCamera

wangqin
qingzhengli 8 months ago
parent
commit
d8a0d6d4a9
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue

@ -141,7 +141,7 @@ export default {
},
methods: {
controlClick: throttle(function (type) {
controlCamera(this.dialogData.iotDeviceId, type);
controlCamera(this.dialogData.iotDeviceId, type, false);
}, 150),
visibleClose(bool) {
if (bool) return;

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

@ -87,12 +87,12 @@ function padZero(num) {
99 /向动作停/
* @returns
*/
export function controlCamera(camId, cmdType) {
export function controlCamera(camId, cmdType, isMsgType = true) {
return request({
url: "/video/PTZControl",
method: "get",
params: {
msgType: 3,
...(isMsgType ? { msgType: 3 } : undefined),
camId,
cmdType,
speed: 1,

Loading…
Cancel
Save