liyongli 1 år sedan
förälder
incheckning
e9d8992905
3 ändrade filer med 15 tillägg och 1 borttagningar
  1. 12 0
      src/config/tableCol.js
  2. 1 0
      src/views/History/index.vue
  3. 2 1
      src/views/Jugou/Jugou.vue

+ 12 - 0
src/config/tableCol.js

@@ -212,6 +212,12 @@ export default {
         type: 'number',
         sortable: 'custom',
       },
+      {
+        label: '粉丝量',
+        key: 'fans',
+        type: 'number',
+        sortable: 'custom',
+      },
       //   {
       //     label: "本月累计阅读量",
       //     key: "monthReadCount",
@@ -256,6 +262,12 @@ export default {
         type: 'number',
         sortable: 'custom',
       },
+      {
+        label: '粉丝量',
+        key: 'fans',
+        type: 'number',
+        sortable: 'custom',
+      },
       //   {
       //     label: "本月累计阅读量",
       //     key: "monthReadCount",

+ 1 - 0
src/views/History/index.vue

@@ -433,6 +433,7 @@ export default {
       const ret = {
         downloads: true,
         ip: true,
+        avgUser: true
       };
       if (ret[type]) return;
       this.type = type;

+ 2 - 1
src/views/Jugou/Jugou.vue

@@ -175,7 +175,8 @@ export default {
         nowDate = d.getTime();
       startDate = startDate - (startDate % 86400000);
       nowDate = nowDate - (nowDate % 86400000);
-      return nowDate < startDate;
+      let out = nowDate < startDate || nowDate >= Date.now()
+      return out;
     },
     getData() {
       if (!this.load) this.load = ElLoading.default.service();