From fe61c2030200e9decbd8baf080990a53af8a73e9 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Fri, 24 Mar 2023 18:08:02 +0800 Subject: [PATCH 01/11] =?UTF-8?q?feature=20-=20alarmDetails=20=20=20=20=20?= =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20=E6=B6=89=E6=B0=B4=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E9=A1=B5=E9=9D=A2=20-=20amap.js=20=20=20=20?= =?UTF-8?q?=20-=20=E5=A2=9E=E5=8A=A0=20=E9=AB=98=E5=BE=B7=E5=9C=B0?= =?UTF-8?q?=E5=9B=BEjs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +- src/config/amap.js | 40 ++++ src/config/models.js | 4 +- src/main.js | 4 +- src/router/index.js | 4 +- src/views/alarm/alarm-details.vue | 315 ++++++++++++++++++++++++++++++ 6 files changed, 372 insertions(+), 6 deletions(-) create mode 100644 src/config/amap.js create mode 100644 src/views/alarm/alarm-details.vue diff --git a/README.md b/README.md index 91a2ea6..9034403 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -271,3 +271,12 @@ feat - packageList,packageBuy - 增加 下单接口iccid参数 + + +## v1.0.32 +`2023.3.24` +feature +- alarmDetails + - 增加 涉水区域告警页面 +- amap.js + - 增加 高德地图js \ No newline at end of file diff --git a/src/config/amap.js b/src/config/amap.js new file mode 100644 index 0000000..b96e890 --- /dev/null +++ b/src/config/amap.js @@ -0,0 +1,40 @@ +export default function MapLoader(isSyncLoad = false, pluginsArr = []) { + // plugin: 字符串数组[ 'AMap.Geocoder', ... ] + return new Promise((resolve, reject) => { + try { + if (window.AMap && (pluginsArr === null || pluginsArr === undefined || pluginsArr.length === 0)) { + resolve(window.AMap); + } else { + var script = document.createElement('script'); + script.type = 'text/javascript'; + script.async = !isSyncLoad; + script.src = 'https://webapi.amap.com/maps?v=1.4.15&callback=initAMap&key=' + + '6e4a6c39ea6d18b8dd3151baa3a7c0d5' + + '&plugin=AMap.BezierCurveEditor' + + (pluginsArr ? ',' + pluginsArr.join(',') : ''); + script.onerror = reject; + document.head.appendChild(script); + + var script1 = document.createElement('script'); + script1.type = 'text/javascript'; + script1.async = false; + script1.src = 'https://webapi.amap.com/ui/1.0/main.js?v=1.0.11'; + script1.onerror = reject; + if (isSyncLoad) { + document.head.appendChild(script1); + } + + } + window.initAMap = () => { + resolve(window.AMap); + } + // JSAPI key搭配静态安全密钥以明文设置, 详情见: https://lbs.amap.com/api/jsapi-v2/guide/abc/load + window._AMapSecurityConfig = { + securityJsCode:'6a421e1233cd12dd4899e373e11bb641', + } + } catch (e) { + console.log(e); + } + + }) +} \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index 8c8258a..02be0a7 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2023-03-13 09:35:07 + * @LastEditTime: 2023-03-24 18:07:12 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.31F'; //版本号 +export const VERSION_MODEL = '1.0.32F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/main.js b/src/main.js index 46e0df2..dbe4580 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ /* * @Date: 2022-01-19 10:08:26 * @LastEditors: JinxChen - * @LastEditTime: 2023-02-26 14:40:46 + * @LastEditTime: 2023-03-24 17:54:06 * @FilePath: \TelpoH5FrontendWeb\src\main.js * @description: */ @@ -53,6 +53,7 @@ import { TabbarItem, Tabs, Toast, + ActionSheet, } from 'vant'; //按需加载vant组件 Vue @@ -94,6 +95,7 @@ Vue .use(TabbarItem) .use(Tabs) .use(Toast) +.use(ActionSheet) Vue.config.productionTip = false; Vue.config.devtools = true; diff --git a/src/router/index.js b/src/router/index.js index 66c6911..88fa066 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,7 @@ /* * @Date: 2023-02-25 16:34:35 * @LastEditors: JinxChen - * @LastEditTime: 2023-03-14 09:33:17 + * @LastEditTime: 2023-03-24 14:40:54 * @FilePath: \TelpoH5FrontendWeb\src\router\index.js * @description: */ @@ -30,7 +30,7 @@ const routes = [ { path: '/activeStatus', name: 'activeStatus', component: resolve => require(['@/views/active-status'], resolve) }, { path: '/cardActive', name: 'cardActive', component: resolve => require(['@/views/card-active'], resolve) }, - + { path: '/alarmDetails', name: 'alarmDetails', component: resolve => require(['@/views/alarm/alarm-details'], resolve) }, ]; const router = new VueRouter({ diff --git a/src/views/alarm/alarm-details.vue b/src/views/alarm/alarm-details.vue new file mode 100644 index 0000000..855f610 --- /dev/null +++ b/src/views/alarm/alarm-details.vue @@ -0,0 +1,315 @@ + + + + + From 1aebfaaf307014519129d6a723f8a08f12eb3b61 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Mon, 27 Mar 2023 16:22:47 +0800 Subject: [PATCH 02/11] =?UTF-8?q?feature=20-=20alarmDetails=20=20=20=20=20?= =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20=E8=AF=AF=E6=8A=A5=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E8=AE=BE=E7=BD=AE=E8=AF=A5=E8=AE=BE=E5=A4=87IMEI?= =?UTF-8?q?=E4=B8=8E=E8=AF=A5=E6=B0=B4=E5=9F=9F=E5=91=8A=E8=AD=A6poi=5Fid?= =?UTF-8?q?=E4=B8=8D=E5=81=9A=E4=BB=BB=E4=BD=95=E6=8A=A5=E8=AD=A6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++- src/api/core.js | 10 ++- src/config/models.js | 4 +- src/main.js | 4 +- src/views/alarm/alarm-details.vue | 111 ++++++++++++++++++++++++++---- 5 files changed, 119 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 9034403..85821e9 100644 --- a/README.md +++ b/README.md @@ -279,4 +279,10 @@ feature - alarmDetails - 增加 涉水区域告警页面 - amap.js - - 增加 高德地图js \ No newline at end of file + - 增加 高德地图js + +## v1.0.33 +`2023.3.27` +feature +- alarmDetails + - 增加 误报功能,设置该设备IMEI与该水域告警poi_id不做任何报警信息处理 \ No newline at end of file diff --git a/src/api/core.js b/src/api/core.js index 47ca481..9c8668f 100644 --- a/src/api/core.js +++ b/src/api/core.js @@ -1,7 +1,7 @@ /* * @Date: 2021-12-18 15:49:01 * @LastEditors: JinxChen - * @LastEditTime: 2023-02-25 17:04:23 + * @LastEditTime: 2023-03-27 15:29:01 * @FilePath: \TelpoH5FrontendWeb\src\api\core.js * @description: * b端的接口, 每次调用前先获取token @@ -29,6 +29,7 @@ export const APICore = { GpsDeviceFence, //围栏 redis cardPackageList, //零川基础套餐列表 devicePayPackage, + drownReportFilterAdd,//添加过滤危险水域区域 } /* const headerAuth = this.$store.getters.gatewayToken; */ // 获取告警详情 @@ -93,4 +94,11 @@ function devicePayPackage(imei) { params: {imei}, }) } +function drownReportFilterAdd(data) { + return service({ + url: `${baseUrl}/core/api/v1/Device/DrownReportFilterAdd`, + method: 'post', + data, + }); +} export default APICore; diff --git a/src/config/models.js b/src/config/models.js index 02be0a7..e2283b5 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2023-03-24 18:07:12 + * @LastEditTime: 2023-03-27 16:19:56 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.32F'; //版本号 +export const VERSION_MODEL = '1.0.33F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/main.js b/src/main.js index dbe4580..19f8ae2 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ /* * @Date: 2022-01-19 10:08:26 * @LastEditors: JinxChen - * @LastEditTime: 2023-03-24 17:54:06 + * @LastEditTime: 2023-03-27 16:04:16 * @FilePath: \TelpoH5FrontendWeb\src\main.js * @description: */ @@ -101,7 +101,7 @@ Vue.config.productionTip = false; Vue.config.devtools = true; // 全局配置 loading Toast.setDefaultOptions('success', { - duration: 1500, + duration: 2500, forbidClick: true, }); Toast.setDefaultOptions('loading', { diff --git a/src/views/alarm/alarm-details.vue b/src/views/alarm/alarm-details.vue index 855f610..230a88e 100644 --- a/src/views/alarm/alarm-details.vue +++ b/src/views/alarm/alarm-details.vue @@ -1,19 +1,19 @@