Browse Source

更改

wangqin
zhangzhang 10 months ago
parent
commit
4b0730b835
  1. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/assets/charts.js
  2. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue
  3. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js
  4. 207
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dayTotal/assets/charts.js
  5. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue
  6. 224
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/railwayDay/assets/charts.js

10
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/assets/charts.js

@ -128,6 +128,7 @@ var options = {
}, },
{ {
name: "总数", name: "总数",
tooltip: false,
type: "gauge", type: "gauge",
radius: "30%", radius: "30%",
center: ["50%", "35%"], center: ["50%", "35%"],
@ -185,7 +186,14 @@ var options = {
value: 100, value: 100,
}, },
], ],
// tooltip: false, tooltip: {
backgroundColor: "rgba(50,50,50,0)",
formatter: " ",
borderWidth: 0,
textStyle: {
textShadowColor: "rgba(50,50,50,0)",
},
},
}, },
{ {
type: "pie", type: "pie",

1
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue

@ -63,6 +63,7 @@ export default {
}; };
chartsStatistics.legend.data = nameData; chartsStatistics.legend.data = nameData;
chartsStatistics.title[0].text = total; chartsStatistics.title[0].text = total;
// chartsStatistics.tooltip.show = false;
// chartsStatistics.series[1].data[0].value = total; // chartsStatistics.series[1].data[0].value = total;
chartsStatistics.series[2].data = data; chartsStatistics.series[2].data = data;
}) })

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js

@ -154,6 +154,14 @@ var options = {
width: 1, width: 1,
}, },
}, },
tooltip: {
backgroundColor: "rgba(50,50,50,0)",
formatter: " ",
borderWidth: 0,
textStyle: {
textShadowColor: "rgba(50,50,50,0)",
},
},
axisTick: { axisTick: {
show: false, show: false,
}, },

207
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dayTotal/assets/charts.js

@ -1,108 +1,107 @@
const sxnja = [ const sxnja = [
293.67, 493.44, 694.34, 894.5, 697.82, 895.09, 495.79, 497.49, 393.72, 293.52 293.67, 493.44, 694.34, 894.5, 697.82, 895.09, 495.79, 497.49, 393.72, 293.52,
]; ];
const minNumber = 0; const minNumber = 0;
const minArray = []; const minArray = [];
sxnja.map((value) => { sxnja.map((value) => {
minArray.push(parseFloat((value - minNumber).toFixed(2))) minArray.push(parseFloat((value - minNumber).toFixed(2)));
}) });
console.log(minArray) console.log(minArray);
let xaxisData = [ let xaxisData = [];
];
var options = {
var options = { title: {
title: {
// text: '单位/%', // text: '单位/%',
top: '0%', top: "0%",
left: '0%', left: "0%",
textStyle: { textStyle: {
fontSize: '10px', fontSize: "10px",
fontWeight: 300, fontWeight: 300,
color: '#B5C5D4', color: "#B5C5D4",
opacity: 0.8 opacity: 0.8,
} },
}, },
tooltip: { tooltip: {
valueFormatter: function (value) { valueFormatter: function (value) {
return (value + minNumber).toFixed(2); return value + minNumber;
} },
}, },
grid: { grid: {
left: '1%', left: "1%",
right: '0%', right: "0%",
top: '16%', top: "16%",
bottom: '5%', bottom: "5%",
containLabel: true containLabel: true,
}, },
xAxis: { xAxis: {
type: 'category', type: "category",
data: xaxisData, data: xaxisData,
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
width: 1, width: 1,
color: '#545454' color: "#545454",
} },
}, },
axisTick: { axisTick: {
show: false show: false,
}, },
axisLabel: { axisLabel: {
color: '#B5C5D4', color: "#B5C5D4",
fontSize: '10px', fontSize: "10px",
interval: 0 interval: 0,
} },
}, },
yAxis: [ yAxis: [
{ {
// type: 'value', // type: 'value',
// min: function (value) { // min: function (value) {
// return value.min*0.9; // return value.min*0.9;
// }, // },
type: 'value', type: "value",
// max: yAxisMax, // max: yAxisMax,
axisLine: { axisLine: {
show: false, show: false,
lineStyle: { lineStyle: {
width: 1, width: 1,
color: '#545454' color: "#545454",
} },
}, },
splitLine: { splitLine: {
show: true, show: true,
lineStyle: { lineStyle: {
color: '#B2C2D3', color: "#B2C2D3",
opacity: 0.3, opacity: 0.3,
type: 'dotted' type: "dotted",
} },
}, },
axisTick: { axisTick: {
show: false show: false,
}, },
axisLabel: { axisLabel: {
color: '#B5C5D4', color: "#B5C5D4",
fontSize: '12px', fontSize: "12px",
formatter: (value) => { formatter: (value) => {
return value + minNumber return value + minNumber;
} },
} },
} },
], ],
series: [ series: [
{ {
// name: '审限内结案率', // name: '审限内结案率',
data: minArray, data: minArray,
type: 'pictorialBar', type: "pictorialBar",
symbol: 'roundRect', symbol: "roundRect",
symbolRepeat: true, symbolRepeat: true,
symbolSize: [13, 4], symbolSize: [13, 4],
// symbolOffset: symbolOffset, // symbolOffset: symbolOffset,
// barWidth:'40%', // barWidth:'40%',
itemStyle: { itemStyle: {
color: '#20E7FF' color: "#20E7FF",
} },
} },
] ],
}; };
export default options; export default options;

1
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

