diff --git a/ruoyi-ui/src/assets/images/login/139.png b/ruoyi-ui/src/assets/images/login/139.png new file mode 100644 index 00000000..edd626e4 Binary files /dev/null and b/ruoyi-ui/src/assets/images/login/139.png differ diff --git a/ruoyi-ui/src/assets/images/login/login-background.png b/ruoyi-ui/src/assets/images/login/login-background.png new file mode 100644 index 00000000..26a364dc Binary files /dev/null and b/ruoyi-ui/src/assets/images/login/login-background.png differ diff --git a/ruoyi-ui/src/assets/images/login/logo.png b/ruoyi-ui/src/assets/images/login/logo.png new file mode 100644 index 00000000..bb77139b Binary files /dev/null and b/ruoyi-ui/src/assets/images/login/logo.png differ diff --git a/ruoyi-ui/src/assets/images/login/password.png b/ruoyi-ui/src/assets/images/login/password.png new file mode 100644 index 00000000..8231760a Binary files /dev/null and b/ruoyi-ui/src/assets/images/login/password.png differ diff --git a/ruoyi-ui/src/assets/images/login/user.png b/ruoyi-ui/src/assets/images/login/user.png new file mode 100644 index 00000000..9c5c54d9 Binary files /dev/null and b/ruoyi-ui/src/assets/images/login/user.png differ diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue index 97dcbe14..5c3ed94a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Pagination.vue @@ -14,7 +14,7 @@ export default { getProps() { return { // total - layout: "prev, pager, next, sizes, jumper,total", + layout: "prev, pager, next, sizes, jumper, total", ...this.$attrs, small: true, }; @@ -109,5 +109,8 @@ export default { margin-right: 6px; } } + ::v-deep .el-pagination__total { + margin-left: 10px; + } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js index 16fed38e..95cb7750 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js @@ -22,7 +22,7 @@ var options = { color: colorList, legend: { width: "500px", - height: "220px", + height: "160px", orient: "vertical", top: "10", icon: "circle", @@ -64,7 +64,6 @@ var options = { let obj = typeAnalysisData.filter((it) => { return it.name == params; }); - // console.log(obj); return `{ast|${obj[0].name}} {bst|${ Math.round((obj[0].value / count) * 100) || 0 }%} {cst|${obj[0].value}起}`; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue index 111df349..206fcb26 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue @@ -61,84 +61,76 @@ export default { if (res.code == 200) { let data = res.data; console.log("===================22", data); - typeAnalysisData = []; - for (var i = 0; i < data.length; i++) { - var it = data[i]; - if (it.warningType == 1) { - typeAnalysisData.push({ - name: "交通拥堵", - value: it.number || 0, - }); - } - if (it.warningType == 2) { - typeAnalysisData.push({ - name: "行人", - value: it.number || 0, - }); - } - if (it.warningType == 3) { - typeAnalysisData.push({ - name: "非机动车", - value: it.number || 0, - }); - } - if (it.warningType == 4) { - typeAnalysisData.push({ - name: "停车", - value: it.number || 0, - }); - } - if (it.warningType == 5) { - typeAnalysisData.push({ - name: "倒车/逆行", - value: it.number || 0, - }); - } - if (it.warningType == 6) { - typeAnalysisData.push({ - name: "烟火", - value: it.number || 0, - }); - } - if (it.warningType == 7) { - typeAnalysisData.push({ - name: "撒落物", - value: it.number || 0, - }); - } - if (it.warningType == 8) { - typeAnalysisData.push({ - name: "异常天气", - value: it.number || 0, - }); - } - if (it.warningType == 9) { - typeAnalysisData.push({ - name: "护栏碰撞", - value: it.number || 0, - }); - } - if (it.warningType == 10) { - typeAnalysisData.push({ - name: "交通事故", - value: it.number || 0, - }); - } - if (it.warningType == 11) { - typeAnalysisData.push({ - name: "车辆故障", - value: it.number || 0, - }); - } - if (it.warningType == 99) { - typeAnalysisData.push({ - name: "其他", - value: it.number || 0, - }); - } - - drawRoundRect(context, 250, 8 + i * 28, 120, 24, 12, gr); - } + typeAnalysisData = [ + { + name: "交通拥堵", + warningType: 1, + value: 0, + }, + { + name: "行人", + warningType: 1, + value: 0, + }, + { + name: "非机动车", + warningType: 3, + value: 0, + }, + { + name: "停车", + warningType: 4, + value: 0, + }, + { + name: "倒车/逆行", + warningType: 5, + value: 0, + }, + { + name: "烟火", + warningType: 6, + value: 0, + }, + { + name: "撒落物", + warningType: 7, + value: 0, + }, + { + name: "异常天气", + warningType: 8, + value: 0, + }, + { + name: "护栏碰撞", + warningType: 9, + value: 0, + }, + { + name: "交通事故", + warningType: 10, + value: 0, + }, + { + name: "车辆故障", + warningType: 11, + value: 0, + }, + { + name: "其他", + warningType: 99, + value: 0, + }, + ]; + data.forEach((item, index) => { + typeAnalysisData.forEach((r) => { + if (item.warningType == r.warningType) { + r.value += item.number; + } + }); + // drawRoundRect(context, 250, 8 + index * 28, 120, 24, 12, gr); + }); chartsStatistics.legend.data = typeAnalysisData?.map((x) => x.name); chartsStatistics.series[0].data = typeAnalysisData.map( @@ -184,12 +176,11 @@ export default { context.lineWidth = 1; // 设置线段宽度 // 绘制圆角矩形 - - // drawRoundRect(context, 260, 36, 120, 24, 12,gr) - // drawRoundRect(context, 260, 64, 120, 24, 12,gr) - // drawRoundRect(context, 260, 92, 120, 24, 12,gr) - // drawRoundRect(context, 260, 120, 120, 24, 12,gr) - // drawRoundRect(context, 260, 148, 120, 24, 12,gr) + drawRoundRect(context, 260, 6, 120, 24, 12, gr); + drawRoundRect(context, 260, 36, 120, 24, 12, gr); + drawRoundRect(context, 260, 64, 120, 24, 12, gr); + drawRoundRect(context, 260, 92, 120, 24, 12, gr); + drawRoundRect(context, 260, 120, 120, 24, 12, gr); }); }); }, diff --git a/ruoyi-ui/src/views/login copy.vue b/ruoyi-ui/src/views/login copy.vue new file mode 100644 index 00000000..a65882cb --- /dev/null +++ b/ruoyi-ui/src/views/login copy.vue @@ -0,0 +1,461 @@ + + + + + diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 6b0ab0a5..1f1ab1c8 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -1,43 +1,79 @@