From c6a9b11ff0783bcd81a043a179fbc27f685eee70 Mon Sep 17 00:00:00 2001 From: lxl <lixuliang_hd@126.com> Date: 星期一, 07 十一月 2022 16:19:43 +0800 Subject: [PATCH] 菜单 --- src/api/api.js | 81 ++++++++++++++++++++++++++++++++-------- 1 files changed, 64 insertions(+), 17 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index cff8da7..95ad999 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -196,6 +196,10 @@ //璇锋眰鑿滃崟鏍忔暟鎹� export function queryMenuTree() { + return request.get('/perms/selectMenus'); +} +// //璇锋眰缂栬緫鑿滃崟鏍忔暟鎹� +export function queryMenuAll() { return request.get('/menu/selectMenuAll'); } //鑿滃崟閫掑綊鏌ヨ鏁版嵁 @@ -244,11 +248,11 @@ export function queryDepTree() { return request.get('/dep/selectDepAll'); } -//鏂板鍗曟潯鐩綍 +//鏂板鍗曟潯鍗曚綅 export function insertDep(params) { return request.post('/dep/insertDep', params); } -//鍒犻櫎澶氭潯鐩綍 +//鍒犻櫎澶氭潯鍗曚綅 export function deleteDep(params) { return request.get('/dep/deleteDeps', { params: params }); } @@ -381,10 +385,33 @@ export function blacklistSelectByPageAndCount(params) { return request.get('/blacklist/selectByPageAndCount', { params: params }); } + +//榛戠櫧鍚嶅崟娣诲姞 +export function blacklistAppend(params) { + return request.post('/blacklist/insert', params); +} +//榛戠櫧鍚嶅崟鍒犻櫎 +export function deletelacklist(params) { + return request.get('/blacklist/deletes', { params: params }); +} +//榛戠櫧鍚嶅崟淇敼 +export function updateblacklist(params) { + return request.post('/blacklist/update', params); +} +//榛戠櫧鍚嶅崟缁熻 +export function blacklistSelectCount(params) { + return request.get('/blacklist/selectCount', { params: params }); +} + //鍏冩暟鎹鐞嗗垪琛ㄨ幏鍙� export function select_meta_ByPageAndCount(params) { return request.get('/meta/selectByPageAndCount', { params: params }); } +//鍏冩暟鎹鐞嗗垪琛ㄦ柊澧� +export function insertMeta(params) { + return request.post('/meta/insert', params); +} + //鍏冩暟鎹鐞嗗垪琛ㄤ慨鏀� export function updateMeta(params) { return request.post('/meta/update', params); @@ -411,11 +438,11 @@ export function querySitePoint(size, index, name) { return service.get( '/LFServer/SitePoint/Query?pageSize=' + - size + - '&pageIndex=' + - (index - 1) + - '&name=' + - name + size + + '&pageIndex=' + + (index - 1) + + '&name=' + + name ); } //璇锋眰绔欏満鐐规暟閲� @@ -426,11 +453,11 @@ export function queryStationSeries(size, index, name) { return service.get( '/LFServer/StationSeries/Query?pageSize=' + - size + - '&pageIndex=' + - (index - 1) + - '&name=' + - name + size + + '&pageIndex=' + + (index - 1) + + '&name=' + + name ); } //璇锋眰绠¢亾涓績绾挎暟閲� @@ -442,11 +469,11 @@ export function queryMarker(size, index, name) { return service.get( '/LFServer/Marker/Query?pageSize=' + - size + - '&pageIndex=' + - (index - 1) + - '&name=' + - name + size + + '&pageIndex=' + + (index - 1) + + '&name=' + + name ); } //璇锋眰鏍囨々鏁伴噺 @@ -499,3 +526,23 @@ { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 } ).toString(); } + +// 鏌ヨ褰撳墠鐢ㄦ埛鐨勬潈闄愭巿鏉冨疄浣撻泦鍚� +export function getPerms() { + return request.get('perms/selectPermsEntity'); +} +// 鏌ヨ鍊煎煙琛ㄧ粨鏋勬爲 +export function getDomainTabs() { + return request.get('domain/selectTabs'); +} +//鍒嗛〉鏌ヨ +export function getSingleTab(params) { + return request.get('domain/selectByPageAndCount', { params: params }); +} + +export function updateDomain(params) { + return service.post('domain/update', params); +} +export function insertDomain(params) { + return service.post('domain/insert', params); +} \ No newline at end of file -- Gitblit v1.9.3