-
-
-
-
-
-
- 刷新
-
+
+
-
+
+
+ 甘易玫
+ 13011600555
+
+
+

+
+
+
+
@@ -26,18 +43,15 @@
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
index 7ecafca0..d7e03549 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
@@ -3,6 +3,12 @@
@@ -16,6 +22,8 @@ import TimeLine2 from "@screen/components/TimeLine/TimeLine2/index";
import Form from '@screen/components/FormConfig';
import { formList, timeLine1List } from "./data"
import { timeLine2List } from "@screen/pages/control/event/commandDispatch/Cards/DisposalProcess/data.js"
+import Video from "@screen/components/Video";
+import Carousel from "./Carousel/index.vue"
export default {
name: 'EventDetail',
@@ -23,7 +31,9 @@ export default {
Dialog,
Form,
TimeLine1,
- TimeLine2
+ TimeLine2,
+ Video,
+ Carousel
},
model: {
prop: 'visible',
@@ -60,15 +70,10 @@ export default {
height: 768px;
flex-direction: column;
- .left {
- flex: 1;
- }
-
- .right {
+ .video-pic {
display: flex;
- flex-direction: column;
- gap: 9px;
- cursor: pointer;
+ height: 150px;
+ gap: 15px
}
}
From f844df7476d2a7538c0faf570078be7ecd4d532d Mon Sep 17 00:00:00 2001
From: Joe <1712833832@qq.com>
Date: Mon, 15 Jan 2024 18:10:09 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BA=A4=E9=80=9A=E4=BA=8B=E6=95=85?=
=?UTF-8?q?=E5=BD=95=E5=85=A5=E5=BC=B9=E7=AA=97=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/ElCheckboxGroup.vue} | 10 +-
.../FormConfig/components/ElSelect.vue | 27 ++
.../components/MultipleLabelItem.vue | 43 ++
.../components}/RadioGroup/Radio.vue | 10 +-
.../components}/RadioGroup/RadioButton.vue | 11 +-
.../components}/RadioGroup/index.vue | 8 +-
.../components/FormConfig/index.vue | 64 ++-
.../Cards/ReleaseInformation/index.vue | 244 +++++------
.../Cards/TrafficControl/index.vue | 92 ++--
.../event/event/FormEvent/FormInput.vue | 26 --
.../control/event/event/FormEvent/FormItem.js | 109 +++++
.../event/FormEvent/FormTrafficAccident.vue | 212 ---------
.../control/event/event/FormEvent/data.js | 413 ++++++++++++++++--
.../control/event/event/FormEvent/index.vue | 73 +++-
.../views/JiHeExpressway/scss/el-reset.scss | 91 ++++
.../src/views/JiHeExpressway/scss/reset.scss | 3 +-
16 files changed, 952 insertions(+), 484 deletions(-)
rename ruoyi-ui/src/views/JiHeExpressway/components/{CheckboxGroup/index.vue => FormConfig/components/ElCheckboxGroup.vue} (80%)
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElSelect.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/MultipleLabelItem.vue
rename ruoyi-ui/src/views/JiHeExpressway/components/{ => FormConfig/components}/RadioGroup/Radio.vue (74%)
rename ruoyi-ui/src/views/JiHeExpressway/components/{ => FormConfig/components}/RadioGroup/RadioButton.vue (80%)
rename ruoyi-ui/src/views/JiHeExpressway/components/{ => FormConfig/components}/RadioGroup/index.vue (74%)
delete mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormInput.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormItem.js
delete mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormTrafficAccident.vue
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/CheckboxGroup/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue
similarity index 80%
rename from ruoyi-ui/src/views/JiHeExpressway/components/CheckboxGroup/index.vue
rename to ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue
index f85bf199..40e1a797 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/CheckboxGroup/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue
@@ -1,6 +1,6 @@
-
-
+
+
{{ item.label }}
@@ -8,7 +8,7 @@
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/MultipleLabelItem.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/MultipleLabelItem.vue
new file mode 100644
index 00000000..7d0273a9
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/MultipleLabelItem.vue
@@ -0,0 +1,43 @@
+
+
+
+ {{ item.prefix.text }}
+
+ {{ item.suffix.text }}
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RadioGroup/Radio.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/RadioGroup/Radio.vue
similarity index 74%
rename from ruoyi-ui/src/views/JiHeExpressway/components/RadioGroup/Radio.vue
rename to ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/RadioGroup/Radio.vue
index a8f9a2a4..79c3d1fd 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/RadioGroup/Radio.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/RadioGroup/Radio.vue
@@ -1,5 +1,5 @@
-
+
@@ -7,6 +7,12 @@
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/index.vue
index b55146d5..866499d1 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/index.vue
@@ -1,65 +1,65 @@
-
-
+
+
-
-
- 封闭
-
-
+
+ 封闭
+
+
- 限行
-
-
-
+ 限行
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormInput.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormInput.vue
deleted file mode 100644
index 0f4983dd..00000000
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormInput.vue
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormItem.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormItem.js
new file mode 100644
index 00000000..514ba015
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormItem.js
@@ -0,0 +1,109 @@
+export const source = {
+ label: "来源:",
+ key: "key29",
+ type: "RadioGroup",
+ isAlone: true,
+ required: true,
+ options: {
+ activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)",
+ options: [
+ {
+ key: "96659",
+ label: "96659",
+ },
+ {
+ key: "交通转接",
+ label: "交通转接",
+ },
+ {
+ key: "道路巡查",
+ label: "道路巡查",
+ },
+ {
+ key: "视频巡查",
+ label: "视频巡查",
+ },
+ {
+ key: "视频AI",
+ label: "视频AI",
+ },
+ {
+ key: "一键救援",
+ label: "一键救援",
+ },
+ {
+ key: "其他",
+ label: "其他",
+ },
+ ],
+ },
+};
+
+export const illegalTriggeringType = {
+ label: "类型:",
+ key: "key291",
+ type: "RadioGroup",
+ isAlone: true,
+ required: true,
+ options: {
+ activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)",
+ options: [
+ {
+ key: "行人",
+ label: "行人",
+ },
+ {
+ key: "非机动车",
+ label: "非机动车",
+ },
+ {
+ key: "摩托车",
+ label: "摩托车",
+ },
+ {
+ key: "其他",
+ label: "其他",
+ },
+ ],
+ },
+};
+
+export const station = {
+ label: "桩号:",
+ key: "key8",
+ required: true,
+ type: "MultipleLabelItem",
+ options: {
+ options: [
+ {
+ prefix: {
+ text: "K",
+ style: {
+ color: "#3DE8FF",
+ },
+ },
+ },
+ {
+ prefix: {
+ text: "+",
+ style: {
+ color: "#3DE8FF",
+ },
+ },
+ },
+ ],
+ },
+};
+
+export const direction = {
+ label: "方向:",
+ key: "key7",
+ required: true,
+ type: "select",
+};
+
+export const isInTunnel = {
+ label: "是否处在隧道:",
+ key: "key21",
+ type: "select",
+};
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormTrafficAccident.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormTrafficAccident.vue
deleted file mode 100644
index 2690f377..00000000
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/FormTrafficAccident.vue
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- K
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 小型车
-
-
-
-
- 辆
- 货车
-
-
-
-
- 辆
- 客车
-
-
-
-
- 辆
- 罐车
-
-
-
-
- 辆
-
-
-
-
-
-
-
-
-
- 交警转接
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js
index 563f3802..c6cb1951 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js
@@ -1,53 +1,402 @@
-export const formList = [
+import {
+ source,
+ station,
+ direction,
+ illegalTriggeringType,
+ isInTunnel,
+} from "./FormItem";
+
+export const tabConfigList = [
{
- label: "事件源:",
- key: "事件源",
- type: "input",
+ key: "TrafficAccident",
+ label: "交通事故",
+ formConfig: {
+ list: [
+ {
+ label: "报警人姓名:",
+ key: "key1",
+ options: {
+ placeholder: "请输入报警人姓名",
+ },
+ required: true,
+ },
+ {
+ label: "报警人电话:",
+ key: "key2",
+ options: {
+ placeholder: "请输入报警人电话(区号+号码)",
+ },
+ required: true,
+ },
+ {
+ label: "交通事故类型:",
+ key: "key3",
+ type: "select",
+ required: true,
+ options: {
+ options: [
+ {
+ value: "选项1",
+ label: "黄金糕",
+ },
+ {
+ value: "选项2",
+ label: "双皮奶",
+ },
+ {
+ value: "选项3",
+ label: "蚵仔煎",
+ },
+ {
+ value: "选项4",
+ label: "龙须面",
+ },
+ {
+ value: "选项5",
+ label: "北京烤鸭",
+ },
+ ],
+ },
+ },
+ {
+ label: "事件等级:",
+ key: "key4",
+ required: true,
+ type: "select",
+ },
+ {
+ label: "地点方式:",
+ key: "key5",
+ required: true,
+ type: "select",
+ },
+ {
+ label: "路线:",
+ key: "key6",
+ required: true,
+ type: "select",
+ },
+ direction,
+ station,
+ {
+ label: "事件发生时间:",
+ key: "key9",
+ required: true,
+ type: "datePicker",
+ },
+ {
+ label: "预计解除时间:",
+ key: "key10",
+ type: "datePicker",
+ },
+ {
+ label: "压车(公里):",
+ key: "key11",
+ },
+ {
+ label: "天气情况:",
+ required: true,
+ key: "key12",
+ type: "select",
+ },
+ {
+ label: "影响:",
+ key: "key13",
+ type: "select",
+ },
+ {
+ label: "是否到货:",
+ key: "key14",
+ type: "select",
+ },
+ {
+ label: "是否养护事故:",
+ key: "key15",
+ type: "select",
+ },
+ {
+ label: "交警电话:",
+ key: "key16",
+ },
+ {
+ label: "清障电话:",
+ options: {
+ placeholder: "请输入清障电话(区号+号码)",
+ },
+ key: "key17",
+ },
+ {
+ label: "前方是否拥堵:",
+ key: "key18",
+ type: "select",
+ },
+ {
+ label: "是否分岔口:",
+ key: "key19",
+ type: "select",
+ },
+ {
+ label: "是否处在弯道:",
+ key: "key20",
+ type: "select",
+ },
+ isInTunnel,
+ {
+ label: "洒落物名称:",
+ key: "key22",
+ isAlone: true,
+ },
+ {
+ label: "车主电话:",
+ key: "key23",
+ isAlone: true,
+ },
+ {
+ label: "车道占用:",
+ key: "key24",
+ type: "CheckboxGroup",
+ isAlone: true,
+ default: [],
+ options: {
+ options: [
+ { key: "weChat", label: "行1" },
+ { key: "message", label: "行2" },
+ { key: "website", label: "行3" },
+ { key: "weibo", label: "行4" },
+ { key: "weibo2", label: "应急车道" },
+ ],
+ },
+ },
+ {
+ label: "车辆情况:",
+ key: "key25",
+ isAlone: true,
+ type: "MultipleLabelItem",
+ options: {
+ options: [
+ {
+ prefix: {
+ text: "小型车",
+ },
+ suffix: {
+ text: "辆",
+ },
+ },
+ {
+ prefix: {
+ text: "货车",
+ },
+ suffix: {
+ text: "辆",
+ },
+ },
+ {
+ prefix: {
+ text: "客车",
+ },
+ suffix: {
+ text: "辆",
+ },
+ },
+ {
+ prefix: {
+ text: "罐车",
+ },
+ suffix: {
+ text: "辆",
+ },
+ },
+ ],
+ },
+ },
+ {
+ label: "伤亡情况:",
+ key: "key26",
+ isAlone: true,
+
+ type: "MultipleLabelItem",
+ options: {
+ options: [
+ {
+ prefix: {
+ text: "轻伤",
+ },
+ suffix: {
+ text: "人",
+ },
+ },
+ {
+ prefix: {
+ text: "重伤",
+ },
+ suffix: {
+ text: "人",
+ },
+ },
+ {
+ prefix: {
+ text: "死亡",
+ },
+ suffix: {
+ text: "人",
+ },
+ },
+ ],
+ },
+ },
+ {
+ label: "事件标题:",
+ key: "key27",
+ isAlone: true,
+ required: true,
+ },
+ {
+ label: "事件描述:",
+ key: "key28",
+ isAlone: true,
+ options: {
+ type: "textarea",
+ autosize: true,
+ maxlength: 150,
+ autosize: { minRows: 6, maxRows: 6 },
+ showWordLimit: true,
+ },
+ required: true,
+ },
+ source,
+ ],
+ },
},
{
- label: "桩号:",
- key: "桩号:",
- type: "input",
+ key: "VehicleFault",
+ label: "车辆故障",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "行驶方向:",
- key: "行驶方向",
- type: "input",
+ key: "TrafficCongestion",
+ label: "交通拥堵",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "事件类型:",
- key: "事件类型",
- type: "input",
+ key: "TrafficControl",
+ label: "交通管制",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "事件原因:",
- key: "事件原因",
- type: "input",
+ key: "ServiceAreaAbnormal",
+ label: "服务区异常",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "事件状态:",
- key: "事件状态",
- type: "input",
+ key: "OtherEvents",
+ label: "其他事件",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "操作员:",
- key: "操作员",
- type: "input",
+ key: "HiddenDangersEquipment",
+ label: "设施设备隐患",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "发生时间:",
- key: "发生时间",
- type: "input",
+ key: "AbnormalWeather",
+ label: "异常天气",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "完结时间:",
- key: "完结时间",
- type: "input",
+ key: "Construction",
+ label: "施工建设",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
},
{
- label: "事件描述:",
- key: "事件描述",
- type: "input",
- gridArea: "1/1/1/1",
+ key: "BarricadesCleared",
+ label: "路障清除",
+ formConfig: {
+ formOptions: {},
+ list: [],
+ },
+ },
+ {
+ key: "IllegalOnRoad",
+ label: "非法上路",
+ formConfig: {
+ formOptions: {
+ column: 2,
+ },
+ list: [
+ illegalTriggeringType,
+ {
+ label: "补充说明:",
+ key: "key28",
+ isAlone: true,
+ options: {
+ type: "textarea",
+ autosize: true,
+ maxlength: 150,
+ autosize: { minRows: 6, maxRows: 6 },
+ showWordLimit: true,
+ },
+ required: true,
+ },
+ {
+ label: "高速公路:",
+ key: "key21",
+ type: "select",
+ },
+ direction,
+ station,
+ isInTunnel,
+ {
+ label: "开始时间:",
+ key: "key9",
+ required: true,
+ type: "datePicker",
+ },
+
+ {
+ label: "预计结束时间:",
+ key: "key09",
+ type: "datePicker",
+ },
+
+ {
+ label: "问题描述:",
+ key: "key29",
+ isAlone: true,
+ options: {
+ type: "textarea",
+ autosize: true,
+ maxlength: 150,
+ autosize: { minRows: 6, maxRows: 6 },
+ showWordLimit: true,
+ },
+ required: true,
+ },
+ source,
+ ],
+ },
},
];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
index 213c7e82..f8142a30 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
@@ -1,23 +1,34 @@
diff --git a/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss b/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
index eaf03949..f5ddaaec 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
+++ b/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
@@ -44,6 +44,10 @@ div.el-popper {
}
}
+div.el-select {
+ width: 100%;
+}
+
div.el-popper.el-select-dropdown {
background: #123542;
box-shadow: 2px 2px 8px 0px rgba(82, 90, 102, 0.08),
@@ -109,6 +113,93 @@ div.el-popper.el-select-dropdown {
}
}
}
+
+div.el-date-editor {
+ input.el-range-input,
+ span.el-range-separator {
+ background-color: transparent;
+ color: #fff;
+ }
+}
+
+div.el-picker-panel.el-date-picker.el-popper,
+div.el-picker-panel.el-date-range-picker.el-popper {
+ background: #064258;
+ border-radius: 2px 2px 2px 2px;
+
+ &[x-placement^="top"] {
+ div.popper__arrow {
+ border-top-color: #064258;
+
+ &::after {
+ border-top-color: #064258;
+ }
+ }
+ }
+ &[x-placement^="left"] {
+ div.popper__arrow {
+ border-left-color: #064258;
+
+ &::after {
+ border-left-color: #064258;
+ }
+ }
+ }
+ &[x-placement^="right"] {
+ div.popper__arrow {
+ border-right-color: #064258;
+
+ &::after {
+ border-right-color: #064258;
+ }
+ }
+ }
+ &[x-placement^="bottom"] {
+ div.popper__arrow {
+ border-bottom-color: #064258;
+
+ &::after {
+ border-bottom-color: #064258;
+ }
+ }
+ }
+
+ .el-date-range-picker__content.is-left {
+ border-right: solid 1px rgba(255, 255, 255, 0.3);
+ }
+
+ .el-picker-panel__body-wrapper {
+ .el-picker-panel__body {
+ .el-date-picker__header {
+ .el-picker-panel__icon-btn,
+ .el-date-picker__header-label {
+ color: #fff;
+ }
+ }
+
+ .el-picker-panel__content {
+ .el-date-table {
+ th {
+ color: #fff;
+ border-bottom: solid 1px rgba(255, 255, 255, 0.3);
+ }
+
+ .today span {
+ color: #00d1ff;
+ }
+
+ .current span {
+ background-color: #56cefe;
+ }
+ td.in-range div {
+ background: rgba(96, 189, 253, 0.3);
+ }
+ }
+ }
+ }
+ }
+}
+
div.el-scrollbar {
.el-scrollbar__wrap {
/**
diff --git a/ruoyi-ui/src/views/JiHeExpressway/scss/reset.scss b/ruoyi-ui/src/views/JiHeExpressway/scss/reset.scss
index 3df93f8f..267181a3 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/scss/reset.scss
+++ b/ruoyi-ui/src/views/JiHeExpressway/scss/reset.scss
@@ -4,7 +4,8 @@ body {
caret-color: white;
}
- div {
+ div,
+ form {
/* 滚动条整体部分 */
&::-webkit-scrollbar {
width: 6px !important;