From 625b83fff5a7e723bc919a158c9917c8fc320f42 Mon Sep 17 00:00:00 2001
From: zhangzhang <1747194829@qq.com>
Date: Sun, 18 Feb 2024 17:38:04 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/assets/styles/element-ui.scss | 22 +++
.../components/FormConfig/index.vue | 1 -
.../disposalProcess/index.vue | 9 +-
.../StatsDialogVisible/index.vue | 133 +++++++++++++-----
4 files changed, 121 insertions(+), 44 deletions(-)
diff --git a/ruoyi-ui/src/assets/styles/element-ui.scss b/ruoyi-ui/src/assets/styles/element-ui.scss
index 99a48040..244258d5 100644
--- a/ruoyi-ui/src/assets/styles/element-ui.scss
+++ b/ruoyi-ui/src/assets/styles/element-ui.scss
@@ -12,4 +12,26 @@
font-size: 16px;
font-weight: 500;
color: #3DE8FF!important;
+}
+.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
+ background: #0D5F79 !important;
+}
+.el-tag.el-tag--info {
+ background-color: #19546C !important;
+ border-color: #113B4E !important;
+
+ //文字
+ .el-select__tags-text {
+ color: #fff;
+ }
+
+ //i标签 背景
+ // .el-select .el-tag__close.el-icon-close {
+ // background-color: #2a7290 !important;
+ // }
+
+ // .el-tag.el-tag--info .el-tag__close {
+ // color: #fff;
+ // }
+
}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
index b1033952..273cb7b3 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
@@ -120,7 +120,6 @@ export default {
},
set(data) {
this.formData = data;
-
this.$emit('update:value', this.formData);
}
},
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
index 524c397d..fdf49cf2 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
@@ -134,7 +134,7 @@ export default {
if (phr && !this.options.find(op => op.key == phr)) this.options.push({ key: phr })
})
}
- if(phrs && phrs[0]) {
+ if (phrs && phrs[0]) {
it.commonPhrases = phrs
}
})
@@ -209,8 +209,8 @@ export default {
//下拉选
.el-tag.el-tag--info {
- background-color: #19546C;
- border-color: #113B4E;
+ background-color: #19546C !important;
+ border-color: #113B4E !important;
//文字
.el-select__tags-text {
@@ -230,8 +230,7 @@ export default {
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
- background-color: #0d5f79;
+ background-color: #0d5f79 !important;
}
-
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
index cc9567f7..012e8e8b 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -41,6 +41,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -52,6 +64,7 @@ import InputSearch from '@screen/components/InputSearch/index.vue';
import Table from "@screen/components/Table.vue";
import { selectTollStation } from "@/api/event/governanceAnalysis"
import options from "../assets/charts";
+import request from "@/utils/request";
export default {
name: 'StatsDetail',
components: {
@@ -78,32 +91,41 @@ export default {
return time.getTime() > Date.now();
},
},
+ searchType: 1,
+ facilityIds: [],
searchFormList: [
{
label: "查询条件:",
- key: "a",
+ key: "searchType",
required: true,
isAlone: true,
type: "RadioGroup",
+ default: 1,
options: {
type: 'circle',
options: [
{
- key: "0",
+ key: 1,
label: "站点",
},
{
- key: "1",
+ key: 2,
label: "原因",
}
- ],
+ ]
}
},
{
label: "事件类型:",
- key: "b",
+ key: "controlType",
required: true,
type: "RadioGroup",
+ visible: data => {
+ if (data.searchType == 2) {
+ return true
+ }
+ },
+ default: 1,
options: {
type: 'circle',
options: [{
@@ -118,20 +140,17 @@ export default {
},
{
label: "选择站点:",
- key: "c",
+ key: "facilityId",
required: true,
- type: "RadioGroup",
+ type: "select",
options: {
- type: 'circle',
- options: [{
- key: 1,
- label: "收费站封闭",
- },
- {
- key: 2,
- label: "收费站限行",
- }]
- }
+ multiple: true
+ },
+ visible: data => {
+ if (data.searchType == 1) {
+ return true
+ }
+ },
},
{
label: "日期:",
@@ -164,16 +183,44 @@ export default {
},
methods: {
+ getFacilityList() {
+ Promise.allSettled([
+ // 查询收费站
+ request({
+ url: `/business/facility/query`,
+ method: "get",
+ }),
+ ])
+ .then((res) => {
+ console.log(789789, res)
+ if (res[0].status === 'fulfilled' && res[0].value.code == 200) {
+ this.searchFormList[2].options.options = res[0].value.data.map(item => ({
+ key: item.id,
+ label: item.facilityName,
+ }))
+ this.facilityIds = res[0].value.data.map(item => item.id)
+ console.log(777, this.facilityIds)
+ let date = moment().format('YYYY-MM-DD')
+ let data = {
+ searchType: 1,
+ facilityId: this.facilityIds,
+ date: [date + " 00:00:00", date + " 23:59:59"]
+ }
+ this.getSelectTollStation(data)
+ }
+ })
+
+ },
handleSearch(data) {
- console.log("data", data)
+ console.log("data555", data)
this.getSelectTollStation(data)
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
- console.log("+++++++", row, column, rowIndex, columnIndex)
+ // console.log("+++++++", row, column, rowIndex, columnIndex)
if (!row.causeTypeName) {
- console.log("11111111111")
+ // console.log("11111111111")
if (columnIndex === 0) {
return [1, 2];
}
@@ -182,7 +229,7 @@ export default {
}
};
if (row.controlCauseName === '恶劣天气') {
- console.log("222222222222")
+ // console.log("222222222222")
if (columnIndex === 0) {
console.log(this.weatherNum.length)
if (rowIndex === 0) {
@@ -230,32 +277,39 @@ export default {
}
var formData = new FormData();
- formData.append("controlType", '1');
+ this.searchType == data.searchType
+
+ formData.append("controlType", data.controlType);
+ formData.append("searchType", data.searchType);
+ formData.append("facilityId", data.facilityId);
formData.append("startTime", startTime);
formData.append("endTime", endTime);
let weatherData = []
let otherData = []
selectTollStation(formData).then((res) => {
- this.weatherNum = []
- res.data.forEach(item => {
- if (item.causeTypeName) {
- this.weatherNum.push(item.causeTypeName)
- weatherData.push(item)
- } else {
- otherData.push(item)
- }
- });
- this.tableData = weatherData.concat(otherData)
+ if (data.searchType == 2) {
+ this.weatherNum = []
+ res.data.forEach(item => {
+ if (item.causeTypeName) {
+ this.weatherNum.push(item.causeTypeName)
+ weatherData.push(item)
+ } else {
+ otherData.push(item)
+ }
+ });
+ this.tableData = weatherData.concat(otherData)
+ } else {
+ this.facilityTableData = res.data
+ }
+
})
}
},
mounted() {
- let date = moment().format('YYYY-MM-DD')
- let data = {
- date: [date + " 00:00:00", date + " 23:59:59"]
- }
- this.getSelectTollStation(data)
+ this.getFacilityList()
+
+
}
}
@@ -296,6 +350,7 @@ export default {
::v-deep .el-table th.el-table__cell>.cell {
color: #3DE8FF;
+ background: #1B586D;
}
::v-deep .el-table thead.is-group th.el-table__cell {
@@ -312,10 +367,12 @@ export default {
::v-deep .el-table tr {
border: 1px solid #07AEC6;
+ background-color: #1B586D;
}
::v-deep .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
background: #1B586D;
+ border: 1px solid #07AEC6;
}
::v-deep .el-table::before,