From 27fac4e6af40ec26eb6d4da94e86b0a7600e69b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Tue, 5 Jan 2021 14:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E8=A7=84=E7=AE=A1=E7=90=86=E5=8F=8Amo?= =?UTF-8?q?del=E9=A1=B5=E5=B8=83=E5=B1=80=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http/http-api.js | 7 +- src/router/index.js | 9 ++ src/views/cameraManage/ioTable.vue | 5 +- src/views/cameraManage/model.vue | 2 +- src/views/productSpecManage/index.vue | 200 +++++++++++++++++++++++++ src/views/productSpecManage/model.vue | 207 ++++++++++++++++++++++++++ 6 files changed, 419 insertions(+), 11 deletions(-) create mode 100644 src/views/productSpecManage/index.vue create mode 100644 src/views/productSpecManage/model.vue diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index eece7bf..87b058b 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -74,12 +74,7 @@ export default { writeInCameraIoptz: { method: "POST", url: "/camera/io/ptz", - name: "球机IO指令写入" - }, - coverageCameraIo: { - method: "PUT", - url: "/camera/io", - name: "球机IO指令覆盖" + name: "球机IO指令写入/覆盖(调同一个接口)" }, cameraIoToPtz: { method: "POST", diff --git a/src/router/index.js b/src/router/index.js index da0c0b6..66d5288 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -112,6 +112,15 @@ const routes = [{ }, component: () => import('@/views/cameraManage/index') }, + { + path: 'productSpecManage', + name: 'productSpecManage', + meta: { + icon: 'pushpin', + name: '品规管理' + }, + component: () => import('@/views/productSpecManage/index') + }, { path: 'cameraManage/ioTable', name: 'ioTable', diff --git a/src/views/cameraManage/ioTable.vue b/src/views/cameraManage/ioTable.vue index 65ee7ba..58093d0 100644 --- a/src/views/cameraManage/ioTable.vue +++ b/src/views/cameraManage/ioTable.vue @@ -13,7 +13,7 @@ @change="handleChange" ref="table" > - + 导入 @@ -175,9 +175,6 @@ export default { }) }, - goIo(){ - this.$router.push({ name: "ioTable" }); - } }, components:{ Model diff --git a/src/views/cameraManage/model.vue b/src/views/cameraManage/model.vue index b4d34cd..dbb57e0 100644 --- a/src/views/cameraManage/model.vue +++ b/src/views/cameraManage/model.vue @@ -419,7 +419,7 @@ export default { console.log(this.id) console.log(data.id) console.log(type) - this.$api.httpApi.coverageCameraIo({ + this.$api.httpApi.writeInCameraIoptz({ data: { cameraId:this.id, cameraIOId:data.id, diff --git a/src/views/productSpecManage/index.vue b/src/views/productSpecManage/index.vue new file mode 100644 index 0000000..4a0721e --- /dev/null +++ b/src/views/productSpecManage/index.vue @@ -0,0 +1,200 @@ + + + + + diff --git a/src/views/productSpecManage/model.vue b/src/views/productSpecManage/model.vue new file mode 100644 index 0000000..018c8a6 --- /dev/null +++ b/src/views/productSpecManage/model.vue @@ -0,0 +1,207 @@ + + +