Browse Source

✨ feat: 增加乐跑时段检索

Pchen. 8 months ago
parent
commit
afc14ad9df
3 changed files with 23 additions and 8 deletions
  1. 1 1
      .env
  2. 5 5
      src/pages/admin/lepaoRecords/lepaoRecords.vue
  3. 17 2
      src/pages/lepao/accountList/index.vue

+ 1 - 1
.env

@@ -1,4 +1,4 @@
 NODE_ENV=production
 VITE_APP_API_BASE_URL=https://lepao-api.xxoo365.top
 VITE_RSA_PUBLIC_KEY=LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF6Z1lGYzVRMGVqbTh4akZsSjdMSQpBZDJGeC9TalM0OWQ5emwyZHlaNzNDMGZLU3Fuc1pJQUZkREpWZWV6bUp6T1hOWFdoYVZHaHFwM0dCUWVvcDBKClIxekZ3bUs1em9ReElTTDc5WVF3SmxoSjdaellhL0xNcGtGZDRDVFQ4UzUwTGFzN1FpcUtqRE1BQjFLZEpaTnIKNE5HcjNUWVV4MVVpTzlUTW9YV3lBdFZRQVN2a3lFSVFIb3B4T2Vod0ZuNGRhVE8vLzF5TXRyNnZoclE4enJRMwpxUG01YWJmY0lRM3B1WDVJd1MrekRmSkI5Rm9rc0paa3RWNHI2KzM2U1E3WGp2MDFBQjJvK20yejZqNzNuWjQ1Ci95TEx5NmZHTG5lTWpTaUxHMDhNUWFCUjV1dTNITTRnMkpnanA4eU10Rkg1Tkc5Zys1dXRhTDNzd3JGQjhxd1UKdFFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==
-VITE_APP_VERSION=1.3
+VITE_APP_VERSION=1.4

+ 5 - 5
src/pages/admin/lepaoRecords/lepaoRecords.vue

@@ -77,11 +77,6 @@
               {{ record.username }}
             </template>
           </a-table-column>
-          <a-table-column title="学号" :width="120" data-index="lepao_account" ellipsis tooltip :filterable="{
-            filter: (value, record) => (record.lepao_account ?? '').includes(value),
-            slotName: 'name-filter',
-            icon: () => h(IconSearch)
-          }"></a-table-column>
           <a-table-column title="账号名称" :filterable="{
             filter: (value, record) => (record.name ?? '').includes(value),
             slotName: 'name-filter',
@@ -95,6 +90,11 @@
               {{ record.name }}
             </template>
           </a-table-column>
+          <a-table-column title="学号" :width="120" data-index="lepao_account" ellipsis tooltip :filterable="{
+            filter: (value, record) => (record.lepao_account ?? '').includes(value),
+            slotName: 'name-filter',
+            icon: () => h(IconSearch)
+          }"></a-table-column>
           <a-table-column title="状态" ellipsis tooltip :width="230">
             <template #cell="{ record }">
               <div class="state">

+ 17 - 2
src/pages/lepao/accountList/index.vue

@@ -63,6 +63,16 @@
                   <a-select v-model="queryDataForm.state" :options="state" placeholder="请选择账号状态" :default-value="-1" />
                 </a-form-item>
               </a-col>
+              <a-col :span="8">
+                <a-form-item field="auto_time" label="乐跑时段">
+                  <a-select v-model="queryDataForm.auto_time" placeholder="请选择自动乐跑时段" :default-value="-1">
+                    <a-option :value="-1">所有时段</a-option>
+                    <a-option v-for="(item, index) in auto_time" :key="index" :value="item.value">
+                      {{ item.label }}
+                    </a-option>
+                  </a-select>
+                </a-form-item>
+              </a-col>
             </a-row>
           </a-form>
         </a-col>
@@ -286,14 +296,16 @@ const queryDataForm = reactive({
   student_num: '',
   email: '',
   username: '',
-  state: -1
+  state: -1,
+  auto_time: -1
 })
 const queryData = reactive({
   area: '',
   student_num: '',
   email: '',
   username: '',
-  state: -1
+  state: -1,
+  auto_time: -1
 })
 
 const pagination = reactive({
@@ -343,6 +355,7 @@ const search = () => {
   queryData.email = queryDataForm.email
   queryData.username = queryDataForm.username
   queryData.state = queryDataForm.state
+  queryData.auto_time = queryDataForm.auto_time
 
   getAccountsAsync()
 }
@@ -353,12 +366,14 @@ const reset = () => {
   queryDataForm.email = ''
   queryDataForm.username = ''
   queryDataForm.state = -1
+  queryDataForm.auto_time = -1
 
   queryData.area = ''
   queryData.student_num = ''
   queryData.email = ''
   queryData.username = ''
   queryData.state = -1
+  queryData.auto_time = -1
 
   getAccountsAsync()
 }