Browse Source

弹框宽度更改

wangqin
zhangzhang 11 months ago
parent
commit
8bbcb9e740
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/components/CameraControlDialog.vue
  4. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue
  5. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/CongestedRoadSections/index.vue
  6. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue
  7. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue
  8. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue
  9. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue
  10. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/GuardrailCollision/index.vue
  11. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/HighwayDetails/index.vue
  12. 19
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue
  13. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue
  14. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceControlDialog.vue
  15. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue
  16. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue
  17. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WakeUpLightCurtainInfo/index.vue
  18. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WeatherForecast/index.vue
  19. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue
  20. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/OperateRecord.vue
  21. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/components/AddNEditDialog.vue
  22. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/firstResponders/components/AddNEditDialog.vue
  23. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/components/AddNEditDialog.vue
  24. 34
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue
  25. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDetailDialog/index.vue
  26. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDispatchDialog/index.vue
  27. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue
  28. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
  29. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/eventPlanDialog/index.vue
  30. 101
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
  31. 192
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
  32. 75
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue
  33. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue
  34. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/AddNEditDialog.vue
  35. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="广播发布" width="23vw"> <Dialog v-model="modelVisible" title="广播发布" width="550px">
<div class="BroadcastReleases"> <div class="BroadcastReleases">
<div class="body"> <div class="body">
<div class="left"> <div class="left">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="语音广播" width="25.5vw"> <Dialog v-model="obverseVisible" title="语音广播" width="655px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="Broadcast"> <div class="Broadcast">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/components/CameraControlDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="相机控制" noneMask width="23vw"> <Dialog v-model="modelVisible" title="相机控制" noneMask width="550px">
<div class="CameraControlDialog"> <div class="CameraControlDialog">
<div class="direction"> <div class="direction">
<div class="control-container top" @click="controlClick(21)"> <div class="control-container top" @click="controlClick(21)">

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue

@ -1,9 +1,5 @@
<template> <template>
<Dialog <Dialog v-model="obverseVisible" :title="dialogData.deviceName" width="650px">
v-model="obverseVisible"
:title="dialogData.deviceName"
width="25.5vw"
>
<div class="Camera"> <div class="Camera">
<Video class="video-stream" :camId="dialogData.iotDeviceId" /> <Video class="video-stream" :camId="dialogData.iotDeviceId" />
<ElTabs v-model="activeName" class="tabs"> <ElTabs v-model="activeName" class="tabs">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/CongestedRoadSections/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog class="CongestedRoadSections" width="23vw"> <Dialog class="CongestedRoadSections" width="550px">
<div class="video-presentations"> <div class="video-presentations">
<div class="video-item"></div> <div class="video-item"></div>
<div class="video-item"></div> <div class="video-item"></div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="设备操作" width="23vw"> <Dialog v-model="modelVisible" title="设备操作" width="550x">
<div class="DeviceControlDialog"> <div class="DeviceControlDialog">
<Form <Form
v-model="formData" v-model="formData"

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="行车诱导" width="25.5vw"> <Dialog v-model="obverseVisible" title="行车诱导" width="650px">
<div class="DrivingGuidance"> <div class="DrivingGuidance">
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="设备操作" width="23vw"> <Dialog v-model="modelVisible" title="设备操作" width="550px">
<div class="DeviceControlDialog"> <div class="DeviceControlDialog">
<ElTabs v-model="activeName" class="tabs" @tab-click="tabClick"> <ElTabs v-model="activeName" class="tabs" @tab-click="tabClick">
<ElTabPane label="一般模式" name="first"> <ElTabPane label="一般模式" name="first">

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="疲劳唤醒弹窗" width="18.5vw"> <Dialog v-model="obverseVisible" title="疲劳唤醒弹窗" width="470px">
<div class="FatigueWakesUp"> <div class="FatigueWakesUp">
<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">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/GuardrailCollision/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="23vw"> <Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="550px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="GuardrailCollision"> <div class="GuardrailCollision">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/HighwayDetails/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog class="HighwayDetails" width="23vw"> <Dialog class="HighwayDetails" width="550px">
<div class="video-presentations"> <div class="video-presentations">
<div class="video-item"></div> <div class="video-item"></div>
<div class="video-item"></div> <div class="video-item"></div>

