摄像头点位数组更换、舆情信息量统计全部100%、舆情分类取接口的类型并根据比例倒序排序⌈ 从前端写死类型改的 ⌋、去除一些日志打印

main
吕天方 5 months ago
parent 32d010f8f0
commit 7645995af2

@ -5,6 +5,6 @@ ENV = 'development'
VUE_APP_BASE_API = '/dashboard'
# VUE_APP_BASE_API2 = 'http://39.101.188.84:9027'
# VUE_APP_BASE_API2 = 'http://192.168.0.110:9035'
VUE_APP_BASE_API2 = 'http://39.101.188.84:9035'
VUE_APP_BASE_API2 = 'http://192.168.0.108:9035'
# VUE_APP_BASE_API2 = 'http://39.101.188.84:9035'
BASE_API = 'http://10.10.3.35:9070'

@ -37,7 +37,9 @@
</div>
<div class="year-wrap"></div>
</div>
<keep-alive include="ecosphere">
<router-view />
</keep-alive>
</div>
<div>
<el-button

@ -3,7 +3,7 @@
* @Author: kery.chen
* @Description: 总体概览右侧
* @Date: 2021-11-30 11:08:50
* @LastEditTime: 2024-10-09 16:34:07
* @LastEditTime: 2024-10-09 17:18:59
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentRight.vue
-->
<template>
@ -464,6 +464,7 @@ export default {
obj.name = item.type;
arr.push(obj)
})
arr = arr.sort((a, b) => a.value < b.value ? 1 : a.value > b.value ? -1 : 0)
// obj.value = value;
// obj.name = '';
}).then(res=>{

@ -115,11 +115,13 @@ export default {
}
},
mounted() {
this.$nextTick(()=>{
var layer = new AMap.createDefaultLayer({
zooms:[14,18], //
visible:true, //
opacity:1, //
zIndex:10, //
// skyColor: '#032f58',
mapStyle: 'amap://styles/d02b66b0a7f190d5a1556a3f59c86518',
})
var map = new AMap.Map('container',{
@ -127,6 +129,7 @@ export default {
zooms: this.zooms,
center: this.center,//
mapStyle: 'amap://styles/d02b66b0a7f190d5a1556a3f59c86518', //
// skyColor: '#032f58',
layers: [
//
// new AMap.TileLayer.Satellite(),
@ -152,8 +155,15 @@ export default {
});
this.layers.layer = new AMap.OverlayGroup(); //
map.add(this.layers.layer);
// console.log(map.getLayers());
map.getLayers().forEach((m)=>{
if(m.CLASS_NAME == 'AMap.SkyLayer') {
map.remove(m)
}
})
this.map = map;
this.init(this.map);
})
// let data = await reportList();
// listJbmap({isStatus:1,pageNum:1,pageSize:50}).then(data=>{
// let arr = []
@ -263,9 +273,6 @@ export default {
// this.pointList = arr;
})
},
aaaa(){
console.log(1111111);
},
}
}
</script>
@ -275,8 +282,9 @@ export default {
width: 100%;
height: $ScreenHeight;
#container{
height: 100%;
width: 100%;
height: 100%;
background-color: rgb(26, 61, 106,0.3);
}
}

