Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
qingzhengli 11 months ago
parent
commit
9c110b4418
  1. 7
      ruoyi-ui/src/common/menuData.js
  2. BIN
      ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg
  3. 362
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue
  4. 20
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue
  5. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue
  6. 33
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/eventPlanDialog/index.vue
  7. 16
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/formTable/index.vue
  8. 20
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/qbbDialog/index.vue
  9. 60
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js
  10. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue
  11. 51
      ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue
  12. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue
  13. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js
  14. 297
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue
  15. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue
  16. 21
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue
  17. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/index.vue
  18. 4
      ruoyi-ui/vue.config.js

7
ruoyi-ui/src/common/menuData.js

@ -156,6 +156,11 @@ export default [
component: "maintenanceOperations/statisticalAnalysis/index.vue", component: "maintenanceOperations/statisticalAnalysis/index.vue",
} }
] ]
}, {
title: "边坡光伏",
name: "photovoltaic",
path: "/maintain/photovoltaic",
component: "developing.vue"
} }
] ]
}, },
@ -239,7 +244,7 @@ export default [
], ],
}, },
{ {
title: "配置中心", title: "安全生产",
name: "config", name: "config",
position: "right", position: "right",
path: "/config", path: "/config",

BIN
ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 9.5 MiB

362
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue

@ -2,13 +2,80 @@
<Dialog v-model="modelVisible" title="设备操作"> <Dialog v-model="modelVisible" title="设备操作">
<div class='DeviceControlDialog'> <div class='DeviceControlDialog'>
<ElTabs v-model="activeName" class="tabs"> <ElTabs v-model="activeName" class="tabs" @tab-click="tabClick">
<ElTabPane label="一般模式" name="first"> <ElTabPane label="一般模式" name="first">
<Form v-model="formData" class="form" ref="FormConfigRef" :formList="formList1" column="1" <Form v-model="formData" class="form" ref="FormConfigRef" :formList="formList1" column="1"
labelWidth="120px" /> labelWidth="120px" />
</ElTabPane> </ElTabPane>
<ElTabPane label="自定义模式" name="second"> <ElTabPane label="自定义模式" name="second">
<Form class="form" ref="FormConfigRef" :formList="formList2" column="1" labelWidth="120px" /> <div style="display: flex; margin: 20px 0;">
<p style="width: 115px;">工作时长():</p>
<el-input-number v-model="onWorkStatus2" :min="0" :max="999" label="工作时长(s分):"></el-input-number>
</div>
<Table :data="tableData">
<ElTableColumn prop="ds" label="段数"></ElTableColumn>
<ElTableColumn prop="time" width="120" label="时间">
<template slot-scope="scope">
<div style="display: flex;">
<el-input-number style="width: 80px;" v-model="scope.row.time" :min="0" :max="999"></el-input-number>
<p></p>
</div>
</template>
</ElTableColumn>
<ElTableColumn prop="A" label="线路A">
<template slot-scope="scope">
<el-switch v-model="scope.row.A" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="B" label="线路B">
<template slot-scope="scope">
<el-switch v-model="scope.row.B" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="C" label="线路C">
<template slot-scope="scope">
<el-switch v-model="scope.row.C" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="D" label="线路D">
<template slot-scope="scope">
<el-switch v-model="scope.row.D" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="E" label="线路E">
<template slot-scope="scope">
<el-switch v-model="scope.row.E" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="F" label="线路F">
<template slot-scope="scope">
<el-switch v-model="scope.row.F" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="G" label="线路G">
<template slot-scope="scope">
<el-switch v-model="scope.row.G" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
<ElTableColumn prop="H" label="线路H">
<template slot-scope="scope">
<el-switch v-model="scope.row.H" active-color="#13ce66" inactive-color="#C9C9C9">
</el-switch>
</template>
</ElTableColumn>
</Table>
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
@ -25,13 +92,11 @@
</template> </template>
<script> <script>
import Table from '@screen/components/Table.vue';
import Dialog from "@screen/components/Dialog/index.vue"; import Dialog from "@screen/components/Dialog/index.vue";
import Button from "@screen/components/Buttons/Button.vue" import Button from "@screen/components/Buttons/Button.vue"
import Form from '@screen/components/FormConfig'; import Form from '@screen/components/FormConfig';
import { delay } from "@screen/utils/common.js"
import request from "@/utils/request"; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
@ -40,7 +105,8 @@ export default {
components: { components: {
Dialog, Dialog,
Button, Button,
Form Form,
Table
}, },
model: { model: {
prop: 'visible', prop: 'visible',
@ -54,40 +120,77 @@ export default {
return { return {
submitting: false, submitting: false,
activeName: "first", activeName: "first",
onWorkStatus2: 0,
formData: {}, formData: {},
duan: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T'],
tableData: [
// {
// ds: 'A',
// time: 0,
// A: false,
// B: false,
// C: false,
// D: false,
// E: false,
// F: false,
// G: false,
// H: false,
// }
],
formList1: [ formList1: [
{ {
label: "设备模式:", label: "工作模式:",
key: "controlType", key: "controlType",
type: "RadioGroup", type: "select",
default: "00", default: "1",
options: { options: {
type: 'circle',
options: [ options: [
{ {
key: "00", value: "0",
label: "常量", label: "激光关闭"
}, },
{ {
key: "01", value: "1",
label: "闪烁", label: "常亮模式"
} },
{
value: "2",
label: "间隔100ms闪烁模式"
},
{
value: "3",
label: "间隔200ms闪烁模式",
},
{
value: "4",
label: "间隔500ms闪烁模式",
},
{
value: "5",
label: "2次闪烁模式"
},
{
value: "6",
label: "SOS模式"
},
], ],
}, },
}, },
{ {
label: "操作时长:", label: "工作时长(分):",
key: "onWorkStatus", key: "onWorkStatus",
required: true, required: true,
type: "select", default: 0,
type: "inputNumber",
options: { options: {
placeholder: "请选择", min: 0,
max: 999
} }
}, },
], ],
formList2: [ formList2: [
{ {
label: "设备模式:", label: "工作模式:",
key: "controlType", key: "controlType",
type: "RadioGroup", type: "RadioGroup",
default: "00", default: "00",
@ -115,7 +218,7 @@ export default {
} }
}, },
{ {
label: "作时长:", label: "作时长:",
key: "onWorkStatus", key: "onWorkStatus",
required: true, required: true,
type: "select", type: "select",
@ -123,12 +226,21 @@ export default {
placeholder: "请选择", placeholder: "请选择",
} }
}, },
] ],
rules: {
onWorkStatus: [
{ required: true, message: '工作时长不能为空', trigger: 'blur' },
],
}
} }
}, },
computed: { computed: {
modelVisible: { modelVisible: {
get() { get() {
if (this.visible) {
// this.deviceId = 'K82+285';
this.initData();
}
return this.visible return this.visible
}, },
set(val) { set(val) {
@ -136,138 +248,128 @@ export default {
} }
} }
}, },
watch: { // watch: {
modelVisible: { // modelVisible: {
immediate: true, // immediate: true,
handler(bool) { // handler(bool) {
if (!bool) return; // if (!bool) return;
// this.reDisplay(); // // this.requestURL();
} // }
// }
// },
methods: {
async initData() {
//
let result = await this.requestURL('ASKMD');
if (result.data == 7) {
this.activeName = 'second';
this.tabClick();
} else {
this.formData.controlType = result.data + "" || '1';
//
let resultTime = await this.requestURL('ASKTM');
this.formData.onWorkStatus = resultTime.data || 0;
this.activeName = 'first';
} }
}, },
methods: { async requestURL(functionId, options = {}) {
requestURL(functionId, options = {}) { let result = await request({
return new Promise((resolve, reject) => { url: `/business/device/functions/${this.deviceId}/${functionId}`,
request.post(`business/device/functions/${this.deviceId}/${functionId}`, options) method: "post",
.then((result) => { data: options,
if (result.code != 200) return reject();
resolve(result.data[0]);
})
.catch((err) => {
reject();
});
}); });
if (result.code != 200) return Message.error(result?.msg);
//SETMDASKMDSETTMASKTMSETDFASKDF
console.log('aaaa', result);
return result;
}, },
reDisplay() { async tabClick() {
this.requestURL(52) if (this.activeName == 'second') {
.then(async (data) => { //
await delay(0); let result = await request({
url: `/business/device/properties/latest/${this.deviceId}`,
const formData = this.$refs.FormConfigRef?.formData; method: "get",
});
formData.controlType = data.mode; if (result.code != 200) return Message.error(result?.msg);
switch (data.mode) {
case "00":
formData.onWorkStatus = data.onWorkStatus;
formData.inWorkStatus = data.inWorkStatus;
break;
case "01":
case "02":
await this.requestURL("3C")
.then((data2) => {
formData.onWorkStatus = data2.onWorkStatus;
formData.inWorkStatus = data2.inWorkStatus;
if (data.mode === '01') this.tableData = [];
formData.displayTime = [data.startDisplay, data.endDisplay]; let tData = [];
}) result.data.forEach(item => {
.catch(() => { }); if (item.property == 'TM') {
break; this.onWorkStatus2 = item.value;
} else if (item.property == 'MD') {
} else {
let data = JSON.parse(item.value || {});
tData.push({ ...data, ds: item.property })
} }
this.oldFormData = { ...formData };
}) })
this.tableData = tData;
}
}, },
handleSubmit() { async handleSubmit() {
const result = {}, formData = this.$refs.FormConfigRef?.formData; if (this.activeName == 'first') {//
this.$refs.FormConfigRef.validate().then(async (formData) => {
result.mode = formData.controlType; console.log('formData', formData);
//
delete result.controlType; await this.requestURL('SETMD', { SET: formData.controlType })
//
if (result.mode === '01') { let res = await this.requestURL('SETTM', { SET: formData.onWorkStatus })
if (!formData.displayTime?.length) return Message.error(`时间不能为空!`); console.log('res', res)
if (res.code == 200) {
Message.success('设置成功!');
this.$emit('update:value', false)
} }
});
} else if (this.activeName == 'second') {//
let rData = [];
if (!formData.onWorkStatus || !formData.inWorkStatus) return Message.error(`工作状态不能为空!`); this.tableData.forEach((it, index) => {
rData.push({
order: 7,
time: it.time,
numberOfSegments: this.duan[index],
A: Number(it.A),
B: Number(it.B),
C: Number(it.C),
D: Number(it.D),
E: Number(it.E),
F: Number(it.F),
G: Number(it.G),
H: Number(it.H),
})
})
if (["01", "02"].includes(result.mode)) { //
if (["04", "00"].includes(formData.onWorkStatus)) return Message.error(`上行工作状态不能选择当前类型!`); await request({
if (["04", "00"].includes(formData.inWorkStatus)) return Message.error(`下行工作状态不能选择当前类型!`); url: `/business/device/batchLaserFatigueInvokedFunction`,
method: "post",
data: {
deviceId: this.deviceId,
functionId: 'SETDF',
params: rData
}
});
//
let res = await this.requestURL('SETTM', { SET: this.onWorkStatus2 });
if (res.code == 200) {
Message.success('设置成功!')
this.$emit('update:value', false)
} }
result.onWorkStatus = formData.onWorkStatus; }
result.inWorkStatus = formData.inWorkStatus;
this.submitting = true;
// this.submitting = false;
// return;
/**
* 接口 地址
*
* https://www.showdoc.com.cn/2450725213006196/10877717880262686
*/
let promise = [];
switch (result.mode) {
case "00":
promise.push(this.requestURL("51", result))
break;
case "01":
case "02":
const options = { mode: result.mode };
if (result.mode === '01') { },
options.startDisplayTime = formData.displayTime[0];
options.endDisplayTime = formData.displayTime[1];
}
promise.push(
this.requestURL("30", {
onWorkStatus: result.onWorkStatus,
inWorkStatus: result.inWorkStatus,
}),
this.requestURL("51", options),
)
break;
}
Promise.all(promise)
.then(() => {
this.modelVisible = false;
})
.catch((err) => {
console.log("%c [ err ]-110-「DeviceControlDialog.vue」", "font-size:15px; background:#547bf2; color:#98bfff;", err);
Message.error(`设备操作失败!`);
})
.finally(() => {
this.submitting = false;
})
}
}, },
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>
.DeviceControlDialog { .DeviceControlDialog {
width: 450px; width: 850px;
height: 210px; min-height: 410px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 15px; gap: 15px;

20
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue

@ -4,20 +4,11 @@
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />
<ElTabs v-model="activeName" @tab-click="handleClickTabs" class="tabs"> <ElTabs v-model="activeName" @tab-click="handleClickTabs" class="tabs">
<ElTabPane label="基本信息" name="first"> <ElTabPane label="基本信息" name="first">
<Descriptions <Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" />
labelWidth="72px"
:list="list"
:data="data"
style="gap: 18px"
/>
</ElTabPane> </ElTabPane>
<ElTabPane label="设备参数" name="second">设备参数</ElTabPane> <ElTabPane label="设备参数" name="second">设备参数</ElTabPane>
<ElTabPane label="在线率统计" name="third"> <ElTabPane label="在线率统计" name="third">
<LineChart <LineChart v-if="activeName === 'third'" :productId="dialogData.id" style="height: 180px" />
v-if="activeName === 'third'"
:productId="dialogData.id"
style="height: 180px"
/>
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
@ -25,11 +16,8 @@
<template #footer> <template #footer>
<Button @click.native="deviceControlVisible = true">设备操作</Button> <Button @click.native="deviceControlVisible = true">设备操作</Button>
</template> </template>
<!-- 设备操作弹窗 -->
<DeviceControlDialog <DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" />
v-model="deviceControlVisible"
:deviceId="dialogData.iotDeviceId"
/>
</Dialog> </Dialog>
</template> </template>

6
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue

@ -189,7 +189,7 @@ export default {
const closeMessage = loadingMessage({ message: "人员获取中..." }); const closeMessage = loadingMessage({ message: "人员获取中..." });
request({ request({
url: `/business/employees/list`, url: `/business/employees/listAll`,
method: "GET", method: "GET",
params: { params: {
organizationId: stationId, organizationId: stationId,
@ -197,11 +197,11 @@ export default {
}) })
.then((result) => { .then((result) => {
if (result.code != 200) return Message.error("人员获取失败"); if (result.code != 200) return Message.error("人员获取失败");
if (!result.rows?.length) return Message.warning("该驻点下暂无人员"); if (!result.data?.length) return Message.warning("该驻点下暂无人员");
// Message.success("") // Message.success("")
this.peopleList = result.rows; this.peopleList = result.data;
}) })
.catch((err) => { .catch((err) => {
Message.error("人员获取失败"); Message.error("人员获取失败");

33
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/eventPlanDialog/index.vue

@ -96,6 +96,7 @@ export default {
qbb: '' qbb: ''
}], }],
planName: '', planName: '',
automaticInfo: {},
dcExecuteAction: [], dcExecuteAction: [],
deviceData: [], deviceData: [],
eventOptions: [ eventOptions: [
@ -252,16 +253,32 @@ export default {
return this.deviceData; return this.deviceData;
}, },
async getTemplateAutomatic() { async getTemplateAutomatic() {
request({ let url = '';
url: `/business/plans/event/automatic`, let data = {};
let plan = this.info.find(it => it.planName == this.planName);
if (this.activeName == '-1') {//
url = '/business/plans/warning/confirm';
data = {
dcEmergencyPlans: plan,
dcWarning: this.eventFormData
}
} else {//
url = '/business/plans/event/automatic';
data = {
dcEmergencyPlans: plan,
dcEvent: this.eventFormData
}
}
const result = await request({
url: url,
method: "post", method: "post",
}).then((result) => { data: data
if (result.code != 200) return Message.error(result?.msg);
this.sbOptions = result.data;
}).catch(() => {
Message.error("查询可变信息标识失败");
}) })
if (result.code != 200) {
Message.error(result?.msg);
return {};
}
return result.data;
}, },
changeRadio(value) { changeRadio(value) {
let plan = this.info.find(it => it.planName == value); let plan = this.info.find(it => it.planName == value);

16
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/formTable/index.vue

@ -87,7 +87,8 @@
</Table> </Table>
<!-- 情报板弹窗 --> <!-- 情报板弹窗 -->
<QbbDialog :visible="isShowDialog" :info="qbbData" :type="type" @close="onCloseDialog" @dialogSubmit="dialogSubmit" /> <!-- <QbbDialog :visible="isShowDialog" :info="qbbData" :type="type" @close="onCloseDialog"
@dialogSubmit="dialogSubmit" /> -->
</div> </div>
</template> </template>
@ -95,7 +96,7 @@
import Table from '@screen/components/Table.vue'; import Table from '@screen/components/Table.vue';
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 QbbDialog from "../qbbDialog/index.vue"; // import QbbDialog from "../qbbDialog/index.vue";
import { Message } from 'element-ui' import { Message } from 'element-ui'
import { planDeviceOptions } from "@screen/utils/enum.js"; import { planDeviceOptions } from "@screen/utils/enum.js";
@ -105,15 +106,14 @@ export default {
components: { components: {
Button, Button,
Table, Table,
QbbDialog // QbbDialog
},
model: {
prop: 'visible',
event: 'update:value'
}, },
// model: {
// prop: 'visible',
// event: 'update:value'
// },
inject: ['loadData'], inject: ['loadData'],
props: { props: {
visible: Boolean,
eventType: Number, eventType: Number,
type: Number, type: Number,
tableData: { tableData: {

20
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/qbbDialog/index.vue

@ -1,11 +1,11 @@
<template> <template>
<Dialog v-model="modelVisible" title="情报板确认"> <Dialog v-model="modelVisible" title="情报板确认">
<div class="EventAddPlanDialog"> <div v-if="type == 1" class="EventAddPlanDialog">
<h4>预案内容</h4> <h4>预案内容</h4>
<dev class="listBox disPid"> <dev class="listBox disPid">
<div class="tplItem"> <div class="tplItem">
<!-- 模板内容 --> <!-- 模板内容 -->
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> <!-- <BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> -->
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="infoBtnBox infoBtnBoxSm"> <div class="infoBtnBox infoBtnBoxSm">
<p class="btn"> <p class="btn">
@ -18,7 +18,7 @@
<dev class="listBox disPid"> <dev class="listBox disPid">
<div class="tplItem"> <div class="tplItem">
<!-- 模板内容 --> <!-- 模板内容 -->
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> <!-- <BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="{}"></BoardTplPreview> -->
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="infoBtnBox infoBtnBoxSm"> <div class="infoBtnBox infoBtnBoxSm">
<p class="btn"> <p class="btn">
@ -28,14 +28,11 @@
</div> </div>
</dev> </dev>
<h4>情报板模版</h4> <h4>情报板模版</h4>
<vuescroll :ops="scrollOptions" class="listBox"> <!-- <vuescroll :ops="scrollOptions" class="listBox">
<div v-for="(item) in templateAvailable" :key="item.dictValue"> <div v-for="(item) in templateAvailable" :key="item.dictValue">
<!-- 原来是<el-collapse v-model="activeNames"> -->
<h5>{{ item.dictLabel }}</h5> <h5>{{ item.dictLabel }}</h5>
<div v-for="(itm, indx) in item.list" :key="indx" class="tplItem"> <div v-for="(itm, indx) in item.list" :key="indx" class="tplItem">
<!-- 模板内容 -->
<BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="itm"></BoardTplPreview> <BoardTplPreview class="boardPreview" boardWH="1400*200" :tpl="itm"></BoardTplPreview>
<!-- 操作按钮 -->
<div class="infoBtnBox infoBtnBoxSm"> <div class="infoBtnBox infoBtnBoxSm">
<p class="btn"> <p class="btn">
<el-radio v-model="radio1" :label="itm.id" @input="changeRadio(itm)" /> <el-radio v-model="radio1" :label="itm.id" @input="changeRadio(itm)" />
@ -43,7 +40,7 @@
</div> </div>
</div> </div>
</div> </div>
</vuescroll> </vuescroll> -->
</div> </div>
<template #footer> <template #footer>
<Button style="background: #C9C9C9;padding:0 24px;" <Button style="background: #C9C9C9;padding:0 24px;"
@ -75,9 +72,13 @@ export default {
prop: 'visible', prop: 'visible',
event: 'close' event: 'close'
}, },
// inject: ['getTemplateAutomatic'],
props: { props: {
visible: Boolean, visible: Boolean,
type: {
type: Number, type: Number,
default: 1
},
info: { info: {
type: Object, type: Object,
default: () => { } default: () => { }
@ -102,11 +103,12 @@ export default {
}, },
computed: { computed: {
modelVisible: { modelVisible: {
get() { async get() {
if (this.visible) { if (this.visible) {
if (this.info && this.info.id) { if (this.info && this.info.id) {
this.radio1 = Number(this.info.id); this.radio1 = Number(this.info.id);
} }
// console.log('123', this.getTemplateAutomatic());
} }
return this.visible; return this.visible;
}, },

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

@ -108,13 +108,71 @@ export const gjSearchFormList = [
], ],
}, },
}, },
{
label: "事件主类:",
key: "warningType",
type: "select",
options: {
clearable: true,
options: [
{
value: 1,
label: "交通拥堵",
},
{
value: 2,
label: "行人",
},
{
value: 3,
label: "非机动车",
},
{
value: 4,
label: "停车",
},
{
value: 5,
label: "违规驾驶",
},
{
value: 6,
label: "路障",
},
{
value: 7,
label: "道路施工",
},
{
value: 8,
label: "异常天气",
},
{
value: 9,
label: "护栏碰撞",
},
{
value: 10,
label: "交通事故",
},
{
value: 11,
label: "车辆故障",
},
{
value: 99,
label: "其他事件",
},
],
},
},
{ {
label: "时间范围:", label: "时间范围:",
key: "daterange", key: "daterange",
required: false, required: false,
type: "datePicker", type: "datePicker",
options: { options: {
style: 'width: auto', style: "width: auto",
type: "datetimerange", type: "datetimerange",
format: "yyyy-MM-dd HH:mm:ss", format: "yyyy-MM-dd HH:mm:ss",
valueFormat: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss",

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

@ -343,6 +343,7 @@ export default {
this.searchData = { this.searchData = {
...this.searchData, ...this.searchData,
eventType: data.eventType, eventType: data.eventType,
warningType: data.warningType,
eventSource: data.eventSource, eventSource: data.eventSource,
warningSource: data?.warningSource || '', warningSource: data?.warningSource || '',
direction: data.direction, direction: data.direction,

51
ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue

@ -3,7 +3,11 @@
<div class="summary"> <div class="summary">
<div class="summaryUnit" v-for="item in summary" :style="{'flex-basis' : item.width + 'px'}"> <div class="summaryUnit" v-for="item in summary" :style="{'flex-basis' : item.width + 'px'}">
<div class="info info_01 keep-ratio" origin="left"> <div class="info info_01 keep-ratio" origin="left">
<p v-if="item.dataAll"><span class="em">{{ item.dataAll.title }}:</span><em class="blue">{{ item.dataAll.value }}</em><i v-if="item.dataAll.unit">{{ item.dataAll.unit }}</i></p> <p v-if="item.dataAll">
<span class="em">{{ item.dataAll.title }}:</span>
<em class="blue">{{ item.dataAll.value }}<template v-if="item.dataAll.total">/{{ item.dataAll.total }}</template></em>
<i v-if="item.dataAll.unit">{{ item.dataAll.unit }}</i>
</p>
</div> </div>
<div class="info info_02 keep-ratio" origin="left"> <div class="info info_02 keep-ratio" origin="left">
<p v-if="item.dataGreen"><span>{{ item.dataGreen.title }}:</span><em class="green">{{ item.dataGreen.value }}</em><i v-if="item.dataGreen.unit">{{ item.dataGreen.unit }}</i></p> <p v-if="item.dataGreen"><span>{{ item.dataGreen.title }}:</span><em class="green">{{ item.dataGreen.value }}</em><i v-if="item.dataGreen.unit">{{ item.dataGreen.unit }}</i></p>
@ -144,8 +148,37 @@ export default {
}, },
mounted(){ mounted(){
this.initData(); this.initData();
this.mockData();
}, },
methods: { methods: {
mockData(){
const mock = ()=>{
let num1 = this.summary[1].dataAll.value + Math.floor(Math.random()*200);
this.summary[1].dataAll.value = num1;
this.summary[1].dataRed.value = (num1/this.summary[1].dataGreen.value*100).toFixed(2);
let num2 = +this.summary[2].dataAll.value + Math.random()*0.01;
this.summary[2].dataAll.value = num2.toFixed(2);
this.summary[2].dataRed.value = (num2/this.summary[2].dataGreen.value*100).toFixed(2);
let num3 = this.summary[3].dataAll.value + Math.floor(Math.random()*20);
this.summary[3].dataAll.value = num3;
this.summary[3].dataRed.value = (num3/this.summary[3].dataGreen.value*100).toFixed(2);
let num4 = 1154 + Math.random()*120;
this.summary[4].dataAll.value = num4.toFixed(2);
this.summary[4].dataGreen.value = (num4/this.summary[4].dataAll.total*100).toFixed(2);
let num5 = 81 + Math.random()*20;
this.summary[5].dataAll.value = num5.toFixed(2);
this.summary[5].dataGreen.value = (num5/this.summary[5].dataAll.total*100).toFixed(2);
}
mock();
let interval = setInterval(()=>{
mock();
}, 1500);
this.$once("hook:beforeDestroy", () => this.clearInterval(interval));
},
initData() { initData() {
this.summary = [ this.summary = [
{ {
@ -156,31 +189,31 @@ export default {
}, },
{ {
width:376, width:376,
dataAll: { title: "接入数据总数", value: 1213213447, unit: "条" }, dataAll: { title: "接入数据总数", value: 1251446, unit: "条" },
dataGreen: { title: "昨日接入数", value: 20624577, unit: "条" }, dataGreen: { title: "昨日接入数", value: 20624577, unit: "条" },
dataRed: { title: "环比", value: 0.04, unit: "%" } dataRed: { title: "环比", value: 0.04, unit: "%" }
}, },
{ {
width: 287, width: 287,
dataAll: { title: "存储占用量", value: 86059, unit: "GB" }, dataAll: { title: "存储占用量", value: 32, unit: "GB" },
dataGreen: { title: "昨日新增", value: 55, unit: "GB" }, dataGreen: { title: "昨日新增", value: 55, unit: "GB" },
dataRed: { title: "环比", value: 20.5, unit: "%" } dataRed: { title: "环比", value: 20.5, unit: "%" }
}, },
{ {
width: 376, width: 376,
dataAll: { title: "服务调用总数", value: 43392688, unit: "次" }, dataAll: { title: "服务调用总数", value: 752524, unit: "次" },
dataGreen: { title: "昨日服务数", value: 1210345, unit: "次" }, dataGreen: { title: "昨日服务数", value: 21034145, unit: "次" },
dataRed: { title: "环比", value: 0.04, unit: "%" } dataRed: { title: "环比", value: 0.04, unit: "%" }
}, },
{ {
width:226, width:226,
dataAll: { title: "内存", value: "1274G/1800G", unit: "" }, dataAll: { title: "内存", value: 0, total:1800, unit: "G" },
dataGreen: { title: "使用率", value: 70.73, unit: "%" } dataGreen: { title: "使用率", value: 70.73, unit: "%" }
}, },
{ {
width: 226, width: 226,
dataAll: { title: "CPU", value: "71/126", unit: "" }, dataAll: { title: "CPU", value: 0, total:126, unit: "" },
dataGreen: { title: "使用率", value: 56.35, unit: "" } dataGreen: { title: "使用率", value: 56.35, unit: "%" }
} }
]; ];
this.manage = [ this.manage = [
@ -224,7 +257,7 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
h4, p, ul,li{ margin: 0; padding:0;} h4, p, ul,li{ margin: 0; padding:0;}
.roadNet{ padding: 20px; display: flex; flex-direction: column; .roadNet{ padding: 20px; width:100%; height:100%; display: flex; flex-direction: column;
.summary{ .summary{
display: flex; justify-content: space-between; height: 87px; align-items: stretch; display: flex; justify-content: space-between; height: 87px; align-items: stretch;
.summaryUnit{ border-left: 2px solid #00D1FF; background: linear-gradient( -90deg, rgba(6,66,88,0) 0%, #064258 93%); box-sizing: border-box; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; .summaryUnit{ border-left: 2px solid #00D1FF; background: linear-gradient( -90deg, rgba(6,66,88,0) 0%, #064258 93%); box-sizing: border-box; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; align-items: stretch;

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue

@ -156,7 +156,6 @@ export default {
.congestion { .congestion {
.board { .board {
padding: 0px 20px;
background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%); background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity: 1; opacity: 1;
@ -168,13 +167,13 @@ export default {
) )
1 1; 1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: center;
align-items: center; align-items: center;
} }
} }
.charts { .charts {
height: 180px; height: 180px;
width: 100%; width: 430px;
} }
</style> </style>

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js

@ -132,7 +132,7 @@ var options = {
}, },
color: colorList, color: colorList,
legend: { legend: {
top: 100, top: "middle",
right: 20, right: 20,
orient: "vertical", //改变排列方式 orient: "vertical", //改变排列方式
icon: "circle", //改变legend小图标形状 icon: "circle", //改变legend小图标形状
@ -146,12 +146,13 @@ var options = {
rich: { rich: {
a: { a: {
align: "left", align: "left",
width: 45, width: 60,
fontSize: 12, fontSize: 12,
}, },
b: { b: {
align: "left", align: "left",
fontSize: 12, fontSize: 12,
width: 50,
color: "#37E7FF", color: "#37E7FF",
marginLeft: 0, marginLeft: 0,
}, },

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

@ -1,87 +1,35 @@
<template> <template>
<div class="congestion"> <div class="congestion">
<div class="condition"> <div class="condition">
<ProgressBar <ProgressBar class="keep-ratio" @selectItem="selectProgress" :dataList="dataList" :selectIndex="selectIndex"
class="keep-ratio" :reset="reset" />
@selectItem="selectProgress"
:dataList="dataList"
:selectIndex="selectIndex"
:reset="reset"
/>
<div class="searchPanel"> <div class="searchPanel">
<RadioGroup <RadioGroup :options="[
:options="[
{ key: '1', label: '菏泽' }, { key: '1', label: '菏泽' },
{ key: '3', label: '济南' }, { key: '3', label: '济南' },
]" ]" v-model="direction" type="button" />
v-model="direction" <el-select v-model="type" size="mini" class="selectRoad" placeholder="请选择" @change="changeType">
type="button" <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value">
/>
<el-select
v-model="type"
size="mini"
class="selectRoad"
placeholder="请选择"
@change="changeType"
>
<el-option
v-for="item in typeOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select v-model="quarter" size="medium" v-if="type == 'quarter'" class="selectRoad-medium" placeholder="请选择">
v-model="quarter" <el-option v-for="item in quarterOptions" :key="item.value" :label="item.label" :value="item.value"
size="medium" style="width: 140px">
v-if="type == 'quarter'"
class="selectRoad-medium"
placeholder="请选择"
>
<el-option
v-for="item in quarterOptions"
:key="item.value"
:label="item.label"
:value="item.value"
style="width: 140px"
>
</el-option> </el-option>
</el-select> </el-select>
<el-date-picker <el-date-picker size="mini" v-if="type != 'quarter'" class="selectRoad" v-model="dateTime" style="width: 140px"
size="mini" :type="type == 'date'
v-if="type != 'quarter'"
class="selectRoad"
v-model="dateTime"
style="width: 140px"
:type="
type == 'date'
? 'date' ? 'date'
: type == 'month' : type == 'month'
? 'month' ? 'month'
: type == 'year' : type == 'year'
? 'year' ? 'year'
: '' : ''
" " placeholder="请选择" :clearable="false" />
placeholder="请选择"
:clearable="false" <el-button type="primary" size="mini" class="btnSearch" @click="searchQuery"
/> icon="el-icon-search">查询</el-button>
<el-button class="btnReset" size="mini" icon="el-icon-refresh-left" @click="onReset">重置</el-button>
<el-button
type="primary"
size="mini"
class="btnSearch"
@click="searchQuery"
icon="el-icon-search"
>查询</el-button
>
<el-button
class="btnReset"
size="mini"
icon="el-icon-refresh-left"
@click="onReset"
>重置</el-button
>
</div> </div>
</div> </div>
@ -96,9 +44,9 @@
<div> <div>
<WgtTitle :title="'感知事件类型分析'"></WgtTitle> <WgtTitle :title="'感知事件类型分析'"></WgtTitle>
<div class="unit_con"> <div class="unit_con unit_con_02">
<Empty v-show="!chart2List || chart2List.length <= 0" text="暂无数据..." class="empty"></Empty> <Empty v-show="!chart2List || chart2List.length <= 0" text="暂无数据..." class="empty"></Empty>
<div id="chart2" class="chart_div" ></div> <div ref="chart2" class="chart_div" style="width: 540px; height: 270px;" ></div>
</div> </div>
</div> </div>
@ -123,6 +71,7 @@ import chart2 from "./assets/charts2";
import chart3 from "./assets/charts3"; import chart3 from "./assets/charts3";
import ElQuarterPicker from "./ElQuarterPicker"; import ElQuarterPicker from "./ElQuarterPicker";
import moment from "moment"; import moment from "moment";
import { WarningType } from "@screen/utils/enum.js";
import { import {
getWarningTrend, getWarningTrend,
getWarningSectionType, getWarningSectionType,
@ -168,6 +117,7 @@ export default {
}, },
data() { data() {
return { return {
canvas:null,
typeOptions: [ typeOptions: [
{ {
value: "year", value: "year",
@ -414,7 +364,7 @@ export default {
}) })
}); });
// //
getWarningSectionType({ getWarningSectionType({
type: qType, type: qType,
sectionId: this.selectId, sectionId: this.selectId,
@ -423,35 +373,15 @@ export default {
quarter: this.quarter, quarter: this.quarter,
}).then((res) => { }).then((res) => {
chart2.series[0].data = []; chart2.series[0].data = [];
if (res.code == 200) {
let types = []; let types = [];
if (res.code == 200) {
let numbers = []; let numbers = [];
this.chart2List = res.data; this.chart2List = res.data;
let data = res.data.warningTypeList ; let data = res.data.warningTypeList ;
let total = res.data.total; let total = res.data.total;
data.forEach((it) => { data.forEach((it) => {
if (it.warningType == 1) { types.push(WarningType[it.warningType]);
types.push("交通拥堵");
} else if (it.warningType == 2) {
types.push("行人");
} else if (it.warningType == 3) {
types.push("非机动车");
} else if (it.warningType == 4) {
types.push("停车");
} else if (it.warningType == 5) {
types.push("倒车/逆行");
} else if (it.warningType == 6) {
types.push("烟火");
} else if (it.warningType == 7) {
types.push("撒落物");
} else if (it.warningType == 8) {
types.push("异常天气");
} else if (it.warningType == 9) {
types.push("护栏碰撞");
} else {
types.push("其他");
}
numbers.push({ numbers.push({
name: types[types.length - 1], name: types[types.length - 1],
@ -499,7 +429,7 @@ export default {
// }) // })
} }
this.$nextTick(() => { this.$nextTick(() => {
this.initChart2(); this.initChart2(types);
}) })
}); });
// //
@ -590,75 +520,37 @@ export default {
this.myChart3 = echarts.init(document.getElementById("chart3")); this.myChart3 = echarts.init(document.getElementById("chart3"));
this.myChart3.setOption(chart3); this.myChart3.setOption(chart3);
}, },
generateChart2(){
let ele = this.$refs["chart2"];
this.myChart2 = echarts.init(ele);
let parentDiv = ele.firstChild;
this.canvasChart2 = document.createElement("canvas");
this.canvasChart2.width = parentDiv.offsetWidth;
this.canvasChart2.height = parentDiv.offsetHeight;
parentDiv.appendChild(this.canvasChart2);
},
initChart2(){ initChart2(){
if(!this.myChart2){
this.myChart2 = echarts.init(document.getElementById("chart2")); this.generateChart2();
}
let ele = this.$refs["chart2"];
this.myChart2.setOption(chart2); this.myChart2.setOption(chart2);
const domMap = document.getElementById("chart2"); const context = this.canvasChart2.getContext('2d')
let parentDiv = domMap.firstChild; context.clearRect(0, 0, this.canvasChart2.width, this.canvasChart2.height); //
// canvas
let canvas = document.createElement("canvas");
canvas.width = parentDiv.offsetWidth;
canvas.height = parentDiv.offsetHeight;
parentDiv.appendChild(canvas);
const context = canvas.getContext("2d");
context.lineWidth = 1; // 线
//
//
var gr = context.createLinearGradient(247, 63, 450, 0);
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 357, 98, 140, 24, 12, gr);
// //
var gr = context.createLinearGradient(247, 63, 450, 0);
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 357, 130, 140, 24, 12, gr);
// //
var gr = context.createLinearGradient(240, 63, 450, 0);
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 357, 162, 140, 24, 12, gr);
// // context.lineWidth = 1; // 线
var gr = context.createLinearGradient(240, 63, 450, 0); let total = chart2.legend.data.length;
for(let i=0; i<total; i++){
let unitH = 32;
let h = ele.offsetHeight;
let x = 330;
let y = (h - total*unitH)/2 + 3 + i*unitH;
var gr = context.createLinearGradient(330, 0, 500, 0);
gr.addColorStop(0, "rgba(92,197,255,0.6)");
gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)"); drawRoundRect(context, x, y, 220, 24, 12, gr);
drawRoundRect(context, 357, 194, 140, 24, 12, gr); }
// //
// var gr = context.createLinearGradient(240, 63, 450, 0);
// gr.addColorStop(1, 'rgba(92,197,255,0)');
// gr.addColorStop(0, 'rgba(92,197,255,0.5)');
// drawRoundRect(context, 267, 258, 140, 24, 12, gr)
// //
// var gr = context.createLinearGradient(400, 63, 450, 0);
// gr.addColorStop(1, 'rgba(92,197,255,0)');
// gr.addColorStop(0, 'rgba(92,197,255,0.5)');
// drawRoundRect(context, 416, 57, 140, 24, 12, gr)
// //
// var gr = context.createLinearGradient(350, 63, 450, 0);
// gr.addColorStop(1, 'rgba(92,197,255,0)');
// gr.addColorStop(0, 'rgba(92,197,255,0.5)');
// drawRoundRect(context, 416, 108, 140, 24, 12, gr)
// //
// var gr = context.createLinearGradient(300, 63, 450, 0);
// gr.addColorStop(1, 'rgba(92,197,255,0)');
// gr.addColorStop(0, 'rgba(92,197,255,0.5)');
// drawRoundRect(context, 416, 157, 140, 24, 12, gr)
// //
// var gr = context.createLinearGradient(300, 63, 450, 0);
// gr.addColorStop(1, 'rgba(92,197,255,0)');
// gr.addColorStop(0, 'rgba(92,197,255,0.5)');
// drawRoundRect(context, 416, 208, 140, 24, 12, gr);
}, },
}, },
mounted() { mounted() {
@ -694,37 +586,44 @@ export default {
position: relative; position: relative;
.comp_body { .comp_body {
width: 100%; height: 100%; width: 100%;
height: 100%;
display: flex; display: flex;
align-items: stretch; align-items: stretch;
font-size: 14px; font-size: 14px;
>div { >div {
flex: 1; flex: 1;
background: linear-gradient( background: linear-gradient(180deg,
180deg,
rgba(6, 66, 88, 0.2) 0%, rgba(6, 66, 88, 0.2) 0%,
#064258 100% #064258 100%);
);
border: 1px solid; border: 1px solid;
border-image: linear-gradient( border-image: linear-gradient(360deg,
360deg,
rgba(55, 231, 255, 0.3), rgba(55, 231, 255, 0.3),
rgba(55, 231, 255, 0) rgba(55, 231, 255, 0)) 1 1;
) display: flex;
1 1; flex-direction: column;
display: flex; flex-direction: column; align-items: stretch; align-items: stretch;
margin-right: 14px; margin-right: 14px;
&:last-child{ margin-right: 0;}
&:last-child {
margin-right: 0;
}
} }
.unit_con { .unit_con {
flex: 1; flex: 1;
margin: 95px 20px 30px; position: relative; margin: 95px 20px 30px; position: relative;
// &.unit_con_02{ margin: 105px 0px 20px; }
} }
.empty{ position: absolute;}
.empty {
position: absolute;
}
.chart_div { .chart_div {
width: 100%; height: 100%; width: 100%;
height: 100%;
} }
} }
@ -816,54 +715,12 @@ export default {
</style> </style>
<style lang="scss"> <style lang="scss">
div.el-popover:has(> .el-date-picker) div.el-popover:has(> .el-date-picker) div .el-picker-panel__body .el-picker-panel__content table tr td.today span,
div div.el-popover:has(> .el-date-picker) div .el-picker-panel__body .el-picker-panel__content table tr td.today .cell,
.el-picker-panel__body div.el-picker-panel.el-date-picker.el-popper div .el-picker-panel__body .el-picker-panel__content table tr td.today span,
.el-picker-panel__content div.el-picker-panel.el-date-picker.el-popper div .el-picker-panel__body .el-picker-panel__content table tr td.today .cell,
table div.el-picker-panel.el-date-range-picker.el-popper div .el-picker-panel__body .el-picker-panel__content table tr td.today span,
tr div.el-picker-panel.el-date-range-picker.el-popper div .el-picker-panel__body .el-picker-panel__content table tr td.today .cell {
td.today
span,
div.el-popover:has(> .el-date-picker)
div
.el-picker-panel__body
.el-picker-panel__content
table
tr
td.today
.cell,
div.el-picker-panel.el-date-picker.el-popper
div
.el-picker-panel__body
.el-picker-panel__content
table
tr
td.today
span,
div.el-picker-panel.el-date-picker.el-popper
div
.el-picker-panel__body
.el-picker-panel__content
table
tr
td.today
.cell,
div.el-picker-panel.el-date-range-picker.el-popper
div
.el-picker-panel__body
.el-picker-panel__content
table
tr
td.today
span,
div.el-picker-panel.el-date-range-picker.el-popper
div
.el-picker-panel__body
.el-picker-panel__content
table
tr
td.today
.cell {
color: #fff; color: #fff;
} }
</style> </style>

6
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

@ -246,13 +246,13 @@ export default {
) )
1 1; 1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: center;
align-items: center; align-items: center;
} }
} }
.charts { .charts {
height: 180px; height: 170px;
width: 100%; width: 380px;
} }
</style> </style>

21
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue

@ -83,17 +83,17 @@ export default {
value: 0, value: 0,
}, },
{ {
name: "倒车/逆行", name: "违规驾驶",
warningType: 5, warningType: 5,
value: 0, value: 0,
}, },
{ {
name: "烟火", name: "路障",
warningType: 6, warningType: 6,
value: 0, value: 0,
}, },
{ {
name: "撒落物", name: "道路施工",
warningType: 7, warningType: 7,
value: 0, value: 0,
}, },
@ -191,22 +191,17 @@ export default {
.congestion { .congestion {
.board { .board {
padding: 0px 20px; padding: 0px 20px;
background: linear-gradient( background: linear-gradient(180deg,
180deg,
rgba(6, 66, 88, 0.2) 0%, rgba(6, 66, 88, 0.2) 0%,
#06425888 100% #06425888 100%);
);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient( border-image: linear-gradient(360deg,
360deg,
rgba(55, 231, 255, 0.1), rgba(55, 231, 255, 0.1),
rgba(55, 231, 255, 0) rgba(55, 231, 255, 0)) 1 1;
)
1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: center;
align-items: center; align-items: center;
} }
} }

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/index.vue

@ -27,7 +27,7 @@ import EventSource from "./components/eventSource/index.vue";
import DailyDisposal from "./components/dailyDisposal/index.vue"; import DailyDisposal from "./components/dailyDisposal/index.vue";
import TypeAnalysis from "./components/typeAnalysis/index.vue"; import TypeAnalysis from "./components/typeAnalysis/index.vue";
import MonthStatistice from "./components/monthStatistics/index.vue"; import MonthStatistice from "./components/monthStatistics/index.vue";
import EventQuery from "./components/eventQuery"; import EventQuery from "./components/eventQuery/index.vue";
export default { export default {
name: "EventDetection", name: "EventDetection",

4
ruoyi-ui/vue.config.js

@ -53,8 +53,8 @@ module.exports = {
// target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁 // target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁
// 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.65.156:8087`, //王思祥 // target: `http://10.168.65.156:8087`, //王思祥
// target: `http://10.168.65.194:8087`, //赵祥龙 target: `http://10.168.65.194:8087`, //赵祥龙
// target: `http://10.168.65.156:8097`, //孟 // target: `http://10.168.65.156:8097`, //孟
// target: `http://10.168.56.165:8087`, //王家宝 // target: `http://10.168.56.165:8087`, //王家宝

Loading…
Cancel
Save