liyongli 5 mēneši atpakaļ
vecāks
revīzija
8b38933ff4
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      src/views/History/index.vue

+ 6 - 2
src/views/History/index.vue

@@ -323,11 +323,14 @@ export default {
       date: [new Date(Date.now() - 604800000), new Date(Date.now() - 86400000)]
       date: [new Date(Date.now() - 604800000), new Date(Date.now() - 86400000)]
     };
     };
     this.onSubmit();
     this.onSubmit();
-    this.getUser();
   },
   },
   computed: {},
   computed: {},
   methods: {
   methods: {
     getUser() {
     getUser() {
+      let app = this.form.app;
+      if (!app) return;
+      if (this.form.client == 888) app = '起点新闻';
+      if (this.form.client == 999) app = '起点新闻极速版';
       getUserTotal({ app: this.form.app }).then(r => {
       getUserTotal({ app: this.form.app }).then(r => {
         this.userTotalList = (r || []).map(v => {
         this.userTotalList = (r || []).map(v => {
           return {
           return {
@@ -377,6 +380,7 @@ export default {
         version: this.form.version == -1 ? undefined : this.form.version,
         version: this.form.version == -1 ? undefined : this.form.version,
         lib: this.form.client == -1 ? undefined : this.form.client
         lib: this.form.client == -1 ? undefined : this.form.client
       };
       };
+      this.getUser();
       getHistory(this.lastParams)
       getHistory(this.lastParams)
         .then(r => {
         .then(r => {
           if (!this.$refs.realLineChart) return;
           if (!this.$refs.realLineChart) return;
@@ -683,7 +687,7 @@ export default {
         },
         },
         true
         true
       );
       );
-      this.form.client = this.client[1].value
+      this.form.client = this.client[1].value;
       //   如果应用选择西部网则渠道默认全部
       //   如果应用选择西部网则渠道默认全部
       this.form.app === '西部网' && (this.form.client = -1);
       this.form.app === '西部网' && (this.form.client = -1);
       this.getUser();
       this.getUser();