diff --git a/src/api/call.js b/src/api/call.js
new file mode 100644
index 0000000..794e4be
--- /dev/null
+++ b/src/api/call.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+// eslint-disable-next-line no-unused-vars
+import qs from 'qs'
+
+// 获取token
+export function getCallToken() {
+ return request({ url: '/call/getCallToken', method: 'GET', })
+}
+
+// 获取子系统列表
+export function getCallSonList() {
+ return request({ url: '/call/getCallSonList', method: 'GET', })
+}
+
+// 子系统布防
+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/router/index.js b/src/router/index.js
index d1b1a06..3775dec 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -56,6 +56,23 @@ export const constantRoutes = [
},
],
},
+ {
+ path: "/call",
+ component: Layout,
+ redirect: "/call",
+ children: [
+ {
+ path: "/call",
+ component: () => import("@/views/call.vue"),
+ name: "call",
+ meta: {
+ title: "报警",
+ noCache: true,
+ affix: true,
+ },
+ },
+ ],
+ },
{
path: "/monitor",
component: Layout,
diff --git a/src/views/call.vue b/src/views/call.vue
new file mode 100644
index 0000000..fdf4a71
--- /dev/null
+++ b/src/views/call.vue
@@ -0,0 +1,566 @@
+
+
+
+
+
+
+
+
+
+
+
获取token
+
+
+
+
获取子系统列表36
+
子系统布防:16
+
子系统撤防:16
+
+
+
+
+
+
+
+
+
+
+
创建消息消费者
+
+
+
+
拉取消息:38
+
手动提交消息偏移量:15
+
消费者ID:{{consumerId}}
+
+
+
+
+
+
+
+
+
+
获取所有防区状态
+
+
+
+
正常:26
+
离线:12
+
报警:11
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file