From 6c649ef46d733232544ffa1e3e40b4cabfb0f1f5 Mon Sep 17 00:00:00 2001
From: lijiayao <13831655+xiao-yao-charge-forward@user.noreply.gitee.com>
Date: Mon, 22 Apr 2024 21:58:45 +0800
Subject: [PATCH] =?UTF-8?q?=E6=93=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/clazz.js | 44 ++++++
src/views/clazz/index.vue | 259 +++++++++++++++++++++++++++++++
src/views/system/clazz/index.vue | 259 +++++++++++++++++++++++++++++++
src/views/system/role/index.vue | 2 +-
4 files changed, 563 insertions(+), 1 deletion(-)
create mode 100644 src/api/system/clazz.js
create mode 100644 src/views/clazz/index.vue
create mode 100644 src/views/system/clazz/index.vue
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(() => {