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. 194
      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>
<Dialog v-model="modelVisible" title="广播发布" width="23vw">
<Dialog v-model="modelVisible" title="广播发布" width="550px">
<div class="BroadcastReleases">
<div class="body">
<div class="left">

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

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

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="相机控制" noneMask width="23vw">
<Dialog v-model="modelVisible" title="相机控制" noneMask width="550px">
<div class="CameraControlDialog">
<div class="direction">
<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>
<Dialog
v-model="obverseVisible"
:title="dialogData.deviceName"
width="25.5vw"
>
<Dialog v-model="obverseVisible" :title="dialogData.deviceName" width="650px">
<div class="Camera">
<Video class="video-stream" :camId="dialogData.iotDeviceId" />
<ElTabs v-model="activeName" class="tabs">

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

@ -1,5 +1,5 @@
<template>
<Dialog class="CongestedRoadSections" width="23vw">
<Dialog class="CongestedRoadSections" width="550px">
<div class="video-presentations">
<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>
<Dialog v-model="modelVisible" title="设备操作" width="23vw">
<Dialog v-model="modelVisible" title="设备操作" width="550x">
<div class="DeviceControlDialog">
<Form
v-model="formData"

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="obverseVisible" title="行车诱导" width="25.5vw">
<Dialog v-model="obverseVisible" title="行车诱导" width="650px">
<div class="DrivingGuidance">
<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>
<Dialog v-model="modelVisible" title="设备操作" width="23vw">
<Dialog v-model="modelVisible" title="设备操作" width="550px">
<div class="DeviceControlDialog">
<ElTabs v-model="activeName" class="tabs" @tab-click="tabClick">
<ElTabPane label="一般模式" name="first">

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="obverseVisible" title="疲劳唤醒弹窗" width="18.5vw">
<Dialog v-model="obverseVisible" title="疲劳唤醒弹窗" width="470px">
<div class="FatigueWakesUp">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<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>
<Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="23vw">
<Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="550px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="GuardrailCollision">

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

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

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

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

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

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

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

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

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

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

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

@ -1,5 +1,5 @@
<template>
<Dialog class="WakeUpLightCurtainInfo" width="23vw">
<Dialog class="WakeUpLightCurtainInfo" width="550px">
<div class="operation-btn">
<div class="photo-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>
<Dialog class="WeatherForecast" width="23vw"> s </Dialog>
<Dialog class="WeatherForecast" width="550px"> s </Dialog>
</template>
<script>

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="事件详情" width="35vw">
<Dialog v-model="modelVisible" title="事件详情" width="885px">
<div class="EventDetail">
<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>
<Dialog v-model="modelVisible" title="调度记录" width="28vw">
<Dialog v-model="modelVisible" title="调度记录" width="710px">
<div class="EventDetail">
<BlackBar class="left">
<!-- <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>
<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> -->
<div class="header">
<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>
<Dialog v-model="modelVisible" title="配置处置流程" width="35vw">
<Dialog v-model="modelVisible" title="配置处置流程" width="880px">
<div class="header">
<el-form ref="form" label-width="120px">
<el-form-item label="事件类型">

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

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

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

