Browse Source

🎈 perf: 优化部分细节

Pchen0 1 month ago
parent
commit
1a628ce095

+ 7 - 8
src/pages/admin/lepaoAccount/accountList.vue

@@ -127,7 +127,7 @@
                 <template #notice_type="{ record }">
                     <span v-if="record.notice_type === 'email'"><icon-email /> {{ record.email ?? '未绑定' }}</span>
                     <span v-else-if="record.notice_type === 'bot'"><icon-robot /> {{ record.bot_account ?? '未绑定'
-                        }}</span>
+                    }}</span>
                     <span v-else><icon-notification-close /> 无通知</span>
                 </template>
                 <template #auto_day="{ record }">
@@ -313,7 +313,7 @@ const columns = [
         title: 'ID',
         dataIndex: 'id',
         fixed: 'left',
-        width: 65
+        width: 68
     }, {
         title: '创建用户',
         slotName: 'create_user',
@@ -325,7 +325,7 @@ const columns = [
     }, {
         title: '学号',
         dataIndex: 'student_num',
-        width: 115
+        width: 118
     }, {
         title: '性别',
         slotName: 'sex',
@@ -342,15 +342,14 @@ const columns = [
         title: '通知方式',
         slotName: 'notice_type',
         width: 200
-    },
-    {
-        title: '乐跑跑区',
-        dataIndex: 'area',
-        width: 150
     }, {
         title: '帐号状态',
         slotName: 'state',
         width: 100
+    }, {
+        title: '乐跑跑区',
+        dataIndex: 'area',
+        width: 150
     }, {
         title: '自动乐跑',
         slotName: 'auto_run',

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

@@ -139,7 +139,7 @@
               {{ calculatePace(record.result.time, record.result.distance) }}
             </template>
           </a-table-column>
-          <a-table-column title="乐跑时间" :width="170" ellipsis tooltip>
+          <a-table-column title="乐跑时间" :width="175" ellipsis tooltip>
             <template #cell="{ record }">
               {{ stramptoTime(record.time) }}
             </template>

+ 3 - 3
src/pages/lepao/accountList/index.vue

@@ -148,7 +148,7 @@
               </a-avatar>
             </template>
           </a-table-column>
-          <a-table-column title="学号" :width="115" data-index="student_num" ellipsis tooltip></a-table-column>
+          <a-table-column title="学号" :width="117" data-index="student_num" ellipsis tooltip></a-table-column>
           <a-table-column title="姓名" :width="130">
             <template #cell="{ record }">
               {{ record.name ?? '请使用乐跑登录器更新账号信息' }}
@@ -241,14 +241,14 @@
                 '已完成' }}
             </template>
           </a-table-column>
-          <a-table-column title="添加时间" :width="145" ellipsis tooltip :sortable="{
+          <a-table-column title="添加时间" :width="150" ellipsis tooltip :sortable="{
             sortDirections: ['ascend', 'descend']
           }">
             <template #cell="{ record }">
               {{ stramptoTime(record.create_time) }}
             </template>
           </a-table-column>
-          <a-table-column title="上次更新时间" :width="145" ellipsis tooltip>
+          <a-table-column title="上次更新时间" :width="150" ellipsis tooltip>
             <template #cell="{ record }">
               {{ record.update_time ? stramptoTime(record.update_time) : '待登录' }}
             </template>

+ 1 - 1
src/pages/lepao/countLedger/index.vue

@@ -6,7 +6,7 @@
 
     <a-card title="乐跑次数明细" style="margin-top: 15px;">
       <a-row class="queryForm">
-        <a-col :flex="1">
+        <a-col :flex="'1000px'">
           <a-form :model="queryData" :label-col-props="{ span: 6 }" :wrapper-col-props="{ span: 18 }" label-align="left">
             <a-row :gutter="16">
               <a-col :span="12">