15 changed files with 2955 additions and 78 deletions
			
			
		
								
									
										File diff suppressed because one or more lines are too long
									
								
							
						
					| @ -0,0 +1,67 @@ | |||
| // import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
 | |||
| import * as PresetFormItems from "@screen/common/PresetFormItems.js"; | |||
| // import { merge, cloneDeep } from "lodash";
 | |||
| 
 | |||
| import {directionOptions} from '@screen/utils/enum.js'; | |||
| export const searchFormList = [ | |||
|   | |||
|   { | |||
|     label: "管控方式:", | |||
|     key: "operType", | |||
|     type: "select", | |||
|     clearable: true, | |||
|     options: { | |||
|       options: [ | |||
|         { key: "0", label: "手动控制" }, | |||
|         { key: "1", label: "定时控制" }, | |||
|         { key: "2", label: "批量控制" }, | |||
|         { key: "3", label: "预案控制" } | |||
|       ], | |||
|     }, | |||
|   }, | |||
|   { | |||
|     label: "管控时间:", | |||
|     key: "operTime", | |||
|     required: false, | |||
|     type: "datePicker", | |||
|     options: { | |||
|       type: "daterange", | |||
|       format: "yyyy-MM-dd", | |||
|       valueFormat: "yyyy-MM-dd", | |||
|     }, | |||
|   }, { | |||
|     label: "设备类型:", | |||
|     key: "dcDeviceType", | |||
|     type: "select", | |||
|     clearable: true, | |||
|     options: { | |||
|       options: [ | |||
|         { | |||
|           key: 2, | |||
|           label: "可变信息标志", | |||
|         }, | |||
|         { | |||
|           key: 5, | |||
|           label: "语音广播", | |||
|         }, | |||
|         { | |||
|           key: 10, | |||
|           label: "疲劳唤醒", | |||
|         }, | |||
|         { | |||
|           key: 12, | |||
|           label: "行车诱导", | |||
|         }, | |||
|         { | |||
|           key: 13, | |||
|           label: "设备箱", | |||
|         }, | |||
|         { | |||
|           key: 16, | |||
|           label: "远端机", | |||
|         }, | |||
|       ], | |||
|     }, | |||
|   }, | |||
|    | |||
| ]; | |||
| @ -0,0 +1,11 @@ | |||
| // import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
 | |||
| 
 | |||
| export const searchFormList = [ | |||
|   { | |||
|     label: "姓名:", | |||
|     key: "name", | |||
|   },{ | |||
|     label: "电话:", | |||
|     key: "phone", | |||
|   }, | |||
| ]; | |||
| @ -0,0 +1,42 @@ | |||
| import { | |||
|   eventSubClassMap, | |||
|   trafficKV | |||
| } from "@screen/utils/enum.js"; | |||
| export const _formList = [ | |||
|   { | |||
|     label: "预案名称:", | |||
|     key: "planName", | |||
|     type: "input", | |||
|     required: true, | |||
|     options: { | |||
|       maxlength: 10 | |||
|     }, | |||
|   }, | |||
|   { | |||
|     label: "事件类型:", | |||
|     key: "eventType", | |||
|     type: "select", | |||
|     required: true, | |||
|     options: { | |||
|       clearable: true, | |||
|       options: trafficKV, | |||
|     }, | |||
|     ons: { | |||
|       change(value, ...args) { | |||
|         const { data, formList } = args.slice(-1)[0]; | |||
|         formList[2].options.options = eventSubClassMap[1][value]; | |||
|         data.triggerMechanism ='' | |||
|       }, | |||
|     }, | |||
|   }, | |||
|   { | |||
|     label: "细分类型:", | |||
|     key: "triggerMechanism", | |||
|     type: "select", | |||
|     required: true, | |||
|     options: { | |||
|       clearable: true, | |||
|       options: [], | |||
|     }, | |||
|   }, | |||
| ]; | |||
| @ -0,0 +1,57 @@ | |||
| import moment from "moment/moment"; | |||
| 
 | |||
| const weather={ | |||
|     '00':'晴', | |||
|     '11':'阴', | |||
|     '12':'小雨', | |||
|     '13':'中雨', | |||
|     '14':'大雨', | |||
|     '15':'暴雨', | |||
|     '21':'阴', | |||
|     '22':'雨夹雪', | |||
|     '31':'阴', | |||
|     '32':'小雪', | |||
|     '33':'中雪', | |||
|     '34':'大雪', | |||
| } | |||
| export function getWeatherFormat(data,unit=false) { | |||
|      | |||
|     let icon = data['weatherConditionCode'] | |||
|     let text = data['weatherCondition'] | |||
|     // let ms = data.pph.toString()+data.preLevel.toString();
 | |||
|     // if(weather[ms]){
 | |||
|     //     icon = ms;
 | |||
|     //     text = weather[ms];
 | |||
|     // }
 | |||
|     const res = { | |||
|         stakeMark: data.stakeNum, | |||
|         name: data.sectionName, | |||
|         orgName: data.orgName, | |||
|         icon, | |||
|         text, | |||
|         temp:data.tem.toFixed(1), //温度
 | |||
|         windDir: data.windDirection,//风想
 | |||
|         windScale: data.windLevel, //风力
 | |||
|         windSpeed: data.windSpeed.toFixed(2), | |||
|         feelsLike:data.tem, | |||
|         humidity:data.rhu, | |||
|         precip: data.pre, | |||
|         vis: (data.vis/1000).toFixed(1), //能见度
 | |||
|         visDesc: data.visDescription, | |||
|         lat:data.lat,  | |||
|         lon:data.lon, | |||
|         obsTime: data.weatherTime | |||
|     }; | |||
|     if(unit){ | |||
|         res.temp += '℃' | |||
|         res.windScale += '级' | |||
|         res.precip += '㎜' | |||
|         res.vis += '㎞' | |||
|         res.humidity += '%' | |||
|         res.windSpeed += 'm/s' | |||
|         res.obsTime = moment(res.obsTime).format('YYYY-MM-DD HH:mm:ss') | |||
|          | |||
|     } | |||
|     return res; | |||
| } | |||
|    | |||
| @ -0,0 +1,32 @@ | |||
| // import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
 | |||
