From e1699c4851f6ca397cd0ad1ff63f32c737654836 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 02 Apr 2025 19:14:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/api/system/dict.js | 142 +++++++++++++++++++++++-----------------------
1 files changed, 71 insertions(+), 71 deletions(-)
diff --git a/src/api/system/dict.js b/src/api/system/dict.js
index 51daacc..f443a22 100644
--- a/src/api/system/dict.js
+++ b/src/api/system/dict.js
@@ -1,88 +1,88 @@
-import request from '@/axios';
+import request from '@/axios'
export const getList = (current, size, params) => {
- return request({
- url: '/blade-system/dict/list',
- method: 'get',
- params: {
- ...params,
- current,
- size,
- },
- });
-};
+ return request({
+ url: '/blade-system/dict/list',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ })
+}
export const getParentList = (current, size, params) => {
- return request({
- url: '/blade-system/dict/parent-list',
- method: 'get',
- params: {
- ...params,
- current,
- size,
- },
- });
-};
+ return request({
+ url: '/blade-system/dict/parent-list',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ })
+}
export const getChildList = (current, size, parentId, params) => {
- return request({
- url: '/blade-system/dict/child-list',
- method: 'get',
- params: {
- ...params,
- current,
- size,
- parentId: parentId,
- },
- });
-};
+ return request({
+ url: '/blade-system/dict/child-list',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ parentId: parentId,
+ },
+ })
+}
export const remove = ids => {
- return request({
- url: '/blade-system/dict/remove',
- method: 'post',
- params: {
- ids,
- },
- });
-};
+ return request({
+ url: '/blade-system/dict/remove',
+ method: 'post',
+ params: {
+ ids,
+ },
+ })
+}
export const add = row => {
- return request({
- url: '/blade-system/dict/submit',
- method: 'post',
- data: row,
- });
-};
+ return request({
+ url: '/blade-system/dict/submit',
+ method: 'post',
+ data: row,
+ })
+}
export const update = row => {
- return request({
- url: '/blade-system/dict/submit',
- method: 'post',
- data: row,
- });
-};
+ return request({
+ url: '/blade-system/dict/submit',
+ method: 'post',
+ data: row,
+ })
+}
export const getDict = id => {
- return request({
- url: '/blade-system/dict/detail',
- method: 'get',
- params: {
- id,
- },
- });
-};
+ return request({
+ url: '/blade-system/dict/detail',
+ method: 'get',
+ params: {
+ id,
+ },
+ })
+}
export const getDictTree = () => {
- return request({
- url: '/blade-system/dict/tree?code=DICT',
- method: 'get',
- });
-};
+ return request({
+ url: '/blade-system/dict/tree?code=DICT',
+ method: 'get',
+ })
+}
export const getDictionary = params => {
- return request({
- url: '/blade-system/dict/dictionary',
- method: 'get',
- params,
- });
-};
+ return request({
+ url: '/blade-system/dict/dictionary',
+ method: 'get',
+ params,
+ })
+}
--
Gitblit v1.9.3