diff --git a/src/api/device/device.js b/src/api/device/device.js
index 5231947..e744b13 100644
--- a/src/api/device/device.js
+++ b/src/api/device/device.js
@@ -14,7 +14,7 @@ export function createDevice(data) {
// 删除设备
export function removeDevice(data) {
- return request({ url: '/device/removeDevice', method: 'post', params: data })
+ return request({ url: '/device/removeDeviceByIds', method: 'GET', params: data })
}
// 获取设备列表
@@ -22,6 +22,11 @@ export function getDevicePage(data) {
return request({ url: '/device/getDevicePage', method: 'GET', params: data })
}
+// 获取设备状态列表
+export function getDeviceStatusPage(data) {
+ return request({ url: '/device/getDeviceStatusPage', method: 'GET', params: data })
+}
+
// 更新设备信息
export function updateDevice(data) {
return request({ url: '/device/updateDevice', method: 'post', params: data })
@@ -53,4 +58,5 @@ export function doCallMessageOffsets(data) {
// 获取所有防区状态
export function getCallZoneStatusList(data) {
return request({ url: '/call/getCallZoneStatusList', method: 'GET' })
-}
\ No newline at end of file
+}
+
diff --git a/src/api/deviceImage/deviceImage.js b/src/api/deviceImage/deviceImage.js
index 66c77d2..42cd9f4 100644
--- a/src/api/deviceImage/deviceImage.js
+++ b/src/api/deviceImage/deviceImage.js
@@ -2,7 +2,21 @@ import request from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
-// 获取设备日志列表
+// 获取设备抓拍图片列表
export function getDeviceImagePage(data) {
return request({ url: '/deviceImage/getDeviceImagePage', method: 'GET', params: data })
}
+
+
+// 单条获取设备抓拍图片
+export function getDeviceImageById(data) {
+ return request({ url: '/deviceImage/getDeviceImageById', method: 'GET', params: data })
+}
+
+
+// 获取视频
+export function getShiPinByChannelNo(data) {
+ return request({ url: '/deviceImage/getShiPinByChannelNo', method: 'GET', params: data })
+}
+
+
diff --git a/src/views/baojingchaxun/baojingchaxunList.vue b/src/views/baojingchaxun/baojingchaxunList.vue
index e485a32..6c0feaa 100644
--- a/src/views/baojingchaxun/baojingchaxunList.vue
+++ b/src/views/baojingchaxun/baojingchaxunList.vue
@@ -10,13 +10,13 @@
-
+
-
@@ -56,9 +56,9 @@
{{ scope.row.position }}
-
+
- {{ getSupplierType(scope.row.supplierTypeValue) }}
+ {{ scope.row.callType }}
@@ -105,18 +105,7 @@ export default {
sids: [],
// 查询 -----------
tableKey: 0,
- list: [
- { bianma: 'ZYR2060801', supplierTypeValue: '1', name: '电梯系统', weizhi: '库房', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-18 06:00:00', isElse: '待处理' },
- { bianma: 'ZYR2060802', supplierTypeValue: '1', name: '电梯系统', weizhi: '观察', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-19 06:00:00', isElse: '已处理' },
- { bianma: 'ZYR2060803', supplierTypeValue: '2', name: '电梯系统', weizhi: '后院', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-19 06:00:00', isElse: '待处理' },
- { bianma: 'ZYR2060804', supplierTypeValue: '2', name: '电梯系统', weizhi: '铁皮', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-20 06:00:00', isElse: '已处理' },
- { bianma: 'ZYR2060805', supplierTypeValue: '2', name: '电梯系统', weizhi: '盲点', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-20 06:00:00', isElse: '待处理' },
- { bianma: 'ZYR2060806', supplierTypeValue: '3', name: '电梯系统', weizhi: '凉亭', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-21 06:00:00', isElse: '待处理' },
- { bianma: 'ZYR2060807', supplierTypeValue: '3', name: '电梯系统', weizhi: '书房', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '已处理' },
- { bianma: 'ZYR2060808', supplierTypeValue: '4', name: '电梯系统', weizhi: '藏经阁', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '待处理' },
- { bianma: 'ZYR2060809', supplierTypeValue: '4', name: '电梯系统', weizhi: '车库', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '已处理' },
- { bianma: 'ZYR2060810', supplierTypeValue: '5', name: '电梯系统', weizhi: '斜坡', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '待处理' },
- ],
+ list: [],
listLoading: false,
listQuery: {
current: 1,
@@ -190,7 +179,7 @@ export default {
console.log(res)
if (res.code == 200) {
this.list = res.data.records
- this.total = res.total
+ this.listQuery.total = res.data.total
} else {
this.list = []
}
@@ -214,17 +203,17 @@ export default {
},
// 查询列表信息
getList() {
- // this.listLoading = true
- // req.gysPagerList(this.listQuery).then((response) => {
- // this.listLoading = false
- // if (response.code === '200' && response.data && response.data.total > 0) {
- // this.list = response.data.records
- // this.listQuery.total = response.data.total
- // } else {
- // this.list = []
- // this.listQuery.total = 0
- // }
- // })
+ this.listLoading = true
+ getCallPolicePage(this.listQuery).then((res) => {
+ this.listLoading = false
+ console.log(res)
+ if (res.code == 200) {
+ this.list = res.data.records
+ this.listQuery.total = res.data.total
+ } else {
+ this.list = []
+ }
+ })
},
// 查询按钮
handleFilter() {
diff --git a/src/views/shebeitaizhang/shebeitaizhangAdd.vue b/src/views/shebeitaizhang/shebeitaizhangAdd.vue
index 6ec2c42..c590424 100644
--- a/src/views/shebeitaizhang/shebeitaizhangAdd.vue
+++ b/src/views/shebeitaizhang/shebeitaizhangAdd.vue
@@ -63,17 +63,17 @@
-
+
diff --git a/src/views/shebeitaizhang/shebeitaizhangInfo.vue b/src/views/shebeitaizhang/shebeitaizhangInfo.vue
index 3755be5..66f5563 100644
--- a/src/views/shebeitaizhang/shebeitaizhangInfo.vue
+++ b/src/views/shebeitaizhang/shebeitaizhangInfo.vue
@@ -48,22 +48,22 @@
-
+ -->
+
diff --git a/src/views/shebeitaizhang/shebeitaizhangList.vue b/src/views/shebeitaizhang/shebeitaizhangList.vue
index 828e9f1..481f1ed 100644
--- a/src/views/shebeitaizhang/shebeitaizhangList.vue
+++ b/src/views/shebeitaizhang/shebeitaizhangList.vue
@@ -37,16 +37,19 @@
{{ searchxianshitit }}
查询
@@ -73,9 +76,9 @@
详情
-
+
- {{ scope.row.bianma }}
+ {{ scope.row.serialNumber }}
@@ -103,13 +106,13 @@
{{ scope.row.cangku }}
-
+
@@ -133,7 +136,7 @@ import ButtonBar from '@/components/ButtonBar'
// import { typeValues, getOrgSidByPath } from '@/api/cheliang/dictcommons'
import shebeitaizhangAdd from './shebeitaizhangAdd'
import shebeitaizhangInfo from './shebeitaizhangInfo'
-import { getDevicePage, getInfoById,removeDevice } from '@/api/device/device'
+import { getDevicePage, getInfoById, removeDevice } from '@/api/device/device'
// import req from '@/api/shebeitaizhang/shebeitaizhang'
import * as echarts from "echarts";
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuanb'
@@ -255,7 +258,7 @@ export default {
listLoading: false,
listQuery: {
current: 1,
- size: 5,
+ size: 10,
total: 0
},
supplierType_list: [
@@ -407,7 +410,7 @@ export default {
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
- aa.push(element.sid)
+ aa.push(element.id)
})
this.sids = aa
},
@@ -426,8 +429,8 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
- removeDevice(this.sids.toString()).then(resp => {
- if (resp.success) {
+ removeDevice({ ids: this.sids.toString() }).then(resp => {
+ if (resp.code == 200) {
loading.close()
this.$message({ type: 'success', message: resp.msg, showClose: true })
this.getList()
diff --git a/src/views/shebeizhuangtai/shebeizhuangtaiList.vue b/src/views/shebeizhuangtai/shebeizhuangtaiList.vue
index 86db32f..8d9f9af 100644
--- a/src/views/shebeizhuangtai/shebeizhuangtaiList.vue
+++ b/src/views/shebeizhuangtai/shebeizhuangtaiList.vue
@@ -7,21 +7,11 @@
{{ searchxianshitit }}
查询
@@ -40,69 +30,27 @@
@selection-change="handleSelectionChange">
-
-
-
- {{ getDeviceType(scope.row.deviceType) }}
+ {{ getDeviceType(scope.row.type) }}
-
+
- {{ scope.row.bianma }}
+ {{ scope.row.name }}
-
+
- {{ scope.row.ipAddress }}
+ {{ scope.row.position }}
- {{ getSupplierType(scope.row.supplierTypeValue) }}
- {{ getSupplierType(scope.row.supplierTypeValue) }}
-
-
-
@@ -112,339 +60,261 @@
-
-
+
diff --git a/src/views/zhiwujiance/zhiwujianceInfo.vue b/src/views/zhiwujiance/zhiwujianceInfo.vue
index 3b2ca76..144915e 100644
--- a/src/views/zhiwujiance/zhiwujianceInfo.vue
+++ b/src/views/zhiwujiance/zhiwujianceInfo.vue
@@ -62,146 +62,20 @@
- {{ infoForm.time }}
+ {{ infoForm.modifyTime }}
-
-
-
拍照图片
-
-
-
-
-
-
-
@@ -209,76 +83,81 @@
diff --git a/src/views/zhiwujiance/zhiwujianceList.vue b/src/views/zhiwujiance/zhiwujianceList.vue
index 1356158..a8434bb 100644
--- a/src/views/zhiwujiance/zhiwujianceList.vue
+++ b/src/views/zhiwujiance/zhiwujianceList.vue
@@ -5,7 +5,7 @@
-
{{ searchxianshitit }}
+
@@ -124,14 +108,11 @@
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
-// import { typeValues, getOrgSidByPath } from '@/api/cheliang/dictcommons'
import zhiwujianceAdd from './zhiwujianceAdd'
-// import zhiwujianceAddShebei from '@/views/zhiwujiance/shebei/shebeiList'
import zhiwujianceInfo from './zhiwujianceInfo'
-// import req from '@/api/zhiwujiance/zhiwujiance'
import * as echarts from "echarts";
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuanb'
-import { getDeviceImagePage } from '@/api/deviceImage/deviceImage'
+import { getDeviceImagePage, getShiPinByChannelNo } from '@/api/deviceImage/deviceImage'
// 1.1完好率饼图
const wanhao_Chart = {
@@ -172,8 +153,6 @@ const weixiu_Chart = {
show: false
}
},
-
- // radius: ['50%', '55%']
}
// 1.3损害率饼图
const sunhai_Chart = {
@@ -193,7 +172,6 @@ const sunhai_Chart = {
}
},
- // radius: ['50%', '55%']
}
export default {
@@ -203,7 +181,6 @@ export default {
pageye,
ButtonBar,
zhiwujianceAdd,
- // zhiwujianceAddShebei,
zhiwujianceInfo, PieChartrenyuan
},
data() {
@@ -213,48 +190,6 @@ export default {
sunhai_Chart: sunhai_Chart,
btndisabled: false,
btnList: [
- // {
- // type: 'primary',
- // size: 'small',
- // icon: 'plus',
- // btnKey: 'toAdd',
- // btnLabel: '新增'
- // },
- // {
- // type: 'danger',
- // size: 'small',
- // icon: 'del',
- // btnKey: 'doDel',
- // btnLabel: '删除'
- // },
- // {
- // type: 'primary',
- // size: 'small',
- // icon: '',
- // btnKey: 'toChangShang',
- // btnLabel: '获取厂商'
- // },
- // {
- // type: 'primary',
- // size: 'small',
- // icon: '',
- // btnKey: 'toGain',
- // btnLabel: '获取分公司'
- // },
- // {
- // type: 'success',
- // size: 'small',
- // icon: 'export',
- // btnKey: 'import',
- // btnLabel: '导入'
- // },
- // {
- // type: 'success',
- // size: 'small',
- // icon: 'export',
- // btnKey: 'build',
- // btnLabel: '导出'
- // },
{
type: 'info',
size: 'small',
@@ -286,21 +221,6 @@ export default {
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500',
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500'
},
- // { weizhi: '石家庄市长安区乐城', quyu: '开发区', mianji: '2000',
- // cenggao: '23', jiage: '263', xingzhi: '库房、物流仓储',
- // fangyuan: '中介', lianxiren: '孙宁', dianhua: '17073404927' ,leibie: '摄像头',beizhu:'备注2'},
- // { weizhi: '石家庄市长安区乐城', quyu: '开发区', mianji: '2000',
- // cenggao: '23', jiage: '263', xingzhi: '库房、物流仓储',
- // fangyuan: '中介', lianxiren: '孙宁', dianhua: '17073404927' ,leibie: '机器人',beizhu:'备注2'},
- // { weizhi: '石家庄市长安区乐城', quyu: '开发区', mianji: '2000',
- // cenggao: '23', jiage: '263', xingzhi: '库房、物流仓储',
- // fangyuan: '中介', lianxiren: '孙宁', dianhua: '17073404927' ,leibie: '电子围栏',beizhu:'备注2'},
- // { weizhi: '石家庄市长安区乐城', quyu: '开发区', mianji: '2000',
- // cenggao: '23', jiage: '263', xingzhi: '库房、物流仓储',
- // fangyuan: '中介', lianxiren: '孙宁', dianhua: '17073404927' ,leibie: '门禁',beizhu:'备注2'},
- // { weizhi: '石家庄市长安区乐城', quyu: '开发区', mianji: '2000',
- // cenggao: '23', jiage: '263', xingzhi: '库房、物流仓储',
- // fangyuan: '中介', lianxiren: '孙宁', dianhua: '17073404927' ,leibie: '摄像头',beizhu:'备注2'},
],
Datalista: [
@@ -341,11 +261,11 @@ export default {
dialogImage: false,
// 视频开始
videoSrc: '../../../image/cangkushipin.mp4',
-
playStatus: '',
muteStatus: '',
isMute: true,
isPlay: false,
+ spUrl: "",
width: '100%', // 设置视频播放器的显示宽度(以像素为单位)
height: '430', // 设置视频播放器的显示高度(以像素为单位)
preload: 'auto', // 建议浏览器是否应在