Browse Source

fix: 修复bug

tangning 4 tháng trước cách đây
mục cha
commit
8b1454c14a
2 tập tin đã thay đổi với 9 bổ sung9 xóa
  1. 1 1
      src/locales/lang/en/routes/device.ts
  2. 8 8
      src/views/device/index.vue

+ 1 - 1
src/locales/lang/en/routes/device.ts

@@ -2,7 +2,7 @@ export default {
   snCode: 'S/N',
   wifiName: 'Wifi',
   deviceType: 'Camera type',
-  activatedTime: 'Time',
+  activatedTime: 'Deposit Time',
   userName: 'Bound account',
   NoBind: 'Unbind',
   export: 'Export',

+ 8 - 8
src/views/device/index.vue

@@ -338,7 +338,7 @@
           },
 
           {
-            field: 'outTime',
+            field: 'timeList',
             label: t('routes.device.activatedTime'),
             component: 'RangePicker',
             componentProps: {
@@ -362,13 +362,13 @@
         showTableSetting: true,
         showIndexColumn: false,
         rowKey: 'id',
-        beforeFetch: (T) => {
-          if (T.ctivated) {
-            T.activatedStartTime = T.ctivated[0];
-            T.activatedEndTime = T.ctivated[1];
-          }
-          return T;
-        },
+        // beforeFetch: (T) => {
+        //   if (T.timeList) {
+        //     T.activatedStartTime = T.timeList[0];
+        //     T.activatedEndTime = T.timeList[1];
+        //   }
+        //   return T;
+        // },
         fetchSetting: {
           pageField: 'pageNum',
           sizeField: 'pageSize',