From 636bd57a8d194660467ec1286d3fba1f761bd182 Mon Sep 17 00:00:00 2001 From: 2183691628 <2183691628@qq.com> Date: Thu, 23 Dec 2021 17:46:03 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BE=8B=E5=A4=96=E6=97=B6=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AAimei=E7=9A=84=E4=BE=8B=E5=A4=96=E4=BC=9A=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98=20-=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=91=8A=E8=AD=A6=E7=B1=BB=E5=88=AB?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=EF=BC=88todo=20=E5=BE=85?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4=E5=8F=91=E5=B8=83=E5=8F=AF?= =?UTF-8?q?=E5=BC=80=E6=94=BE=EF=BC=89=20-=20=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E6=9F=A5=E8=AF=A2=20=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 2 +- README.md | 7 ++++-- src/api/area-category.js | 17 ++++++++++---- src/components/Pagination/index.vue | 1 - .../off-limits-manage/alarm-query/index.vue | 5 ++-- .../off-limits-main/off-limits-type/index.vue | 23 +++++++++++++++++-- .../user-exception/index.vue | 6 ++--- 7 files changed, 45 insertions(+), 16 deletions(-) diff --git a/.env.test b/.env.test index 9c2e43b..b0083a0 100644 --- a/.env.test +++ b/.env.test @@ -1,4 +1,4 @@ -NODE_ENV = production +NODE_ENV = test # just a flag ENV = 'test' diff --git a/README.md b/README.md index 5953b02..3671d2d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -119,4 +119,7 @@ IMPROVEMENT IMPROVEMENT - 优化 用户例外和告警查询的搜索条件 - 修复 用户例外弹窗标题显示错误的问题 -- 修改 用户和通用例外状态选择显示 \ No newline at end of file +- 修改 用户和通用例外状态选择显示 +- 修复 删除用户例外时同一个imei的例外会全部删除的问题 +- 增加 告警类别删除功能(todo 待接口调整发布可开放) +- 增加 警告查询 内容中文查询功能 \ No newline at end of file diff --git a/src/api/area-category.js b/src/api/area-category.js index fd3d2f3..ff79b10 100644 --- a/src/api/area-category.js +++ b/src/api/area-category.js @@ -1,15 +1,16 @@ /* * @Author: gg * @Date: 2021-12-07 11:39:21 - * @LastEditTime: 2021-12-07 11:48:22 - * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-12-23 14:22:25 + * @LastEditors: JinxuChen * @Description: 新增/编辑自动报警分类 自动报警分类查询(分页) * @FilePath: \GpsCardAdmin\src\api\area-category.js */ import request from '@/utils/request' export const APILimits = { AreaCategoryQuery, - AddAreaCategory + AddAreaCategory, + DeleteAreaCategory, //删除告警分类 }; export default APILimits; @@ -21,7 +22,7 @@ export function AreaCategoryQuery(data) { data }) } - + export function AddAreaCategory(data) { return request({ url: '/api/v1/Fence/AddAreaCategory', @@ -29,5 +30,11 @@ export function AreaCategoryQuery(data) { data }) } + export function DeleteAreaCategory(params) { + return request({ + url: '/api/v1/Fence/DeleteAreaAlarmFilter', + method: 'post', + data: params + }) + } - \ No newline at end of file diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 2f2e4f7..384466c 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -105,7 +105,6 @@ export default { watch: { // 监听浏览器可视窗口变化 screenWidth(val){ - console.log(val); const IWIDTH = 991; if(val - 1 < IWIDTH) { this.isMobile = true; diff --git a/src/views/off-limits-manage/alarm-query/index.vue b/src/views/off-limits-manage/alarm-query/index.vue index 326af6b..c1833dc 100644 --- a/src/views/off-limits-manage/alarm-query/index.vue +++ b/src/views/off-limits-manage/alarm-query/index.vue @@ -1,7 +1,7 @@ @@ -128,7 +128,8 @@ export default { let reqBody = { pageNumber: this.page, begNumber: this.limit, - imei: this.checkIsNumber(this.searchValue) ? this.searchValue : this.searchValue, + imei: this.checkIsNumber(this.searchValue) ? this.searchValue : "", + keyword: this.checkIsNumber(this.searchValue) ? "": this.searchValue }; APIAlarmQuery.getAlarmQuery(reqBody).then(res => { this.list = res.data.map(m => { diff --git a/src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue b/src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue index a408683..7375b7d 100644 --- a/src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue +++ b/src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue @@ -1,7 +1,7 @@ @@ -311,7 +311,7 @@ export default { .then(() => { let reqBody = { keyId: row.keyId, - imei: row.imei + imei: "" }; APIExceptionUser.delRecognitionUser(reqBody).then(res => { if (res.code === 0) { @@ -330,7 +330,7 @@ export default { }) .catch(() => {}); }, - // 转通用例外 todo 待接口说明 + // 转通用例外 onTransform(row) { console.log("row", row); this.dialogTrans = true;