提交
This commit is contained in:
1 parent
14d53f60b0
commit
7b53c004ab
10 files changed
+1123
-296
No files matched your search
+447
-222
File diff suppressed because it is too large.
Load diff
@@ -132,7 +132,7 @@
|
||||
<template #header>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-button type="primary" icon="check" size="small" @click="handleAddRoom">分配给二级学院</el-button>
|
||||
<el-button type="primary" icon="check" size="small" @click="handleAddRoom">分配给班级</el-button>
|
||||
<el-button type="warning" icon="RefreshLeft" size="small" @click="handleBatchRecall">批量收回宿舍</el-button>
|
||||
</el-col>
|
||||
<el-col :span="12" style="text-align: right">
|
||||
@@ -340,11 +340,11 @@
|
||||
/>
|
||||
|
||||
<!-- 学院分配对话框 -->
|
||||
<college-allocation-dialog
|
||||
v-model="collegeAllocationDialog.visible"
|
||||
:title="collegeAllocationDialog.title"
|
||||
:selected-beds="collegeAllocationDialog.selectedBeds"
|
||||
:building-info="collegeAllocationDialog.buildingInfo"
|
||||
<class-allocation-dialog
|
||||
v-model="classAllocationDialog.visible"
|
||||
:title="classAllocationDialog.title"
|
||||
:selected-beds="classAllocationDialog.selectedBeds"
|
||||
:building-info="classAllocationDialog.buildingInfo"
|
||||
@success="handleCollegeAllocationSuccess"
|
||||
/>
|
||||
</div>
|
||||
@@ -368,7 +368,7 @@ import ElMessageBox from 'element-plus/es/components/message-box/index';
|
||||
// 引入子组件
|
||||
import RoomDialog from './components/RoomDialog.vue';
|
||||
import BedDialog from './components/BedDialog.vue';
|
||||
import CollegeAllocationDialog from './components/CollegeAllocationDialog.vue';
|
||||
import ClassAllocationDialog from './components/ClassAllocationDialog.vue';
|
||||
import { batchRecallDormBeds } from '@/api/xg/xgss/dormBedStudent/dormBedStudent';
|
||||
|
||||
// const { proxy } = getCurrentInstance();
|
||||
@@ -449,9 +449,9 @@ const bedDialog = reactive({
|
||||
});
|
||||
|
||||
// 学院分配对话框
|
||||
const collegeAllocationDialog = reactive({
|
||||
const classAllocationDialog = reactive({
|
||||
visible: false,
|
||||
title: '分配床位给二级学院',
|
||||
title: '分配床位给班级',
|
||||
selectedBeds: [] as any[],
|
||||
buildingInfo: undefined as DormTreeNode | undefined
|
||||
});
|
||||
@@ -668,9 +668,9 @@ const handleAddRoom = () => {
|
||||
}
|
||||
|
||||
// 准备分配对话框数据
|
||||
collegeAllocationDialog.selectedBeds = selectedBeds;
|
||||
collegeAllocationDialog.buildingInfo = selectedBuilding.value;
|
||||
collegeAllocationDialog.visible = true;
|
||||
classAllocationDialog.selectedBeds = selectedBeds;
|
||||
classAllocationDialog.buildingInfo = selectedBuilding.value;
|
||||
classAllocationDialog.visible = true;
|
||||
};
|
||||
|
||||
/** 批量收回宿舍 */
|
||||
|
||||
Reference in new issue
Block a user