Browse Source

fix: 修改班级课程管理

zcuishan 9 months ago
parent
commit
e9e00346bf
1 changed files with 8 additions and 11 deletions
  1. 8 11
      src/views/educational/classLessons/components/edit.vue

+ 8 - 11
src/views/educational/classLessons/components/edit.vue

@@ -38,6 +38,7 @@
     api: getBaseClassCourseGetAllCoursesAndTextbooks,
     useSearchForm: true,
     showTableSetting: true,
+    resizeHeightOffset: 200,
     rowSelection: {
       type: 'checkbox',
       onChange: (selectedRowKeys, selectedRows) => {
@@ -86,7 +87,7 @@
     rowKey: 'id',
     columns: tableColumns as any,
     showTableSetting: true,
-    resizeHeightOffset: 400,
+    resizeHeightOffset: 200,
     pagination: false,
     rowSelection: {
       type: 'checkbox',
@@ -158,16 +159,12 @@
     title="课程选择"
   >
     <div class="flex flex-row">
-      <div class="w-[700px] h-[700px]">
-        <BasicTable @register="allTable" />
-      </div>
-      <div class="w-[700px] h-[700px]">
-        <BasicTable @register="selectTable">
-          <template #toolbar>
-            <a-button @loading="isLoading" type="primary" @click="handleClear">批量移出</a-button>
-          </template>
-        </BasicTable>
-      </div>
+      <BasicTable class="w-1/2" @register="allTable" />
+      <BasicTable class="w-1/2" @register="selectTable">
+        <template #toolbar>
+          <a-button @loading="isLoading" type="primary" @click="handleClear">批量移出</a-button>
+        </template>
+      </BasicTable>
     </div>
   </BasicModal>
 </template>