From 9bee0b12896d72f497b0ef3ce93cde9f36de64ed Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 10 四月 2024 20:40:44 +0800
Subject: [PATCH] 完善分类维护页面
---
src/api/model/setting.js | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/api/model/setting.js b/src/api/model/setting.js
index 80f283e..9d78f36 100644
--- a/src/api/model/setting.js
+++ b/src/api/model/setting.js
@@ -1,7 +1,7 @@
/*
* @Date: 2024-04-07 21:49:32
* @LastEditors: Sneed
- * @LastEditTime: 2024-04-09 22:29:57
+ * @LastEditTime: 2024-04-10 19:45:58
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/setting.js
*/
import config from "@/config"
@@ -10,10 +10,31 @@
export default {
getList: {
url: `${config.API_URL}/blade-visual/visual-comp-type/list`,
- name: "鑾峰彇浼戞伅鏃ュ垪琛�",
+ 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);
+ }
+ },
}
\ No newline at end of file
--
Gitblit v1.9.3