From 06d1ba10379f856daeef3772ce5ae7dbd284fc1b Mon Sep 17 00:00:00 2001 From: guoxin Date: Sun, 10 Dec 2023 00:45:56 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=BF=90=E7=BB=B4=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demon.json | 1671 +++++++++++-- src/assets/fonts/font_pda/demo_index.html | 23 +- .../InRoadMgm/BusinessMgm/ChargeRules/loadable.jsx | 4 +- .../InRoadMgm/EquipmentOpe/berthStatus/index.jsx | 6 + .../InRoadMgm/EquipmentOpe/berthStatus/index.scss | 197 ++ .../EquipmentOpe/berthStatus/loadable.jsx | 333 +++ .../InRoadMgm/EquipmentOpe/faultReport/index.jsx | 6 + .../InRoadMgm/EquipmentOpe/faultReport/index.scss | 197 ++ .../EquipmentOpe/faultReport/loadable.jsx | 329 +++ src/pages/InRoadMgm/EquipmentOpe/index.jsx | 9 + .../EquipmentOpe/patrolStatistics/index.jsx | 6 + .../EquipmentOpe/patrolStatistics/index.scss | 228 ++ .../EquipmentOpe/patrolStatistics/loadable.jsx | 375 +++ .../PersonMgm/Performance/SalesStat/loadable.jsx | 2 +- .../DisabledCarParkRecordTotal/loadable.jsx | 54 +- .../RecordInquiry/ParkRecordTotal/loadable.jsx | 71 +- .../RecordInquiry/UnRecordOrder/loadable.jsx | 1 + src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx | 70 +- src/pages/InRoadMgm/RoadMgm/ParkList/loadable.jsx | 4 +- src/pages/InRoadMgm/RoadMgm/RoadConf/loadable.jsx | 34 +- .../InRoadMgm/RoadMgm/RoadDetail/loadable.jsx | 4 +- .../InRoadMgm/Stuff/CategroyConf/loadable.jsx | 16 +- src/pages/InRoadMgm/index.jsx | 2 + .../CustomerServieMgm/ErrorCorrection/loadable.jsx | 7 +- .../GeoSignalIgnoreAudit/loadable.jsx | 2 +- .../GeoSignalIgnoreConf/loadable.jsx | 2 + .../GeoSignalIgnoreInquiry/loadable.jsx | 2 +- .../Staggered/StaggeredMgm/loadable.jsx | 8 +- .../BusinessConfig/BusinessConf/loadable.jsx | 18 +- src/router/menu-bk.js | 43 +- src/router/menu.js | 2527 ++++++++++---------- src/router/router.config.js | 22 + src/services/InroadMgm/RoadMgm/RoadMgm.js | 14 +- src/services/search.js | 53 + 34 files changed, 4800 insertions(+), 1540 deletions(-) create mode 100644 src/pages/InRoadMgm/EquipmentOpe/berthStatus/index.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/berthStatus/index.scss create mode 100644 src/pages/InRoadMgm/EquipmentOpe/berthStatus/loadable.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/faultReport/index.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/faultReport/index.scss create mode 100644 src/pages/InRoadMgm/EquipmentOpe/faultReport/loadable.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/index.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/patrolStatistics/index.jsx create mode 100644 src/pages/InRoadMgm/EquipmentOpe/patrolStatistics/index.scss create mode 100644 src/pages/InRoadMgm/EquipmentOpe/patrolStatistics/loadable.jsx diff --git a/demon.json b/demon.json index ab3d620..cecd485 100644 --- a/demon.json +++ b/demon.json @@ -2,158 +2,1525 @@ "status": 20000, "message": "success", "data": { - "left":[ - { - "value": "45281456715296481", - "label": "122030" - }, - { - "value": "65221961866203115", - "label": "122032" - }, - { - "value": "83647253392876694", - "label": "122034" - }, - { - "value": "101154137600961442", - "label": "122036" - }, - { - "value": "120914115372859582", - "label": "122038" - }, - { - "value": "146272449267100615", - "label": "122040" - }, - { - "value": "165901383121572714", - "label": "122042" - }, - { - "value": "183328660619630770", - "label": "122044" - }, - { - "value": "201841698734977007", - "label": "122046" - }, - { - "value": "220696929006944800", - "label": "122048" - }, - { - "value": "239846287393037134", - "label": "122050" - }, - { - "value": "262425714027586166", - "label": "122052" - }, - { - "value": "279692691812267977", - "label": "122002" - }, - { - "value": "281725321315613070", - "label": "122054" - }, - { - "value": "298899875048576974", - "label": "122004" - }, - { - "value": "299509975240950515", - "label": "122056" - }, - { - "value": "315504016243878502", - "label": "122006" - }, - { - "value": "319574443916216258", - "label": "122058" - }, - { - "value": "332406949094366423", - "label": "122008" - }, - { - "value": "337438784651425661", - "label": "122060" - }, - { - "value": "350606492843366970", - "label": "122010" - }, - { - "value": "356769718153842693", - "label": "122062" - }, - { - "value": "367407665788852574", - "label": "122012" - }, - { - "value": "376252865933277426", - "label": "122064" - }, - { - "value": "385213002396321920", - "label": "122014" - }, - { - "value": "394729205493449142", - "label": "122066" - }, - { - "value": "401606564612314220", - "label": "122016" - }, - { - "value": "412513399547629919", - "label": "122068" - }, - { - "value": "418274481798628411", - "label": "122018" - }, - { - "value": "431483695535960691", - "label": "122070" - }, - { - "value": "439599410339209150", - "label": "122020" - }, - { - "value": "449348022212988260", - "label": "122072" - }, - { - "value": "456757439969944183", - "label": "122022" - }, - { - "value": "474604319418541337", - "label": "122074" - }, - { - "value": "474740879987019423", - "label": "122024" - }, - { - "value": "490787133472717559", - "label": "122026" - }, - { - "value": "507612820262760920", - "label": "122028" - } + "user_info": { + "user_uid": 1, + "id_card": "420103199901011234", + "role_id": 2, + "name": "角色1", + "department_name": "青岛公共事业集团", + "user_name": "ceshi", + "tel": "13512341234", + "auth": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90" + }, + "route": [ + "inRoadOverview", + "RecordInquiry", + "parkRecordTotal", + "", + "roadMgm", + "personMgm", + "stuffMgmDir", + "businessMgmDir", + "eqMgmDir", + "parkList", + "roadConf", + "arrearsInquiries", + "disabledCarParkRecordTotal", + "arrearsRecordTotal", + "entryExitOptPDA", + "geomagneticSignalMgm", + "payRecordQuery", + "preOrderRecord", + "unRecordOrder", + "personInfo", + "attendance", + "workerAttendance", + "fence", + "scheduleMgm", + "workerSchedule", + "audit", + "performance", + "workerStat", + "salesStat", + "collectorWorkStat", + "inspectorWorkStat", + "mesNotification", + "auditConf", + "auditCheck", + "stuffMgm", + "stuffStat", + "categroyConf", + "modelConf", + "specialRecord", + "blacklist", + "chargeRules", + "preChargeRules", + "selfParkingRules", + "freeRule", + "abnormalParking", + "exceptionParkReport", + "exceptionParkStat", + "equipmentStatus", + "berthStatus", + "faultReport", + "patrolStatistics", + "barMgm", + "nvrMgm", + "monitorEquipment", + "equipmentBrand", + "addRoad", + "roadDetail", + "configRoad", + "carInfo", + "carAuth", + "userInfo", + "userAuth", + "userTag", + "arrearsCar", + "callbackSuggestion", + "complaintMgm", + "errorCorrection", + "complainManage", + "complainWorkStat", + "complainStat", + "areaManage", + "orgnizationMgm", + "adminMgm", + "roleMgm", + "systemLog", + "confMes", + "businessConf", + "hotCbdConf", + "merchantInfo", + "invoiceConf", + "couponRules", + "activitySpecificTopic", + "couponDistribute", + "writeOffDetail", + "writeOffStat", + "adsMgm", + "yardDiscount", + "informationMgm", + "appPushMgm", + "generalBusiness", + "payRepeat", + "geoSignalIgnoreAudit", + "geoSignalIgnoreInquiry", + "geoSignalIgnoreConf", + "outRoadOverview", + "chargeRulesMgm", + "outSegment", + "zombieCarMgm", + "liftUpPoleRecord", + "zombieCarCleanRecord", + "outParkingRecordInquiry", + "outPayOrders", + "outDevice", + "outMonitorMgm", + "outNvrMgm", + "merchantAdmin", + "shortMessageMgm", + "functionMgm", + "appConfiguration", + "merchantConfiguration", + "platformConfiguration", + "payRecordTotal", + "startExceptionDeal", + "dealRecordAudit", + "dealRecordList", + "editOrderInquiry", + "parkingOrderInquiry", + "productOrderInquiry", + "refundOrderInquiry", + "createInvoice", + "createInvoiceRecord", + "parkingIncomeReport", + "operationReport", + "preOrderReport", + "paySummaryReport", + "payChannelStat", + "pdaStat", + "parkCardReport", + "bookReport", + "billDiff", + "abnormalPayment", + "parkingCardMgm", + "parkingCardOrder", + "parkingCardStat", + "StaggeredMgm", + "staggeredOrder", + "staggeredStat", + "parkingAlyOverview", + "parkingAlyReport", + "parkingAlyDuration", + "parkingAlyPeriod", + "temporaryParkStat", + "nightParkStat", + "parkingLivedata", + "parkUsageAly", + "parkTurnoverAly", + "carTypeAly", + "parkBerthAly", + "parkingAly", + "registerAly", + "payAly", + "equipmentRunningStat", + "arrearageAly", + "orderArrearageAly", + "cityArrearageAly", + "arrearageRecoverAly", + "cityIncomeStat", + "cityIncomeAly", + "priceAly", + "outParkingArrearsOrders", + // "parkingOverview" ], - "right":[ - "507612820262760920","490787133472717559","474740879987019423" - ] + "menus_new": { + "inRoad": [ + { + "path": "/inRoad/InRoadOverview", + "icon": "zongshujuliang", + "text": "概览", + "name": "inRoadOverview", + "id": 2, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "记录查询", + "name": "RecordInquiry", + "id": 3, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/ParkRecordTotal", + "icon": "", + "text": "停车记录查询", + "name": "parkRecordTotal", + "id": 4, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/ArrearsInquiries", + "icon": "", + "text": "欠费追缴查询", + "name": "arrearsInquiries", + "id": 13, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/DisabledCarParkRecordTotal", + "icon": "", + "text": "残疾车停车记录查询", + "name": "disabledCarParkRecordTotal", + "id": 14, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/ArrearsRecordTotal", + "icon": "", + "text": "停车欠费订单", + "name": "arrearsRecordTotal", + "id": 15, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/EntryExitOptPDA", + "icon": "", + "text": "PDA操作记录", + "name": "entryExitOptPDA", + "id": 16, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/GeomagneticSignalMgm", + "icon": "", + "text": "地磁信号记录", + "name": "geomagneticSignalMgm", + "id": 17, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/PayRecordQuery", + "icon": "", + "text": "停车支付订单", + "name": "payRecordQuery", + "id": 18, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/PreOrderRecord", + "icon": "", + "text": "停车预付订单", + "name": "preOrderRecord", + "id": 19, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/UnRecordOrder", + "icon": "", + "text": "未登记订单查询", + "name": "unRecordOrder", + "id": 20, + "pid": 3, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "路段管理", + "name": "roadMgm", + "id": 6, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/ParkList", + "icon": "", + "text": "泊位列表", + "name": "parkList", + "id": 11, + "pid": 6, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/RoadConf", + "icon": "", + "text": "路段配置", + "name": "roadConf", + "id": 12, + "pid": 6, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "xinxijiansuo", + "text": "人员管理", + "name": "personMgm", + "id": 7, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/personInfo", + "icon": "", + "text": "人员信息", + "name": "personInfo", + "id": 21, + "pid": 7, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "", + "icon": "", + "text": "排班考勤", + "name": "attendance", + "id": 22, + "pid": 7, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/workerAttendance", + "icon": "", + "text": "人员考勤", + "name": "workerAttendance", + "id": 23, + "pid": 22, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/fence", + "icon": "", + "text": "电子围栏", + "name": "fence", + "id": 24, + "pid": 22, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/scheduleMgm", + "icon": "", + "text": "排班管理", + "name": "scheduleMgm", + "id": 25, + "pid": 22, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/workerSchedule", + "icon": "", + "text": "人员排班", + "name": "workerSchedule", + "id": 26, + "pid": 22, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "", + "text": "稽查管理", + "name": "audit", + "id": 27, + "pid": 7, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/auditConf", + "icon": "", + "text": "稽查配置", + "name": "auditConf", + "id": 34, + "pid": 27, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/auditCheck", + "icon": "", + "text": "稽查审核", + "name": "auditCheck", + "id": 35, + "pid": 27, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "", + "text": "绩效考核", + "name": "performance", + "id": 28, + "pid": 7, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/workerStat", + "icon": "", + "text": "收费员工统计", + "name": "workerStat", + "id": 29, + "pid": 28, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/salesStat", + "icon": "", + "text": "营收统计", + "name": "salesStat", + "id": 30, + "pid": 28, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/collectorWorkStat", + "icon": "", + "text": "稽查员工统计", + "name": "collectorWorkStat", + "id": 31, + "pid": 28, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/inspectorWorkStat", + "icon": "", + "text": "被稽查员工统计", + "name": "inspectorWorkStat", + "id": 32, + "pid": 28, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "/inRoad/mesNotification", + "icon": "", + "text": "消息通知", + "name": "mesNotification", + "id": 33, + "pid": 7, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "物品管理", + "name": "stuffMgmDir", + "id": 8, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/stuffMgm", + "icon": "", + "text": "物品管理", + "name": "stuffMgm", + "id": 36, + "pid": 8, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/stuffStat", + "icon": "", + "text": "物品统计", + "name": "stuffStat", + "id": 37, + "pid": 8, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/categroyConf", + "icon": "", + "text": "类型配置", + "name": "categroyConf", + "id": 38, + "pid": 8, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/modelConf", + "icon": "", + "text": "型号配置", + "name": "modelConf", + "id": 39, + "pid": 8, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "业务管理", + "name": "businessMgmDir", + "id": 9, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/specialRecord", + "icon": "", + "text": "白名单管理", + "name": "specialRecord", + "id": 40, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/blacklist", + "icon": "", + "text": "黑名单管理", + "name": "blacklist", + "id": 41, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/chargeRules", + "icon": "", + "text": "计费规则", + "name": "chargeRules", + "id": 42, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/preChargeRules", + "icon": "", + "text": "预付费规则", + "name": "preChargeRules", + "id": 43, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/selfParkingRules", + "icon": "", + "text": "自主停车规则", + "name": "selfParkingRules", + "id": 44, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/freeRule", + "icon": "", + "text": "免费规则", + "name": "freeRule", + "id": 45, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "", + "icon": "", + "text": "异常停车", + "name": "abnormalParking", + "id": 46, + "pid": 9, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/exceptionParkReport", + "icon": "", + "text": "上报记录查询", + "name": "exceptionParkReport", + "id": 47, + "pid": 46, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/exceptionParkStat", + "icon": "", + "text": "异常停车统计", + "name": "exceptionParkStat", + "id": 48, + "pid": 46, + "project_name": "inRoad", + "is_menu": 1 + } + ] + } + ] + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "设备管理", + "name": "eqMgmDir", + "id": 10, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [ + { + "path": "/inRoad/equipmentStatus", + "icon": "", + "text": "设备状态", + "name": "equipmentStatus", + "id": 49, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/barMgm", + "icon": "", + "text": "杆位管理", + "name": "barMgm", + "id": 50, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/nvrMgm", + "icon": "", + "text": "NVR管理", + "name": "nvrMgm", + "id": 51, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/monitorEquipment", + "icon": "", + "text": "监控设备", + "name": "monitorEquipment", + "id": 52, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/equipmentBrand", + "icon": "", + "text": "设备品牌", + "name": "equipmentBrand", + "id": 53, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + } + ] + }, + { + "path": "", + "icon": "zongshujuliang", + "text": "设备运维", + "name": "eqManage", + "id": 10, + "pid": 1, + "project_name": "inRoad", + "is_menu": 1, + "children": [{ + "path": "/inRoad/berthStatus", + "icon": "", + "text": "泊位运营状态", + "name": "berthStatus", + "id": 49, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/faultReport", + "icon": "", + "text": "故障上报记录", + "name": "faultReport", + "id": 50, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + }, + { + "path": "/inRoad/patrolStatistics", + "icon": "", + "text": "巡检预警统计", + "name": "patrolStatistics", + "id": 51, + "pid": 10, + "project_name": "inRoad", + "is_menu": 1 + } + ] + } + ], + "operationCenter": [ + { + "text": "车辆管理", + "name": "carMgmDir", + "icon": "zongshujuliang", + "children": [ + { + "text": "车辆信息", + "name": "carInfo", + "path": "/operationCenter/carInfo" + }, + { + "text": "车辆认证", + "name": "carAuth", + "path": "/operationCenter/carAuth" + } + ] + }, + { + "text": "用户管理", + "name": "userMgmDir", + "icon": "zongshujuliang", + "children": [ + { + "text": "用户信息", + "name": "userInfo", + "path": "/operationCenter/userInfo" + }, + { + "path": "/operationCenter/userAuth", + "text": "用户认证", + "name": "userAuth" + }, + { + "path": "/operationCenter/userTag", + "text": "用户标签", + "name": "userTag" + } + ] + }, + { + "text": "欠费追缴", + "name": "arrearsRecover", + "icon": "zongshujuliang", + "children": [ + { + "text": "欠费车辆", + "name": "arrearsCar", + "path": "/operationCenter/arrearsCar" + } + ] + }, + { + "text": "运营营销", + "name": "operationSales", + "icon": "zongshujuliang", + "children": [ + { + "text": "优惠券管理", + "name": "couponMgm", + "icon": "", + "children": [ + { + "text": "优惠券规则", + "name": "couponRules", + "path": "/operationCenter/couponRules" + }, + { + "text": "活动专题", + "name": "activitySpecificTopic", + "path": "/operationCenter/activitySpecificTopic" + }, + { + "text": "手动派发", + "name": "couponDistribute", + "path": "/operationCenter/couponDistribute" + }, + { + "text": "核销明细", + "name": "writeOffDetail", + "path": "/operationCenter/writeOffDetail" + }, + { + "text": "核销统计", + "name": "writeOffStat", + "path": "/operationCenter/writeOffStat" + } + ] + }, + { + "text": "车场折扣", + "name": "yardDiscount", + "path": "/operationCenter/yardDiscount" + }, + { + "text": "广告管理", + "name": "adsMgm", + "path": "/operationCenter/adsMgm" + }, + { + "text": "资讯管理", + "name": "informationMgm", + "path": "/operationCenter/informationMgm" + }, + { + "text": "推送管理", + "name": "appPushMgm", + "path": "/operationCenter/appPushMgm" + }, + { + "text": "短信管理", + "name": "shortMessageMgm", + "path": "/operationCenter/shortMessageMgm" + } + ] + }, + { + "text": "增值业务", + "icon": "zongshujuliang", + "children": [ + { + "text": "停车卡", + "icon": "", + "children": [ + { + "path": "/operationCenter/parkingCardMgm", + "text": "停车卡管理", + "name": "parkingCardMgm" + }, + { + "path": "/operationCenter/parkingCardOrder", + "text": "停车卡订单", + "name": "parkingCardOrder" + }, + { + "path": "/operationCenter/parkingCardStat", + "text": "停车卡统计", + "name": "parkingCardStat" + } + ] + }, + { + "text": "错峰停车", + "icon": "", + "children": [ + { + "path": "/operationCenter/StaggeredMgm", + "text": "错峰管理", + "name": "StaggeredMgm" + }, + { + "path": "/operationCenter/staggeredOrder", + "text": "错峰订单", + "name": "staggeredOrder" + }, + { + "path": "/operationCenter/staggeredStat", + "text": "错峰统计", + "name": "staggeredStat" + } + ] + } + ] + }, + { + "text": "客服管理", + "name": "customerServieMgm", + "icon": "zongshujuliang", + "children": [ + { + "text": "反馈建议", + "name": "callbackSuggestion", + "path": "/operationCenter/callbackSuggestion" + }, + { + "text": "申诉管理", + "name": "complaintMgm", + "path": "/operationCenter/complaintMgm" + }, + { + "text": "车场纠错", + "name": "errorCorrection", + "path": "/operationCenter/errorCorrection" + }, + { + "text": "客诉工单", + "name": "complainManage", + "path": "/operationCenter/complainManage" + }, + { + "text": "客诉统计", + "name": "complainStat", + "path": "/operationCenter/complainStat" + }, + { + "text": "工作统计", + "name": "complainWorkStat", + "path": "/operationCenter/complainWorkStat" + } + ] + }, + { + "text": "地磁信号忽略", + "name": "geoSignalIgnore", + "icon": "zongshujuliang", + "children": [ + { + "text": "地磁信号忽略审核", + "name": "geoSignalIgnoreAudit", + "path": "/operationCenter/geoSignalIgnoreAudit" + }, + { + "text": "地磁信号忽略查询", + "name": "geoSignalIgnoreInquiry", + "path": "/operationCenter/geoSignalIgnoreInquiry" + }, + { + "text": "地磁信号忽略配置", + "name": "geoSignalIgnoreConf", + "path": "/operationCenter/geoSignalIgnoreConf" + } + ] + } + ], + "systemMgm": [ + { + "text": "区域管理", + "name": "areaManage", + "icon": "zongshujuliang", + "path": "/systemMgm/areaManage" + }, + { + "text": "组织架构", + "name": "orgnizationMgm", + "icon": "zongshujuliang", + "path": "/systemMgm/orgnizationMgm" + }, + { + "text": "管理员管理", + "name": "adminMgm", + "icon": "zongshujuliang", + "path": "/systemMgm/adminMgm" + }, + { + "text": "角色管理", + "name": "roleMgm", + "icon": "zongshujuliang", + "path": "/systemMgm/roleMgm" + }, + { + "text": "系统日志", + "name": "systemLog", + "icon": "zongshujuliang", + "path": "/systemMgm/systemLog" + }, + { + "text": "消息管理", + "name": "messageMgm", + "icon": "zongshujuliang", + "children": [ + { + "text": "业务配置", + "name": "confMes", + "icon": "", + "path": "/systemMgm/confMes" + } + ] + }, + { + "text": "业务配置", + "name": "businessConfig", + "icon": "zongshujuliang", + "children": [ + { + "text": "业务配置", + "name": "businessConf", + "icon": "", + "path": "/systemMgm/businessConf" + }, + { + "text": "热门商圈配置", + "name": "hotCbdConf", + "icon": "", + "path": "/systemMgm/hotCbdConf" + } + ] + } + ], + "merchantMgm": [ + { + "text": "商户信息", + "name": "merchantInfo", + "icon": "zongshujuliang", + "path": "/merchantMgm/merchantInfo" + }, + { + "text": "发票配置", + "name": "invoiceConf", + "icon": "zongshujuliang", + "path": "/merchantMgm/invoiceConf" + }, + { + "text": "商户管理员", + "name": "merchantAdmin", + "icon": "zongshujuliang", + "path": "/merchantMgm/merchantAdmin" + }, + { + "text": "功能信息", + "name": "functionMgm", + "icon": "zongshujuliang", + "path": "/merchantMgm/functionMgm" + } + ], + "financialMgm": [ + { + "text": "异常处理", + "icon": "zongshujuliang", + "children": [ + { + "text": "发起异常处理", + "name": "startExceptionDeal", + "icon": "", + "path": "/financialMgm/startExceptionDeal" + }, + { + "text": "处理记录审核", + "name": "dealRecordAudit", + "icon": "", + "path": "/financialMgm/dealRecordAudit" + }, + { + "text": "处理记录列表", + "name": "dealRecordList", + "icon": "", + "path": "/financialMgm/dealRecordList" + } + ] + }, + { + "text": "订单查询", + "icon": "zongshujuliang", + "children": [ + { + "text": "订单修改查询", + "name": "editOrderInquiry", + "icon": "", + "path": "/financialMgm/editOrderInquiry" + }, + { + "text": "停车订单查询", + "name": "parkingOrderInquiry", + "icon": "", + "path": "/financialMgm/parkingOrderInquiry" + }, + { + "text": "商品订单查询", + "name": "productOrderInquiry", + "icon": "", + "path": "/financialMgm/productOrderInquiry" + }, + { + "text": "退款订单查询", + "name": "refundOrderInquiry", + "icon": "", + "path": "/financialMgm/refundOrderInquiry" + } + ] + }, + { + "text": "交易流水", + "name": "payRecordTotal", + "icon": "zongshujuliang", + "path": "/financialMgm/payRecordTotal" + }, + { + "text": "电子发票", + "icon": "zongshujuliang", + "children": [ + { + "text": "发票记录", + "name": "createInvoiceRecord", + "icon": "", + "path": "/financialMgm/createInvoiceRecord" + }, + { + "text": "开具发票", + "name": "createInvoice", + "icon": "", + "path": "/financialMgm/createInvoice" + } + ] + }, + { + "text": "财务报表", + "icon": "zongshujuliang", + "children": [ + { + "text": "停车收入报表", + "name": "parkingIncomeReport", + "icon": "", + "path": "/financialMgm/parkingIncomeReport" + }, + { + "text": "运营报表", + "name": "operationReport", + "icon": "", + "path": "/financialMgm/operationReport" + }, + { + "text": "预付报表", + "name": "preOrderReport", + "icon": "", + "path": "/financialMgm/preOrderReport" + }, + { + "text": "停车卡报表", + "name": "parkCardReport", + "icon": "", + "path": "/financialMgm/parkCardReport" + }, + { + "text": "预约报表", + "name": "bookReport", + "icon": "", + "path": "/financialMgm/bookReport" + }, + { + "text": "总收入报表", + "name": "paySummaryReport", + "icon": "", + "path": "/financialMgm/paySummaryReport" + }, + { + "text": "渠道统计", + "name": "payChannelStat", + "icon": "", + "path": "/financialMgm/payChannelStat" + }, + { + "text": "PDA统计", + "name": "pdaStat", + "icon": "", + "path": "/financialMgm/pdaStat" + } + ] + }, + { + "text": "清分结算", + "icon": "zongshujuliang", + "children": [ + { + "text": "渠道对账", + "name": "generalBusiness", + "icon": "", + "path": "/financialMgm/generalBusiness" + }, + { + "text": "差账处理", + "name": "billDiff", + "icon": "", + "path": "/financialMgm/billDiff" + }, + { + "text": "重复支付", + "name": "payRepeat", + "icon": "", + "path": "/financialMgm/payRepeat" + }, + { + "text": "异常支付", + "name": "abnormalPayment", + "icon": "", + "path": "/financialMgm/abnormalPayment" + } + ] + }, + { + "text": "支付配置", + "icon": "zongshujuliang", + "children": [ + { + "text": "应用配置", + "name": "appConfiguration", + "icon": "", + "path": "/financialMgm/appConfiguration" + }, + { + "text": "支付商户配置", + "name": "merchantConfiguration", + "icon": "", + "path": "/financialMgm/merchantConfiguration" + }, + { + "text": "平台商户配置", + "name": "platformConfiguration", + "icon": "", + "path": "/financialMgm/platformConfiguration" + } + ] + } + ], + "outRoad": [ + { + "text": "概览", + "name": "outRoadOverview", + "icon": "zongshujuliang", + "path": "/outRoad/outRoadOverview" + }, + { + "text": "路段管理", + "name": "outRoadMgm", + "icon": "zongshujuliang", + "children": [ + { + "text": "计费规则管理", + "name": "chargeRulesMgm", + "icon": "", + "path": "/outRoad/chargeRulesMgm" + }, + { + "text": "路段管理", + "name": "outSegment", + "icon": "", + "path": "/outRoad/outSegment" + }, + { + "text": "僵尸车管理", + "name": "zombieCarMgm", + "icon": "", + "path": "/outRoad/zombieCarMgm" + } + ] + }, + { + "text": "异常管理", + "name": "outExceptionMgm", + "icon": "zongshujuliang", + "children": [ + { + "text": "抬杆记录", + "name": "liftUpPoleRecord", + "icon": "", + "path": "/outRoad/liftUpPoleRecord" + }, + { + "text": "僵尸车清理记录", + "name": "zombieCarCleanRecord", + "icon": "", + "path": "/outRoad/zombieCarCleanRecord" + } + ] + }, + { + "text": "业务记录", + "name": "outBusinessRecord", + "icon": "zongshujuliang", + "children": [ + { + "text": "停车记录查询", + "name": "outParkingRecordInquiry", + "icon": "", + "path": "/outRoad/outParkingRecordInquiry" + }, + { + "text": "停车支付订单", + "name": "outPayOrders", + "icon": "", + "path": "/outRoad/outPayOrders" + }, + { + "text": "停车欠费订单", + "name": "outParkingArrearsOrders", + "icon": "", + "path": "/outRoad/outParkingArrearsOrders" + } + ] + }, + { + "text": "设备管理", + "name": "outDeviceMgm", + "icon": "zongshujuliang", + "children": [ + { + "text": "路外设备管理", + "name": "outDevice", + "icon": "", + "path": "/outRoad/outDevice" + }, + { + "text": "视频监控设备管理", + "name": "outMonitorMgm", + "icon": "", + "path": "/outRoad/outMonitorMgm" + }, + { + "text": "NVR管理", + "name": "outNvrMgm", + "icon": "", + "path": "/outRoad/outNvrMgm" + } + ] + } + ], + "dataAlyPrediction": [ + // { + // "text": "停车业务概览", + // "name": "parkingOverview", + // "icon": "", + // "path": "/dataAlyPrediction/parkingOverview" + // }, + { + "text": "停车业务分析", + "name": "parkingBusinessAly", + "icon": "zongshujuliang", + "children": [ + { + "text": "停车总分析", + "name": "parkingAlyOverview", + "icon": "", + "path": "/dataAlyPrediction/parkingAlyOverview" + }, + { + "text": "停车分析报表", + "name": "parkingAlyReport", + "icon": "", + "path": "/dataAlyPrediction/parkingAlyReport" + }, + { + "text": "停车时长分析", + "name": "parkingAlyDuration", + "icon": "", + "path": "/dataAlyPrediction/parkingAlyDuration" + }, + { + "text": "停车时段分析", + "name": "parkingAlyPeriod", + "icon": "", + "path": "/dataAlyPrediction/parkingAlyPeriod" + }, + { + "text": "临时停车统计", + "name": "temporaryParkStat", + "icon": "", + "path": "/dataAlyPrediction/temporaryParkStat" + }, + { + "text": "夜间停车统计", + "name": "nightParkStat", + "icon": "", + "path": "/dataAlyPrediction/nightParkStat" + }, + { + "text": "停车实况数据", + "name": "parkingLivedata", + "icon": "", + "path": "/dataAlyPrediction/parkingLivedata" + }, + { + "text": "泊位利用分析", + "name": "parkUsageAly", + "icon": "", + "path": "/dataAlyPrediction/parkUsageAly" + }, + { + "text": "泊位周转分析", + "name": "parkTurnoverAly", + "icon": "", + "path": "/dataAlyPrediction/parkTurnoverAly" + }, + { + "text": "车辆类型分析", + "name": "carTypeAly", + "icon": "", + "path": "/dataAlyPrediction/carTypeAly" + }, + { + "text": "停车泊位分析", + "name": "parkBerthAly", + "icon": "", + "path": "/dataAlyPrediction/parkBerthAly" + } + ] + }, + { + "text": "停车营收分析", + "name": "parkingIncomeAly", + "icon": "zongshujuliang", + "children": [ + { + "text": "欠费总分析", + "name": "arrearageAly", + "icon": "", + "path": "/dataAlyPrediction/arrearageAly" + }, + { + "text": "订单欠费分析", + "name": "orderArrearageAly", + "icon": "", + "path": "/dataAlyPrediction/orderArrearageAly" + }, + { + "text": "城市欠费分析", + "name": "cityArrearageAly", + "icon": "", + "path": "/dataAlyPrediction/cityArrearageAly" + }, + { + "text": "欠费追缴分析", + "name": "arrearageRecoverAly", + "icon": "", + "path": "/dataAlyPrediction/arrearageRecoverAly" + }, + { + "text": "城市收入统计", + "name": "cityIncomeStat", + "icon": "", + "path": "/dataAlyPrediction/cityIncomeStat" + }, + { + "text": "城市收入分析", + "name": "cityIncomeAly", + "icon": "", + "path": "/dataAlyPrediction/cityIncomeAly" + }, + { + "text": "客单价分析", + "name": "priceAly", + "icon": "", + "path": "/dataAlyPrediction/priceAly" + } + ] + }, + { + "text": "会员统计", + "name": "memberStat", + "icon": "zongshujuliang", + "children": [ + { + "text": "停车分析", + "name": "parkingAly", + "icon": "", + "path": "/dataAlyPrediction/parkingAly" + }, + { + "text": "注册分析", + "name": "registerAly", + "icon": "", + "path": "/dataAlyPrediction/registerAly" + }, + { + "text": "支付分析", + "name": "payAly", + "icon": "", + "path": "/dataAlyPrediction/payAly" + } + ] + }, + { + "text": "设备分析", + "name": "equipmentAly", + "icon": "zongshujuliang", + "children": [ + { + "text": "设备运行统计", + "name": "equipmentRunningStat", + "icon": "", + "path": "/dataAlyPrediction/equipmentRunningStat" + } + ] + } + ] + } } } \ No newline at end of file diff --git a/src/assets/fonts/font_pda/demo_index.html b/src/assets/fonts/font_pda/demo_index.html index b1e1350..004de24 100644 --- a/src/assets/fonts/font_pda/demo_index.html +++ b/src/assets/fonts/font_pda/demo_index.html @@ -313,7 +313,11 @@
设备管理

- +
  • + +
    设备运维
    +
    
    +
  • 全屏
    @@ -819,7 +823,14 @@
    .icon-shebeiguanli
  • - +
  • + +
    + 设备运维 +
    +
    .icon-shebeiguanli +
    +
  • @@ -1298,7 +1309,13 @@
    设备管理
    #icon-shebeiguanli
  • - +
  • + +
    设备运维
    +
    #icon-shebeiyunwei
    +
  • +
    + +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    +
    +
    +
    + 共检索到{resultData.total_records}条结果 + + + `共 ${resultData.total_records} 条`} + total={resultData.total_records} + current={lastFormData.pn} + pageSize={lastFormData.page_size} + pageSizeOptions={pageSizeOptions} + onChange={changePn} + onShowSizeChange={changeLength} + /> + + + + + + +} + +export default berthStatus; \ No newline at end of file diff --git a/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.jsx b/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.jsx new file mode 100644 index 0000000..0618f7b --- /dev/null +++ b/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.jsx @@ -0,0 +1,6 @@ +import React from "react" +import loadable from "@loadable/component" +import { LoadingImg } from "@/components" + +const FaultReportLoadable = loadable(() => import("./loadable")) +export default (pros) => } /> \ No newline at end of file diff --git a/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.scss b/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.scss new file mode 100644 index 0000000..9a1a3f0 --- /dev/null +++ b/src/pages/InRoadMgm/EquipmentOpe/faultReport/index.scss @@ -0,0 +1,197 @@ +@import "@/assets/css/mixin.scss"; +$color-container-bg : var(--color-container-bg); +$color-user-list-bg : var(--color-user-list-bg); +$color-text : var(--color-text); +$color-primary : var(--color-primary); + + +.colorBtn { + width: 90px; + height: 36px; + background: linear-gradient(180deg, #3aa9ff, #59b7ff) !important; + border-radius: 4px; + &:hover { + color: var(--color-text); + border-color: transparent; + // background: var(--button-default-bg-hover); + width: 90px; + height: 36px; + background: linear-gradient(180deg, #3aa9ff, #59b7ff); + border-radius: 4px; + } +} +.colorReset { + width: 90px; + height: 36px; + border-radius: 4px; + border: none; + background: #636d80 !important; + &:hover { + color: var(--color-text); + border-color: transparent; + // background: var(--button-default-bg-hover); + width: 90px; + height: 36px; + background: #636d80; + border: none; + border-radius: 4px; + } +} +.paid-faultReport{ + display: flex; + padding: 15px; + width: 100%; + .paid-search{ + .search{ + font-size: 16px; + font-family: Microsoft YaHei, Microsoft YaHei-Bold; + font-weight: 700; + text-align: left; + color: #eeeff1; + } + label{ + margin:0 10px; + } + .yisa-search{ + margin-top: 10px; + display: flex; + label{ + line-height: 31px; + } + } + .ant-select:not(.ant-select-customize-input) .ant-select-selector{ + background-color: #50586c !important; + } + .ant-select-arrow .anticon{ + background-color: #50586c !important; + } + .ant-input:placeholder-shown{ + background-color: #50586c !important; + } + .timePicker{ + width: 350px; + margin-top: 22px; + .btnBox{ + display:flex ; + margin-top: 20px; + .yisa-btn{ + margin-left: 20px; + width: 130px; + } + .root_gfkk{ + margin-left: 20px; + .export-content{ + width: 130px; + height: 33px; + display: flex; + align-items: center; + justify-content: center; + background: #3b97ff; + border-radius: 3px; + cursor: pointer; + color: #fff; + margin-right: 10px; + } + } + + } + } + } + .paid-result{ + width: 100%; + height: 800px; + background: #505a6f; + border-radius: 20px; + margin-left: 17px; + .result{ + padding: 25px; + .font{ + font-family: Microsoft YaHei, Microsoft YaHei-Regular; + font-weight: 400; + text-align: left; + color: #eeeff1; + margin-bottom: 10px; + display: inline-block; + + em{ + color: #3aa8fe; + margin: 0 5px; + } + } + .yisa-table .ant-table-thead .ant-table-cell{ + background-color: #616b83 !important; + color: #ffffff !important; + font-size: 14px; + font-family: Microsoft YaHei, Microsoft YaHei-Bold; + font-weight: 700; + text-align: center; + border-right: none !important; + border-top-color: #888f9d !important; + border-color: #888f9d !important; + } + .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table, .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{ + border-top: none !important; + border-left: none !important; + } + .ant-table-tbody .ant-table-row .ant-table-cell{ + background-color: #3e4557 !important; + color: #ffffff !important; + text-align: center; + font-size: 14px; + font-family: Microsoft YaHei, Microsoft YaHei-Regular; + font-weight: 400; + border-right: none !important; + border-left: none !important; + border-bottom-color: #626b7e !important; + } + } + + } + +} +.revenue{ + .tab-title{ + text-align: center; + font-size: 18px; + font-weight: 400; + font-family: Microsoft YaHei, Microsoft YaHei-Regular; + } + width: 700px !important; + .tab-index{ + .tab-top{ + display: flex; + margin-top: 10px; + height: 30px; + line-height: 30px; + white-space: nowrap; + overflow: hidden; + border-bottom: 1px solid #e4e7ed; + .tab-li{ + margin-left: 20px; + cursor: pointer; + } + .active{ + color:#409eff ; + cursor: pointer; + margin-left: 20px; + border-bottom: 1px solid #409eff !important; + margin-bottom: -1px !important; + } + } + .tab-bottom{ + .yisa-tab{ + .ant-table-cell{ + background-color: #616b83 !important; + color: #ffffff !important; + font-size: 14px; + font-family: Microsoft YaHei, Microsoft YaHei-Bold; + font-weight: 700; + text-align: center; + border-right: none !important; + border-left: none !important; + border-bottom-color: #868d9d !important; + } + } + } + } +} diff --git a/src/pages/InRoadMgm/EquipmentOpe/faultReport/loadable.jsx b/src/pages/InRoadMgm/EquipmentOpe/faultReport/loadable.jsx new file mode 100644 index 0000000..104b11e --- /dev/null +++ b/src/pages/InRoadMgm/EquipmentOpe/faultReport/loadable.jsx @@ -0,0 +1,329 @@ +import React, { useState, useRef, useEffect } from "react"; +import { ResultFlowResult, FormSliderPicker } from "@/components" +import { Select, Button, Input, Table, message, Pagination } from 'antd' +import { + pageSizeOptions +} from '@/config/character.config.js' +import "./index.scss"; +import moment from "moment"; +import { SearchOutlined, DeleteOutlined } from '@ant-design/icons'; +import ajax from '@/services' +import { useSessionStorageState } from "ahooks" +const { TextArea } = Input; +function faultReport(props) { + const [ajaxLoading, setAjaxLoading] = useState(false) + const [resultData, setResultData] = useState({ + data: [], + total_records: 0, + export_url: '', + process_url: "" + }) + const parameter = { + road_name: '', + reason: '', + name: '', + operate_name: '0', + park_name: '', + start: moment().format('YYYY-MM-DD 00:00:00'), + end: moment().format("YYYY-MM-DD 23:59:59"), + pn: 1, + page_size: Number(pageSizeOptions[0]), // 每页条数 + } + const [formData, setFormData] = useState(parameter) + const lastFormDataRef = useRef(formData) + const [lastFormData, setLastFormData] = useState(formData) + //物品型号 + const handleRoadName = (v) => { + setFormData({ ...formData, road_name: v.target.value }) + } + //上报人 + const handleName = (v) => { + setFormData({ ...formData, name: v.target.value }) + } + //故障原因 + const handleReason = (v) => { + setFormData({ ...formData, reason: v.target.value }) + } + //商户名称 + const handleDeployType = (value) => { + setFormData({ ...formData, operate_name: value }) + } + //停车场名称 + const handleParkname = (v) => { + setFormData({ ...formData, park_name: v.target.value }) + } + const onHandleDateChange = (v) => { + setFormData({ + ...formData, + start: v.startDateTime, + end: v.endDateTime + }) + } + //导出 + const getExportData = () => { + let data = { + ...formData + } + ajax.getFaultReportExport(data).then(res => { + window.open(res.export_url) + }) + } + //列表 + const handleColumns = (tab) => { + let result = [...deployListColumns]; + switch (tab) { + case '1': + result.splice(5, 1) + break; + + } + return result; + } + //重置数据 + const getResetData = () => { + setFormData({ + ...parameter + }) + getData({ ...parameter }) + } + //列表 + const deployListColumns = [ + { + title: '序号', + render: (text, record, index) => index + 1, + }, + { + title: '商户名称', + dataIndex: 'operator_name', + key: 'operator_name', + }, + { + title: '所属路段', + dataIndex: 'road_name', + key: 'road_name', + }, + { + title: '停车场名称', + dataIndex: 'park_name', + key: 'park_name', + }, + { + title: '设备类型', + dataIndex: 'fault_type_name', + key: 'fault_type_name', + }, + { + title: '上报人', + dataIndex: 'name', + key: 'name', + }, + { + title: '故障原因', + dataIndex: 'reason', + key: 'reason', + }, + { + title: '上报时间', + dataIndex: 'create_time', + key: 'create_time', + }] + + // 获取列表数据 + const getData = (data = formData) => { + setAjaxLoading(true) + ajax.getShowFaultReport(data).then(res => { + setAjaxLoading(false) + if (res.status === 20000) { + let resDataArr = res.data.list.map((item) => { + item.key = item.id + return item + }) + setResultData({ + ...resultData, + data: resDataArr, + total_records: res.data.total_records + }) + } else { + setResultData({ + data: [], + total_records: 0, + export_url: '', + process_url: "" + }) + message.error(res.message) + } + }, err => { + console.log(err) + }) + } + //切换分页 + const changePn = (pn, length) => { + if (formData.page_size === length) { + setFormData(Object.assign({}, formData, { pn: pn, page_size: length })) + setLastFormData(Object.assign({}, lastFormData, { pn: pn, page_size: length })) + lastFormDataRef.current = Object.assign({}, lastFormData, { pn: pn, page_size: length }) + getData(Object.assign({}, formData, { pn: pn, page_size: length })) + } + } + //切换每页条数 + const changeLength = (pn, length) => { + setFormData(Object.assign({}, formData, { pn: 1, page_size: length })) + setLastFormData(Object.assign({}, lastFormData, { pn: 1, page_size: length })) + lastFormDataRef.current = Object.assign({}, lastFormData, { pn: pn, page_size: length }) + getData(Object.assign({}, formData, { pn: 1, page_size: length })) + } + //检索数据 + const getSearchData = (data = formData) => { + getData(data) + } + + const [getMerchantDataName, setGetMerchantDataName] = useState([]) + const merchantDataName = () => { + ajax.getOperator().then(res => { + setGetMerchantDataName(res.data) + }) + } + + + + const [sessionTabList, setSessionTabList] = useSessionStorageState('faultReport', { + value: { + } + }) + useEffect(() => { + console.log(location) + if (sessionTabList && Object.values(sessionTabList).length > 0) { + setFormData({ + road_name: sessionTabList?.road_name, + operate_name: sessionTabList?.operate_name, + park_name: sessionTabList?.park_name, + reason: sessionTabList?.reason, + name: sessionTabList?.name, + pn: sessionTabList?.pn, + page_size: sessionTabList?.page_size, + }) + } + }, []) + console.log(formData); + useEffect(() => { + setSessionTabList({ + ...formData + }) + }, [formData]) + useEffect(() => { + getData() + merchantDataName() + }, []) + return <> +
    +
    + +
    + + +
    +
    + + +
    +
    + + +
    +
    + +