diff --git a/README.md b/README.md index 356aca7..9b7f644 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -52,4 +52,5 @@ FEATURE FEATURE - 完成 1.告警识别内容 2.通用例外 3.用户例外 4.告警信息查询 模块功能接口调试对接 FIX -- 修复 搜索时页码错误的问题 \ No newline at end of file +- 修复 搜索时页码错误的问题 +- 完成 禁入类别api交互,添加、查询、修改; diff --git a/src/api/area-category.js b/src/api/area-category.js new file mode 100644 index 0000000..fd3d2f3 --- /dev/null +++ b/src/api/area-category.js @@ -0,0 +1,33 @@ +/* + * @Author: gg + * @Date: 2021-12-07 11:39:21 + * @LastEditTime: 2021-12-07 11:48:22 + * @LastEditors: Please set LastEditors + * @Description: 新增/编辑自动报警分类 自动报警分类查询(分页) + * @FilePath: \GpsCardAdmin\src\api\area-category.js + */ +import request from '@/utils/request' +export const APILimits = { + AreaCategoryQuery, + AddAreaCategory +}; +export default APILimits; + + +export function AreaCategoryQuery(data) { + return request({ + url: '/api/v1/Fence/AreaCategoryQuery', + method: 'post', + data + }) + } + + export function AddAreaCategory(data) { + return request({ + url: '/api/v1/Fence/AddAreaCategory', + method: 'post', + data + }) + } + + \ No newline at end of file diff --git a/src/api/off-limits-type.js b/src/api/off-limits-type.js new file mode 100644 index 0000000..47406ed --- /dev/null +++ b/src/api/off-limits-type.js @@ -0,0 +1,42 @@ +/* + * @Author:gg + * @Date: 2021-12-02 18:04:02 + * @LastEditTime: 2021-12-07 11:47:46 + * @LastEditors: Please set LastEditors + * @Description: 禁入场景类别 新增 更新 删除 + * @FilePath: \GpsCardAdmin\src\api\off-limits-type.js + */ +import request from '@/utils/request' + +/* export function addSencens(data) { + return request({ + url: '/Sencens/add', + method: 'post', + data + }) + } */ + + + export function addType(data) { + return request({ + url: '/api/v1/Fence/AddAreaCategory', + method: 'post', + data + }) + } + + export function UpdateType(data) { + return request({ + url: '/LimitsType/Update', + method: 'post', + data + }) + } + + export function DelType(data) { + return request({ + url: '/LimitsType/Del', + method: 'post', + data + }) + } \ No newline at end of file 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 af46511..51e7c26 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,332 +1,241 @@ -