|
@@ -47,6 +47,28 @@ const callbackExitEvent = () => {
|
|
|
emits('callbackExit', 'yes');
|
|
|
}
|
|
|
|
|
|
+// 管理学生会用到的参数
|
|
|
+let ModelManageStudentConfig = ref({
|
|
|
+ // 是否弹出
|
|
|
+ open : false,
|
|
|
+ // 当前选中的班级id
|
|
|
+ classId : null,
|
|
|
+})
|
|
|
+
|
|
|
+/**
|
|
|
+ * 管理学生弹出
|
|
|
+ * res
|
|
|
+ */
|
|
|
+const ModelManageStudentEvent = (res) => {
|
|
|
+
|
|
|
+ ModelManageStudentConfig.value.classId = res.id;
|
|
|
+ ModelManageStudentConfig.value.open = true;
|
|
|
+
|
|
|
+ // console.log("管理学生弹出", res, ModelManageStudentConfig.value);
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// let state = ref({
|
|
|
// listParams: {
|
|
|
// keyword: '',
|
|
@@ -678,7 +700,7 @@ onMounted(function() {
|
|
|
<el-table-column prop="name" label="班级" />
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="success" @click="btnDetail(scope.row)">管理学生</el-button>
|
|
|
+ <el-button link type="success" @click="ModelManageStudentEvent(scope.row)">管理学生</el-button>
|
|
|
<el-button link type="primary" @click="btnDetail(scope.row)">编辑</el-button>
|
|
|
<el-popconfirm :title="`你确定删除${scope.row.name}吗?`" @confirm="btnDel(scope.row)">
|
|
|
<template #reference>
|
|
@@ -763,14 +785,13 @@ onMounted(function() {
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 弹出 管理学生 -->
|
|
|
- <div class="ManageStudent" >
|
|
|
+ <div v-if="ModelManageStudentConfig.open == true" class="ManageStudent" >
|
|
|
<div class="ManageStudentMain" >
|
|
|
- <ModelManageStudent></ModelManageStudent>
|
|
|
+ <ModelManageStudent :configDb="ModelManageStudentConfig" ></ModelManageStudent>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|