| import * as PresetFormItems from "@screen/common/PresetFormItems.js"; | |||
| // import { merge, cloneDeep } from "lodash";
 | |||
| 
 | |||
| import {directionOptions} from '@screen/utils/enum.js'; | |||
| export const searchFormList = [ | |||
|   | |||
|   { | |||
|     label: "预警类型:", | |||
|     key: "warningType", | |||
|     type: "select", | |||
|     options: { | |||
|       clearable: true, | |||
|       options: [ | |||
|         {key:1, label:'交通流预警'}, | |||
|         {key:2, label:'气象预警'} | |||
|       ], | |||
|     }, | |||
|   }, | |||
|   { | |||
|     label: "预警时间:", | |||
|     key: "warningTime", | |||
|     required: false, | |||
|     type: "datePicker", | |||
|     options: { | |||
|       type: "daterange", | |||
|       format: "yyyy-MM-dd", | |||
|       valueFormat: "yyyy-MM-dd", | |||
|     }, | |||
|   }, | |||
|    | |||
| ]; | |||
| @ -0,0 +1,31 @@ | |||
| export const searchFormList = [ | |||
|   { | |||
|     label: "方向:", | |||
|     key: "direction", | |||
|     type: "select", | |||
|     options: { | |||
|       options: [ | |||
|         { | |||
|           value: 1, | |||
|           label: "菏泽方向", | |||
|         }, | |||
|         { | |||
|           value: 3, | |||
|           label: "济南方向", | |||
|         },{ | |||
|           value: '', | |||
|           label: "双向", | |||
|         } | |||
|       ], | |||
|     }, | |||
|   }, | |||
|   { | |||
|     label: "时间范围:", | |||
|     key: "time", | |||
|     type: "datePicker", | |||
|     options: { | |||
|       format: "yyyy-MM-dd", | |||
|       type: "daterange", | |||
|     }, | |||
|   }, | |||
| ]; | |||
| @ -0,0 +1,62 @@ | |||
| export const searchFormList = [ | |||
|   { | |||
|     label: "路段名称:", | |||
|     key: "intervalName", | |||
|     clearable: true, | |||
|     type: "select", | |||
|     options: { | |||
|       options: [], | |||
|     }, | |||
|   }, { | |||
|     label: "方向:", | |||
|     key: "direction", | |||
|     type: "select", | |||
|     options: { | |||
|       options: [ | |||
|         { | |||
|           value: 1, | |||
|           label: "菏泽方向", | |||
|         }, | |||
|         { | |||
|           value: 3, | |||
|           label: "济南方向", | |||
|         } | |||
|       ], | |||
|     }, | |||
|   }, | |||
|   // {
 | |||
|   //   label: "指标名称:",
 | |||
|   //   key: "type",
 | |||
|   //   // required: true,
 | |||
|   //   type: "select",
 | |||
|   //   options: {
 | |||
|   //     options: [
 | |||
|   //       {
 | |||
|   //         value: "1",
 | |||
|   //         label: "拥挤度",
 | |||
|   //       },
 | |||
|   //       {
 | |||
|   //         value: "2",
 | |||
|   //         label: "饱和度",
 | |||
|   //       },
 | |||
|   //       {
 | |||
|   //         value: "3",
 | |||
|   //         label: "交通组成特征指数",
 | |||
|   //       },
 | |||
|   //     ],
 | |||
|   //   },
 | |||
|   // },
 | |||
|   { | |||
|     label: "时间范围:", | |||
|     key: "time", | |||
|     type: "datePicker", | |||
|     default: [ | |||
|       moment().format("YYYY-MM-DD"), | |||
|       moment().format("YYYY-MM-DD"), | |||
|     ], | |||
|     options: { | |||
|       format: "yyyy-MM-dd", | |||
|       type: "daterange", | |||
|     }, | |||
|   }, | |||
| ]; | |||
| @ -0,0 +1,15 @@ | |||
| // import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
 | |||
| import * as PresetFormItems from "@screen/common/PresetFormItems.js"; | |||
| // import { merge, cloneDeep } from "lodash";
 | |||
| 
 | |||
| import {directionOptions} from '@screen/utils/enum.js'; | |||
| export const searchFormList = [ | |||
|   | |||
|   { | |||
|     label: "文件名称:", | |||
|     key: "fileName", | |||
|     type: "input", | |||
|     default: "" | |||
|   }, | |||
|    | |||
| ]; | |||
								
									
										File diff suppressed because it is too large
									
								
							
						
					
					Loading…
					
					
				
		Reference in new issue