diff --git a/src/api/model/common.js b/src/api/model/common.js
index 812c5b90..811ca9f8 100644
--- a/src/api/model/common.js
+++ b/src/api/model/common.js
@@ -5,8 +5,24 @@ export default {
upload: {
url: `${config.API_URL}/upload`,
name: "文件上传",
- post: async function(data){
- return await http.post(this.url, data);
+ post: async function(data, config={}){
+ return await http.post(this.url, data, config);
+ }
+ },
+ file: {
+ menu: {
+ url: `${config.API_URL}/file/menu`,
+ name: "获取文件分类",
+ get: async function(){
+ return await http.get(this.url);
+ }
+ },
+ list: {
+ url: `${config.API_URL}/file/list`,
+ name: "获取文件列表",
+ get: async function(params){
+ return await http.get(this.url, params);
+ }
}
}
}
diff --git a/src/api/model/system.js b/src/api/model/system.js
index cc6ceeee..8ea4e27d 100644
--- a/src/api/model/system.js
+++ b/src/api/model/system.js
@@ -4,7 +4,7 @@ import http from "@/utils/request"
export default {
menu: {
myMenus: {
- url: `${config.API_URL}/system/menu/my/1.2.6`,
+ url: `${config.API_URL}/system/menu/my/1.2.8`,
name: "获取我的菜单",
get: async function(){
return await http.get(this.url);
diff --git a/src/components/scFileSelect/index.vue b/src/components/scFileSelect/index.vue
new file mode 100644
index 00000000..10c000b1
--- /dev/null
+++ b/src/components/scFileSelect/index.vue
@@ -0,0 +1,283 @@
+
+
+
+ {{file.name}} {{item[fileProps.fileName]}}