@ -25,6 +25,7 @@ import ComponentRight from './components/componentRight.vue'
import ComponentCenter from './components/componentCenter'
export default {
name:"ecosphere",
components: {
ComponentLeft,
ComponentRight,

@ -2,7 +2,7 @@
* @Author: lough
* @Date: 2021-12-17 10:07:07
* @LastEditors: JC9527
* @LastEditTime: 2023-10-18 16:49:10
* @LastEditTime: 2024-10-10 10:48:11
* @Description:
-->
<template>
@ -137,7 +137,7 @@ export default {
getpercentageData() {
// this.percentageName = ['', '', '', '', '', '', '', '', '', '']
listWpyrwwcl({ pageNum: 1, pageSize: 20 }).then((res) => {
console.log(res,'resres')
// console.log(res,'resres')
res.rows.forEach((item) => {
// let name = JSON.parse(item.areaId);
this.percentageName.push(item.unit)

@ -1,8 +1,8 @@
<!--
* @Author: lough
* @Date: 2021-12-12 09:44:54
* @LastEditors: lough
* @LastEditTime: 2022-10-28 09:55:57
* @LastEditors: JC9527
* @LastEditTime: 2024-10-10 14:14:32
* @Description:
-->
@ -10,7 +10,7 @@
<div style="position: relative">
<div
id="container"
style="width: 100%; height: 200vh; position: relative; overflow: hidden"
style="width: 100%; height: 200vh; position: relative; overflow: hidden; background-color: rgba(26, 61, 106,0.7);"
/>
<!-- 左侧 -->

@ -28,7 +28,7 @@ export default {
methods: {
getData() {
dataZb({ pageSize: 5, pageNum: 1 }).then((res) => {
console.log(res);
// console.log(res);
res.data.forEach((value) => {
this.lineName.push(value.depName);
this.lineValue.push(value.count);

@ -90,7 +90,7 @@ export default {
},
//
getMember(e) {
console.log('e', e)
// console.log('e', e)
this.mapReturnInfo = e
this.showPopup = false
this.changeIdx = 0
@ -99,15 +99,15 @@ export default {
//
getMemberData() {
const e = this.mapReturnInfo
console.log('e.properties', e.properties)
// console.log('e.properties', e.properties)
const xzqhCode =
this.flag === 'ssiMap' ? e.properties.BUSINESSID : e.XZQHCODE
this.MemberData = {}
console.log('xzqhCode', xzqhCode)
// console.log('xzqhCode', xzqhCode)
viewQueryListByViewId(xzqhCode).then((res1) => {
console.log('res1', res1)
// console.log('res1', res1)
if (res1.data.length === 0) {
console.log('此网格网格员不存在!')
// console.log('')
this.close()
return
} else {

@ -240,28 +240,34 @@ export default {
REMARK: "32058551001310165214",
},
{
CODE: "32058553001310909469",
CODE: "32058553001310589799",
ID: "3",
REMARK: "32058553001310909469",
REMARK: "32058553001310589799",
},
{
CODE: "32058553001310670315",
CODE: "32058561012151100002",
ID: "4",
REMARK: "32058517001310019274",
REMARK: "32058556001310679173",
},
{ CODE: "32058553001310806219", ID: "5", REMARK: null },
{
CODE: "32058553001310913850",
CODE: "32058553001310806219", ID: "5", REMARK: null
},
{
CODE: "32058500011316313617",
ID: "6",
REMARK: "32058553001310913850",
REMARK: "32058500011316313617",
},
{
CODE: "32058553001310132000", ID: "7", REMARK: "万达广场2号门"
},
{ CODE: "32058553001310132000", ID: "17", REMARK: "万达广场2号门" },
{
CODE: "32058559001310035894",
ID: "7",
REMARK: "32059102011314000469",
ID: "8",
REMARK: "32058559001310035894",
},
{ CODE: "32058551001310651352", ID: "9", REMARK: "医院" },
{
CODE: "32058517001310615903", ID: "9", REMARK: "医院"
}
];
this.multiVideo.title = "视频监控";

@ -30,8 +30,9 @@
:percentage="item.value || 0"
:color="item.color"
></el-progress> -->
<!-- :percentage="Number(item.info)" -->
<el-progress
:percentage="Number(item.info)"
:percentage="100"
:color="item.color"
></el-progress>
<div class="StatisticsText">

@ -531,7 +531,7 @@ export default {
this.getyqbgType();
},
rowClick(row) {
console.log(row);
// console.log(row);
if (!row.fileUrl) {
this.$message({
message: "该记录暂无文件!",
@ -612,14 +612,14 @@ export default {
try {
url = window.webkitURL.createObjectURL(file);
} catch (error) {
console.log(error);
// console.log(error);
}
} else if (window.URL !== undefined) {
// mozilla(firefox)
try {
url = window.URL.createObjectURL(file);
} catch (error) {
console.log(error);
// console.log(error);
}
}
return url;

@ -1,8 +1,8 @@
<!--
* @Author: your name
* @Date: 2021-12-20 10:02:55
* @LastEditTime: 2022-03-23 09:10:47
* @LastEditors: lough
* @LastEditTime: 2024-10-09 17:10:40
* @LastEditors: JC9527
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\sentiment\\components\\mediaPie.vue
-->
@ -41,39 +41,39 @@ export default {
return {
types: [1, 2, 3, 4, 5, 6, 7, 8],
piedata: [
{
name: "报刊",
value: 0,
},
{
name: "网媒",
value: 0,
},
{
name: "微信",
value: 0,
},
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
{
name: "微博",
value: 0,
},
{
name: "APP",
value: 0,
},
{
name: "论坛",
value: 0,
},
{
name: "短视频",
value: 0,
},
{
name: "其他",
value: 0,
},
// {
// name: "",
// value: 0,
// },
// {
// name: "APP",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
],
lastIndex: 0,
currentIndex: 0,
@ -86,14 +86,21 @@ export default {
methods: {
getData() {
listMtlx().then((res) => {
let arr = []
res.rows.forEach((value, index) => {
this.piedata.forEach((value1, index1) => {
if (value.name == value1.name) {
this.piedata[index1].value = value.zb;
}
});
let obj = {};
obj.name = value.name;
obj.value = Number(value.zb);
arr.push(obj);
// this.piedata.forEach((value1, index1) => {
// if (value.name == value1.name) {
// this.piedata[index1].value = value.zb;
// }
// });
});
console.log(this.piedata);
// console.log(this.piedata);
arr = arr.sort((a, b) => a.value < b.value ? 1 : a.value > b.value ? -1 : 0)
this.piedata = arr;
this.pieBox();
});
},

@ -1,8 +1,8 @@
<!--
* @Author: your name
* @Date: 2021-12-20 10:02:55
* @LastEditTime: 2022-03-22 15:39:10
* @LastEditors: Please set LastEditors
* @LastEditTime: 2024-10-09 17:07:13
* @LastEditors: JC9527
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tcingiocpro\src\views\privateOrder\sentiment\components\sentimentPie.vue
-->
@ -76,38 +76,38 @@ export default {
},
],
piedata: [
{
name: "治安维护",
value: 0,
},
{
name: "医疗卫生",
value: 0,
},
{
name: "执政形象",
value: 0,
},
{
name: "市场监督",
value: 0,
},
{
name: "自然灾害",
value: 0,
},
{
name: "安全事故",
value: 0,
},
{
name: "社会保障",
value: 0,
},
{
name: "市政管理",
value: 0,
},
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
// {
// name: "",
// value: 0,
// },
],
};
},
@ -124,13 +124,21 @@ export default {
methods: {
getData() {
listSslx().then((res) => {
let arr = []
res.rows.forEach((value, index) => {
this.piedata.forEach((value1, index1) => {
if (value.name == value1.name) {
this.piedata[index1].value = value.zb;
}
});
let obj = {};
obj.name = value.name;
obj.value = Number(value.zb);
arr.push(obj);
// this.piedata.push(obj);
// this.piedata.forEach((value1, index1) => {
// if (value.name == value1.name) {
// this.piedata[index1].value = value.zb;
// }
// });
});
arr = arr.sort((a, b) => a.value < b.value ? 1 : a.value > b.value ? -1 : 0)
this.piedata = arr;
this.pieBox();
});
},

Loading…
Cancel
Save