diff --git a/src/api/category.js b/src/api/category.js index 4619d6a..5c47920 100644 --- a/src/api/category.js +++ b/src/api/category.js @@ -12,7 +12,7 @@ export const getCategoryTree = () => { // @Summary 新增分类 // @Produce application/json -// @Param menu Object +// @Param Object // @Router /category/add [post] export const addCategory = (data) => { return service({ @@ -36,7 +36,7 @@ export const deleteCategory = (data) => { // @Summary 修改分类 // @Produce application/json -// @Param menu Object +// @Param Object // @Router /category/update [put] export const updateCategory = (data) => { return service({ diff --git a/src/api/organize.js b/src/api/organize.js new file mode 100644 index 0000000..63c9db0 --- /dev/null +++ b/src/api/organize.js @@ -0,0 +1,63 @@ +import service from '@/utils/request' + +// @Summary 获取部门树 +// @Produce application/json +// @Router /organize/getTree [get] +export const getOrganizeTree = () => { + return service({ + url: '/organize/getTree', + method: 'get', + }) +} + +// @Tags 部门 +// @Summary 根据id获取部门 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param id int true "根据id获取" +// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}" +// @Router /organize/get [get] +export const getOrganizeById = (params) => { + return service({ + url: '/organize/get', + method: 'get', + params + }) +} + +// @Summary 新增部门 +// @Produce application/json +// @Param Object +// @Router /organize/add [post] +export const addOrganize = (data) => { + return service({ + url: '/organize/add', + method: 'post', + data + }) +} + +// @Summary 删除部门 +// @Produce application/json +// @Param ID int +// @Router /organize/delete [delete] +export const deleteOrganize = (data) => { + return service({ + url: '/organize/delete', + method: 'delete', + data + }) +} + +// @Summary 修改部门 +// @Produce application/json +// @Param Object +// @Router /organize/update [put] +export const updateOrganize = (data) => { + return service({ + url: '/organize/update', + method: 'put', + data + }) +} diff --git a/src/api/user.js b/src/api/user.js index f1f3638..2684a88 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -28,7 +28,7 @@ export const captcha = () => { // @Router /base/resige [post] export const register = (data) => { return service({ - url: '/user/admin_register', + url: '/user/adminRegister', method: 'post', data: data }) diff --git a/src/view/content/category/index.vue b/src/view/content/category/index.vue index bd3ca3a..c953ece 100644 --- a/src/view/content/category/index.vue +++ b/src/view/content/category/index.vue @@ -28,7 +28,7 @@ - + diff --git a/src/view/organize/components/organizeEdit.vue b/src/view/organize/components/organizeEdit.vue new file mode 100644 index 0000000..90ae62d --- /dev/null +++ b/src/view/organize/components/organizeEdit.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/src/view/organize/components/userEdit.vue b/src/view/organize/components/userEdit.vue new file mode 100644 index 0000000..3d0dbd0 --- /dev/null +++ b/src/view/organize/components/userEdit.vue @@ -0,0 +1,146 @@ + + + \ No newline at end of file diff --git a/src/view/organize/components/userList.vue b/src/view/organize/components/userList.vue new file mode 100644 index 0000000..934e65a --- /dev/null +++ b/src/view/organize/components/userList.vue @@ -0,0 +1,290 @@ + + + diff --git a/src/view/organize/index.vue b/src/view/organize/index.vue new file mode 100644 index 0000000..8f9239a --- /dev/null +++ b/src/view/organize/index.vue @@ -0,0 +1,141 @@ + + + + +