From 5fd1b2dc8997ab3adc819e8aca55e9831071b9c0 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期四, 10 八月 2023 13:41:20 +0800
Subject: [PATCH] 完善部分模块 导入问题

---
 ruoyi-ui/src/api/economy/index.js       |   17 ++++----
 ruoyi-ui/src/api/allmemo/index.js       |   25 ------------
 ruoyi-ui/src/api/collection/index.js    |   12 +++---
 ruoyi-ui/src/api/secret/index.js        |    8 +++
 ruoyi-ui/src/api/healthy/index.js       |    2 
 ruoyi-ui/src/views/economy/index.vue    |    2 
 ruoyi-ui/src/api/clean/index.js         |    4 +-
 ruoyi-ui/src/views/collection/index.vue |    4 +-
 8 files changed, 27 insertions(+), 47 deletions(-)

diff --git a/ruoyi-ui/src/api/allmemo/index.js b/ruoyi-ui/src/api/allmemo/index.js
index d570ef2..c4598ab 100644
--- a/ruoyi-ui/src/api/allmemo/index.js
+++ b/ruoyi-ui/src/api/allmemo/index.js
@@ -53,29 +53,4 @@
 
   })
 }
-//涓婁紶鏂囦欢
-export function uploadPic(data) {
-  return request({
-    url: '/common/upload',
-    method: 'post',
-    data: data
-  })
-}
-// //涓嬭浇鏂囦欢
-// export function download(data) {
-//   return request({
-//     url: '/common/downLoadFile',
-//     method: 'get',
-//     params: data,
-//     responseType: 'blob'
-//   })
-// }
-//涓婁紶鏂囦欢
-export function enload(data) {
-  return request({
-    url: '/zSelfNote/importData',
-    method: 'post',
-    data: data
-  })
-}
 
diff --git a/ruoyi-ui/src/api/clean/index.js b/ruoyi-ui/src/api/clean/index.js
index e1ad97d..faa4bf8 100644
--- a/ruoyi-ui/src/api/clean/index.js
+++ b/ruoyi-ui/src/api/clean/index.js
@@ -69,10 +69,10 @@
 }
 
 
-//涓婁紶鏂囦欢
+//瀵煎叆
 export function enload(data) {
   return request({
-    url: '/family/property/importData',
+    url: '/zfClean/importData',
     method: 'post',
     data: data
   })
diff --git a/ruoyi-ui/src/api/collection/index.js b/ruoyi-ui/src/api/collection/index.js
index 609f1d7..8d1f789 100644
--- a/ruoyi-ui/src/api/collection/index.js
+++ b/ruoyi-ui/src/api/collection/index.js
@@ -71,12 +71,12 @@
     responseType: 'blob'
   })
 }
-//瀵煎叆妯℃澘
-export function downloadModel(data) {
+
+//瀵煎叆
+export function enload(data) {
   return request({
-    url: '/zfCollection/model',
-    method: 'get',
-    params: data,
-    responseType: 'blob'
+    url: '/zfCollection/importData',
+    method: 'post',
+    data: data
   })
 }
diff --git a/ruoyi-ui/src/api/economy/index.js b/ruoyi-ui/src/api/economy/index.js
index 727fe4a..214e221 100644
--- a/ruoyi-ui/src/api/economy/index.js
+++ b/ruoyi-ui/src/api/economy/index.js
@@ -65,13 +65,12 @@
   })
 }
 
-//瀵煎叆鏁版嵁
-// export function download(data) {
-//   return request({
-//     url: '/zfEquipment/importData',
-//     method: 'post',
-//     params: data,
-//     responseType: 'blob'
-//   })
-// }
+//瀵煎叆
+export function enload(data) {
+  return request({
+    url: 'zfEconomy/importData',
+    method: 'post',
+    data: data
+  })
+}
 
diff --git a/ruoyi-ui/src/api/healthy/index.js b/ruoyi-ui/src/api/healthy/index.js
index a23c0dc..dd4810c 100644
--- a/ruoyi-ui/src/api/healthy/index.js
+++ b/ruoyi-ui/src/api/healthy/index.js
@@ -63,7 +63,7 @@
     responseType: 'blob'
   })
 }
-//涓婁紶鏂囦欢
+//瀵煎叆
 export function enload(data) {
   return request({
     url: '/zYearInfo/importData',
diff --git a/ruoyi-ui/src/api/secret/index.js b/ruoyi-ui/src/api/secret/index.js
index 36d54b7..f8097c7 100644
--- a/ruoyi-ui/src/api/secret/index.js
+++ b/ruoyi-ui/src/api/secret/index.js
@@ -63,5 +63,11 @@
     responseType: 'blob'
   })
 }
-
+export function enload(data) {
+  return request({
+    url: '/zSecret/importData',
+    method: 'post',
+    data: data
+  })
+}
 
diff --git a/ruoyi-ui/src/views/collection/index.vue b/ruoyi-ui/src/views/collection/index.vue
index 2ea46c5..6beab48 100644
--- a/ruoyi-ui/src/views/collection/index.vue
+++ b/ruoyi-ui/src/views/collection/index.vue
@@ -395,8 +395,8 @@
 
 
 //瀵煎叆鎺ュ彛鍑芥暟
-import {listCollection,listType, getCollection, addCollection,updateCollection, delCollection,uploadPic,downloadModel} from "@/api/collection/index";
-import {enload} from "@/api/doctor";
+import {listCollection,listType, getCollection, addCollection,updateCollection, delCollection,uploadPic,downloadModel,enload} from "@/api/collection/index";
+
 import {Message} from "element-ui";
 
 
diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue
index d9e3c65..fda7d6e 100644
--- a/ruoyi-ui/src/views/economy/index.vue
+++ b/ruoyi-ui/src/views/economy/index.vue
@@ -299,7 +299,7 @@
 
 
 //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁�  --鎺ュソ浜�
-import {listEconomy,enload,getEconomyInfo,delEconomy, addEconomy, uploadPic} from "@/api/economy/index";
+import {listEconomy,enload,delEconomy, addEconomy, uploadPic} from "@/api/economy/index";
 
 export default {
   name: "Role",

--
Gitblit v1.9.1