From ef31c9c82b52f10cd7f98427367e13b3237848de Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期三, 12 二月 2025 10:17:52 +0800 Subject: [PATCH] 数据字典页面迁移 --- src/api/system/dict/type.js | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index a7a6e01..481d76e 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -3,7 +3,7 @@ // 鏌ヨ瀛楀吀绫诲瀷鍒楄〃 export function listType(query) { return request({ - url: '/system/dict/type/list', + url: '/enum/selectEnumList', method: 'get', params: query }) @@ -20,7 +20,7 @@ // 鏂板瀛楀吀绫诲瀷 export function addType(data) { return request({ - url: '/system/dict/type', + url: '/enum/addEnum', method: 'post', data: data }) @@ -29,17 +29,18 @@ // 淇敼瀛楀吀绫诲瀷 export function updateType(data) { return request({ - url: '/system/dict/type', - method: 'put', + url: '/enum/upEnum', + method: 'post', data: data }) } // 鍒犻櫎瀛楀吀绫诲瀷 -export function delType(dictId) { +export function delType(data) { return request({ - url: '/system/dict/type/' + dictId, - method: 'delete' + url: '/enum/delEnum', + method: 'post', + data: data }) } @@ -57,4 +58,4 @@ url: '/system/dict/type/optionselect', method: 'get' }) -} \ No newline at end of file +} -- Gitblit v1.9.3