增加了bus 增加了分块区滚动 增加了table 增加了分页 修改了某些分页接口 角色增删

This commit is contained in:
pixelqm
2019-09-18 22:26:53 +08:00
parent 4b09e72db5
commit dc4700c557
21 changed files with 502 additions and 39 deletions

View File

@@ -0,0 +1,47 @@
import service from '@/utils/request'
// @Summary 用户登录
// @Produce application/json
// @Param {
// page int
// pageSize int
// }
// @Router /authority/getAuthorityList [post]
export const getAuthorityList = (data) => {
return service({
url: "/authority/getAuthorityList",
method: 'post',
data
})
}
// @Summary 删除角色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body {authorityId uint} true "删除角色"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /authority/deleteAuthority [post]
export const deleteAuthority = (data) => {
return service({
url: "/authority/deleteAuthority",
method: 'post',
data
})
}
// @Summary 创建角色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "创建角色"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /authority/createAuthority [post]
export const createAuthority = (data) => {
return service({
url: "/authority/createAuthority",
method: 'post',
data
})
}