许宏杰 2 years ago
commit 9f6a41e6cd

@ -16,7 +16,7 @@ export function yuqingMsgStats() {
method: 'get', method: 'get',
}) })
} }
//动态筛选 //动态筛选大屏幕接口(弃用)
export function sift() { export function sift() {
return request({ return request({
url: '/zongzhi/opinionscreen/sentimentfilter', url: '/zongzhi/opinionscreen/sentimentfilter',
@ -43,4 +43,11 @@ export function yqbg() {
url: '/zongzhi/opinionscreen/sentimentreport', url: '/zongzhi/opinionscreen/sentimentreport',
method: 'get', method: 'get',
}) })
}
//动态筛选列表
export function dtsxListGet(){
return request({
url: '/zongzhi/sx/list',
method: 'get',
})
} }

@ -376,7 +376,7 @@ export default {
territorialTB().then((res) => { territorialTB().then((res) => {
res.data.forEach((value, index) => { res.data.forEach((value, index) => {
this.piedata.push({ this.piedata.push({
name: this.$filterDict('1',value.areaId,true), name: this.$filterDict('1',`[${value.areaId}]`,true),
value: value.count, value: value.count,
percent: value.pt, percent: value.pt,
img: require(`@/assets/privateOrder/general/${ img: require(`@/assets/privateOrder/general/${

@ -30,7 +30,7 @@
<span>{{ notificationFinishList[3].completionCount }}</span> <span>{{ notificationFinishList[3].completionCount }}</span>
<span>/{{ notificationFinishList[3].notificationCount }}</span> <span>/{{ notificationFinishList[3].notificationCount }}</span>
</div> </div>
<div>{{ notificationFinishList[3].completionPercent }}</div> <div>{{ notificationFinishList[3].completionPercent | numFilter }}%</div>
</div> </div>
</div> </div>
<div class="right_table_list"> <div class="right_table_list">
@ -45,12 +45,11 @@
class="table_item" class="table_item"
> >
<div class="item_one"> <div class="item_one">
百分比
{{ notificationStatus(item.timeRangeFlag) }} {{ notificationStatus(item.timeRangeFlag) }}
</div> </div>
<div class="item_two">{{ item.notificationCount }}</div> <div class="item_two">{{ item.notificationCount }}</div>
<div class="item_three">{{ item.completionCount }}</div> <div class="item_three">{{ item.completionCount }}</div>
<div class="item_four">{{ item.completionPercent }}</div> <div class="item_four">{{ item.completionPercent | numFilter }}%</div>
</div> </div>
</div> </div>
</div> </div>
@ -233,7 +232,7 @@
</template> </template>
<script> <script>
import {safeRisks,tbFinish} from '@/api/wlSafe' import { safeRisks, tbFinish } from "@/api/wlSafe";
import { listDanger, getDanger, listTb, getTb } from "@/api/zongzhi/st.js"; import { listDanger, getDanger, listTb, getTb } from "@/api/zongzhi/st.js";
import vueSeamlessScroll from "vue-seamless-scroll"; import vueSeamlessScroll from "vue-seamless-scroll";
import ModuleTitle from "../../common/ModuleTitle.vue"; import ModuleTitle from "../../common/ModuleTitle.vue";
@ -338,13 +337,13 @@ export default {
timeRangeFlag: 3, timeRangeFlag: 3,
notificationCount: 0, notificationCount: 0,
completionCount: 0, completionCount: 0,
completionPercent: '', completionPercent: "",
}, },
{ {
timeRangeFlag: 4, timeRangeFlag: 4,
notificationCount: 0, notificationCount: 0,
completionCount: 0, completionCount: 0,
completionPercent: '', completionPercent: "",
}, },
], ],
animate: true, animate: true,
@ -421,7 +420,7 @@ export default {
}, 6000); }, 6000);
// //
this.safeListDP(); this.safeListDP();
this.getTBOver() this.getTBOver();
// this.announceChange() // this.announceChange()
// getSafeHazardSatistic().then((res) => { // getSafeHazardSatistic().then((res) => {
@ -457,18 +456,19 @@ export default {
}); });
}); });
}, },
/** /**
* 通报完成情况 * 通报完成情况
*/ */
getTBOver(){ getTBOver() {
tbFinish().then(res=>{ tbFinish().then((res) => {
console.log(res); console.log(res);
res.data.forEach((value1,index1)=>{ res.data.forEach((value1, index1) => {
this.notificationFinishList[index1].notificationCount =value1.count this.notificationFinishList[index1].notificationCount = value1.count;
this.notificationFinishList[index1].completionCount =value1.complete this.notificationFinishList[index1].completionCount = value1.complete;
this.notificationFinishList[index1].completionPercent =value1.pt * 100 + '%' this.notificationFinishList[index1].completionPercent =
}) value1.pt * 100;
}) });
});
}, },
/** /**
* 最新隐患 * 最新隐患
@ -568,7 +568,6 @@ export default {
}) })
.then(({ data }) => { .then(({ data }) => {
if (data) { if (data) {
this.dialogDetails = true; this.dialogDetails = true;
this.$nextTick(() => { this.$nextTick(() => {
docx.renderAsync(data, this.$refs.file1); // docx.renderAsync(data, this.$refs.file1); //

@ -76,7 +76,7 @@
:step="oldNewsCount" --> :step="oldNewsCount" -->
<NumberGrow <NumberGrow
class="yV" class="yV"
:value="dtsx.count1" :value="dtsx.jcxxCount"
:step="oldNewsCount" :step="oldNewsCount"
></NumberGrow> ></NumberGrow>
</div> </div>
@ -85,19 +85,19 @@
<!-- :value="newsCount - warningCount" --> <!-- :value="newsCount - warningCount" -->
<NumberGrow <NumberGrow
class="bV" class="bV"
:value="dtsx.count2" :value="dtsx.pcxxCount"
:step="oldNewsCount - oldWarningCount" :step="oldNewsCount - oldWarningCount"
></NumberGrow> ></NumberGrow>
</div> </div>
<div class="total"> <div class="total">
<div class="name">舆情预警</div> <div class="name">舆情预警</div>
<div class="warn"> <div class="warn">
{{ dtsx.pt }} {{ dtsx.yqyjCount || 0 }}
</div> </div>
<div class="total_info"> <div class="total_info">
<!-- :value="warningCount" --> <!-- :value="warningCount" -->
<NumberGrow <NumberGrow
:value="dtsx.count3" :value="dtsx.yqyjZb"
:step="oldWarningCount" :step="oldWarningCount"
></NumberGrow> ></NumberGrow>
</div> </div>
@ -228,7 +228,7 @@ import {
} from "@/api/common"; } from "@/api/common";
import { title } from "../../../../settings"; import { title } from "../../../../settings";
//======= //=======
import { yuqingChart, yuqingMsgStats, sift } from "@/api/publicOpinion"; import { yuqingChart, yuqingMsgStats, dtsxListGet } from "@/api/publicOpinion";
import { yuqingListA, getWlyq } from "@/api/consensusList"; import { yuqingListA, getWlyq } from "@/api/consensusList";
export default { export default {
@ -499,6 +499,7 @@ export default {
// //
getyqData() { getyqData() {
yuqingChart().then((res) => { yuqingChart().then((res) => {
console.log(res);
this.allDate = res.data; this.allDate = res.data;
// //
this.allDate.sort(function (a, b) { this.allDate.sort(function (a, b) {
@ -541,6 +542,7 @@ export default {
getyqMsgStats() { getyqMsgStats() {
yuqingMsgStats().then((res) => { yuqingMsgStats().then((res) => {
let arr = res.data; let arr = res.data;
if(!arr) return
this.Statistics.forEach((value1, index1) => { this.Statistics.forEach((value1, index1) => {
arr.forEach((value2, index2) => { arr.forEach((value2, index2) => {
if (value1.type == value2.type) { if (value1.type == value2.type) {
@ -551,9 +553,8 @@ export default {
}); });
}); });
}); });
sift().then((res) => { dtsxListGet().then((res) => {
console.log(res); this.dtsx = res.rows[0];
this.dtsx = res.data[0];
}); });
}, },
// 线 // 线

@ -93,6 +93,7 @@ export default {
getData() { getData() {
yuqingTypes({ type: "1" }).then((res) => { yuqingTypes({ type: "1" }).then((res) => {
res.data.forEach((value, index) => { res.data.forEach((value, index) => {
if(!value) return
this.types.forEach((value1, index1) => { this.types.forEach((value1, index1) => {
if (value.type == value1) { if (value.type == value1) {
this.piedata[index1].value = value.pt; this.piedata[index1].value = value.pt;

@ -42,35 +42,35 @@ export default {
imgList: [ imgList: [
{ {
url: require("@/assets/sentimeent/1.png"), url: require("@/assets/sentimeent/1.png"),
type: 9, type: 1,
}, },
{ {
url: require("@/assets/sentimeent/2.png"), url: require("@/assets/sentimeent/2.png"),
type: 10, type: 2,
}, },
{ {
url: require("@/assets/sentimeent/3.png"), url: require("@/assets/sentimeent/3.png"),
type: 11, type: 3,
}, },
{ {
url: require("@/assets/sentimeent/4.png"), url: require("@/assets/sentimeent/4.png"),
type: 12, type: 4,
}, },
{ {
url: require("@/assets/sentimeent/5.png"), url: require("@/assets/sentimeent/5.png"),
type: 13, type: 5,
}, },
{ {
url: require("@/assets/sentimeent/6.png"), url: require("@/assets/sentimeent/6.png"),
type: 14, type: 6,
}, },
{ {
url: require("@/assets/sentimeent/7.png"), url: require("@/assets/sentimeent/7.png"),
type: 15, type: 7,
}, },
{ {
url: require("@/assets/sentimeent/8.png"), url: require("@/assets/sentimeent/8.png"),
type: 16, type: 8,
}, },
], ],
piedata: [ piedata: [
@ -128,6 +128,8 @@ export default {
getData() { getData() {
yuqingTypes({ type: "2" }).then((res) => { yuqingTypes({ type: "2" }).then((res) => {
res.data.forEach((value, index) => { res.data.forEach((value, index) => {
console.log(value);
if(!value) return
this.imgList.forEach((value1, index1) => { this.imgList.forEach((value1, index1) => {
if (value.type == value1.type) { if (value.type == value1.type) {
this.piedata[index1].value = value.pt; this.piedata[index1].value = value.pt;

Loading…
Cancel
Save