Browse Source

对接设备。入侵报警。拉取报警消息。摄像头抓图用来比对图片相似度

添加网络录像机设备
master
yangzongjia 2 years ago
parent
commit
73d78d17cd
  1. 5
      src/api/call.js
  2. 5
      src/views/baojingchaxun/baojingchaxunList.vue
  3. 19
      src/views/call.vue
  4. 24
      src/views/shebeitaizhang/shebeitaizhangAdd.vue
  5. 14
      src/views/shebeitaizhang/shebeitaizhangInfo.vue

5
src/api/call.js

@ -42,3 +42,8 @@ export function doCallMessageOffsets(data) {
export function getCallZoneStatusList(data) {
return request({ url: '/call/getCallZoneStatusList', method: 'GET'})
}
// 临时测试
export function callTempFunc() {
return request({ url: '/call/callTempFunc', method: 'GET'})
}

5
src/views/baojingchaxun/baojingchaxunList.vue

@ -187,11 +187,12 @@ export default {
},
init() {
getCallPolicePage(this.listQuery).then((res) => {
console.log(res)
if (res.code == 200) {
// this.list = res.data.records
this.list = res.data.records
this.total = res.total
} else {
// this.list = []
this.list = []
}
})
},

19
src/views/call.vue

@ -79,7 +79,7 @@
<div class="rights">
<div class="note" @click="getMessageList">拉取消息<span class="bluezi">38</span></div>
<div class="note" @click="doMessageOffsets">手动提交消息偏移量<span class="huizi">15</span></div>
<div class="note">消费者ID<span class="redzi">{{consumerId}}</span></div>
<div class="note" @click="tempFunc">消费者ID<span class="redzi">{{ consumerId }}</span></div>
</div>
<div class="bar">
</div>
@ -113,7 +113,17 @@
<script>
import { login1 } from '@/api/system/user/login.js'
import { getCallToken, getCallSonList, getCallArm, getCallDisArm, createCallConsumer, getCallMessageList, doCallMessageOffsets,getCallZoneStatusList } from '@/api/call.js'
import {
getCallToken,
getCallSonList,
getCallArm,
getCallDisArm,
createCallConsumer,
getCallMessageList,
doCallMessageOffsets,
getCallZoneStatusList,
callTempFunc
} from '@/api/call.js'
import * as echarts from "echarts";
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuan'
import HomeMap from '@/views/dashboard/components/HomeMap'
@ -181,6 +191,11 @@
console.log(res)
})
},
tempFunc() {
callTempFunc().then(res => {
console.log(res)
})
},
getZoneStatusList() {
getCallZoneStatusList().then(res => {
console.log(res)

24
src/views/shebeitaizhang/shebeitaizhangAdd.vue

@ -15,20 +15,28 @@
<div>编辑信息</div>
</div>
<el-row>
<el-col :span="4" class="tleftb">
<!-- <el-col :span="4" class="tleftb">
<span><span class="icon">*</span>设备验证码</span>
</el-col>
<el-col :span="8">
<el-form-item prop="vCode">
<el-input v-model="addForm.vCode" maxlength="20" placeholder="请填写设备验证码" class="addinputw" clearable />
</el-form-item>
</el-col> -->
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>设备名称</span>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="addForm.name" maxlength="20" placeholder="请填写设备名称" class="addinputw" clearable />
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>设备位置</span>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="addForm.posotion" maxlength="20" placeholder="请填写设备位置 " class="addinputw" clearable />
<el-input v-model="addForm.position" maxlength="20" placeholder="请填写设备位置 " class="addinputw" clearable />
</el-form-item>
</el-col>
</el-row>
@ -55,15 +63,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>设备名称</span>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="addForm.name" maxlength="20" placeholder="请填写设备名称" class="addinputw" clearable />
</el-form-item>
</el-col>
<!-- <el-row>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>设备序列号</span>
</el-col>
@ -73,7 +73,7 @@
clearable />
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
</div>

14
src/views/shebeitaizhang/shebeitaizhangInfo.vue

@ -14,11 +14,11 @@
</div>
<el-row>
<el-col :span="4" class="tleftb">
<span>设备验证码</span>
<span>设备名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ infoForm.vCode }}</span>
<span>{{ infoForm.name }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
@ -48,16 +48,6 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>设备名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ infoForm.name }}</span>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<el-col :span="4" class="tleftb">
<span>状态</span>

Loading…
Cancel
Save