19
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="一类交调站弹窗" width="23vw"> <Dialog v-model="obverseVisible" title="一类交调站弹窗" width="550px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="Intermodulation"> <div class="Intermodulation">
@ -9,10 +9,18 @@
</ElTabPane> </ElTabPane>
<ElTabPane label="设备参数" name="second"> <ElTabPane label="设备参数" name="second">
<div class="content-second" style="height: 185px"> <div class="content-second" style="height: 185px">
<RadioGroup v-model="roadType" :options="roadTypeList" @input="changeRadio" /> <RadioGroup
v-model="roadType"
:options="roadTypeList"
@input="changeRadio"
/>
<span>当前车流量: {{ carNum }}</span> <span>当前车流量: {{ carNum }}</span>
<LineChartForTraffic style="flex: 1" v-if="isShowCar && activeName === 'second'" :xData="xData" <LineChartForTraffic
:yData="yData" /> style="flex: 1"
v-if="isShowCar && activeName === 'second'"
:xData="xData"
:yData="yData"
/>
</div> </div>
</ElTabPane> </ElTabPane>
<ElTabPane label="在线率统计" name="third"> <ElTabPane label="在线率统计" name="third">
@ -147,7 +155,6 @@ export default {
const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark);
if (roadInfo) this.data.roadName = roadInfo.roadName; if (roadInfo) this.data.roadName = roadInfo.roadName;
}, },
methods: { methods: {
changeRadio(value) { changeRadio(value) {
@ -238,7 +245,7 @@ div.switcher {
align-items: center; align-items: center;
justify-content: end; justify-content: end;
>div { > div {
font-size: 16px; font-size: 16px;
padding: 6px 12px; padding: 6px 12px;
} }

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="感知事件" width="37vw"> <Dialog v-model="obverseVisible" title="感知事件" width="950px">
<div class="PerceiveEvent"> <div class="PerceiveEvent">
<!-- <Video class="item-video" /> --> <!-- <Video class="item-video" /> -->
<div class="video-pic"> <div class="video-pic">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceControlDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="设备操作" width="23vw"> <Dialog v-model="modelVisible" title="设备操作" width="550px">
<div class="DeviceControlDialog"> <div class="DeviceControlDialog">
<DeviceParams :dialogData="dialogData" /> <DeviceParams :dialogData="dialogData" />
</div> </div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="obverseVisible" title="智能设备箱" width="23vw"> <Dialog v-model="obverseVisible" title="智能设备箱" width="550px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> <Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="SmartDevice"> <div class="SmartDevice">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue

@ -2,7 +2,7 @@
<Dialog <Dialog
v-model="obverseVisible" v-model="obverseVisible"
:title="dialogData._itemData && dialogData._itemData.title" :title="dialogData._itemData && dialogData._itemData.title"
width="25.5vw" width="650px"
> >
<div class="TrafficIncidents"> <div class="TrafficIncidents">
<div class="header"> <div class="header">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WakeUpLightCurtainInfo/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog class="WakeUpLightCurtainInfo" width="23vw"> <Dialog class="WakeUpLightCurtainInfo" width="550px">
<div class="operation-btn"> <div class="operation-btn">
<div class="photo-btn">图像</div> <div class="photo-btn">图像</div>
<div class="video-btn">视频</div> <div class="video-btn">视频</div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WeatherForecast/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog class="WeatherForecast" width="23vw"> s </Dialog> <Dialog class="WeatherForecast" width="550px"> s </Dialog>
</template> </template>
<script> <script>

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

@ -2,7 +2,7 @@
<Dialog <Dialog
v-model="visibleModel" v-model="visibleModel"
:title="`${data ? '修改' : '新增'}值班信息表`" :title="`${data ? '修改' : '新增'}值班信息表`"
width="40vw" width="1000px"
> >
<div class="ModifyDutyInformationTable"> <div class="ModifyDutyInformationTable">
<div class="body"> <div class="body">

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/OperateRecord.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="visibleModel" title="操作记录" width="23vw"> <Dialog v-model="visibleModel" title="操作记录" width="600px">
<div class="OperateRecord"> <div class="OperateRecord">
<TimeLine <TimeLine
v-if="timeLine2List.length" v-if="timeLine2List.length"

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog"> <div class="AddNEditDialog">
<Form <Form
v-model="formData" v-model="formData"

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/firstResponders/components/AddNEditDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog"> <div class="AddNEditDialog">
<Form <Form
v-model="formData" v-model="formData"

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/components/AddNEditDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog"> <div class="AddNEditDialog">
<Form <Form
:value="formData" :value="formData"

34
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue

@ -1,11 +1,11 @@
<template> <template>
<Dialog v-model="modelVisible" title="修改事件信息"> <Dialog v-model="modelVisible" title="修改事件信息" width="550px">
<div class="EditEventInformationDialog"> <div class="EditEventInformationDialog">
<Form class="form" :formList="formConfigList" labelWidth="120px" /> <Form class="form" :formList="formConfigList" labelWidth="120px" />
<div class="footer"> <div class="footer">
<Button>保存</Button> <Button>保存</Button>
<Button style="background: #C9C9C9;">关闭</Button> <Button style="background: #c9c9c9">关闭</Button>
</div> </div>
</div> </div>
</Dialog> </Dialog>
@ -13,29 +13,29 @@
<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 Button from '@screen/components/Buttons/Button.vue'; import Button from "@screen/components/Buttons/Button.vue";
import { formConfigList } from "./data.js" import { formConfigList } from "./data.js";
export default { export default {
name: 'EditEventInformationDialog', name: "EditEventInformationDialog",
components: { components: {
Dialog, Dialog,
Form, Form,
Button Button,
}, },
model: { model: {
prop: 'visible', prop: "visible",
event: 'close' event: "close",
}, },
props: { props: {
visible: Boolean visible: Boolean,
}, },
data() { data() {
return { return {
formConfigList formConfigList,
} };
}, },
computed: { computed: {
modelVisible: { modelVisible: {
@ -43,14 +43,14 @@ export default {
return this.visible; return this.visible;
}, },
set(val) { set(val) {
this.$emit('close', val) this.$emit("close", val);
} },
}, },
} },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.EditEventInformationDialog { .EditEventInformationDialog {
gap: 9px; gap: 9px;
width: 1050px; width: 1050px;

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="事件详情" width="35vw"> <Dialog v-model="modelVisible" title="事件详情" width="885px">
<div class="EventDetail"> <div class="EventDetail">
<Form :formList="formList" :dFormData="formData" label-width="100px" /> <Form :formList="formList" :dFormData="formData" label-width="100px" />

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="调度记录" width="28vw"> <Dialog v-model="modelVisible" title="调度记录" width="710px">
<div class="EventDetail"> <div class="EventDetail">
<BlackBar class="left"> <BlackBar class="left">
<!-- <img src="./images/test.png" style="width: 100%;" /> --> <!-- <img src="./images/test.png" style="width: 100%;" /> -->

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="配置常用语" width="35vw"> <Dialog v-model="modelVisible" title="配置常用语" width="880px">
<!-- <Button style="margin: 10px 0 20px 20px; width: 100px;" @click.native="onAdd">添加</Button> --> <!-- <Button style="margin: 10px 0 20px 20px; width: 100px;" @click.native="onAdd">添加</Button> -->
<div class="header"> <div class="header">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="120px">

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="配置处置流程" width="35vw"> <Dialog v-model="modelVisible" title="配置处置流程" width="880px">
<div class="header"> <div class="header">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="120px">
<el-form-item label="事件类型"> <el-form-item label="事件类型">

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="title" width="35vw"> <Dialog v-model="modelVisible" :title="title" width="880px">
<div class="EventAddPlanDialog"> <div class="EventAddPlanDialog">
<div class="first"> <div class="first">
<el-radio-group v-model="planName" @input="changeRadio"> <el-radio-group v-model="planName" @input="changeRadio">

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

@ -1,42 +1,89 @@
<template> <template>
<Dialog v-model="modelVisible" title="事件详情" width="35vw"> <Dialog v-model="modelVisible" title="事件详情" width="880px">
<div class="EventDetail" :style="{ <div
height: activeName == '-1' || activeName == '0' ? '380px' : '768px', class="EventDetail"
}"> :style="{
height: activeName == '-1' || activeName == '0' ? '380px' : '768px',
}"
>
<Form :formList="formList" :dFormData="formData" label-width="100px" /> <Form :formList="formList" :dFormData="formData" label-width="100px" />
<div class="video-pic"> <div class="video-pic">
<Video style="height: 100%; width: 380px;" :showHeader="false" <Video
:url="(formData.videoList && formData.videoList.length > 0) ? formData.videoList[0] : ''" style="height: 100%; width: 380px"
:camId="formData.upCamId" :pileNum="formData.stakeMark" rangeIndex="upCamera" :showHeader="false"
:videoType="formData.videoType" /> :url="
<Video v-if="activeName != '-1'" style="height: 100%; width: 380px;" :showHeader="false" formData.videoList && formData.videoList.length > 0
:url="(formData.videoList && formData.videoList.length > 0) ? formData.videoList[1] : ''" ? formData.videoList[0]
:camId="formData.downCamId" :pileNum="formData.stakeMark" rangeIndex="downCamera" : ''
:videoType="formData.videoType" /> "
:camId="formData.upCamId"
:pileNum="formData.stakeMark"
rangeIndex="upCamera"
:videoType="formData.videoType"
/>
<Video
v-if="activeName != '-1'"
style="height: 100%; width: 380px"
:showHeader="false"
:url="
formData.videoList && formData.videoList.length > 0
? formData.videoList[1]
: ''
"
:camId="formData.downCamId"
:pileNum="formData.stakeMark"
rangeIndex="downCamera"
:videoType="formData.videoType"
/>
<Carousel v-else style="flex: 1" :pictures="formData.pictures" /> <Carousel v-else style="flex: 1" :pictures="formData.pictures" />
</div> </div>
<!-- <div>{{ formData.videoList[0] }}</div> --> <!-- <div>{{ formData.videoList[0] }}</div> -->
<TimeLine1 v-if="activeName == '1' || activeName == '2'" :data="timeLine1List" /> <TimeLine1
<TimeLine2 v-if="activeName == '1' || activeName == '2'" :data="timeLine2List" style="flex: 1" /> v-if="activeName == '1' || activeName == '2'"
:data="timeLine1List"
/>
<TimeLine2
v-if="activeName == '1' || activeName == '2'"
:data="timeLine2List"
style="flex: 1"
/>
</div> </div>
<!-- 确认弹窗 --> <!-- 确认弹窗 -->
<EventPlanDialog :visible="isShowDialog" :info="info" :eventFormData="formData" :activeName="activeName" <EventPlanDialog
@reInitData="() => { :visible="isShowDialog"
this.$emit('update:value', false); :info="info"
this.$emit('queryData', true); :eventFormData="formData"
} :activeName="activeName"
" @close="onCloseAddNew" /> @reInitData="
() => {
this.$emit('update:value', false);
this.$emit('queryData', true);
}
"
@close="onCloseAddNew"
/>
<template #footer> <template #footer>
<Button v-if="activeName == '-1' || activeName == '0'" style="padding: 0 24px" <Button
@click.native="onDelete">误报</Button> v-if="activeName == '-1' || activeName == '0'"
<Button :style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }" style="padding: 0 24px"
@click.native="modelVisible = false">取消</Button> @click.native="onDelete"
<Button v-if="activeName == '-1' || activeName == '0'" style="padding: 0 24px" >误报</Button
@click.native="onSubmit">确认</Button> >
<Button
:style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }"
@click.native="modelVisible = false"
>取消</Button
>
<Button
v-if="activeName == '-1' || activeName == '0'"
style="padding: 0 24px"
@click.native="onSubmit"
>确认</Button
>
</template> </template>
</Dialog> </Dialog>
</template> </template>
@ -77,7 +124,7 @@ export default {
activeName: String, activeName: String,
formData: { formData: {
type: Object, type: Object,
default: () => { }, default: () => {},
}, },
}, },
data() { data() {

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

@ -2,44 +2,63 @@
<Dialog v-model="modelVisible" title="交通事故录入"> <Dialog v-model="modelVisible" title="交通事故录入">
<div class="EventDetailDialog"> <div class="EventDetailDialog">
<ElTabs v-model="activeName" @tab-click="handleChange"> <ElTabs v-model="activeName" @tab-click="handleChange">
<ElTabPane v-for="(item, index) in tabConfigList" :key="index" :label="item.label" :name="item.key" /> <ElTabPane
v-for="(item, index) in tabConfigList"
:key="index"
:label="item.label"
:name="item.key"
/>
</ElTabs> </ElTabs>
<Transition name="fade"> <Transition name="fade">
<Form class="form" ref="FormConfigRef" :formList="formConfig.list" v-bind="getFormOptions" labelWidth="120px" /> <Form
class="form"
ref="FormConfigRef"
:formList="formConfig.list"
v-bind="getFormOptions"
labelWidth="120px"
/>
</Transition> </Transition>
</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 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";
import { tabConfigList } from "./data.js" import { tabConfigList } from "./data.js";
export default { export default {
name: 'EventDetailDialog', name: "EventDetailDialog",
components: { components: {
Dialog, Dialog,
Form, Form,
Button Button,
}, },
model: { model: {
prop: 'visible', prop: "visible",
event: 'close' event: "close",
}, },
props: { props: {
visible: Boolean visible: Boolean,
}, },
data() { data() {
return { return {
@ -50,14 +69,14 @@ export default {
index: 1, index: 1,
roads: [], roads: [],
direction: [], direction: [],
lwss: [] lwss: [],
} };
}, },
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: {
@ -65,15 +84,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() {
@ -82,62 +101,72 @@ export default {
request({ request({
url: `/business/road/query`, url: `/business/road/query`,
method: "get", method: "get",
}).then((result) => { })
if (result.code != 200) return Message.error(result?.msg); .then((result) => {
result.data.forEach(it => { if (result.code != 200) return Message.error(result?.msg);
this.roads.push({ key: it.id, label: it.roadName }) result.data.forEach((it) => {
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) => { })
if (result.code != 200) return Message.error(result?.msg); .then((result) => {
result.data.forEach(it => { if (result.code != 200) return Message.error(result?.msg);
this.direction.push({ key: it.dictValue, label: it.dictLabel }) result.data.forEach((it) => {
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) => {
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 }))
}).catch((err) => {
console.log('err', err)
Message.error("查询失败6", err);
}) })
.then((result) => {
]) 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,
})
);
})
.catch((err) => {
console.log("err", err);
Message.error("查询失败6", err);
}),
]);
}, },
handleChange({ index }) { handleChange({ index }) {
// console.log('index',index) // console.log('index',index)
this.index = index; this.index = index;
let formConfig = tabConfigList[index].formConfig; let formConfig = tabConfigList[index].formConfig;
console.log('formConfig', formConfig) console.log("formConfig", formConfig);
formConfig.list.forEach(it => { formConfig.list.forEach((it) => {
if (it.key == 'direction') { if (it.key == "direction") {
it.options.options = this.direction; it.options.options = this.direction;
} }
if (it.key == 'roadId') { if (it.key == "roadId") {
it.options.options = this.roads; it.options.options = this.roads;
} }
if (index == 7 && it.key == 'dcEventServiceArea.facilityId') { if (index == 7 && it.key == "dcEventServiceArea.facilityId") {
it.options.options = this.lwss.filter(ss => ss.type == 6); it.options.options = this.lwss.filter((ss) => ss.type == 6);
} }
// if (index == 0 || index == 1 || index == 7) { // if (index == 0 || index == 1 || index == 7) {
// if (it.key === 'dcEventAccident.facilityId' || it.key === 'dcEventVehicleAccident.facilityId' || it.key === 'dcEventServiceArea.facilityId') { // if (it.key === 'dcEventAccident.facilityId' || it.key === 'dcEventVehicleAccident.facilityId' || it.key === 'dcEventServiceArea.facilityId') {
// it.options.options = this.lwss.filter(ss => ss.type == 6); // it.options.options = this.lwss.filter(ss => ss.type == 6);
// } // }
// } // }
});
})
this.formConfig = formConfig; this.formConfig = formConfig;
}, },
@ -147,13 +176,16 @@ export default {
this.submitting = true; this.submitting = true;
if (this.index == 0 || this.index == 1) { if (this.index == 0 || this.index == 1) {
formData.lang = formData.lang.join(',') formData.lang = formData.lang.join(",");
} else { } else {
formData.lang = '' formData.lang = "";
} }
if (formData.endStakeMark && formData.endStakeMark[0] != null) { if (formData.endStakeMark && formData.endStakeMark[0] != null) {
let endStakeMark = formData.endStakeMark; let endStakeMark = formData.endStakeMark;
let strMark = (endStakeMark && endStakeMark.length > 0) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : ''; let strMark =
endStakeMark && endStakeMark.length > 0
? "K" + endStakeMark[0] + "+" + endStakeMark[1]
: "";
if (this.index == 3) { if (this.index == 3) {
formData.dcEventTrafficCongestion.endStakeMark = strMark; formData.dcEventTrafficCongestion.endStakeMark = strMark;
} }
@ -163,9 +195,9 @@ export default {
if (this.index == 9) { if (this.index == 9) {
formData.dcEventAbnormalWeather.endStakeMark = strMark; formData.dcEventAbnormalWeather.endStakeMark = strMark;
} }
formData.endStakeMark = ''; formData.endStakeMark = "";
} else { } else {
formData.endStakeMark = ''; formData.endStakeMark = "";
} }
let stakeMark = formData.stakeMark; let stakeMark = formData.stakeMark;
// console.log('formData', { // console.log('formData', {
@ -185,30 +217,36 @@ 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
if (result.code != 200) return Message.error(result?.msg); ? "K" + stakeMark[0] + "+" + stakeMark[1]
Message.success("提交成功"); : ""
this.modelVisible = false; : "",
}).catch(() => { },
Message.error("提交失败");
}).finally(() => {
this.submitting = false;
this.$emit('queryData', true);
}) })
.then((result) => {
}) if (result.code != 200) return Message.error(result?.msg);
Message.success("提交成功");
} this.modelVisible = false;
} })
} .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,

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

