From 0df8036e945ca4d8661a159dbd42d3f14f466c8d Mon Sep 17 00:00:00 2001 From: "1181364@qq.com" Date: Fri, 2 Jun 2023 12:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/device.js | 44 + .../shebeitaizhang/shebeitaizhangAdd.vue | 201 +---- .../shebeitaizhang/shebeitaizhangList.vue | 791 +++++++++--------- 3 files changed, 480 insertions(+), 556 deletions(-) create mode 100644 src/api/device/device.js diff --git a/src/api/device/device.js b/src/api/device/device.js new file mode 100644 index 0000000..5845dd4 --- /dev/null +++ b/src/api/device/device.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +// eslint-disable-next-line no-unused-vars +import qs from 'qs' + +// 添加设备 +export function createDevice(data) { + return request({ url: '/device/createDevice', method: 'post', params: data }) +} + +// 获取设备列表 +export function getDevicePage(data) { + return request({ url: '/device/getDevicePage', method: 'GET', params: data }) +} + +// 子系统布防 +export function getCallArm() { + return request({ url: '/call/getCallArm', method: 'GET', }) +} + +// 子系统撤防 +export function getCallDisArm() { + return request({ url: '/call/getCallDisArm', method: 'GET', }) +} + +// 创建消息消费者 +export function createCallConsumer() { + return request({ url: '/call/createCallConsumer', method: 'GET', }) +} + +// 获取消息列表 +export function getCallMessageList(data) { + return request({ url: '/call/getCallMessageList', method: 'GET', params: data }) +} + +// 提交消息偏移量 +export function doCallMessageOffsets(data) { + return request({ url: '/call/doCallMessageOffsets', method: 'GET', params: data }) +} + + +// 获取所有防区状态 +export function getCallZoneStatusList(data) { + return request({ url: '/call/getCallZoneStatusList', method: 'GET' }) +} \ No newline at end of file diff --git a/src/views/shebeitaizhang/shebeitaizhangAdd.vue b/src/views/shebeitaizhang/shebeitaizhangAdd.vue index 498746f..2778b40 100644 --- a/src/views/shebeitaizhang/shebeitaizhangAdd.vue +++ b/src/views/shebeitaizhang/shebeitaizhangAdd.vue @@ -16,12 +16,11 @@ - *设备编码 + *设备验证码 - - + + @@ -29,7 +28,7 @@ - @@ -39,53 +38,35 @@ *设备类型 - - - + + - 安装时间 + 备注 - - + + - *出厂时间 - - - - - - - - - 供货商 + *设备名称 - - + + - + - - - - - - - @@ -190,6 +95,7 @@ + } + - + \ No newline at end of file