diff --git a/src/api/api_sys.js b/src/api/api_sys.js index ea255bc..19794d4 100644 --- a/src/api/api_sys.js +++ b/src/api/api_sys.js @@ -4,11 +4,21 @@ import http from '../utils/http' * 管理员列表 */ // 获取管理员列表 -export const apiGetSysUserList = params => { +export const apiSysUserList = params => { return http({ url: '/renren-fast-server/sys/user/list', method: 'get', params }) } // 获取管理员列表 -export const apiGetSysRoleSelect = params => { +export const apiSysRoleSelect = params => { return http({ url: '/renren-fast-server/sys/role/select', method: 'get', params }) } + +// 新增管理员 +export const apiSysUserSave = data => { + return http({ url: '/renren-fast-server/sys/user/save', method: 'post', data }) +} + +// 编辑管理员 +export const apiSysUserUpdate = data => { + return http({ url: '/renren-fast-server/sys/user/update', method: 'post', data }) +} diff --git a/src/views/modules/sys/user-add-or-update.vue b/src/views/modules/sys/user-add-or-update.vue index 313c41f..b6b05b5 100644 --- a/src/views/modules/sys/user-add-or-update.vue +++ b/src/views/modules/sys/user-add-or-update.vue @@ -3,9 +3,9 @@ :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> - - - + + + @@ -17,7 +17,7 @@ - + @@ -33,14 +33,14 @@ 取消 - 确定 + 确定