-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
拖拽改变dom尺寸指令修改;字典请求接口修改;同一页面多次复用字典组件会请求多次接口优化;菜单修改不更新侧边栏名称问题修复;增加数据权限演…
…示页面;数据权限功能完成;角色、部门数据权限可不设置;
- Loading branch information
Showing
15 changed files
with
608 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* @Description: 测试表 | ||
* @Author: 拖孩 | ||
* @Email: 1240235512@qq.com | ||
* @Date: 2023-06-14 17:21:09 | ||
*/ | ||
import service from '@/utils/request' | ||
import { download } from '@/utils' | ||
|
||
/** | ||
* @description: 分页列表 | ||
* @param {*} | ||
* @return {*} | ||
*/ | ||
export function pageApi(params) { | ||
return service({ | ||
url: '/admin/test/page', | ||
method: 'get', | ||
params: params | ||
}) | ||
} | ||
|
||
/** | ||
* @description: 信息 | ||
* @param {*} | ||
* @return {*} | ||
*/ | ||
export function infoApi(params) { | ||
return service({ | ||
url: '/admin/test/info', | ||
method: 'get', | ||
params | ||
}) | ||
} | ||
|
||
/** | ||
* @description: 新增 | ||
* @param {*} | ||
* @return {*} | ||
*/ | ||
export function createApi(data) { | ||
return service({ | ||
url: '/admin/test/create', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
/** | ||
* @description: 更新 | ||
* @param {*} | ||
* @return {*} | ||
*/ | ||
export function updateApi(data) { | ||
return service({ | ||
url: '/admin/test/update', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
/** | ||
* @description: 删除 | ||
* @param {*} | ||
* @return {*} | ||
*/ | ||
export function deleteApi(data) { | ||
return service({ | ||
url: '/admin/test/delete', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
/** | ||
* 导出 | ||
* @returns | ||
*/ | ||
export async function exportApi(params) { | ||
const r = await service({ | ||
url: '/admin/test/export', | ||
method: 'get', | ||
responseType: 'blob', | ||
params | ||
}) | ||
if (r) { | ||
const { blob, name } = r | ||
download(blob, name) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.