From cadd054568cd4039ab157fe20b257a984845988f Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 17 五月 2024 19:11:36 +0800 Subject: [PATCH] 用户列表展示部门管理员、不查询状态异常的用户、学习类型删除 --- src/views/onlineStudy/type.vue | 1 + src/views/user/admin/list.vue | 2 +- src/api/study-type.js | 1 + src/views/user/student/list.vue | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/study-type.js b/src/api/study-type.js index c3cab01..89c4e27 100644 --- a/src/api/study-type.js +++ b/src/api/study-type.js @@ -3,6 +3,7 @@ export default { page: query => get('/api/admin/study/type/page', query), add: data => post('/api/admin/study/type', data), + remove: data => post('/api/admin/study/type/remove/' + data), update: data => post('/api/admin/study/type/edit', data), list: () => post('/api/admin/study/type/list') } diff --git a/src/views/onlineStudy/type.vue b/src/views/onlineStudy/type.vue index af951f0..e3a599d 100644 --- a/src/views/onlineStudy/type.vue +++ b/src/views/onlineStudy/type.vue @@ -103,6 +103,7 @@ StudyTypeAPI.remove(id).then(res => { if (res.code === 1) { this.$message.success('鍒犻櫎鎴愬姛') + this.page() } }) }, diff --git a/src/views/user/admin/list.vue b/src/views/user/admin/list.vue index 922b592..d25dcbf 100644 --- a/src/views/user/admin/list.vue +++ b/src/views/user/admin/list.vue @@ -53,7 +53,7 @@ return { queryParam: { userName: '', - role: 3, + roles: [-1, 3], pageIndex: 1, pageSize: 10 }, diff --git a/src/views/user/student/list.vue b/src/views/user/student/list.vue index 5817b89..dd4f531 100644 --- a/src/views/user/student/list.vue +++ b/src/views/user/student/list.vue @@ -123,7 +123,7 @@ fileList:[], queryParam: { userName: '', - role: 1, + roles: [1], pageIndex: 1, pageSize: 10 }, -- Gitblit v1.8.0