From 99b062eeca471bdcbfcacd88e308fab9972cd6ec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 19 八月 2025 14:21:33 +0800
Subject: [PATCH] 展示优化
---
src/api/system/label.js | 95 +++++++++++++++++++++++++++++++++++++++--------
1 files changed, 79 insertions(+), 16 deletions(-)
diff --git a/src/api/system/label.js b/src/api/system/label.js
index 6e68fc6..448acb3 100644
--- a/src/api/system/label.js
+++ b/src/api/system/label.js
@@ -2,31 +2,60 @@
import { parseStrEmpty } from "@/utils/ruoyi";//澶勭悊瀛楃涓�,und,null杞崲涓�'';
// 淇敼鏍囩
-export function amendtag(data) {
+export function toamendtag(data) {
return request({
- url: '/base/tag',
- method: 'put',
+ url: '/base/tag/edit',
+ method: 'post',
+ data: data
+ })
+};
+// 鏍囩鐘舵�佷慨鏀�
+export function changetagcategory(tagid, isupload) {
+ const data = {
+ tagid,
+ isupload
+ }
+ return request({
+ url: '/base/tag/edit',
+ method: 'post',
+ data: data
+ })
+}
+// 淇敼鏍囩绫诲埆
+export function toamendtagcategory(data) {
+ return request({
+ url: '/system/tagcategory/edit',
+ method: 'post',
data: data
})
};
// 鏂板鏍囩
export function addapitag(data) {
return request({
- url: '/base/tag',
+ url: '/base/tag/add',
method: 'post',
data: data
})
};
+ // 鏂板鏍囩绫诲埆
+export function addtagcategory(data) {
+ return request({
+ url: '/system/tagcategory',
+ method: 'post',
+ data: data
+ })
+};
+
/**
*
- * @param {鏍囩id} userId
+ * @param {鏍囩id} tagid
* 鑾峰彇鏍囩璇︽儏
* @returns
*/
-export function detailstag(userId) {
+export function detailstag(tagid) {
return request({
- url: '/base/tag/'+ userId,
+ url: '/base/tag/'+ tagid,
method: 'get',
})
};
@@ -34,17 +63,34 @@
/**
*
- * @param {鏍囩id} userId
+ * @param {鏍囩id} tagid
* 鍒犻櫎鏍囩
* @returns
*/
-export function deletetag(userId) {
+export function deletetag(tagids) {
return request({
- url: '/base/tag/' + userId,
- method: 'delete',
+ url: '/base/tag/remove/' + tagids,
+ method: 'get',
})
};
- // 瀵煎嚭鏍囩鍒楄〃
+ /**
+ *
+ * @param {鏍囩id} tagid
+ * 鍒犻櫎鏍囩鍒嗙被
+ * @returns
+ */
+export function deletetagcategory(tagid) {
+ return request({
+ url: '/system/tagcategory/remove/' + tagid,
+ method: 'get',
+ })
+};
+ /**
+ *
+ * @param {*} data
+ * 瀵煎嚭鏍囩鍒楄〃
+ * @returns
+ */
export function exporttag(data) {
return request({
url: '/base/tag/export',
@@ -52,11 +98,28 @@
data: data
})
};
- // 鏌ヨ鏍囩鍒楄〃
-export function listtag(query) {
+ /**
+ *
+ * @param {object}
+ * 鏌ヨ鏍囩鍒楄〃
+ * @returns
+ */
+export function listtag(data) {
return request({
url: '/base/tag/list',
- method: 'get',
- params: query
+ method: 'post',
+ data: data
+ })
+ };
+ /**
+ * @param {name}
+ * 鑾峰彇鏍囩鍒嗙被鍒楄〃
+ * @returns
+ */
+ export function tagclassifylist(params) {
+ return request({
+ url: '/system/tagcategory/baseTagCategoryByName',
+ method: 'post',
+ params: params,
})
};
\ No newline at end of file
--
Gitblit v1.9.3