diff --git a/src/api/correlationEquipment/index.js b/src/api/correlationEquipment/index.js
index 535f5e8..479881d 100644
--- a/src/api/correlationEquipment/index.js
+++ b/src/api/correlationEquipment/index.js
@@ -1,5 +1,6 @@
// 系统管理模块接口
import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
// 字典表查询
export function commonDict(params) {
return request({
@@ -71,11 +72,21 @@ export function importVideoList(params) {
params
})
}
+// 下载视频监控模板
+export function importTemplateVideo(params) {
+ return request({
+ url: '/safety/tbDeviceVideoInfo/importTemplate',
+ method: 'post',
+ params,
+ responseType: 'blob',
+ headers: { 'Access-Control-Allow-origin': '*', 'Content-Type': 'application/json; charset=UTF-8', 'Authorization': 'Bearer ' + getToken() }
+ })
+}
// 新增智能感应
export function addPerceptionList(params) {
return request({
url: '/safety/tbDevicePerceptionInfo/insert',
- method: 'get',
+ method: 'post',
params
})
}
@@ -87,7 +98,14 @@ export function changePerceptionList(params) {
params
})
}
-// 导出视频监控
+// 删除智能感应
+export function deletePerception(params) {
+ return request({
+ url: '/safety/tbDevicePerceptionInfo?' + params,
+ method: 'delete',
+ })
+}
+// 导出视频监控
export function exportVideo(params) {
return request({
url: '/safety/tbDeviceVideoInfo/export',
diff --git a/src/api/download/index.js b/src/api/download/index.js
index 9b012a7..2710be3 100644
--- a/src/api/download/index.js
+++ b/src/api/download/index.js
@@ -3,8 +3,8 @@ import { getToken } from '@/utils/auth'
//通用下载接口
export function download(params) {
return axios({
- url: `http://${window.location.host}/download`,
- //url: 'http://218.92.196.102:8118/hjapi/common/download',
+ url: `http://${window.location.host}/hjapi/common/download`,
+ //url: 'http://218.92.196.102:8888/zhapi/common/download',
//url: 'http://192.168.0.188:8118/hjapi/common/download',
method: 'get',
params,
diff --git a/src/utils/auth.js b/src/utils/auth.js
index 08a43d6..cdc1815 100644
--- a/src/utils/auth.js
+++ b/src/utils/auth.js
@@ -1,15 +1,15 @@
import Cookies from 'js-cookie'
-const TokenKey = 'Admin-Token'
+const zhToken = 'Admin-Token'
export function getToken() {
- return Cookies.get(TokenKey)
+ return Cookies.get(zhToken)
}
export function setToken(token) {
- return Cookies.set(TokenKey, token)
+ return Cookies.set(zhToken, token)
}
export function removeToken() {
- return Cookies.remove(TokenKey)
+ return Cookies.remove(zhToken)
}
diff --git a/src/views/systemManagement/correlationEquipment2/components/deletePerception.vue b/src/views/systemManagement/correlationEquipment2/components/deletePerception.vue
new file mode 100644
index 0000000..411d18b
--- /dev/null
+++ b/src/views/systemManagement/correlationEquipment2/components/deletePerception.vue
@@ -0,0 +1,106 @@
+
+
+
支持文件类型:.xlsx 格式
+支持文件类型:.xlsx 格式
+设备基础信息
视频通道信息
设备位置信息
设备其他信息