From 95fe3563cb1d3419e5bf6761bb53d7b937c6fdca Mon Sep 17 00:00:00 2001 From: wangcong Date: Sun, 8 Sep 2024 20:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=97=85=E5=AE=B3=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api/defect.js | 44 +++ src/api/system/company.js | 44 +++ src/api/system/company/index.vue | 259 ------------- src/views/api/defect/index.vue | 595 +++++++++++++++++++++++++++++ src/views/system/company/index.vue | 3 +- 5 files changed, 684 insertions(+), 261 deletions(-) create mode 100644 src/api/api/defect.js create mode 100644 src/api/system/company.js delete mode 100644 src/api/system/company/index.vue create mode 100644 src/views/api/defect/index.vue diff --git a/src/api/api/defect.js b/src/api/api/defect.js new file mode 100644 index 0000000..624648a --- /dev/null +++ b/src/api/api/defect.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询病害列表 +export function listDefect(query) { + return request({ + url: '/api/defect/list', + method: 'get', + params: query + }) +} + +// 查询病害详细 +export function getDefect(id) { + return request({ + url: '/api/defect/' + id, + method: 'get' + }) +} + +// 新增病害 +export function addDefect(data) { + return request({ + url: '/api/defect', + method: 'post', + data: data + }) +} + +// 修改病害 +export function updateDefect(data) { + return request({ + url: '/api/defect', + method: 'put', + data: data + }) +} + +// 删除病害 +export function delDefect(id) { + return request({ + url: '/api/defect/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/company.js b/src/api/system/company.js new file mode 100644 index 0000000..54081ba --- /dev/null +++ b/src/api/system/company.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询公司列表 +export function listCompany(query) { + return request({ + url: '/system/company/list', + method: 'get', + params: query + }) +} + +// 查询公司详细 +export function getCompany(id) { + return request({ + url: '/system/company/' + id, + method: 'get' + }) +} + +// 新增公司 +export function addCompany(data) { + return request({ + url: '/system/company', + method: 'post', + data: data + }) +} + +// 修改公司 +export function updateCompany(data) { + return request({ + url: '/system/company', + method: 'put', + data: data + }) +} + +// 删除公司 +export function delCompany(id) { + return request({ + url: '/system/company/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/company/index.vue b/src/api/system/company/index.vue deleted file mode 100644 index 6c85e26..0000000 --- a/src/api/system/company/index.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - diff --git a/src/views/api/defect/index.vue b/src/views/api/defect/index.vue new file mode 100644 index 0000000..6ff532e --- /dev/null +++ b/src/views/api/defect/index.vue @@ -0,0 +1,595 @@ + + + diff --git a/src/views/system/company/index.vue b/src/views/system/company/index.vue index 6c85e26..e1b37c5 100644 --- a/src/views/system/company/index.vue +++ b/src/views/system/company/index.vue @@ -71,7 +71,6 @@ - @@ -93,7 +92,7 @@ - +