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;