微博去除地区展示、处理有害信息数量的分母调小、网络安全官的植物去除_2、舆情走势图获取近7天数据

main
吕天方 4 months ago
parent b383ba2ad5
commit ec878e2303

@ -3,7 +3,7 @@
* @Author: kery.chen * @Author: kery.chen
* @Description: 总体概览左侧 * @Description: 总体概览左侧
* @Date: 2021-11-30 11:08:50 * @Date: 2021-11-30 11:08:50
* @LastEditTime: 2023-11-01 09:29:08 * @LastEditTime: 2024-10-12 15:30:55
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentLeft.vue * @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentLeft.vue
--> -->
<template> <template>
@ -765,7 +765,9 @@ export default {
this.total = res.total; this.total = res.total;
}) })
} else if (val === "微博") { } else if (val === "微博") {
this.tableHeader = ["账号名称", "认证", "地区"]; // this.tableHeader = ["", "", ""];
// 2024/10/12
this.tableHeader = ["账号名称", "认证"];
this.zoologyWidth = "1000px"; this.zoologyWidth = "1000px";
this.tableData = []; this.tableData = [];
listWb({ pageNum: 1, pageSize: 10, isStatus:1 }).then(res=>{ listWb({ pageNum: 1, pageSize: 10, isStatus:1 }).then(res=>{
@ -773,7 +775,7 @@ export default {
let obj = {}; let obj = {};
obj["账号名称"] = item.zhName; obj["账号名称"] = item.zhName;
obj["认证"] = item.approve; obj["认证"] = item.approve;
obj["地区"] = item.areaId; // obj[""] = item.areaId;
this.tableData.push(obj); this.tableData.push(obj);
}); });
this.total = res.total; this.total = res.total;

@ -3,7 +3,7 @@
* @Author: kery.chen * @Author: kery.chen
* @Description: 总体概览右侧 * @Description: 总体概览右侧
* @Date: 2021-11-30 11:08:50 * @Date: 2021-11-30 11:08:50
* @LastEditTime: 2024-10-11 11:57:43 * @LastEditTime: 2024-10-12 15:34:23
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentRight.vue * @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentRight.vue
--> -->
<template> <template>
@ -63,10 +63,10 @@
> >
<span>{{ item.num }}</span> <span>{{ item.num }}</span>
<div class="processBox"> <div class="processBox">
<!-- 分母是为了数据展示好看 要求这样 --> <!-- 分母是为了数据展示好看 要求这样 2024/10/12之前分母是25000 今天甲方提要求进度条的占比分布改小一点这个太大看不出差距了 -->
<div <div
class="process" class="process"
:style="{ width: (item.num / 25000) * 251 + 'px' }" :style="{ width: (item.num / 2500) * 251 + 'px' }"
></div> ></div>
<div class="dark"></div> <div class="dark"></div>
</div> </div>

@ -2,7 +2,7 @@
* @Author: lough * @Author: lough
* @Date: 2021-12-17 10:07:07 * @Date: 2021-12-17 10:07:07
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2024-10-11 18:24:20 * @LastEditTime: 2024-10-12 18:30:55
* @Description: * @Description:
--> -->
<template> <template>
@ -536,7 +536,7 @@ export default {
// { name: '_1', value: 'duty1' }, // { name: '_1', value: 'duty1' },
{ name: '负责科室', value: 'fzks' }, { name: '负责科室', value: 'fzks' },
{ name: '网络安全官', value: 'fzr3' }, { name: '网络安全官', value: 'fzr3' },
{ name: '职务_2', value: 'duty3' }, { name: '职务', value: 'duty3' },
{ name: '电话', value: 'tel' } { name: '电话', value: 'tel' }
] ]
this.total = res.total this.total = res.total

@ -355,11 +355,11 @@ export default {
areaId: 1, areaId: 1,
}, },
// //
positiveOpinion: [], positiveOpinion: [0,0,0,0,0,0,0],
negativeOpinion: [], negativeOpinion: [0,0,0,0,0,0,0],
allDate: [], allDate: [],
date: [], date: [],
newDate: [], newDate: [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(5, "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(2, "d")).format("MM-DD"),this.$moment(this.$moment().subtract(1, "d")).format("MM-DD"),],
dtsx: {}, dtsx: {},
//======== //========
listTotal: 0, listTotal: 0,
@ -444,20 +444,28 @@ export default {
params: {}, params: {},
}; };
let date = this.$moment().subtract(7, "d"); let date = this.$moment().subtract(7, "d");
let datetwo = this.$moment().subtract(1, "d");
from.params.beginDateTime = this.$moment(date).format("YYYY-MM-DD"); from.params.beginDateTime = this.$moment(date).format("YYYY-MM-DD");
from.params.endDateTime = this.$moment().format("YYYY-MM-DD"); from.params.endDateTime = this.$moment(datetwo).format("YYYY-MM-DD");
listYqzs(from).then((res) => { listYqzs(from).then((res) => {
this.allDate = res.rows; this.allDate = res.rows;
// //
this.allDate.sort(function (a, b) { // this.allDate.sort(function (a, b) {
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(this.$moment(value.dateTime).format("MM-DD"));
this.newDate.push(this.$moment(value.dateTime).format("MM-DD")); if (index !== -1) {
this.positiveOpinion.push(value.count1); this.positiveOpinion[index] = value.count1; // count1
this.negativeOpinion.push(value.count2); this.negativeOpinion[index] = value.count2; // count2
}); }
})
// this.allDate.forEach((value) => {
// //
// this.newDate.push(this.$moment(value.dateTime).format("MM-DD"));
// this.positiveOpinion.push(value.count1);
// this.negativeOpinion.push(value.count2);
// });
this.lineBox(); this.lineBox();
}); });
}, },

Loading…
Cancel
Save