From e6cb96f9627913dc975d206d10aef470e59d8b9e Mon Sep 17 00:00:00 2001 From: gmk Date: Wed, 8 Dec 2021 11:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E5=85=A5=E7=B1=BB=E5=88=ABapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/area-category.js | 33 ++ src/api/off-limits-type.js | 42 ++ .../off-limits-main/off-limits-type/index.vue | 523 ++++++++---------- .../off-limits-type/indexOld.vue | 332 +++++++++++ 4 files changed, 623 insertions(+), 307 deletions(-) create mode 100644 src/api/area-category.js create mode 100644 src/api/off-limits-type.js create mode 100644 src/views/off-limits-manage/off-limits-main/off-limits-type/indexOld.vue 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..8c1258c 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 @@ -