Commit de7fb0cc by liyuhang19990520

大屏数据修改以及首页跳转

parent 149c9ad7
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-07-11 15:04:34 * @Date: 2021-07-11 15:04:34
* @LastEditTime: 2021-07-12 17:51:25 * @LastEditTime: 2021-07-13 10:00:23
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\index\kshData.vue * @FilePath: \founder_vue\src\views\index\kshData.vue
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div class="timer"> <div class="timer">
<span> {{ date }}</span> <span> {{ date }}</span>
<span class="vertical"> | </span> <span class="vertical"> | </span>
<p style="cursor: pointer"> <p style="cursor: pointer" @click="goHome">
<img src="~@/assets/img/homeLogo.png" alt="" /> <img src="~@/assets/img/homeLogo.png" alt="" />
<span>首页</span> <span>首页</span>
</p> </p>
...@@ -186,46 +186,42 @@ export default { ...@@ -186,46 +186,42 @@ export default {
}, },
data2: [ data2: [
{ {
name: "Adidas", name: "无业",
value: 22424, value: 18274,
}, },
{ {
name: "Nike", name: "务工",
value: 10131, value: 39285,
}, },
{ {
name: "Pumas", name: "务农",
value: 15252, value: 24215,
}, },
{ {
name: "Convers", name: "其他",
value: 20232, value: 15125,
}, },
], ],
data3: [ data3: [
{ {
name: "first", name: "大学及以上",
value: 1121, value: 22516,
}, },
{ {
name: "second", name: "高中",
value: 2424, value: 35150,
}, },
{ {
name: "third", name: "初中",
value: 313, value: 25116,
}, },
{ {
name: "fourth", name: "小学及以下",
value: 4131, value: 11415,
}, },
{ {
name: "fifth", name: "其他",
value: 52323, value: 16128,
},
{
name: "sixth",
value: 62223,
}, },
], ],
data4: [1400, 2380, 4360, 5340, 3320, 3300, 4280, 5260, 1240, 2320], data4: [1400, 2380, 4360, 5340, 3320, 3300, 4280, 5260, 1240, 2320],
...@@ -243,15 +239,27 @@ export default { ...@@ -243,15 +239,27 @@ export default {
], ],
ydata: [ ydata: [
"盗窃汽车", "盗窃汽车",
"盗窃汽车", "盗窃摩托车",
"盗窃汽车", "盗窃其他机动车",
"盗窃汽车", "盗窃自行车",
"盗窃汽车", "盗窃电动自行车",
"盗窃汽车", "盗窃电动自行车电瓶",
"盗窃汽车", "盗窃其他非机动车",
"盗窃汽车", "随窃",
"盗窃汽车", "盗窃车辆燃油",
"盗窃汽车", "盗窃车辆配件",
],
areaYData: [
"广州",
"上海",
"北京",
"云南",
"山东",
"河北",
"四川",
"湖北",
"陕西",
"内蒙",
], ],
highRiskData: [80, 80, 97, 53, 95, 26, 72, 55], highRiskData: [80, 80, 97, 53, 95, 26, 72, 55],
highRiskX: [ highRiskX: [
...@@ -308,44 +316,20 @@ export default { ...@@ -308,44 +316,20 @@ export default {
ajtjList: [ ajtjList: [
{ {
id: "maFaCount", id: "maFaCount",
title: "发案数:", title: "发案数",
value: null, value: 242367,
color: "#FFE45C", color: "#FF7336",
type: "up", type: "up",
num: null, num: null,
}, },
{ {
id: "maPaCount", id: "maPaCount",
title: "破案数:", title: "破案数",
value: 1251, value: 215578,
color: "#43E1FF", color: "#43E1FF",
type: "up", type: "up",
num: null, num: null,
}, },
{
id: "maWpCount",
title: "命案未破数:",
value: 2135,
color: "#FFE45C",
type: "down",
num: null,
},
{
id: "maJaPaCount",
title: "积案破案数:",
value: 3124,
color: "#43E1FF",
type: "down",
num: null,
},
{
id: "maZdswCount",
title: "重大伤亡命案数:",
value: 5123,
color: "#FF5816",
type: "down",
num: null,
},
], ],
}; };
}, },
...@@ -369,7 +353,7 @@ export default { ...@@ -369,7 +353,7 @@ export default {
this.aside_highRisk(this.highRiskX, this.highRiskData); this.aside_highRisk(this.highRiskX, this.highRiskData);
//发破案态势统计 //发破案态势统计
this.setAside_solveacase( this.setAside_solveacase(
this.ydata, this.areaYData,
this.data4, this.data4,
this.data5, this.data5,
this.colorList this.colorList
...@@ -431,6 +415,17 @@ export default { ...@@ -431,6 +415,17 @@ export default {
}, },
}, },
}, },
legend: {
right: 85,
top: 26,
textStyle: {
color: "#fff",
},
itemWidth: 12,
itemHeight: 10,
itemWidth: 14,
itemGap: 17,
},
grid: { grid: {
top: "24%", top: "24%",
left: "10%", left: "10%",
...@@ -504,11 +499,11 @@ export default { ...@@ -504,11 +499,11 @@ export default {
}, },
}, },
itemStyle: { itemStyle: {
color: "#000", color: "#28DBF1",
borderColor: "#28DBF1", // borderColor: "#000",
borderWidth: 2, // borderWidth: 3,
}, },
data: [4, 7, 5, 4], //data.values data: [42626, 91880, 80880, 84200], //data.values
}, },
{ {
name: "女性", name: "女性",
...@@ -529,11 +524,11 @@ export default { ...@@ -529,11 +524,11 @@ export default {
}, },
}, },
itemStyle: { itemStyle: {
color: "#000", color: "#EAC42E",
borderColor: "#EAC42E", // borderColor: "#EAC42E",
borderWidth: 2, // borderWidth: 2,
}, },
data: [3, 5, 4, 2], //data.values data: [29140, 49140, 59278, 54233], //data.values
}, },
], ],
}); });
...@@ -1230,6 +1225,9 @@ export default { ...@@ -1230,6 +1225,9 @@ export default {
}, 0); }, 0);
return totalPrice; return totalPrice;
}, },
goHome(){
this.$router.push('/home')
}
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment