清朗专项行动数据统计

main
许宏杰 1 month ago
parent 2607f8d9fb
commit e41cab4f24

@ -181,14 +181,15 @@ import { download } from "@/utils/safesoft";
import vueSeamlessScroll from "vue-seamless-scroll"; import vueSeamlessScroll from "vue-seamless-scroll";
import image from "../../../../assets/ecosphere/饼图标注.png"; import image from "../../../../assets/ecosphere/饼图标注.png";
import ModuleTitle from "../../common/ModuleTitle.vue"; import ModuleTitle from "../../common/ModuleTitle.vue";
const moment = require("moment");
export default { export default {
components: { components: {
vueSeamlessScroll, vueSeamlessScroll,
ModuleTitle, ModuleTitle,
}, },
data() { data() {
var ndate = new Date(); var nmonth = moment().month() + 1;
var nmonth = ndate.getMonth(); console.log(nmonth, "sssss");
return { return {
imgList: [ imgList: [
{ url: require("@/assets/ecosphere/清朗专项行动图/1-1.png") }, { url: require("@/assets/ecosphere/清朗专项行动图/1-1.png") },
@ -209,107 +210,107 @@ export default {
{ {
title: "处理有害信息数量(条)", title: "处理有害信息数量(条)",
data: [ data: [
{
name: nmonth + "月",
num: 0,
},
{
name: nmonth - 1 + "月",
num: 0,
},
{
name: nmonth - 2 + "月",
num: 0,
},
{
name: nmonth - 3 + "月",
num: 0,
},
{
name: nmonth - 4 + "月",
num: 0,
},
{
name: nmonth - 5 + "月",
num: 0,
},
// { // {
// name: '8', // name: nmonth + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '7', // name: nmonth - 1 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '6', // name: nmonth - 2 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '5', // name: nmonth - 3 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '4', // name: nmonth - 4 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '3', // name: nmonth - 5 + "",
// num: 0 // num: 0,
// } // },
// // {
// // name: '8',
// // num: 0
// // },
// // {
// // name: '7',
// // num: 0
// // },
// // {
// // name: '6',
// // num: 0
// // },
// // {
// // name: '5',
// // num: 0
// // },
// // {
// // name: '4',
// // num: 0
// // },
// // {
// // name: '3',
// // num: 0
// // }
], ],
}, },
{ {
title: "关闭直播平台违规账号(个)", title: "关闭直播平台违规账号(个)",
data: [ data: [
{
name: nmonth + "月",
num: 0,
},
{
name: nmonth - 1 + "月",
num: 0,
},
{
name: nmonth - 2 + "月",
num: 0,
},
{
name: nmonth - 3 + "月",
num: 0,
},
{
name: nmonth - 4 + "月",
num: 0,
},
{
name: nmonth - 5 + "月",
num: 0,
},
// { // {
// name: '8', // name: nmonth + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '7', // name: nmonth - 1 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '6', // name: nmonth - 2 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '5', // name: nmonth - 3 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '4', // name: nmonth - 4 + "",
// num: 0 // num: 0,
// }, // },
// { // {
// name: '3', // name: nmonth - 5 + "",
// num: 0 // num: 0,
// } // },
// // {
// // name: '8',
// // num: 0
// // },
// // {
// // name: '7',
// // num: 0
// // },
// // {
// // name: '6',
// // num: 0
// // },
// // {
// // name: '5',
// // num: 0
// // },
// // {
// // name: '4',
// // num: 0
// // },
// // {
// // name: '3',
// // num: 0
// // }
], ],
}, },
], ],
@ -402,21 +403,24 @@ export default {
return { arr1, arr2 }; return { arr1, arr2 };
}) })
.then((res) => { .then((res) => {
// console.log(res,'res') this.qlzfDataStatistics[1].data = res.arr2;
this.qlzfDataStatistics[1].data.map((item) => { this.qlzfDataStatistics[0].data = res.arr1;
res.arr2.map((arr) => {
if (item.name == arr.name) { // this.qlzfDataStatistics[1].data.map((item) => {
item.num = arr.num; // res.arr2.map((arr) => {
} // if (item.name == arr.name) {
}); // item.num = arr.num;
}); // }
this.qlzfDataStatistics[0].data.map((item) => { // });
res.arr1.map((arr) => { // });
if (item.name == arr.name) { // this.qlzfDataStatistics[0].data.map((item) => {
item.num = arr.num; // res.arr1.map((arr) => {
} // if (item.name == arr.name) {
}); // item.num = arr.num;
}); // }
// });
// });
console.log("res", res);
}); });
// listQlzxxdsjtj({isStatus:1}).then(res=>{ // listQlzxxdsjtj({isStatus:1}).then(res=>{
// let data = res.rows || [] // let data = res.rows || []
@ -881,7 +885,7 @@ export default {
margin-left: 15px; margin-left: 15px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; // justify-content: space-between;
.left-item { .left-item {
position: relative; position: relative;
left: 70px; left: 70px;
@ -924,7 +928,7 @@ export default {
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; // justify-content: space-between;
.right-item { .right-item {
position: relative; position: relative;
left: 75px; left: 75px;

@ -360,13 +360,13 @@ export default {
allDate: [], allDate: [],
date: [], date: [],
newDate: [ newDate: [
// this.$moment(this.$moment().subtract(7, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(7, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(6, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(6, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(5, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(5, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(4, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(4, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(3, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(3, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(2, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(2, "d")).format("MM.DD"),
// this.$moment(this.$moment().subtract(1, "d")).format("MM-DD"), this.$moment(this.$moment().subtract(1, "d")).format("MM.DD"),
], ],
dtsx: {}, dtsx: {},
//======== //========
@ -463,14 +463,13 @@ export default {
// return new Date(a.dateTime) - new Date(b.dateTime); // return new Date(a.dateTime) - new Date(b.dateTime);
// }); // });
this.allDate.forEach((value) => { this.allDate.forEach((value) => {
// const index = this.newDate.indexOf( const index = this.newDate.indexOf(
// this.$moment(value.dateTime).format("MM-DD") this.$moment(value.dateTime).format("MM.DD")
// ); );
// if (index !== -1) { if (index !== -1) {
this.newDate[index] = value.dateTime; this.positiveOpinion[index] = value.count1; // count1
this.positiveOpinion[index] = value.count1; // count1 this.negativeOpinion[index] = value.count2; // count2
this.negativeOpinion[index] = value.count2; // count2 }
// }
}); });
// this.allDate.forEach((value) => { // this.allDate.forEach((value) => {
// // // //

Loading…
Cancel
Save