From 21e881b5e3f0fe4d601a71106d165503d0554875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Tue, 5 Jan 2021 11:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E6=9C=BA=E7=AE=A1=E7=90=86=3D>?= =?UTF-8?q?=E7=90=83=E6=9C=BA=E9=85=8D=E7=BD=AE=E5=88=97=E8=A1=A8=E3=80=81?= =?UTF-8?q?=E8=BD=AC=E8=87=B3=E9=85=8D=E7=BD=AE=E7=82=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http/http-api.js | 5 +++++ src/views/cameraManage/model.vue | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index cf4a6e2..eece7bf 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -81,6 +81,11 @@ export default { url: "/camera/io", name: "球机IO指令覆盖" }, + cameraIoToPtz: { + method: "POST", + url: "/camera/io/toPtz", + name: "转至球机IO配置点" + }, queryList: { url: '/order/list', name: '查询', diff --git a/src/views/cameraManage/model.vue b/src/views/cameraManage/model.vue index 8aad83e..b4d34cd 100644 --- a/src/views/cameraManage/model.vue +++ b/src/views/cameraManage/model.vue @@ -147,6 +147,9 @@ :pagination="false" :scroll="{y: 450 }" > + + {{text}} +
已写入 @@ -214,6 +217,7 @@ const columns = [ { title: 'PLC IO指令', dataIndex: 'name', + scopedSlots: { customRender: 'name' } }, { title: '位置', @@ -429,6 +433,19 @@ export default { }); }, + toPtz(data){ + this.$api.httpApi.cameraIoToPtz({ + data: { + cameraId:this.id, + cameraIOId:data.id, + name:data.name, + } + }).then(res => { + console.log(res) + }).catch(err => { + + }); + }, zoomDecStart(){ console.log('变倍-按下') @@ -873,4 +890,8 @@ export default { margin: 0; display: block; } + .ant-btn{ + white-space: inherit; + text-align: left; + }