fix(devicePreset): 修改删除预置位接口参数及调用方式
refactor(securitySurveillance): 添加项目ID参数到监控列表请求 style(camera): 注释掉未使用的设备操作按钮代码
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="system-busPresettingBit-add">
|
||||
<el-dialog v-model="isShowDialog" width="1250px" :close-on-click-modal="false" :destroy-on-close="true">
|
||||
<el-dialog v-model="isShowDialog" width="1250px" :close-on-click-modal="false" :destroy-on-close="true"
|
||||
@close="closeDialog">
|
||||
<template #header>
|
||||
<div
|
||||
v-drag="['.system-busPresettingBit-add .el-dialog', '.system-busPresettingBit-add .el-dialog__header']">
|
||||
@ -58,7 +59,7 @@ import { listDevicePreset, addDevicePreset, updateDevicePreset, delDevicePreset,
|
||||
import { getToken } from '@/api/securitySurveillance/index.js';
|
||||
|
||||
import EZUIKit from 'ezuikit-js';
|
||||
|
||||
import { ca } from 'element-plus/es/locale/index.mjs';
|
||||
const emit = defineEmits(['update']);
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
|
||||
@ -201,7 +202,12 @@ function handleDelete(row: any) {
|
||||
deviceSerial: row.deviceSerial,
|
||||
ids: id
|
||||
};
|
||||
delDevicePreset(id).then((res: any) => {
|
||||
delDevicePreset({
|
||||
id: row.id,
|
||||
deviceSerial: row.deviceSerial,
|
||||
channelNo: "1",
|
||||
presetIndex: row.presetIndex
|
||||
}).then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
ElMessage.success('删除成功');
|
||||
busPresettingBitList();
|
||||
@ -252,6 +258,7 @@ function resetForm() {
|
||||
}
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
|
||||
if (flvPlayer.value) {
|
||||
flvPlayer.value.destroy().then((data: any) => {
|
||||
console.log('promise 获取 数据', data);
|
||||
|
||||
Reference in New Issue
Block a user