@ -573,8 +573,8 @@ import FileSaver from "file-saver";
import htmlDocx from "html-docx-js/dist/html-docx" ;
import Dialog from "@screen/components/Dialog/index" ;
import Form from "@screen/components/FormConfig" ;
import { formList , reportList } from "./data" ;
import { configList } from "../../EventInformation/components/EditEventInformationDialog /data.js" ;
import { reportList } from "./data" ;
import { formatEvent , configList } from "@screen/utils/enum_event /data.js" ;
import Button from "@screen/components/Buttons/Button.vue" ;
import request from "@/utils/request" ;
import Pagination from "@screen/components/Pagination.vue" ;
@ -591,7 +591,7 @@ import {
import { delay , exportFile , confirm } from "@screen/utils/common" ;
var moment = require ( "moment" ) ;
export default {
name : "EventDetail " ,
name : "DialogProcessVisible " ,
components : {
Dialog ,
Form ,
@ -655,7 +655,6 @@ export default {
"provideData.detail" ( newValue , oldValue ) {
this . provideDetail = newValue ;
this . eventId = newValue . id ;
console . log ( "+++++++++++++++" ) ;
this . initData ( ) ;
this . getReportData ( ) ;
this . getImportantFileStatus ( ) ;
@ -687,37 +686,54 @@ export default {
let numbers = info . stakeMark . match ( /\d+/g ) . map ( Number ) ;
info . stakeMark = numbers ;
}
this . fData = info ;
this . formConfigList = configList [ info . eventName ] ;
await Promise . all ( [
/ / 路 网 设 施 1 收 费 站 2 桥 梁 3 互 通 立 交 4 枢 纽 立 交 5 隧 道 6 服 务 区
request ( {
url : ` /business/facility/query ` ,
method : "get" ,
let _confirgList = _ . cloneDeep ( configList [ info . eventName ] ) ;
const facilityResult = await request ( { url : ` /business/facility/query ` , method : "get" } )
if ( facilityResult . code != 200 ) return Message . error ( facilityResult ? . msg ) ;
this . lwss = [ ] ;
facilityResult . data . forEach ( ( it ) =>
this . lwss . push ( {
key : it . id ,
label : it . facilityName ,
type : it . facilityType ,
} )
. then ( ( result ) => {
if ( result . code != 200 ) return Message . error ( result ? . msg ) ;
this . lwss = [ ] ;
result . data . forEach ( ( it ) =>
this . lwss . push ( {
key : it . id ,
label : it . facilityName ,
type : it . facilityType ,
} )
) ;
} )
. catch ( ( err ) => {
Message . error ( "查询失败" , err ) ;
} ) ,
] ) ;
) ;
this . formConfigList . forEach ( ( it ) => {
if ( it . key == "dcEventServiceArea.facilityId" ) {
it . options . options = this . lwss . filter ( ( ss ) => ss . type == 6 ) ;
_confirgList . forEach ( async ( it ) => {
if ( it . label === '服务区:' && it . type === 'select' ) { / / 服 务 区
it . options . options = this . lwss . filter ( ( x ) => x . type == 6 ) ;
}
if ( it . label === '立交桥:' && it . type === 'select' ) { / / 立 交 桥
it . options . options = this . lwss . filter ( ( x ) => x . type == 4 ) ;
let aryKey = it . key . split ( '.' )
const v = info [ aryKey [ 0 ] ] [ aryKey [ 1 ] ]
if ( v ) {
const zdResult = await request ( { url : ` /system/ramp/listAll?facilityId= ${ v } ` , method : "get" } )
if ( zdResult . code != 200 ) return Message . error ( zdResult ? . msg ) ;
console . log
let zd = [ ] ;
zdResult . rows . forEach ( ( it ) =>
zd . push ( { key : it . id , label : it . rampName } )
) ;
_confirgList . filter ( x => x . label === '匝道:' && x . type === 'select' ) . forEach ( f => {
f . options . options = zd
} )
}
}
if ( it . label === '收费站:' && it . type === 'select' ) { / / 收 费 站
it . options . options = this . lwss . filter ( ( x ) => x . type == 1 ) ;
}
if ( it . label === '停车区:' && it . type === 'select' ) { / / 停 车 区
it . options . options = this . lwss . filter ( ( x ) => x . type == 7 ) ;
}
} ) ;
this . formConfigList = _confirgList ;
this . fData = info ;
} ,
getReportData ( ) {
getEventImportant ( this . eventId ) . then ( ( res ) => {
@ -790,11 +806,9 @@ export default {
} ,
/ / 获 取 事 件 状 态
getImportantFileStatus ( ) {
console . log ( "getImportantFileStatus" ) ;
importantFileStatus ( this . eventId ) . then ( ( res ) => {
this . type = res . data ;
this . $emit ( "update:type" , this . type ) ;
console . log ( "事件状态" , res . data ) ;
} ) ;
} ,
@ -904,7 +918,7 @@ export default {
display : flex ;
gap : 9 px ;
width : 100 % ;
height : 768 px ;
height : 600 px ;
flex - direction : column ;
. title {
margin : 10 px 0 ;