Browse Source

更改

wangqin
zhangzhang 12 months ago
parent
commit
04a170b9f0
  1. 2
      ruoyi-ui/src/assets/styles/JiHeExpressway.scss
  2. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/components/AddNEditDialog.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/data.js
  4. 93
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/index.vue
  5. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
  6. 401
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue
  7. 41
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue
  8. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/assets/charts.js
  9. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue
  10. 4
      ruoyi-ui/src/views/login.vue
  11. 1
      ruoyi-ui/vue.config.js

2
ruoyi-ui/src/assets/styles/JiHeExpressway.scss

@ -11,7 +11,7 @@
} }
.el-form-item { .el-form-item {
margin-bottom: 8px; margin-bottom: 15px;
} }
.el-form-item__label { .el-form-item__label {

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/components/AddNEditDialog.vue

@ -206,12 +206,12 @@ export default {
this.formList[0].options.options = result; this.formList[0].options.options = result;
this.formList[0].default = result[0].key; this.formList[0].default = result[0].key;
this.formList[0].options.options.push({ // this.formList[0].options.options.push({
disabled: false, // disabled: false,
key: 0, // key: 0,
label: "无", // label: "",
}); // });
console.log(this.formList[0].options.options); // console.log(this.formList[0].options.options);
}, },
handleSubmit() { handleSubmit() {
this.$refs.FormConfigRef.validate().then((data) => { this.$refs.FormConfigRef.validate().then((data) => {

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/data.js

@ -6,6 +6,7 @@ export const searchFormList = [
label: "事件状态:", label: "事件状态:",
key: "eventState", key: "eventState",
type: "RadioGroup", type: "RadioGroup",
default: "0",
options: { options: {
options: [ options: [
{ {
@ -29,6 +30,7 @@ export const searchFormList = [
label: "方向:", label: "方向:",
key: "direction", key: "direction",
type: "RadioGroup", type: "RadioGroup",
default: "济南方向",
options: { options: {
options: [ options: [
{ {

93
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/index.vue

@ -1,5 +1,5 @@
<template> <template>
<div class='RoadNetworkMonitoring'> <div class="RoadNetworkMonitoring">
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<ButtonGradient @click="onRefresh" class="refresh-btn"> <ButtonGradient @click="onRefresh" class="refresh-btn">
@ -9,47 +9,71 @@
刷新 刷新
</ButtonGradient> </ButtonGradient>
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ dFormData: { eventState: 0 } }" <InputSearch
@handleSearch="handleSearch" /> style="width: 402px"
:formList="searchFormList"
:formConfigOptions="{ dFormData: { eventState: '0' } }"
@handleSearch="handleSearch"
/>
</div> </div>
<!-- 内容 --> <!-- 内容 -->
<div class="body"> <div class="body">
<RoadStateCard v-for="(item, index) in data" :key="index" :cardData="item" @firstBtnClick="firstBtnClick" <RoadStateCard
@lastBtnClick="lastBtnClick" /> v-for="(item, index) in data"
:key="index"
:cardData="item"
@firstBtnClick="firstBtnClick"
@lastBtnClick="lastBtnClick"
/>
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="footer"> <div class="footer">
<Pagination @current-change="initData" @size-change="onSizeChange" width="'100%'" :page-sizes="[12, 16, 20, 30, 50]" <Pagination
:page-size="searchData.pageSize" :current-page.sync="searchData.pageNum" layout="total, sizes, prev, pager, next" @current-change="initData"
:total="total"> @size-change="onSizeChange"
width="'100%'"
:page-sizes="[12, 16, 20, 30, 50]"
:page-size="searchData.pageSize"
:current-page.sync="searchData.pageNum"
layout="total, sizes, prev, pager, next"
:total="total"
>
</Pagination> </Pagination>
</div> </div>
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" @update:value="handleClose" /> <EventDetailDialog
<EventDispatchDialog :visible="eventDispatchDialogVisible" @update:value="handleClose" :eventId="eventId" /> :visible="eventDetailDialogVisible"
:formData="detailDialogFormData"
@update:value="handleClose"
/>
<EventDispatchDialog
:visible="eventDispatchDialogVisible"
@update:value="handleClose"
:eventId="eventId"
/>
</div> </div>
</template> </template>
<script> <script>
import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue"; import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue";
import Pagination from '@screen/components/Pagination.vue'; import Pagination from "@screen/components/Pagination.vue";
import InputSearch from '@screen/components/InputSearch/index.vue'; import InputSearch from "@screen/components/InputSearch/index.vue";
import RoadStateCard from '@screen/components/RoadStateCard/index.vue'; import RoadStateCard from "@screen/components/RoadStateCard/index.vue";
import EventDetailDialog from "./EventDetailDialog/index"; import EventDetailDialog from "./EventDetailDialog/index";
import EventDispatchDialog from "./EventDispatchDialog/index"; import EventDispatchDialog from "./EventDispatchDialog/index";
import { searchFormList } from './data'; import { searchFormList } from "./data";
import request from "@/utils/request"; import request from "@/utils/request";
const directionMapping = { const directionMapping = {
'1': '菏泽方向', 1: "菏泽方向",
'2': '双向', 2: "双向",
'3': '济南方向' 3: "济南方向",
} };
export default { export default {
name: 'RoadNetworkMonitoring', name: "RoadNetworkMonitoring",
components: { components: {
Pagination, Pagination,
RoadStateCard, RoadStateCard,
@ -57,7 +81,7 @@ export default {
EventDispatchDialog, EventDispatchDialog,
EventDetailDialog, EventDetailDialog,
Pagination, Pagination,
ButtonGradient ButtonGradient,
}, },
data() { data() {
return { return {
@ -67,13 +91,13 @@ export default {
detailDialogFormData: {}, detailDialogFormData: {},
total: 0, total: 0,
data: [], data: [],
eventId: '0', eventId: "0",
searchData: { searchData: {
pageSize: 16, pageSize: 16,
pageNum: 1, pageNum: 1,
eventState: 0, eventState: "0",
}, },
} };
}, },
created() { created() {
this.initData(); this.initData();
@ -82,15 +106,15 @@ export default {
initData() { initData() {
request({ request({
// url: `/dc/system/event/dispatchEventList`, // url: `/dc/system/event/dispatchEventList`,
url: '/dc/system/event/list', url: "/dc/system/event/list",
method: "get", method: "get",
params: this.searchData, params: this.searchData,
}).then((result) => { }).then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
this.total = result.total; this.total = result.total;
result.rows.forEach(it => { result.rows.forEach((it) => {
it.stringDirection = directionMapping[it.direction] || it.direction; it.stringDirection = directionMapping[it.direction] || it.direction;
}) });
this.data = result.rows; this.data = result.rows;
}); });
}, },
@ -126,7 +150,7 @@ export default {
}); });
}, },
lastBtnClick(id) { lastBtnClick(id) {
console.log(id) console.log(id);
this.eventDispatchDialogVisible = true; this.eventDispatchDialogVisible = true;
this.eventId = id; this.eventId = id;
}, },
@ -137,8 +161,10 @@ export default {
let dStakeMark = data.stakeMark; let dStakeMark = data.stakeMark;
let dendStakeMark = data.endStakeMark; let dendStakeMark = data.endStakeMark;
let stakeMark = dStakeMark[0] ? `K${dStakeMark[0]}+${dStakeMark[1]}` : ''; let stakeMark = dStakeMark[0] ? `K${dStakeMark[0]}+${dStakeMark[1]}` : "";
let endStakeMark = dendStakeMark[0] ? `K${dendStakeMark[0]}+${dendStakeMark[1]}` : ''; let endStakeMark = dendStakeMark[0]
? `K${dendStakeMark[0]}+${dendStakeMark[1]}`
: "";
this.searchData = { this.searchData = {
...this.searchData, ...this.searchData,
@ -155,12 +181,12 @@ export default {
handleClose() { handleClose() {
this.eventDetailDialogVisible = false; this.eventDetailDialogVisible = false;
this.eventDispatchDialogVisible = false; this.eventDispatchDialogVisible = false;
} },
} },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.RoadNetworkMonitoring { .RoadNetworkMonitoring {
padding: 21px; padding: 21px;
@ -175,7 +201,6 @@ export default {
// justify-content: flex-end; // justify-content: flex-end;
justify-content: space-between; justify-content: space-between;
.refresh-btn { .refresh-btn {
} }
} }

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

@ -1,6 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="收费站管制统计" style="width: 100%"> <Dialog v-model="modelVisible" title="收费站管制统计" style="width: 100%">
{{ modelVisible }}
<div class="search"> <div class="search">
<InputSearch <InputSearch
:formList="searchFormList" :formList="searchFormList"

401
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue

@ -4,34 +4,64 @@
<ElForm :model="formData" inline :rules="rules" ref="ruleForm"> <ElForm :model="formData" inline :rules="rules" ref="ruleForm">
<div class="first"> <div class="first">
<el-form-item prop="eventCategory"> <el-form-item prop="eventCategory">
<el-radio-group v-model="formData.eventCategory" @input="changeRadio"> <el-radio-group
v-model="formData.eventCategory"
@input="changeRadio"
>
<el-radio-button :label="1">交通事件</el-radio-button> <el-radio-button :label="1">交通事件</el-radio-button>
<el-radio-button :label="2">感知事件</el-radio-button> <el-radio-button :label="2">感知事件</el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item required label="预案名称:" prop="planName"> <el-form-item required label="预案名称:" prop="planName">
<el-input v-model="formData.planName" placeholder="请输入预案名称"></el-input> <el-input
v-model="formData.planName"
placeholder="请输入预案名称"
></el-input>
</el-form-item> </el-form-item>
<el-form-item required label="事件类型:" prop="eventType"> <el-form-item required label="事件类型:" prop="eventType">
<el-select v-model="formData.eventType" placeholder="请选择事件类型" @change="changeEventType"> <el-select
<el-option v-for="item in eventOptions" :key="item.value" :label="item.label" v-model="formData.eventType"
:value="item.value"> placeholder="请选择事件类型"
@change="changeEventType"
>
<el-option
v-for="item in eventOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="(formData.eventCategory == 1 && formData.eventType !== 8) || formData.eventCategory == 2" v-if="
label="触发类型:" prop="triggerMechanism"> (formData.eventCategory == 1 && formData.eventType !== 8) ||
formData.eventCategory == 2
"
label="触发类型:"
prop="triggerMechanism"
>
<el-select <el-select
v-if="(formData.eventCategory == 1 && formData.eventType !== 6) || formData.eventCategory == 2" v-if="
v-model="formData.triggerMechanism" placeholder="请选择触发类型"> (formData.eventCategory == 1 && formData.eventType !== 6) ||
<el-option v-for="item in mechanismOptions" :key="item.value" :label="item.label" formData.eventCategory == 2
:value="item.value"> "
v-model="formData.triggerMechanism"
placeholder="请选择触发类型"
>
<el-option
v-for="item in mechanismOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
<el-select v-if="formData.eventCategory == 1 && formData.eventType == 6" <el-select
v-model="formData.triggerMechanism" placeholder="请选择触发类型"> v-if="formData.eventCategory == 1 && formData.eventType == 6"
v-model="formData.triggerMechanism"
placeholder="请选择触发类型"
>
<el-option-group label="主线"> <el-option-group label="主线">
<el-option label="主线封闭" value="1"></el-option> <el-option label="主线封闭" value="1"></el-option>
<el-option label="主线限行" value="2"></el-option> <el-option label="主线限行" value="2"></el-option>
@ -49,7 +79,6 @@
<el-option label="服务区限行" value="8"></el-option> <el-option label="服务区限行" value="8"></el-option>
</el-option-group> </el-option-group>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div class="second"> <div class="second">
@ -76,19 +105,27 @@
</div> </div>
<template #footer> <template #footer>
<Button style="background: #C9C9C9;padding:0 24px;" <Button
@click.native="modelVisible = false, submitting = false">取消</Button> style="background: #c9c9c9; padding: 0 24px"
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">保存</Button> @click.native="(modelVisible = false), (submitting = false)"
>取消</Button
>
<Button
style="padding: 0 24px"
@click.native="handleSubmit"
:loading="submitting"
>保存</Button
>
</template> </template>
</Dialog> </Dialog>
</template> </template>
<script> <script>
import Dialog from "@screen/components/Dialog/index"; import Dialog from "@screen/components/Dialog/index";
import Form from '@screen/components/FormConfig'; import Form from "@screen/components/FormConfig";
import FormTable from '../formTable/index'; import FormTable from "../formTable/index";
import Button from '@screen/components/Buttons/Button.vue'; import Button from "@screen/components/Buttons/Button.vue";
import request from '@/utils/request'; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
const optionsMap = { const optionsMap = {
@ -96,194 +133,194 @@ const optionsMap = {
1: [ 1: [
{ {
value: 1, value: 1,
label: '雨' label: "雨",
}, },
{ {
value: 2, value: 2,
label: '雪' label: "雪",
}, },
{ {
value: 3, value: 3,
label: '雾' label: "雾",
}, },
{ {
value: 4, value: 4,
label: '大风' label: "大风",
}, },
{ {
value: 5, value: 5,
label: '低温寒潮' label: "低温寒潮",
}, },
{ {
value: 6, value: 6,
label: '路面积雪' label: "路面积雪",
}, },
{ {
value: 7, value: 7,
label: '路面结冰' label: "路面结冰",
}, },
{ {
value: 8, value: 8,
label: '路面积水' label: "路面积水",
}, },
{ {
value: 9, value: 9,
label: '其他' label: "其他",
} },
], ],
2: [ 2: [
{ {
value: 1, value: 1,
label: '侧翻' label: "侧翻",
}, },
{ {
value: 2, value: 2,
label: '撞障碍物' label: "撞障碍物",
}, },
{ {
value: 3, value: 3,
label: '货物洒落' label: "货物洒落",
}, },
{ {
value: 4, value: 4,
label: '撞护栏' label: "撞护栏",
}, },
{ {
value: 5, value: 5,
label: '自燃' label: "自燃",
}, },
{ {
value: 6, value: 6,
label: '追尾' label: "追尾",
} },
], ],
3: [ 3: [
{ {
value: 1, value: 1,
label: '行人' label: "行人",
}, },
{ {
value: 2, value: 2,
label: '非机动车' label: "非机动车",
}, },
{ {
value: 3, value: 3,
label: '摩托车' label: "摩托车",
}, },
{ {
value: 4, value: 4,
label: '其他' label: "其他",
} },
], ],
4: [ 4: [
{ {
value: 1, value: 1,
label: '高速主线' label: "高速主线",
}, },
{ {
value: 2, value: 2,
label: '服务区' label: "服务区",
}, },
{ {
value: 3, value: 3,
label: '立交桥' label: "立交桥",
}, },
{ {
value: 4, value: 4,
label: '收费站' label: "收费站",
} },
], ],
5: [ 5: [
{ {
value: 1, value: 1,
label: '道路拥堵' label: "道路拥堵",
}, },
{ {
value: 2, value: 2,
label: '立交拥堵' label: "立交拥堵",
}, },
{ {
value: 3, value: 3,
label: '收费站拥堵' label: "收费站拥堵",
}, },
{ {
value: 4, value: 4,
label: '收费站服务区拥堵' label: "收费站服务区拥堵",
} },
],
6: [
], ],
6: [],
7: [ 7: [
{ {
value: 1, value: 1,
label: '封闭、暂停营业' label: "封闭、暂停营业",
}, },
{ {
value: 2, value: 2,
label: '重要设施停用' label: "重要设施停用",
}, },
{ {
value: 3, value: 3,
label: '其他异常' label: "其他异常",
} },
], ],
8: [], 8: [],
9: [ 9: [
{ {
value: 1, value: 1,
label: '烟雾' label: "烟雾",
}, },
{ {
value: 2, value: 2,
label: '倒伏树木' label: "倒伏树木",
}, },
{ {
value: 3, value: 3,
label: '洒落物' label: "洒落物",
}, },
{ {
value: 4, value: 4,
label: '动物' label: "动物",
}, },
{ {
value: 5, value: 5,
label: '其他' label: "其他",
} },
] ],
}, },
2: { 2: {
1: [{ 1: [
{
value: 1, value: 1,
label: '雾' label: "雾",
}], },
],
2: [], 2: [],
3: [], 3: [],
4: [], 4: [],
5: [], 5: [],
6: [], 6: [],
7: [], 7: [],
} },
}; };
export default { export default {
name: 'addAndEditDialog', name: "addAndEditDialog",
components: { components: {
Dialog, Dialog,
Form, Form,
Button, Button,
FormTable FormTable,
}, },
model: { model: {
prop: 'visible', prop: "visible",
event: 'close' event: "close",
}, },
props: { props: {
visible: Boolean, visible: Boolean,
detail: { detail: {
type: Object, type: Object,
default: () => { } default: () => {},
} },
}, },
data() { data() {
return { return {
@ -293,7 +330,7 @@ export default {
formData: { formData: {
eventCategory: 1, eventCategory: 1,
eventType: 1, eventType: 1,
triggeringCondition: 0 triggeringCondition: 0,
}, },
index: 1, index: 1,
roads: [], roads: [],
@ -302,77 +339,79 @@ export default {
eventOptions: [ eventOptions: [
{ {
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '交通事故' label: "交通事故",
}, },
{ {
value: 3, value: 3,
label: '非法上路' label: "非法上路",
}, },
{ {
value: 4, value: 4,
label: '车辆故障' label: "车辆故障",
}, },
{ {
value: 5, value: 5,
label: '交通拥堵' label: "交通拥堵",
}, },
{ {
value: 6, value: 6,
label: '交通管制' label: "交通管制",
}, },
{ {
value: 7, value: 7,
label: '服务区异常' label: "服务区异常",
}, },
{ {
value: 8, value: 8,
label: '施工建设' label: "施工建设",
}, },
{ {
value: 9, value: 9,
label: '路障清除' label: "路障清除",
} },
], ],
mechanismOptions: [{ mechanismOptions: [
{
value: 1, value: 1,
label: '雨' label: "雨",
}, },
{ {
value: 2, value: 2,
label: '雪' label: "雪",
}, },
{ {
value: 3, value: 3,
label: '雾' label: "雾",
}, },
{ {
value: 4, value: 4,
label: '大风' label: "大风",
}, },
{ {
value: 5, value: 5,
label: '低温寒潮' label: "低温寒潮",
}, },
{ {
value: 6, value: 6,
label: '路面积雪' label: "路面积雪",
}, },
{ {
value: 7, value: 7,
label: '路面结冰' label: "路面结冰",
}, },
{ {
value: 8, value: 8,
label: '路面积水' label: "路面积水",
}, },
{ {
value: 9, value: 9,
label: '其他' label: "其他",
}], },
],
conditionOptions: [ conditionOptions: [
// { // {
// value: 1, // value: 1,
@ -380,25 +419,22 @@ export default {
// }, // },
{ {
value: 1, value: 1,
label: '小于(<)' label: "小于(<)",
}, },
], ],
rules: { rules: {
planName: [ planName: [{ required: true, message: "请输入预案名称" }],
{ required: true, message: '请输入预案名称', trigger: 'blur' },
],
eventType: [ eventType: [
{ required: true, message: '请选择事件类型', trigger: 'change' } { required: true, message: "请选择事件类型", trigger: "change" },
], ],
} },
} };
}, },
created() { created() {
// this.formConfig = tabConfigList[0].formConfig; // this.formConfig = tabConfigList[0].formConfig;
this.initData().then(() => { this.initData().then(() => {
this.handleChange({ index: 0 }) this.handleChange({ index: 0 });
}) });
}, },
computed: { computed: {
modelVisible: { modelVisible: {
@ -406,15 +442,15 @@ export default {
return this.visible; return this.visible;
}, },
set(val) { set(val) {
this.$emit('close', val) this.$emit("close", val);
} },
}, },
getFormOptions() { getFormOptions() {
return { return {
column: 3, column: 3,
...this.formConfig.formOptions ...this.formConfig.formOptions,
} };
} },
}, },
methods: { methods: {
initData() { initData() {
@ -423,126 +459,139 @@ export default {
request({ request({
url: `/business/road/query`, url: `/business/road/query`,
method: "get", method: "get",
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
result.data.forEach(it => { result.data.forEach((it) => {
this.roads.push({ key: it.id, label: it.roadName }) this.roads.push({ key: it.id, label: it.roadName });
});
}) })
}).catch((err) => { .catch((err) => {
Message.error("查询失败4", err); Message.error("查询失败4", err);
}), }),
// //
request({ request({
url: `/system/dict/data/type/iot_event_direction`, url: `/system/dict/data/type/iot_event_direction`,
method: "get", method: "get",
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
result.data.forEach(it => { result.data.forEach((it) => {
this.direction.push({ key: it.dictValue, label: it.dictLabel }) this.direction.push({ key: it.dictValue, label: it.dictLabel });
});
}) })
}).catch((err) => { .catch((err) => {
Message.error("查询失败5", err); Message.error("查询失败5", err);
}), }),
// 1 2 3 4 5 6 // 1 2 3 4 5 6
request({ request({
url: `/business/facility/query`, url: `/business/facility/query`,
method: "get" method: "get",
}).then((result) => { })
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
result.data.forEach(it => this.lwss.push({ key: it.id, label: it.facilityName, type: it.facilityType })) result.data.forEach((it) =>
}).catch((err) => { this.lwss.push({
console.log('err', err) key: it.id,
Message.error("查询失败6", err); label: it.facilityName,
type: it.facilityType,
}) })
);
]) })
.catch((err) => {
console.log("err", err);
Message.error("查询失败6", err);
}),
]);
}, },
changeEventType(value = 1) { changeEventType(value = 1) {
this.mechanismOptions = optionsMap[this.formData.eventCategory || 1][value]; this.mechanismOptions =
optionsMap[this.formData.eventCategory || 1][value];
}, },
changeRadio(value = 1) { changeRadio(value = 1) {
const optionsMap = { const optionsMap = {
1: [{ 1: [
{
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '交通事故' label: "交通事故",
}, },
{ {
value: 3, value: 3,
label: '非法上路' label: "非法上路",
}, },
{ {
value: 4, value: 4,
label: '车辆故障' label: "车辆故障",
}, },
{ {
value: 5, value: 5,
label: '交通拥堵' label: "交通拥堵",
}, },
{ {
value: 6, value: 6,
label: '交通管制' label: "交通管制",
}, },
{ {
value: 7, value: 7,
label: '服务区异常' label: "服务区异常",
}, },
{ {
value: 8, value: 8,
label: '施工建设' label: "施工建设",
}, },
{ {
value: 9, value: 9,
label: '路障清除' label: "路障清除",
}], },
2: [{ ],
2: [
{
value: 1, value: 1,
label: '异常天气' label: "异常天气",
}, },
{ {
value: 2, value: 2,
label: '拥堵' label: "拥堵",
}, },
{ {
value: 3, value: 3,
label: '非机动车' label: "非机动车",
}, },
{ {
value: 4, value: 4,
label: '行人' label: "行人",
}, },
{ {
value: 5, value: 5,
label: '烟火' label: "烟火",
}, },
{ {
value: 6, value: 6,
label: '抛洒物' label: "抛洒物",
}, },
{ {
value: 7, value: 7,
label: '逆行' label: "逆行",
}, },
] ],
} };
this.eventOptions = optionsMap[value]; this.eventOptions = optionsMap[value];
this.changeEventType(); this.changeEventType();
}, },
handleChange() { handleChange() {},
},
handleSubmit() { handleSubmit() {
this.$refs['ruleForm'].validate((valid) => { this.$refs["ruleForm"].validate((valid) => {
if (valid) { if (valid) {
this.submitting = true; this.submitting = true;
console.log('formData', this.formData) console.log("formData", this.formData);
this.modelVisible = false; this.modelVisible = false;
this.submitting = false; this.submitting = false;
// this.$emit('queryData',true) // this.$emit('queryData',true)
console.log(this.$refs['secondFormTable'].tableData) console.log(this.$refs["secondFormTable"].tableData);
return; return;
request({ request({
@ -552,31 +601,37 @@ export default {
...formData, ...formData,
eventType: Number(this.index) + 1, eventType: Number(this.index) + 1,
eventState: 0, eventState: 0,
stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', stakeMark:
} stakeMark && stakeMark[0] != null
}).then((result) => { ? stakeMark && stakeMark.length > 0
? "K" + stakeMark[0] + "+" + stakeMark[1]
: ""
: "",
},
})
.then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
Message.success("提交成功"); Message.success("提交成功");
this.modelVisible = false; this.modelVisible = false;
}).catch(() => {
Message.error("提交失败");
}).finally(() => {
this.submitting = false;
this.$emit('queryData', true);
}) })
} .catch(() => {
Message.error("提交失败");
}) })
.finally(() => {
} this.submitting = false;
} this.$emit("queryData", true);
});
} }
});
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {
transition: opacity .24s; transition: opacity 0.24s;
} }
.fade-enter, .fade-enter,

41
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue

@ -46,7 +46,7 @@
></Empty> ></Empty>
<div ref="queryChart" class="keep-ratio"></div> <div ref="queryChart" class="keep-ratio"></div>
</div> </div>
<div style="position: relative"> <div style="position: relative; bottom: 15px">
<Empty <Empty
v-if="isEmpty02" v-if="isEmpty02"
class="floatEmpty" class="floatEmpty"
@ -55,7 +55,7 @@
<el-table <el-table
:border="false" :border="false"
:data="tableData" :data="tableData"
height="480" height="420"
header-align="left" header-align="left"
empty-text=" " empty-text=" "
> >
@ -112,7 +112,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="foot"> <div class="footer">
<Pagination <Pagination
@current-change="changePage" @current-change="changePage"
width="'100%'" width="'100%'"
@ -327,7 +327,6 @@ export default {
} }
} }
this.equipments = allList; this.equipments = allList;
console.log("Equipments", allList);
}); });
}, },
setStatus(id, status) { setStatus(id, status) {
@ -415,6 +414,33 @@ export default {
}, },
async mounted() { async mounted() {
await this.initData(); await this.initData();
// let data = [5, 2, 6, 8, 1, 0, 3, 4, 7, 9];
// for (var i = 0; i < data.length; i++) {
// for (var j = i + 1; j < data.length; j++) {
// if (data[i] > data[j]) {
// var temp = data[i];
// data[i] = data[j];
// data[j] = temp;
// }
// }
// }
// data.sort(function (a, b) {
// return a - b;
// });
// for (var i = 0; i < data.length - 1; i++) {
// var minIndex = i;
// for (var j = i + 1; j < arr.length; j++) {
// if (data[minIndex] > data[j]) {
// minIndex = j;
// }
// }
// if (i != minIndex) {
// var temp = data[i];
// data[minIndex] = data[i];
// data[i] = temp;
// }
// }
// console.log("", data);
}, },
}; };
</script> </script>
@ -630,4 +656,11 @@ export default {
} }
} }
} }
.footer {
margin: 15px 0;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/assets/charts.js

@ -106,7 +106,7 @@ var options = {
"梁山-枢纽", "梁山-枢纽",
"鄄郓-枢纽", "鄄郓-枢纽",
"嘉祥西-枢纽", "嘉祥西-枢纽",
"王官-枢纽", "王官-枢纽",
], ],
position: "top", position: "top",
axisLabel: { axisLabel: {

2
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -32,6 +32,7 @@
type="input" type="input"
params="word" params="word"
:disable="true" :disable="true"
placeholder="请输入敏感词,回车搜索"
@handleSearch="handleSearch" @handleSearch="handleSearch"
/> />
</div> </div>
@ -83,6 +84,7 @@
<Pagination <Pagination
:total="numTotal" :total="numTotal"
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-sizes="[35, 70, 105, 140, 175]"
:page-size="pageSize" :page-size="pageSize"
layout="total,sizes,prev, pager, next, jumper" layout="total,sizes,prev, pager, next, jumper"
@size-change="handleSizeChange" @size-change="handleSizeChange"

4
ruoyi-ui/src/views/login.vue

@ -18,9 +18,7 @@
<el-input <el-input
v-model="loginForm.username" v-model="loginForm.username"
type="text" type="text"
auto-complete="off"
placeholder="请输入用户名" placeholder="请输入用户名"
class="username"
> >
<img <img
slot="prefix" slot="prefix"
@ -263,7 +261,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
border: 1px solid rgba(0, 145, 67, 0.5); border: 1px solid rgba(0, 145, 67, 0.5);
// margin-left: 20px; caret-color: #39adff;
} }
::v-deep .el-checkbox__label { ::v-deep .el-checkbox__label {

1
ruoyi-ui/vue.config.js

@ -54,6 +54,7 @@ module.exports = {
// target: `http://10.168.78.135:8087`, //王钦 // target: `http://10.168.78.135:8087`, //王钦
// target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2 // target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2
target: `http://10.168.68.42:8087`, //王思祥 target: `http://10.168.68.42:8087`, //王思祥
// target: `http://10.168.65.156:8097`, //孟
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save