|
|
@ -12,6 +12,114 @@ export const tabConfigList = [ |
|
|
|
PresetFormItems.eventLevel, |
|
|
|
{ ...PresetFormItems.locationMode, key: 'dcEventAccident.locationType' }, |
|
|
|
PresetFormItems.freeway, |
|
|
|
{ |
|
|
|
label: "服务区:", |
|
|
|
key: "dcEventAccident.facilityId", |
|
|
|
type: "select", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
value: "选项1", |
|
|
|
label: "黄金糕", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 2){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "地点:", |
|
|
|
key: "dcEventAccident.dd", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
placeholder: "服务区地点", |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 2){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "立交桥:", |
|
|
|
key: "dcEventAccident.facilityId", |
|
|
|
type: "select", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
value: "选项1", |
|
|
|
label: "黄金糕", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 3){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "匝道:", |
|
|
|
key: "dcEventAccident.dd", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
placeholder: "服务区地点", |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 3){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "收费站:", |
|
|
|
key: "dcEventAccident.facilityId", |
|
|
|
type: "select", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
value: "选项1", |
|
|
|
label: "黄金糕", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 4){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "地点:", |
|
|
|
key: "dcEventAccident.dd", |
|
|
|
isAlone: false, |
|
|
|
required: true, |
|
|
|
options: { |
|
|
|
placeholder: "服务区地点", |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventAccident?.locationType == 4){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
PresetFormItems.direction, |
|
|
|
PresetFormItems.station, |
|
|
|
PresetFormItems.eventHappenTime, |
|
|
@ -29,7 +137,7 @@ export const tabConfigList = [ |
|
|
|
{ ...PresetFormItems.isInTunnel, key: 'dcEventAccident.inTunnel' }, |
|
|
|
{ ...PresetFormItems.spillName, key: 'dcEventAccident.spillageItem' }, |
|
|
|
{ ...PresetFormItems.ownerPhone, key: 'dcEventAccident.vehicleOwnerPhone' }, |
|
|
|
{ ...PresetFormItems.laneOccupancy, key: 'dcEventAccident.laneOccupancy' }, |
|
|
|
PresetFormItems.laneOccupancy, |
|
|
|
PresetFormItems.vehicleCondition('dcEventAccident'), |
|
|
|
PresetFormItems.casualties('dcEventAccident'), |
|
|
|
PresetFormItems.eventTitle, |
|
|
@ -60,7 +168,7 @@ export const tabConfigList = [ |
|
|
|
{ ...PresetFormItems.isForkRoad, key: 'dcEventVehicleAccident.atIntersection' }, |
|
|
|
{ ...PresetFormItems.isCurveRoad, key: 'dcEventVehicleAccident.onCurve' }, |
|
|
|
{ ...PresetFormItems.isInTunnel, key: 'dcEventVehicleAccident.inTunnel' }, |
|
|
|
{ ...PresetFormItems.laneOccupancy, key: 'dcEventVehicleAccident.laneOccupancy' }, |
|
|
|
PresetFormItems.laneOccupancy, |
|
|
|
PresetFormItems.vehicleCondition('dcEventVehicleAccident'), |
|
|
|
PresetFormItems.casualties('dcEventVehicleAccident'), |
|
|
|
PresetFormItems.eventTitle, |
|
|
@ -304,6 +412,7 @@ export const tabConfigList = [ |
|
|
|
type: "RadioGroup", |
|
|
|
isAlone: true, |
|
|
|
required: true, |
|
|
|
default: "4-1", |
|
|
|
options: { |
|
|
|
activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", |
|
|
|
options: [ |
|
|
@ -327,7 +436,166 @@ export const tabConfigList = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ ...PresetFormItems.congestionCause, key: 'dcEventTrafficCongestion.congestionCause' }, |
|
|
|
{ |
|
|
|
label: "详细原因:", |
|
|
|
key: "xxyy", |
|
|
|
type: "RadioGroup", |
|
|
|
isAlone: true, |
|
|
|
required: true, |
|
|
|
// default: "1",
|
|
|
|
options: { |
|
|
|
activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
key: "1", |
|
|
|
label: "收费站广场拥堵导致出口压车", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "2", |
|
|
|
label: "收费站设备故障", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "3", |
|
|
|
label: "地方道路原因", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "4", |
|
|
|
label: "省内非集团所辖高速原因", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "5", |
|
|
|
label: "集团所辖道路拥堵", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "6", |
|
|
|
label: "集团所辖枢纽立交异常导致主线压车", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "7", |
|
|
|
label: "路侧起火", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "8", |
|
|
|
label: "备注项添加", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.dcEventTrafficCongestion?.congestionCause == 1 || data?.dcEventTrafficCongestion?.congestionCause == 6){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ ...PresetFormItems.isInTunnel, isAlone: true }, |
|
|
|
{ |
|
|
|
label: "地点类型:", |
|
|
|
key: "locationType", |
|
|
|
type: "RadioGroup", |
|
|
|
isAlone: true, |
|
|
|
required: true, |
|
|
|
default: "1", |
|
|
|
options: { |
|
|
|
activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
key: "1", |
|
|
|
label: "单点", |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "2", |
|
|
|
label: "多点", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "桩号:", |
|
|
|
key: "stakeMark", |
|
|
|
required: true, |
|
|
|
type: "MultipleLabelItem", |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "K", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "stakeMark[0]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "+", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "stakeMark[1]", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.locationType != 1){ |
|
|
|
return false; |
|
|
|
} |
|
|
|
return true; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "起止桩号:", |
|
|
|
key: "stakeMark", |
|
|
|
required: true, |
|
|
|
isAlone: true, |
|
|
|
type: "MultipleLabelItem", |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "K", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "stakeMark[0]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "+", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "stakeMark[1]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "至K", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "endStakeMark[0]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
prefix: { |
|
|
|
text: "+", |
|
|
|
style: { |
|
|
|
color: "#3DE8FF", |
|
|
|
}, |
|
|
|
}, |
|
|
|
key: "endStakeMark[1]", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
visible:(data) => { |
|
|
|
if(data?.locationType == 2){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "拥堵里程:", |
|
|
|
key: "dcEventTrafficCongestion.congestionMileage", |
|
|
|