From 316d969b4d6cff5e478d60f7bc739c4d39a6a0e7 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 13 九月 2022 18:48:57 +0800 Subject: [PATCH] 隐藏GB28181,点位监控日期排序, 修改功能打开方式 --- src/views/hashrate/HashManage/components/EquipmentForm.vue | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/views/hashrate/HashManage/components/EquipmentForm.vue b/src/views/hashrate/HashManage/components/EquipmentForm.vue index a4b41d5..2dbadfc 100644 --- a/src/views/hashrate/HashManage/components/EquipmentForm.vue +++ b/src/views/hashrate/HashManage/components/EquipmentForm.vue @@ -83,7 +83,7 @@ :current-page="page" :page-size="size" layout="total, sizes, prev, pager, next, jumper" - :page-sizes="[5, 10, 15, 20, 25]" + :page-sizes="[5, 10, 15, 20, 25, 100]" :total="total" background :small="true" @@ -133,19 +133,36 @@ this.dataList = res.data.lists this.total = res.data.total } + + // let exportList = [] + // 鏍规嵁rtsp 鎻愬彇ip鍦板潃 const ipReg = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ this.dataList.forEach((cam) => { + // var cinfo = { + // channel: cam.rtsp, + // nama: cam.name, + // task: cam.tasks + // .map((task) => { + // return task.taskname + // }) + // .join(",") + // } + + // exportList.push(cinfo) + // 鍥芥爣鎽勫儚鏈轰笉鏄剧ずip if (cam.type === 1) { cam.ip = "-" return } let ip = ipReg.exec(cam.rtsp) - if (ip.length > 0) { + if (ip && ip.length > 0) { cam.ip = ip[0] } }) + + // console.table(exportList) }, handleSizeChange(size) { this.size = size -- Gitblit v1.8.0