Browse Source

修改首页问题

wangqin
王钦 7 months ago
parent
commit
6278a479c2
  1. 21
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js
  3. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue
  4. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  5. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js
  6. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/ReleaseInformation/index.vue

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

@ -29,7 +29,7 @@ import Video from "@screen/components/Video";
import Form from "@screen/components/FormConfig"; import Form from "@screen/components/FormConfig";
import request from "@/utils/request"; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
import moment from "moment"; import moment, { fn } from "moment";
import Carousel from "@screen/pages/control/event/event/EventDetailDialog/Carousel"; import Carousel from "@screen/pages/control/event/event/EventDetailDialog/Carousel";
import { import {
WarningTypeList, WarningTypeList,
@ -183,8 +183,10 @@ export default {
}; };
}, },
async created() { async created() {
this.getDetails(); let self = this;
this.getVehicleTypeList(); this.getVehicleTypeList(function(){
self.getDetails();
});
}, },
async mounted() { }, async mounted() { },
beforeDestroy() { beforeDestroy() {
@ -220,8 +222,11 @@ export default {
}); });
}); });
}, },
getVehicleTypeList() { getVehicleTypeList(fn) {
if (vehicleTypeList.length) return; if (vehicleTypeList.length) {
fn()
return
};
request({ request({
url: `/system/dict/data/type/${"sys_vehicle_type"}`, url: `/system/dict/data/type/${"sys_vehicle_type"}`,
@ -230,13 +235,13 @@ export default {
}) })
.then(({ data, code }) => { .then(({ data, code }) => {
if (code != 200) return Message.error("详情获取失败"); if (code != 200) return Message.error("详情获取失败");
vehicleTypeList = this.formList[5].options.options = data.map( vehicleTypeList = this.formList[5].options.options = data.map(
(item) => ({ (item) => ({
key: item.dictValue, key: item.dictValue,
label: item.dictLabel, label: item.dictLabel,
}) })
); );
fn();
}) })
.catch((err) => { }); .catch((err) => { });
}, },
@ -301,10 +306,6 @@ export default {
setTimeout(() => { setTimeout(() => {
this.$refs.FormConfigRef.reset(true); this.$refs.FormConfigRef.reset(true);
}); });
setTimeout(() => {
this.formList[5].options = { options:
WarningSubclassList[data.warningType] || []};
}, 100);
this.data.direction = DirectionTypes[this.data.direction]; this.data.direction = DirectionTypes[this.data.direction];
this.data.duration = getDuration(this.data.warningTime); this.data.duration = getDuration(this.data.warningTime);
this.interval = setInterval(() => { this.interval = setInterval(() => {

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js

@ -24,7 +24,7 @@ export const dialogDelayVisible = {
emits: ["change"], emits: ["change"],
computed: { computed: {
obverseVisible: { obverseVisible: {
set(bool) { set(bool) {
try { try {
typeof this.visibleClose === "function" && this.visibleClose?.(bool); typeof this.visibleClose === "function" && this.visibleClose?.(bool);
} catch (error) {} } catch (error) {}

10
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue

@ -53,11 +53,11 @@
<div v-if="tabAction === '3'" style="width:70vw;height: 500px;display: flex;flex-direction: column; justify-content: center;align-items: flex-start;" > <div v-if="tabAction === '3'" style="width:70vw;height: 500px;display: flex;flex-direction: column; justify-content: center;align-items: flex-start;" >
<Form v-model="dataRecord" style="width:100%;" labelWidth="90px" column="2" class="form" ref="FormRecordRef" :formList="formRecord" /> <Form v-model="dataRecord" style="width:100%;" labelWidth="90px" column="2" class="form" ref="FormRecordRef" :formList="formRecord" />
<Table :data="tableData" height="500px" style="margin: 20px;width:95%"> <Table :data="tableData" height="500px" style="margin: 20px;width:95%">
<ElTableColumn label="管控时间" prop="operTime" width="200"/> <ElTableColumn label="管控时间" prop="operTime" width="300"/>
<ElTableColumn label="设备名称" prop="dcDeviceName" width="300"/> <ElTableColumn label="设备名称" prop="dcDeviceName"/>
<ElTableColumn label="管控方式" prop="operType" width="100"/> <ElTableColumn label="管控方式" prop="operType" width="200"/>
<ElTableColumn label="操作人" prop="operName" width="100"/> <ElTableColumn label="操作人" prop="operName" width="200"/>
<ElTableColumn label="执行结果" prop="stakeMark" > <ElTableColumn label="执行结果" prop="stakeMark" width="150" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="top-start" placement="top-start"

1
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -110,6 +110,7 @@ function resolveDataOptions(data, config, component, isDefault) {
const formData = extData?.otherConfig const formData = extData?.otherConfig
? JSON.parse(extData.otherConfig) ? JSON.parse(extData.otherConfig)
: null; : null;
// formData.pictures = ["https://pic1.zhimg.com/80/v2-c00beaae1f6e3c09a6d77c16c70002fe_1440w.webp?source=1def8aca","https://pic1.zhimg.com/80/v2-c56626621906417a453d262ac11f3385_1440w.webp?source=1def8aca"]
console.log(component, "DialogComponent"); console.log(component, "DialogComponent");
this.dialogConfig = { this.dialogConfig = {
component, component,

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

@ -205,6 +205,7 @@ const DeviceTypeMap = {
14: "光线在线监测", 14: "光线在线监测",
*/ */
export function getDeviceList(deviceType, options) { export function getDeviceList(deviceType, options) {
console.log(deviceType, options,'------------')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!deviceType) { if (!deviceType) {
// Message.error(`${DeviceTypeMap[deviceType]}设备加载失败!`); // Message.error(`${DeviceTypeMap[deviceType]}设备加载失败!`);
@ -220,10 +221,13 @@ export function getDeviceList(deviceType, options) {
newStartStakeMark.push(String(item)); newStartStakeMark.push(String(item));
}); });
let data = { let data = {
deviceType, deviceType: deviceType,
endStakeMark: newEndStakeMark, endStakeMark: newEndStakeMark,
startStakeMark: newStartStakeMark startStakeMark: newStartStakeMark
} }
if(options.childType && options.childType.split('-')[0] === deviceType){
data.childType = options.childType
}
if(options.deviceState && options.deviceState !== ''){ if(options.deviceState && options.deviceState !== ''){
data['deviceState'] = options.deviceState data['deviceState'] = options.deviceState
} }

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

@ -103,7 +103,6 @@ export default {
this.$message.warning(`未选择发布平台`); this.$message.warning(`未选择发布平台`);
return; return;
} }
// res.eventid =
if(type.indexOf('1') !== -1){ if(type.indexOf('1') !== -1){
res.phone = '13589019062' res.phone = '13589019062'
} }

Loading…
Cancel
Save