@ -171,6 +171,7 @@ export default {
methods: { methods: {
selectProgress(item, index) { selectProgress(item, index) {
this.selectId = index; this.selectId = index;
this.searchQuery()
}, },
onReset() { onReset() {
this.area = '1'; this.area = '1';

224
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/railwayDay/assets/charts.js

@ -1,133 +1,155 @@
/* 数据 */ /* 数据 */
let nameList = ["大学城", "长清", "孝里", "安城", "平阴北", "平阴南", "东平", "梁山东", "嘉祥西"]; // 类别 let nameList = [
"大学城",
"长清",
"孝里",
"安城",
"平阴北",
"平阴南",
"东平",
"梁山东",
"嘉祥西",
]; // 类别
let valueList = [800, 520, 650, 950, 420, 600, 450, 720, 303]; // 人数 let valueList = [800, 520, 650, 950, 420, 600, 450, 720, 303]; // 人数
// var yList = [ "1000","800","轻度拥堵","基本畅通","畅通"] // var yList = [ "1000","800","轻度拥堵","基本畅通","畅通"]
/* 数据整合 */ /* 数据整合 */
const minNumber = 0; const minNumber = 0;
let dataList = []; let dataList = [];
nameList.map((item, index) => { nameList.map((item, index) => {
if (index === 3) { if (index === 3) {
dataList.push({ dataList.push({
name: item, name: item,
value: valueList[index], value: valueList[index],
itemStyle: { itemStyle: {
color: { color: {
type: 'linear', type: "linear",
x: 0, x: 0,
y: 0, y: 0,
x2: 0, x2: 0,
y2: 1, y2: 1,
colorStops: [{ colorStops: [
offset: 0, color: '#0469FF' // 0% 处的颜色 {
}, { offset: 0,
offset: 1, color: '#699CFF' // 100% 处的颜色 color: "#0469FF", // 0% 处的颜色
}], },
global: false // 缺省为 false {
offset: 1,
color: "#699CFF", // 100% 处的颜色
}, },
borderRadius: 6 ],
}, global: false, // 缺省为 false
label: { show: false } },
}) borderRadius: 6,
} else { },
dataList.push({ label: { show: false },
name: item, });
value: valueList[index], } else {
itemStyle: { dataList.push({
borderRadius: 6 name: item,
} value: valueList[index],
}) itemStyle: {
} borderRadius: 6,
}) },
});
}
});
var options = { var options = {
grid: { grid: {
top: '5%',//上边距 top: "5%", //上边距
right: '0',//右边距 right: "0", //右边距
left: '0',//左边距 left: "0", //左边距
bottom: "0%",//下边距 bottom: "0%", //下边距
containLabel: true, containLabel: true,
}, },
tooltip: { tooltip: {
valueFormatter: function (value) { valueFormatter: function (value) {
return (value + minNumber).toFixed(2); return value + minNumber;
}
}, },
xAxis: { },
type: 'category', xAxis: {
data: nameList, type: "category",
axisTick: { data: nameList,
show: false //隐藏X轴刻度 axisTick: {
}, show: false, //隐藏X轴刻度
axisLine: { },
lineStyle: { axisLine: {
color: "rgba(49, 217, 255, 0.8)" lineStyle: {
} color: "rgba(49, 217, 255, 0.8)",
},
axisLabel: {
show: true,
color: '#B6E6FF',
fontSize: 8,
fontFamily: 'Source Han Sans CN-Regular',
}, },
}, },
yAxis: [{ axisLabel: {
type: 'value', show: true,
color: "#B6E6FF",
fontSize: 8,
fontFamily: "Source Han Sans CN-Regular",
},
},
yAxis: [
{
type: "value",
name: "", name: "",
nameTextStyle: { nameTextStyle: {
color: '#B6E6FF', color: "#B6E6FF",
fontSize: 13, fontSize: 13,
fontFamily: 'Source Han Sans CN-Regular', fontFamily: "Source Han Sans CN-Regular",
align: "left", align: "left",
verticalAlign: "center", verticalAlign: "center",
}, },
axisLabel: { axisLabel: {
fontSize: 13, fontSize: 13,
color: '#B6E6FF', color: "#B6E6FF",
fontFamily: 'HarmonyOS Sans-Regular', fontFamily: "HarmonyOS Sans-Regular",
// formatter:function(value,index){ // formatter:function(value,index){
// return yList[index] // return yList[index]
// } // }
}, },
axisLine: { axisLine: {
show: false, show: false,
}, },
axisTick: { axisTick: {
show: false show: false,
}, },
splitLine: { splitLine: {
lineStyle: { lineStyle: {
color: 'rgba(49, 217, 255, 0.5)', color: "rgba(49, 217, 255, 0.5)",
} },
}, },
}], },
series: [{ ],
type: 'bar', series: [
{
type: "bar",
data: dataList, data: dataList,
z: 4, z: 4,
itemStyle: { itemStyle: {
color: { color: {
type: 'linear', type: "linear",
x: 0, x: 0,
y: 0, y: 0,
x2: 0, x2: 0,
y2: 1, y2: 1,
colorStops: [{ colorStops: [
offset: 0, color: '#0BA7DA' // 0% 处的颜色 {
}, { offset: 0,
offset: 1, color: '#61D8FF' // 100% 处的颜色 color: "#0BA7DA", // 0% 处的颜色
}], },
global: false // 缺省为 false {
}, offset: 1,
borderRadius: [4, 4, 0, 0] color: "#61D8FF", // 100% 处的颜色
},
],
global: false, // 缺省为 false
},
borderRadius: [4, 4, 0, 0],
}, },
barWidth: 10, barWidth: 10,
label: { label: {
show: false, show: false,
} },
}, },
] ],
} };
export default options; export default options;

Loading…
Cancel
Save