|
@@ -78,7 +78,7 @@
|
|
|
<canvas id="barChart" style="width: 100%; height: 70vw" class=""></canvas>
|
|
|
</div>
|
|
|
|
|
|
- <div class="card">
|
|
|
+ <!-- <div class="card">
|
|
|
<div class="cardtit">发稿统计</div>
|
|
|
<div style="padding: 10px">
|
|
|
<el-table :data="platformList" style="width: 100%">
|
|
@@ -90,7 +90,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<div class="card">
|
|
|
<div class="cardtit">
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
platformData,
|
|
|
qushiData,
|
|
|
bumenData,
|
|
|
- pingtaiData,
|
|
|
+// pingtaiData,
|
|
|
zhanghaoData,
|
|
|
bumenList,
|
|
|
} from "@/api/index.js";
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
playT: 0,
|
|
|
plays: [],
|
|
|
loading: false,
|
|
|
- platformList: [],
|
|
|
+ // platformList: [],
|
|
|
dep: "全部",
|
|
|
T: [],
|
|
|
userlist: [],
|
|
@@ -251,33 +251,13 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
this.bmGet();
|
|
|
- pingtaiData({
|
|
|
- depRange: "ALL",
|
|
|
- title: this.topic,
|
|
|
- }).then(r => {
|
|
|
- console.log(r)
|
|
|
- this.platformList = (r || []).sort((a, b) => b.readTotal - a.readTotal);
|
|
|
- // let obj = {},
|
|
|
- // li = [];
|
|
|
- // for (let i = 0; i < this.platformList.length; i++) {
|
|
|
- // const v = this.platformList[i];
|
|
|
- // let l = v.list || [];
|
|
|
- // l.map(o => {
|
|
|
- // if (!obj[o.platform] && obj[o.platform] !== 0) {
|
|
|
- // obj[o.platform] = li.length;
|
|
|
- // li.push({
|
|
|
- // platform: o.platform || "",
|
|
|
- // publishCount: o.publishCount || 0,
|
|
|
- // readCount: o.readCount || 0,
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // li[obj[o.platform]].publishCount = o.publishCount;
|
|
|
- // li[obj[o.platform]].readCount = o.readCount;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // this.pie1(li);
|
|
|
- });
|
|
|
+ // pingtaiData({
|
|
|
+ // depRange: "ALL",
|
|
|
+ // title: this.topic,
|
|
|
+ // }).then(r => {
|
|
|
+ // console.log(r)
|
|
|
+ // this.platformList = (r || []).sort((a, b) => b.readTotal - a.readTotal);
|
|
|
+ // });
|
|
|
this.grtzhData();
|
|
|
bumenList().then(r => {
|
|
|
let options = (r || []).map(v => {
|