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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
| /*
| * @Date: 2024-04-07 21:49:32
| * @LastEditors: Sneed
| * @LastEditTime: 2024-04-13 21:05:15
| * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/setting.js
| */
| import config from "@/config"
| import http from "@/utils/request"
|
| export default {
| getList: {
| url: `${config.API_URL}/blade-visual/visual-comp-type/list`,
| name: "分类维护列表",
| get: async function(){
| return await http.get(this.url);
| }
| },
| insert: {
| url: `${config.API_URL}/blade-visual/visual-comp-type/insert`,
| name: "分类维护新增",
| post: async function(data){
| return await http.post(this.url,data);
| }
| },
| update: {
| url: `${config.API_URL}/blade-visual/visual-comp-type/update`,
| name: "分类维护编辑",
| post: async function(data){
| return await http.put(this.url,data);
| }
| },
| del: {
| url: `${config.API_URL}/blade-visual/visual-comp-type/remove`,
| name: "分类维护新增",
| delete: async function(data,conf){
| return await http.delete(this.url,data,conf);
| }
| },
| interfaceConfig: {
| getConList: {
| url: `${config.API_URL}/blade-system/interface-config/page`,
| name: "看板接口列表",
| get: async function(data){
| return await http.get(this.url,data,{params: data});
| }
| },
| add: {
| url: `${config.API_URL}/blade-system/interface-config/insert`,
| name: "看板接口新增",
| post: async function(data){
| return await http.post(this.url,data,{params: data});
| }
| },
| update: {
| url: `${config.API_URL}/blade-system/interface-config/update`,
| name: "看板接口更新",
| post: async function(data){
| return await http.put(this.url,data,{params: data});
| }
| },
| del: {
| url: `${config.API_URL}/blade-system/interface-config/remove`,
| name: "看板接口新增",
| delete: async function(data,conf){
| return await http.delete(this.url,data,conf);
| }
| },
| },
| component: {
| getList: {
| url: `${config.API_URL}/blade-visual/visual-comp/page`,
| name: "组件维护列表",
| get: async function(data){
| return await http.get(this.url,data,{params: data});
| }
| },
| getImgHost: {
| url: `${config.API_URL}/blade-resource/oss/default`,
| name: "获取文件服务host",
| get: async function(data){
| return await http.get(this.url,{},{params: data});
| }
| },
| del: {
| url: `${config.API_URL}/blade-visual/visual-comp/remove`,
| name: "组件删除",
| delete: async function(data,conf){
| return await http.delete(this.url,data,conf);
| }
| },
| add: {
| url: `${config.API_URL}/blade-visual/visual-comp/insert`,
| name: "组件新增",
| post: async function(data){
| return await http.post(this.url,data,{});
| }
| },
| update: {
| url: `${config.API_URL}/blade-visual/visual-comp/update`,
| name: "组件更新",
| post: async function(data,conf){
| return await http.put(this.url,data);
| }
| }
| },
| }
|
|