@ -1,27 +1,50 @@
<template> <template>
<Dialog v-model="modelVisible" :title="title" width="23vw"> <Dialog v-model="modelVisible" :title="title" width="550px">
<div class="EventAddPlanDialog"> <div class="EventAddPlanDialog">
<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" :value="item.value"> v-model="formData.eventType"
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 label="触发类型:" prop="triggerMechanism"> <el-form-item label="触发类型:" prop="triggerMechanism">
<el-select v-model="formData.triggerMechanism" placeholder="请选择触发类型"> <el-select
<el-option v-for="item in mechanismOptions" :key="item.value" :label="item.label" :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-form-item> </el-form-item>
@ -33,7 +56,11 @@
<div class="text"><i style="color: red">*</i>执行操作:</div> <div class="text"><i style="color: red">*</i>执行操作:</div>
</el-col> </el-col>
<el-col :span="22"> <el-col :span="22">
<FormTable ref="secondFormTable" :tableData="secondFormData" :type="1"></FormTable> <FormTable
ref="secondFormTable"
:tableData="secondFormData"
:type="1"
></FormTable>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -43,7 +70,11 @@
<div class="text"><i style="color: red">*</i>恢复操作:</div> <div class="text"><i style="color: red">*</i>恢复操作:</div>
</el-col> </el-col>
<el-col :span="22"> <el-col :span="22">
<FormTable ref="thirdFormTable" :tableData="thirdFormData" :type="2"></FormTable> <FormTable
ref="thirdFormTable"
:tableData="thirdFormData"
:type="2"
></FormTable>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -51,9 +82,17 @@
</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>
@ -95,14 +134,14 @@ export default {
provide() { provide() {
return { return {
// loadData: throttle(this.loadData, 100) // loadData: throttle(this.loadData, 100)
loadData: this.loadData loadData: this.loadData,
} };
}, },
props: { props: {
visible: Boolean, visible: Boolean,
detail: { detail: {
type: Object, type: Object,
default: () => { }, default: () => {},
}, },
}, },
data() { data() {
@ -162,7 +201,7 @@ export default {
}, },
}; };
}, },
mounted() { }, mounted() {},
computed: { computed: {
modelVisible: { modelVisible: {
get() { get() {
@ -173,7 +212,7 @@ export default {
this.eventOptions = typeMap[this.detail.eventCategory]; this.eventOptions = typeMap[this.detail.eventCategory];
this.mechanismOptions = this.mechanismOptions =
eventSubClassMap[this.detail.eventCategory || 1][ eventSubClassMap[this.detail.eventCategory || 1][
this.detail.eventType this.detail.eventType
]; ];
this.initData(this.detail.id); this.initData(this.detail.id);
} else { } else {
@ -288,7 +327,7 @@ export default {
this.eventOptions = typeMap[value]; this.eventOptions = typeMap[value];
this.changeEventType(1); this.changeEventType(1);
}, },
handleChange() { }, handleChange() {},
formatData(it, value = 1, id = "") { formatData(it, value = 1, id = "") {
let data = { ...it, actionType: value, emergencyPlansId: id }; let data = { ...it, actionType: value, emergencyPlansId: id };
if ( if (

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" title="选择情报板" width="23vw"> <Dialog v-model="modelVisible" title="选择情报板" width="550px">
<div class="EventAddPlanDialog"> <div class="EventAddPlanDialog">
<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">

2
ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/AddNEditDialog.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog"> <div class="AddNEditDialog">
<Form <Form
v-model="formData" v-model="formData"

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

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog"> <div class="AddNEditDialog">
<Form <Form
:value="formData" :value="formData"

Loading…
Cancel
Save