Browse Source

✨ feat: 增加客户端类型展示

Pchen. 2 weeks ago
parent
commit
3dedea320f
1 changed files with 13 additions and 4 deletions
  1. 13 4
      src/pages/admin/lepaoAccount/accountList.vue

+ 13 - 4
src/pages/admin/lepaoAccount/accountList.vue

@@ -137,6 +137,11 @@
                     }}</span>
                     }}</span>
                     <span v-else><icon-notification-close /> 无通知</span>
                     <span v-else><icon-notification-close /> 无通知</span>
                 </template>
                 </template>
+                <template #update_type="{ record }">
+                    <span v-if="record.update_type === 'iphone'">iPhone</span>
+                    <span v-else-if="record.update_type === 'android'">Android</span>
+                    <span v-else>客户端</span>
+                </template>
                 <template #auto_day="{ record }">
                 <template #auto_day="{ record }">
                     <span v-if="record.auto_run && record.auto_day && record.auto_day.length > 0">
                     <span v-if="record.auto_run && record.auto_day && record.auto_day.length > 0">
                         {{record.auto_day.slice().sort((a, b) => {
                         {{record.auto_day.slice().sort((a, b) => {
@@ -413,14 +418,14 @@ const columnDefs = [
         title: '年级',
         title: '年级',
         dataIndex: 'grade_id',
         dataIndex: 'grade_id',
         width: 80
         width: 80
-    }, {
-        title: '通知方式',
-        slotName: 'notice_type',
-        width: 200
     }, {
     }, {
         title: '帐号状态',
         title: '帐号状态',
         slotName: 'state',
         slotName: 'state',
         width: 100
         width: 100
+    }, {
+        title: '通知方式',
+        slotName: 'notice_type',
+        width: 200
     }, {
     }, {
         title: '乐跑跑区',
         title: '乐跑跑区',
         dataIndex: 'area',
         dataIndex: 'area',
@@ -441,6 +446,10 @@ const columnDefs = [
         title: '学期目标',
         title: '学期目标',
         slotName: 'num',
         slotName: 'num',
         width: 90
         width: 90
+    }, {
+        title: '更新方式',
+        slotName: 'update_type',
+        width: 100
     }, {
     }, {
         title: '手机型号',
         title: '手机型号',
         dataIndex: 'deviceModel',
         dataIndex: 'deviceModel',