1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| /*
| * @Date: 2024-03-23 09:49:06
| * @LastEditors: Sneed
| * @LastEditTime: 2024-04-13 20:14:23
| * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/common.js
| */
| import config from "@/config"
| import http from "@/utils/request"
|
| export default {
| upload: {
| url: `${config.API_URL}/blade-visual/visual/put-file`,
| name: "文件上传",
| post: async function(data, config={}){
| return await http.post(this.url, data, config);
| }
| },
| uploadFile: {
| url: `${config.API_URL}/uploadFile`,
| name: "附件上传",
| post: async function(data, config={}){
| return await http.post(this.url, data, config);
| }
| },
| exportFile: {
| url: `${config.API_URL}/fileExport`,
| name: "导出附件",
| get: async function(data, config={}){
| return await http.get(this.url, data, config);
| }
| },
| importFile: {
| url: `${config.API_URL}/fileImport`,
| name: "导入附件",
| 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);
| }
| }
| }
| }
|
|