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 @@
-
+