Browse Source

更改

wangqin
zhangzhang 9 months ago
parent
commit
625b83fff5
  1. 22
      ruoyi-ui/src/assets/styles/element-ui.scss
  2. 1
      ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
  3. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
  4. 109
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue

22
ruoyi-ui/src/assets/styles/element-ui.scss

@ -13,3 +13,25 @@
font-weight: 500; font-weight: 500;
color: #3DE8FF!important; 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;
// }
}

1
ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue

@ -120,7 +120,6 @@ export default {
}, },
set(data) { set(data) {
this.formData = data; this.formData = data;
this.$emit('update:value', this.formData); this.$emit('update:value', this.formData);
} }
}, },

9
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 (phr && !this.options.find(op => op.key == phr)) this.options.push({ key: phr })
}) })
} }
if(phrs && phrs[0]) { if (phrs && phrs[0]) {
it.commonPhrases = phrs it.commonPhrases = phrs
} }
}) })
@ -209,8 +209,8 @@ export default {
// //
.el-tag.el-tag--info { .el-tag.el-tag--info {
background-color: #19546C; background-color: #19546C !important;
border-color: #113B4E; border-color: #113B4E !important;
// //
.el-select__tags-text { .el-select__tags-text {
@ -230,8 +230,7 @@ export default {
} }
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected { .el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
background-color: #0d5f79; background-color: #0d5f79 !important;
} }
</style> </style>

109
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue

@ -5,7 +5,7 @@
</div> </div>
<div class="StatsDetail"> <div class="StatsDetail">
<el-table :data="tableData" style="width: 100%" :span-method="arraySpanMethod"> <el-table v-if="searchType == 2" :data="tableData" style="width: 100%" :span-method="arraySpanMethod">
<el-table-column prop="controlCauseName" label="封闭原因" width="150" align="center"> <el-table-column prop="controlCauseName" label="封闭原因" width="150" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="causeTypeName" label="" align="center"> <el-table-column prop="causeTypeName" label="" align="center">
@ -41,6 +41,18 @@
<el-table-column prop="yearTimeRatio" label="同比(%)" align="center"></el-table-column> <el-table-column prop="yearTimeRatio" label="同比(%)" align="center"></el-table-column>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-table v-else :data="facilityTableData" style="width: 100%">
<el-table-column prop="facilityName" label="" width="150" align="center">
</el-table-column>
<el-table-column prop="facilityClose" label="封闭" align="center">
</el-table-column>
<el-table-column prop="facilityRestriction" label="限行" width="150" align="center">
</el-table-column>
<el-table-column prop="facilityInterval" label="间隔放行" align="center">
</el-table-column>
<el-table-column prop="causeTypeName" label="合计" align="center">
</el-table-column>
</el-table>
</div> </div>
</Dialog> </Dialog>
@ -52,6 +64,7 @@ import InputSearch from '@screen/components/InputSearch/index.vue';
import Table from "@screen/components/Table.vue"; import Table from "@screen/components/Table.vue";
import { selectTollStation } from "@/api/event/governanceAnalysis" import { selectTollStation } from "@/api/event/governanceAnalysis"
import options from "../assets/charts"; import options from "../assets/charts";
import request from "@/utils/request";
export default { export default {
name: 'StatsDetail', name: 'StatsDetail',
components: { components: {
@ -78,32 +91,41 @@ export default {
return time.getTime() > Date.now(); return time.getTime() > Date.now();
}, },
}, },
searchType: 1,
facilityIds: [],
searchFormList: [ searchFormList: [
{ {
label: "查询条件:", label: "查询条件:",
key: "a", key: "searchType",
required: true, required: true,
isAlone: true, isAlone: true,
type: "RadioGroup", type: "RadioGroup",
default: 1,
options: { options: {
type: 'circle', type: 'circle',
options: [ options: [
{ {
key: "0", key: 1,
label: "站点", label: "站点",
}, },
{ {
key: "1", key: 2,
label: "原因", label: "原因",
} }
], ]
} }
}, },
{ {
label: "事件类型:", label: "事件类型:",
key: "b", key: "controlType",
required: true, required: true,
type: "RadioGroup", type: "RadioGroup",
visible: data => {
if (data.searchType == 2) {
return true
}
},
default: 1,
options: { options: {
type: 'circle', type: 'circle',
options: [{ options: [{
@ -118,21 +140,18 @@ export default {
}, },
{ {
label: "选择站点:", label: "选择站点:",
key: "c", key: "facilityId",
required: true, required: true,
type: "RadioGroup", type: "select",
options: { options: {
type: 'circle', multiple: true
options: [{
key: 1,
label: "收费站封闭",
}, },
{ visible: data => {
key: 2, if (data.searchType == 1) {
label: "收费站限行", return true
}]
} }
}, },
},
{ {
label: "日期:", label: "日期:",
key: "date", key: "date",
@ -164,16 +183,44 @@ export default {
}, },
methods: { 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) { handleSearch(data) {
console.log("data", data) console.log("data555", data)
this.getSelectTollStation(data) this.getSelectTollStation(data)
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
console.log("+++++++", row, column, rowIndex, columnIndex) // console.log("+++++++", row, column, rowIndex, columnIndex)
if (!row.causeTypeName) { if (!row.causeTypeName) {
console.log("11111111111") // console.log("11111111111")
if (columnIndex === 0) { if (columnIndex === 0) {
return [1, 2]; return [1, 2];
} }
@ -182,7 +229,7 @@ export default {
} }
}; };
if (row.controlCauseName === '恶劣天气') { if (row.controlCauseName === '恶劣天气') {
console.log("222222222222") // console.log("222222222222")
if (columnIndex === 0) { if (columnIndex === 0) {
console.log(this.weatherNum.length) console.log(this.weatherNum.length)
if (rowIndex === 0) { if (rowIndex === 0) {
@ -230,12 +277,17 @@ export default {
} }
var formData = new FormData(); 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("startTime", startTime);
formData.append("endTime", endTime); formData.append("endTime", endTime);
let weatherData = [] let weatherData = []
let otherData = [] let otherData = []
selectTollStation(formData).then((res) => { selectTollStation(formData).then((res) => {
if (data.searchType == 2) {
this.weatherNum = [] this.weatherNum = []
res.data.forEach(item => { res.data.forEach(item => {
if (item.causeTypeName) { if (item.causeTypeName) {
@ -246,16 +298,18 @@ export default {
} }
}); });
this.tableData = weatherData.concat(otherData) this.tableData = weatherData.concat(otherData)
} else {
this.facilityTableData = res.data
}
}) })
} }
}, },
mounted() { mounted() {
let date = moment().format('YYYY-MM-DD') this.getFacilityList()
let data = {
date: [date + " 00:00:00", date + " 23:59:59"]
}
this.getSelectTollStation(data)
} }
} }
</script> </script>
@ -296,6 +350,7 @@ export default {
::v-deep .el-table th.el-table__cell>.cell { ::v-deep .el-table th.el-table__cell>.cell {
color: #3DE8FF; color: #3DE8FF;
background: #1B586D;
} }
::v-deep .el-table thead.is-group th.el-table__cell { ::v-deep .el-table thead.is-group th.el-table__cell {
@ -312,10 +367,12 @@ export default {
::v-deep .el-table tr { ::v-deep .el-table tr {
border: 1px solid #07AEC6; border: 1px solid #07AEC6;
background-color: #1B586D;
} }
::v-deep .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell { ::v-deep .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
background: #1B586D; background: #1B586D;
border: 1px solid #07AEC6;
} }
::v-deep .el-table::before, ::v-deep .el-table::before,

Loading…
Cancel
Save