Browse Source

🎈 perf: 优化抢课页面

Pchen. 1 month ago
parent
commit
6d2e92b173
1 changed files with 14 additions and 1 deletions
  1. 14 1
      src/pages/qk/taskList.vue

+ 14 - 1
src/pages/qk/taskList.vue

@@ -86,6 +86,8 @@
       </a-row>
       </AppQueryFilter>
 
+      <a-alert v-if="notice" style="margin-top: 15px;">{{ notice }}</a-alert>
+
       <a-table
         row-key="id"
         :data="data"
@@ -190,7 +192,7 @@
         <a-form-item label="选课批次" required>
           <a-select v-model="form.batch_id" placeholder="请选择抢课批次" allow-clear allow-search>
             <a-option v-for="item in batchOptions" :key="item.id" :value="item.id">
-              {{ item.name }}({{ item.jx0502zbid }})
+              {{ item.name }}
             </a-option>
           </a-select>
         </a-form-item>
@@ -258,6 +260,17 @@ import {
   splitQkLines,
   validateQkTaskForm
 } from '@/utils/qkTaskRules'
+import { getNotice } from '@/utils/util'
+
+const notice = ref('')
+
+const GetNotice = async () => {
+  const { path } = useRoute()
+  const res = await getNotice(path)
+  notice.value = res
+}
+
+GetNotice()
 
 const { tableFixed, isMobile } = useResponsiveTable()
 const canSubmit = computed(() => hasAnyPermission(QK_ASSISTANT_SUBMIT_CODES))