diff --git a/src/api/system/clazz.js b/src/api/system/clazz.js new file mode 100644 index 0000000..35005a4 --- /dev/null +++ b/src/api/system/clazz.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询班级列表 +export function listClazz(query) { + return request({ + url: '/system/clazz/list', + method: 'get', + params: query + }) +} + +// 查询班级详细 +export function getClazz(clazzId) { + return request({ + url: '/system/clazz/' + clazzId, + method: 'get' + }) +} + +// 新增班级 +export function addClazz(data) { + return request({ + url: '/system/clazz', + method: 'post', + data: data + }) +} + +// 修改班级 +export function updateClazz(data) { + return request({ + url: '/system/clazz/'+data.clazzId, + method: 'put', + data: data + }) +} + +// 删除班级 +export function delClazz(clazzId) { + return request({ + url: '/system/clazz/' + clazzId, + method: 'delete' + }) +} diff --git a/src/views/clazz/index.vue b/src/views/clazz/index.vue new file mode 100644 index 0000000..d71c301 --- /dev/null +++ b/src/views/clazz/index.vue @@ -0,0 +1,259 @@ + + + diff --git a/src/views/system/clazz/index.vue b/src/views/system/clazz/index.vue new file mode 100644 index 0000000..97af026 --- /dev/null +++ b/src/views/system/clazz/index.vue @@ -0,0 +1,259 @@ + + + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index a5e5ea6..025ce64 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -418,7 +418,7 @@ export default { }, // 角色状态修改 handleStatusChange(row) { - let text = row.status === "0" ? "启用" : "停用"; + let text = row.status === "0" ? "启用" : ""; this.$modal.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?').then(function () { return changeRoleStatus(row.roleId, row.status); }).then(() => {