@@ -1,4 +1,4 @@ | |||||
NODE_ENV = production | |||||
NODE_ENV = test | |||||
# just a flag | # just a flag | ||||
ENV = 'test' | ENV = 'test' | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-29 11:14:13 | * @Date: 2021-11-29 11:14:13 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-23 11:34:51 | |||||
* @LastEditTime: 2021-12-23 17:45:46 | |||||
* @FilePath: \GpsCardAdmin\README.md | * @FilePath: \GpsCardAdmin\README.md | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -119,4 +119,7 @@ IMPROVEMENT | |||||
IMPROVEMENT | IMPROVEMENT | ||||
- 优化 用户例外和告警查询的搜索条件 | - 优化 用户例外和告警查询的搜索条件 | ||||
- 修复 用户例外弹窗标题显示错误的问题 | - 修复 用户例外弹窗标题显示错误的问题 | ||||
- 修改 用户和通用例外状态选择显示 | |||||
- 修改 用户和通用例外状态选择显示 | |||||
- 修复 删除用户例外时同一个imei的例外会全部删除的问题 | |||||
- 增加 告警类别删除功能(todo 待接口调整发布可开放) | |||||
- 增加 警告查询 内容中文查询功能 |
@@ -1,15 +1,16 @@ | |||||
/* | /* | ||||
* @Author: gg | * @Author: gg | ||||
* @Date: 2021-12-07 11:39:21 | * @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: 新增/编辑自动报警分类 自动报警分类查询(分页) | * @Description: 新增/编辑自动报警分类 自动报警分类查询(分页) | ||||
* @FilePath: \GpsCardAdmin\src\api\area-category.js | * @FilePath: \GpsCardAdmin\src\api\area-category.js | ||||
*/ | */ | ||||
import request from '@/utils/request' | import request from '@/utils/request' | ||||
export const APILimits = { | export const APILimits = { | ||||
AreaCategoryQuery, | AreaCategoryQuery, | ||||
AddAreaCategory | |||||
AddAreaCategory, | |||||
DeleteAreaCategory, //删除告警分类 | |||||
}; | }; | ||||
export default APILimits; | export default APILimits; | ||||
@@ -21,7 +22,7 @@ export function AreaCategoryQuery(data) { | |||||
data | data | ||||
}) | }) | ||||
} | } | ||||
export function AddAreaCategory(data) { | export function AddAreaCategory(data) { | ||||
return request({ | return request({ | ||||
url: '/api/v1/Fence/AddAreaCategory', | url: '/api/v1/Fence/AddAreaCategory', | ||||
@@ -29,5 +30,11 @@ export function AreaCategoryQuery(data) { | |||||
data | data | ||||
}) | }) | ||||
} | } | ||||
export function DeleteAreaCategory(params) { | |||||
return request({ | |||||
url: '/api/v1/Fence/DeleteAreaAlarmFilter', | |||||
method: 'post', | |||||
data: params | |||||
}) | |||||
} | |||||
@@ -105,7 +105,6 @@ export default { | |||||
watch: { | watch: { | ||||
// 监听浏览器可视窗口变化 | // 监听浏览器可视窗口变化 | ||||
screenWidth(val){ | screenWidth(val){ | ||||
console.log(val); | |||||
const IWIDTH = 991; | const IWIDTH = 991; | ||||
if(val - 1 < IWIDTH) { | if(val - 1 < IWIDTH) { | ||||
this.isMobile = true; | this.isMobile = true; | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-30 09:44:24 | * @Date: 2021-11-30 09:44:24 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-23 09:53:54 | |||||
* @LastEditTime: 2021-12-23 14:15:59 | |||||
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-query\index.vue | * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-query\index.vue | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -128,7 +128,8 @@ export default { | |||||
let reqBody = { | let reqBody = { | ||||
pageNumber: this.page, | pageNumber: this.page, | ||||
begNumber: this.limit, | 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 => { | APIAlarmQuery.getAlarmQuery(reqBody).then(res => { | ||||
this.list = res.data.map(m => { | this.list = res.data.map(m => { | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Author: your name | * @Author: your name | ||||
* @Date: 2021-12-07 15:14:51 | * @Date: 2021-12-07 15:14:51 | ||||
* @LastEditTime: 2021-12-23 10:28:30 | |||||
* @LastEditTime: 2021-12-23 17:44:51 | |||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @Description: 自动报警分类 | * @Description: 自动报警分类 | ||||
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\index.vue | * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\index.vue | ||||
@@ -121,7 +121,7 @@ export default { | |||||
title: "操作", | title: "操作", | ||||
actions: [ | actions: [ | ||||
{ fnName: "update", title: "修改", type: "primary", icon: 'el-icon-edit' }, | { fnName: "update", title: "修改", type: "primary", icon: 'el-icon-edit' }, | ||||
//{ fnName: "delete", title: "删除", type: "error" }, | |||||
/* { fnName: "delete", title: "删除", type: "danger" , icon: 'el-icon-delete'}, */ //todo 待接口发布可以开放 | |||||
], | ], | ||||
}, | }, | ||||
], | ], | ||||
@@ -237,6 +237,25 @@ export default { | |||||
// 删除 | // 删除 | ||||
onDelete(row) { | onDelete(row) { | ||||
console.log("删除", row); | console.log("删除", row); | ||||
this.$confirm("是否删除?", { | |||||
confirmButtonText: "确定", | |||||
cancelButtonText: "取消", | |||||
type: "warning" | |||||
}).then(() => { | |||||
let reqBody = { | |||||
id: row.keyId, | |||||
type: "category" | |||||
}; | |||||
CategoryAPI.DeleteAreaCategory(reqBody).then(res => { | |||||
if (res.code === 0) { | |||||
this.$message({ | |||||
type: "success", | |||||
message: "删除成功!" | |||||
}); | |||||
this.getList(); | |||||
} | |||||
}) | |||||
}) | |||||
}, | }, | ||||
}, | }, | ||||
mounted() { | mounted() { | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-30 09:44:24 | * @Date: 2021-11-30 09:44:24 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-23 11:43:25 | |||||
* @LastEditTime: 2021-12-23 15:45:42 | |||||
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue | * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -311,7 +311,7 @@ export default { | |||||
.then(() => { | .then(() => { | ||||
let reqBody = { | let reqBody = { | ||||
keyId: row.keyId, | keyId: row.keyId, | ||||
imei: row.imei | |||||
imei: "" | |||||
}; | }; | ||||
APIExceptionUser.delRecognitionUser(reqBody).then(res => { | APIExceptionUser.delRecognitionUser(reqBody).then(res => { | ||||
if (res.code === 0) { | if (res.code === 0) { | ||||
@@ -330,7 +330,7 @@ export default { | |||||
}) | }) | ||||
.catch(() => {}); | .catch(() => {}); | ||||
}, | }, | ||||
// 转通用例外 todo 待接口说明 | |||||
// 转通用例外 | |||||
onTransform(row) { | onTransform(row) { | ||||
console.log("row", row); | console.log("row", row); | ||||
this.dialogTrans = true; | this.dialogTrans = true; | ||||