@ -2,44 +2,63 @@
<Dialog v-model="modelVisible" title="交通事故录入">
<div class="EventDetailDialog">
<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>
<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>
</div>
<template #footer>
<Button style="background: #C9C9C9;padding:0 24px;"
@click.native="modelVisible = false, submitting = false">取消</Button>
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">保存</Button>
<Button
style="background: #c9c9c9; padding: 0 24px"
@click.native="(modelVisible = false), (submitting = false)"
>取消</Button
>
<Button
style="padding: 0 24px"
@click.native="handleSubmit"
:loading="submitting"
>保存</Button
>
</template>
</Dialog>
</template>
<script>
import Dialog from "@screen/components/Dialog/index";
import Form from '@screen/components/FormConfig';
import Button from '@screen/components/Buttons/Button.vue';
import request from '@/utils/request'
import Form from "@screen/components/FormConfig";
import Button from "@screen/components/Buttons/Button.vue";
import request from "@/utils/request";
import { Message } from "element-ui";
import { tabConfigList } from "./data.js"
import { tabConfigList } from "./data.js";
export default {
name: 'EventDetailDialog',
name: "EventDetailDialog",
components: {
Dialog,
Form,
Button
Button,
},
model: {
prop: 'visible',
event: 'close'
prop: "visible",
event: "close",
},
props: {
visible: Boolean
visible: Boolean,
},
data() {
return {
@ -50,14 +69,14 @@ export default {
index: 1,
roads: [],
direction: [],
lwss: []
}
lwss: [],
};
},
created() {
// this.formConfig = tabConfigList[0].formConfig;
this.initData().then(() => {
this.handleChange({ index: 0 })
})
this.handleChange({ index: 0 });
});
},
computed: {
modelVisible: {
@ -65,79 +84,89 @@ export default {
return this.visible;
},
set(val) {
this.$emit('close', val)
}
this.$emit("close", val);
},
},
getFormOptions() {
return {
column: 3,
...this.formConfig.formOptions
}
}
...this.formConfig.formOptions,
};
},
},
methods: {
initData() {
return Promise.all([
//
//
request({
url: `/business/road/query`,
method: "get",
}).then((result) => {
if (result.code != 200) return Message.error(result?.msg);
result.data.forEach(it => {
this.roads.push({ key: it.id, label: it.roadName })
})
.then((result) => {
if (result.code != 200) return Message.error(result?.msg);
result.data.forEach((it) => {
this.roads.push({ key: it.id, label: it.roadName });
});
})
}).catch((err) => {
Message.error("查询失败4", err);
}),
.catch((err) => {
Message.error("查询失败4", err);
}),
//
request({
url: `/system/dict/data/type/iot_event_direction`,
method: "get",
}).then((result) => {
if (result.code != 200) return Message.error(result?.msg);
result.data.forEach(it => {
this.direction.push({ key: it.dictValue, label: it.dictLabel })
})
.then((result) => {
if (result.code != 200) return Message.error(result?.msg);
result.data.forEach((it) => {
this.direction.push({ key: it.dictValue, label: it.dictLabel });
});
})
}).catch((err) => {
Message.error("查询失败5", err);
}),
.catch((err) => {
Message.error("查询失败5", err);
}),
// 1 2 3 4 5 6
request({
url: `/business/facility/query`,
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);
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);
}),
]);
},
handleChange({ index }) {
// console.log('index',index)
this.index = index;
let formConfig = tabConfigList[index].formConfig;
console.log('formConfig', formConfig)
formConfig.list.forEach(it => {
if (it.key == 'direction') {
console.log("formConfig", formConfig);
formConfig.list.forEach((it) => {
if (it.key == "direction") {
it.options.options = this.direction;
}
if (it.key == 'roadId') {
if (it.key == "roadId") {
it.options.options = this.roads;
}
if (index == 7 && it.key == 'dcEventServiceArea.facilityId') {
it.options.options = this.lwss.filter(ss => ss.type == 6);
if (index == 7 && it.key == "dcEventServiceArea.facilityId") {
it.options.options = this.lwss.filter((ss) => ss.type == 6);
}
// if (index == 0 || index == 1 || index == 7) {
// if (it.key === 'dcEventAccident.facilityId' || it.key === 'dcEventVehicleAccident.facilityId' || it.key === 'dcEventServiceArea.facilityId') {
// it.options.options = this.lwss.filter(ss => ss.type == 6);
// }
// }
})
});
this.formConfig = formConfig;
},
@ -147,13 +176,16 @@ export default {
this.submitting = true;
if (this.index == 0 || this.index == 1) {
formData.lang = formData.lang.join(',')
formData.lang = formData.lang.join(",");
} else {
formData.lang = ''
formData.lang = "";
}
if (formData.endStakeMark && formData.endStakeMark[0] != null) {
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) {
formData.dcEventTrafficCongestion.endStakeMark = strMark;
}
@ -163,9 +195,9 @@ export default {
if (this.index == 9) {
formData.dcEventAbnormalWeather.endStakeMark = strMark;
}
formData.endStakeMark = '';
formData.endStakeMark = "";
} else {
formData.endStakeMark = '';
formData.endStakeMark = "";
}
let stakeMark = formData.stakeMark;
// console.log('formData', {
@ -185,30 +217,36 @@ export default {
...formData,
eventType: Number(this.index) + 1,
eventState: 0,
stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '',
}
}).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);
stakeMark:
stakeMark && stakeMark[0] != null
? stakeMark && stakeMark.length > 0
? "K" + stakeMark[0] + "+" + stakeMark[1]
: ""
: "",
},
})
})
}
}
}
.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>
<style lang="scss" scoped>
.fade-enter-active,
.fade-leave-active {
transition: opacity .24s;
transition: opacity 0.24s;
}
.fade-enter,

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

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

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="选择情报板" width="23vw">
<Dialog v-model="modelVisible" title="选择情报板" width="550px">
<div class="EventAddPlanDialog">
<vuescroll :ops="scrollOptions" class="listBox">
<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>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="23vw">
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'" width="550px">
<div class="AddNEditDialog">
<Form
v-model="formData"

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

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

Loading…
Cancel
Save