liyongli преди 2 години
родител
ревизия
656bc5d9d3
променени са 2 файла, в които са добавени 12 реда и са изтрити 10 реда
  1. 5 3
      src/views/History/index.vue
  2. 7 7
      src/views/RealOnline/index.vue

+ 5 - 3
src/views/History/index.vue

@@ -94,7 +94,7 @@
           v-for="(item, i) in oriData.total"
           :key="i + item.key"
           class="head-item"
-          @click="() => type !== item.key && changeData(item.key, '活跃用户')"
+          @click="() => type !== item.key && changeData(item.key, item.name)"
           :style="{
             borderTopColor: type === item.key ? '#396fff' : '#fff',
           }"
@@ -240,8 +240,10 @@ export default {
     this.cycle = this.verifyList(appli, source, keys, false);
     this.channel = this.verifyList(appCLi, appC, keys, true);
     this.version = this.verifyList(appVLi, appV, keys, true);
+    console.log(appCLi, appC, keys)
     this.form = {
-      app: (this.cycle[0] || { value: "" }).value,
+    //   app: (this.cycle[0] || { value: "" }).value,
+        app: '起点新闻',
       version: [(this.version[0] || { value: "" }).value],
       channel: [(this.channel[0] || { value: "" }).value],
       date: [new Date(Date.now() - 604800000), new Date(Date.now() - 86400000)],
@@ -476,7 +478,7 @@ export default {
         pageid: 1,
         pagesize: 1000,
       });
-      const defaultAppName = li.status == "0" ? li.output.data[0].mname : "";
+      const defaultAppName = "起点新闻";
       //   应用版本列表
       const appVersion = await getSearchData({
         gcode: "APP_VERSION",

+ 7 - 7
src/views/RealOnline/index.vue

@@ -138,7 +138,8 @@ export default {
         };
       });
       this.form = {
-        app: (this.cycle[0] || { value: "" }).value,
+        // app: (this.cycle[0] || { value: "" }).value,
+        app: '起点新闻',
         lidu: (this.lidu[0] || { value: "" }).value,
       };
       this.regularData();
@@ -234,6 +235,7 @@ export default {
             },
           },
         },
+        color: [ "rgb(17, 160, 248)","rgb(244, 127, 146)"],
         series: [
           {
             name: "活跃用户",
@@ -244,7 +246,6 @@ export default {
             },
             type: "line",
             smooth: true,
-            color: "rgba(58,132,255,.9)",
             areaStyle: {
               color: {
                 type: "linear",
@@ -255,11 +256,11 @@ export default {
                 colorStops: [
                   {
                     offset: 0,
-                    color: "rgba(58,132,255, 0.8)", // 0% 处的颜色
+                    color: "rgba(17, 160, 248, 0.8)", // 0% 处的颜色
                   },
                   {
                     offset: 1,
-                    color: "rgba(58,132,255, 0.1)", // 100% 处的颜色
+                    color: "rgba(17, 160, 248, 0.1)", // 100% 处的颜色
                   },
                 ],
                 global: false, // 缺省为 false
@@ -275,7 +276,6 @@ export default {
             },
             type: "line",
             smooth: true,
-            color: "rgba(145,204,117,.9)",
             areaStyle: {
               color: {
                 type: "linear",
@@ -286,11 +286,11 @@ export default {
                 colorStops: [
                   {
                     offset: 0,
-                    color: "rgba(145,204,117, 0.8)", // 0% 处的颜色
+                    color: "rgba(244, 127, 146, 0.8)", // 0% 处的颜色
                   },
                   {
                     offset: 1,
-                    color: "rgba(145,204,117, 0.1)", // 100% 处的颜色
+                    color: "rgba(244, 127, 146, 0.1)", // 100% 处的颜色
                   },
                 ],
                 global: false, // 缺省为 false