tangning 1 rok pred
rodič
commit
a62d985ec4

+ 1 - 0
src/locales/lang/zh-CN/routes/devices.ts

@@ -19,6 +19,7 @@ export default {
   editCamera: '编辑相机',
   type: '设备类型',
   wifiName: 'wifi名称',
+  capacity: '容量',
   normalSales: '正常销售',
   giftGive: '礼品赠送',
   selfUse: '员工自用',

+ 10 - 0
src/views/devices/list.vue

@@ -107,6 +107,16 @@
           width: 180,
         },
         {
+          title: t('routes.devices.capacity'),
+          dataIndex: 'totalSpace',
+          customRender: ({ record }) => {
+            return record.totalSpace == 0
+              ? record.usedSpaceStr
+              : `${record.usedSpaceStr}/${record.totalSpaceStr}`;
+          },
+          width: 180,
+        },
+        {
           title: t('routes.devices.activationTime'),
           dataIndex: 'activatedTime',
           slots: { customRender: 'Time' },