@vtx/modals2 6.0.0-beta.3 → 6.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +205 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-bar-charts/index.js +4 -4
- package/lib/_components/vm-calendar/index.js +1 -1
- package/lib/_components/vm-empty/index.js +1 -1
- package/lib/_components/vm-factor/index.js +1 -1
- package/lib/_components/vm-filter/index.js +1 -1
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +1 -1
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-map/index.js +1 -1
- package/lib/_components/vm-progress/index.js +1 -1
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +1 -1
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +1 -1
- package/lib/_components/vm-repair-maintain/RmRecord.js +1 -1
- package/lib/_components/vm-repair-maintain/RmType.js +1 -1
- package/lib/_components/vm-repair-maintain/index.js +35 -3
- package/lib/_components/vm-table/index.js +1 -1
- package/lib/_components/vm-tag/index.js +1 -1
- package/lib/_components/vm-title/index.js +1 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +100 -38
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_hooks/useUmsService.js +36 -0
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +31 -4
- package/lib/_util/iconSvgHtml.js +15 -5
- package/lib/_util/index.js +1 -1
- package/lib/locales/en.json +1517 -1516
- package/lib/locales/zh-CN.json +1517 -1516
- package/lib/vtx-area-modal/api.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-area-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-base-modal/Header/index.js +2 -77
- package/lib/vtx-base-modal/Header/index.less +1 -0
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +1 -1
- package/lib/vtx-base-modal/style/index.less +4 -1
- package/lib/vtx-car-modal/api.js +322 -208
- package/lib/vtx-car-modal/components/Info/index.js +2 -2
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +20 -8
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +18 -6
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -169
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +10 -5
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +2 -2
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +17 -17
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +3 -2
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +10 -9
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +12 -12
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +6 -5
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +9 -7
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +7 -4
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +2 -2
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +1 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +1 -1
- package/lib/vtx-car-modal/index.js +33 -22
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cc-cp-modal/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +1 -1
- package/lib/vtx-cc-unit-modal/index.js +1 -1
- package/lib/vtx-cp-modal/api.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +3 -6
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +8 -2
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +9 -5
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +1 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +1 -1
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +3 -3
- package/lib/vtx-cp-modal/components/SyInfo/index.js +1 -1
- package/lib/vtx-cp-modal/index.js +13 -13
- package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-default-modal/index.js +8 -7
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
- package/lib/vtx-device-modal/index.js +4 -4
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +3 -3
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +12 -6
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +3 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/Calendar/index.js +10 -3
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +10 -3
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/Metering/List.js +1 -1
- package/lib/vtx-df-modal/components/Metering/index.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +1 -1
- package/lib/vtx-df-modal/index.js +20 -25
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +1 -1
- package/lib/vtx-housing-estate-modal/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-df-tpd-modal/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/index.js +1 -1
- package/lib/vtx-kh-modal/api2.js +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-kh-modal/index.js +1 -1
- package/lib/vtx-qyry-modal/api.js +1 -1
- package/lib/vtx-qyry-modal/index.js +2 -2
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/Collection/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +3 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +1 -1
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +1 -1
- package/lib/vtx-restaurant-modal/config.js +11 -3
- package/lib/vtx-restaurant-modal/index.js +1 -1
- package/lib/vtx-road-modal/api.js +6 -2
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -2
- package/lib/vtx-road-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +9 -2
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +1 -1
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +4 -1
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/index.js +21 -5
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +1 -1
- package/lib/vtx-sdyd-tfd-modal/index.js +1 -1
- package/lib/vtx-shxq-modal/api.js +6 -6
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +1 -1
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +3 -3
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +20 -7
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/api.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +5 -2
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-staff-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-staff-modal/components/Calendar/index.less +1 -1
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/lib/vtx-staff-modal/index.js +1 -1
- package/lib/vtx-tfd-modal/api.js +3 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +3 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +1 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-wr-modal/components/Appraise/index.js +3 -3
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +4 -47
- package/lib/vtx-wr-modal/components/Base/Ptss.js +42 -8
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +1 -1
- package/lib/vtx-wr-modal/components/Base/index.js +45 -14
- package/lib/vtx-wr-modal/components/Base/index.less +87 -4
- package/lib/vtx-wr-modal/components/Build/index.js +1 -1
- package/lib/vtx-wr-modal/components/File/index.js +1 -1
- package/lib/vtx-wr-modal/components/Score/index.js +3 -3
- package/lib/vtx-wr-modal/index.js +34 -6
- package/lib/vtx-zf-modal/components/Base/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +1 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +1 -1
- package/lib/vtx-zf-modal/components/File/index.js +1 -1
- package/lib/vtx-zf-modal/components/Process/index.js +1 -1
- package/lib/vtx-zf-modal/components/Record/index.js +1 -1
- package/lib/vtx-zf-modal/components/Right/index.js +1 -1
- package/lib/vtx-zg-modal/api.js +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-zg-modal/index.js +1 -1
- package/lib/vtx-zzz-modal/index.js +29 -22
- package/package.json +6 -6
package/lib/_components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as VmCalendar, VmCalendarInner, VmCalendarPercent } from "./vm-
|
|
|
3
3
|
export { default as VmCardStatistics } from "./vm-card-statistics";
|
|
4
4
|
export { default as VmCustom } from "./vm-custom";
|
|
5
5
|
export { default as VmEmpty } from "./vm-empty";
|
|
6
|
+
export { default as VmAppraisalInfo } from "./vm-appraisal-info";
|
|
6
7
|
export { default as VmExtraTab } from "./vm-extra-tab";
|
|
7
8
|
export { default as VmFactor } from "./vm-factor";
|
|
8
9
|
export { default as VmFactorList } from "./vm-factor-list";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { request } from '@vtx/utils';
|
|
2
|
+
import { useRequest } from 'ahooks';
|
|
3
|
+
var BaseService = {
|
|
4
|
+
useKhInfo: function useKhInfo(id, startDate, endDate, checkActivityCode) {
|
|
5
|
+
var _useRequest = useRequest(function () {
|
|
6
|
+
return request.get('/cloud/zykh-reborn/kanban/resourceInfo', {
|
|
7
|
+
data: {
|
|
8
|
+
resourceId: id,
|
|
9
|
+
coordType: 'wgs84',
|
|
10
|
+
startDate: startDate,
|
|
11
|
+
endDate: endDate,
|
|
12
|
+
checkActivityCode: checkActivityCode
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}, {
|
|
16
|
+
ready: !!id,
|
|
17
|
+
refreshDeps: [id, startDate, endDate, checkActivityCode]
|
|
18
|
+
}),
|
|
19
|
+
res = _useRequest.data;
|
|
20
|
+
return {
|
|
21
|
+
khRes: (res === null || res === void 0 ? void 0 : res.data) || {}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var ReocrdService = {
|
|
26
|
+
useRecordInfo: function useRecordInfo(id, startDate, endDate, checkActivityCode, page, sort) {
|
|
27
|
+
var _useRequest2 = useRequest(function () {
|
|
28
|
+
return request.get('/cloud/zykh-reborn/kanban/recordRulePage', {
|
|
29
|
+
data: {
|
|
30
|
+
resourceId: id,
|
|
31
|
+
startDate: startDate,
|
|
32
|
+
endDate: endDate,
|
|
33
|
+
checkActivityCode: checkActivityCode,
|
|
34
|
+
page: page,
|
|
35
|
+
size: 10,
|
|
36
|
+
sort: sort
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}, {
|
|
40
|
+
ready: !!id,
|
|
41
|
+
refreshDeps: [id, startDate, endDate, checkActivityCode, page, sort]
|
|
42
|
+
}),
|
|
43
|
+
recordRes = _useRequest2.data,
|
|
44
|
+
loading = _useRequest2.loading;
|
|
45
|
+
var records = (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {
|
|
46
|
+
total: 0,
|
|
47
|
+
rows: []
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
records: records,
|
|
51
|
+
loading: loading
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export { BaseService, ReocrdService };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
10
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import { VtxImage } from '@vtx/components';
|
|
18
|
+
import { useSetState } from 'ahooks';
|
|
19
|
+
import dayjs from 'dayjs';
|
|
20
|
+
import useSettings from "../../_hooks/useSettings";
|
|
21
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
22
|
+
import VmFactor from "../vm-factor";
|
|
23
|
+
import VmFilter from "../vm-filter";
|
|
24
|
+
import VmTable from "../vm-table";
|
|
25
|
+
import VmWrapper from "../vm-wrapper";
|
|
26
|
+
import { BaseService, ReocrdService } from "./api";
|
|
27
|
+
import "./index.less";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
export var APPRAISAL_TAB_KEY = 'appraisal';
|
|
30
|
+
var AppraisalInfo = function AppraisalInfo(props) {
|
|
31
|
+
var _useSettings = useSettings(),
|
|
32
|
+
isDark = _useSettings.isDark;
|
|
33
|
+
var id = props.id;
|
|
34
|
+
var _useSetState = useSetState({
|
|
35
|
+
pagination: {
|
|
36
|
+
current: 1,
|
|
37
|
+
pageSize: 10,
|
|
38
|
+
total: 0
|
|
39
|
+
},
|
|
40
|
+
startDate: dayjs().startOf('M'),
|
|
41
|
+
endDate: dayjs(),
|
|
42
|
+
checkActivityCode: '1',
|
|
43
|
+
sort: ''
|
|
44
|
+
}),
|
|
45
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
46
|
+
state = _useSetState2[0],
|
|
47
|
+
setState = _useSetState2[1];
|
|
48
|
+
var pagination = state.pagination,
|
|
49
|
+
startDate = state.startDate,
|
|
50
|
+
endDate = state.endDate,
|
|
51
|
+
checkActivityCode = state.checkActivityCode,
|
|
52
|
+
sort = state.sort;
|
|
53
|
+
var _BaseService$useKhInf = BaseService.useKhInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode),
|
|
54
|
+
khRes = _BaseService$useKhInf.khRes;
|
|
55
|
+
var _ReocrdService$useRec = ReocrdService.useRecordInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode, pagination.current - 1, sort),
|
|
56
|
+
records = _ReocrdService$useRec.records,
|
|
57
|
+
loading = _ReocrdService$useRec.loading;
|
|
58
|
+
var columns = [{
|
|
59
|
+
title: translateLocaleText("t('vtxkhmodal.image')"),
|
|
60
|
+
dataIndex: 'photos',
|
|
61
|
+
key: 'photos',
|
|
62
|
+
width: 120,
|
|
63
|
+
render: function render(text) {
|
|
64
|
+
var photos = JSON.parse(text || '[]');
|
|
65
|
+
var a = [].concat(_toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos));
|
|
66
|
+
return (photos === null || photos === void 0 ? void 0 : photos.length) > 0 ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
67
|
+
children: a.map(function (ele, index) {
|
|
68
|
+
return /*#__PURE__*/_jsx(VtxImage, {
|
|
69
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(ele.id),
|
|
70
|
+
style: {
|
|
71
|
+
width: 80,
|
|
72
|
+
height: 80,
|
|
73
|
+
visibility: index > 0 ? 'hidden' : 'visible'
|
|
74
|
+
},
|
|
75
|
+
alt: ele.name
|
|
76
|
+
}, index);
|
|
77
|
+
})
|
|
78
|
+
}) : '--';
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
title: translateLocaleText("t('vtxkhmodal.hours')"),
|
|
82
|
+
dataIndex: 'checkDate',
|
|
83
|
+
key: 'checkDate',
|
|
84
|
+
width: 150,
|
|
85
|
+
ellipsis: true
|
|
86
|
+
}, {
|
|
87
|
+
title: translateLocaleText("t('vtxkhmodal.assessmentActivity')"),
|
|
88
|
+
dataIndex: 'checkActivityName',
|
|
89
|
+
key: 'checkActivityName',
|
|
90
|
+
width: 200
|
|
91
|
+
}, {
|
|
92
|
+
title: translateLocaleText("t('vtxkhmodal.assessor')"),
|
|
93
|
+
dataIndex: 'checkUserName',
|
|
94
|
+
key: 'checkUserName'
|
|
95
|
+
}, {
|
|
96
|
+
title: translateLocaleText("t('vtxkhmodal.group')"),
|
|
97
|
+
dataIndex: 'ruleGroupName',
|
|
98
|
+
key: 'ruleGroupName'
|
|
99
|
+
}, {
|
|
100
|
+
title: translateLocaleText("t('vtxkhmodal.assessmentStandard')"),
|
|
101
|
+
dataIndex: 'ruleName',
|
|
102
|
+
key: 'ruleName',
|
|
103
|
+
width: 150
|
|
104
|
+
}, {
|
|
105
|
+
title: translateLocaleText("t('vtxkhmodal.score')"),
|
|
106
|
+
dataIndex: 'deductPoints',
|
|
107
|
+
key: 'deductPoints',
|
|
108
|
+
align: 'right'
|
|
109
|
+
}];
|
|
110
|
+
var pageChange = function pageChange(page) {
|
|
111
|
+
setState({
|
|
112
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
113
|
+
current: page
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
var tableProps = {
|
|
118
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
119
|
+
total: records.total,
|
|
120
|
+
defaultPageSize: 10,
|
|
121
|
+
onChange: pageChange
|
|
122
|
+
}),
|
|
123
|
+
height: 384,
|
|
124
|
+
loading: loading,
|
|
125
|
+
dataSource: records.rows,
|
|
126
|
+
onChange: function onChange(_pagination, _filters, sorter) {
|
|
127
|
+
if (sorter.order) {
|
|
128
|
+
var order = sorter.order === 'ascend' ? 'asc' : 'desc';
|
|
129
|
+
setState({
|
|
130
|
+
sort: "".concat(sorter.field, ",").concat(order)
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
setState({
|
|
134
|
+
sort: ''
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var filterChange = function filterChange(dateValue) {
|
|
140
|
+
setState({
|
|
141
|
+
startDate: dateValue[0],
|
|
142
|
+
endDate: dateValue[1]
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
146
|
+
title: translateLocaleText("t('vtxkhmodal.details')"),
|
|
147
|
+
filterType: "rangePicker",
|
|
148
|
+
dateValue: [startDate, endDate],
|
|
149
|
+
filterChange: filterChange,
|
|
150
|
+
extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
151
|
+
options: [{
|
|
152
|
+
value: '1',
|
|
153
|
+
label: translateLocaleText("t('export.all')")
|
|
154
|
+
}, {
|
|
155
|
+
value: 'RCDC',
|
|
156
|
+
label: translateLocaleText("t('vtxkhmodal.day')")
|
|
157
|
+
}, {
|
|
158
|
+
value: 'ZXDC',
|
|
159
|
+
label: translateLocaleText("t('vtxkhmodal.specialSupervision')")
|
|
160
|
+
}, {
|
|
161
|
+
value: 'DSFCP',
|
|
162
|
+
label: translateLocaleText("t('vtxkhmodal.thirdPartyEvaluation')")
|
|
163
|
+
}, {
|
|
164
|
+
value: 'RCXC',
|
|
165
|
+
label: translateLocaleText("t('vtxkhmodal.day2')")
|
|
166
|
+
}],
|
|
167
|
+
style: {
|
|
168
|
+
width: 132
|
|
169
|
+
},
|
|
170
|
+
value: checkActivityCode,
|
|
171
|
+
onChange: function onChange(e) {
|
|
172
|
+
return setState({
|
|
173
|
+
checkActivityCode: e
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}),
|
|
177
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
178
|
+
className: "kh-record-summary",
|
|
179
|
+
children: [{
|
|
180
|
+
name: translateLocaleText("t('vtxkhmodal.times')"),
|
|
181
|
+
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthCheckTims,
|
|
182
|
+
key: 'count',
|
|
183
|
+
unit: translateLocaleText("t('common.timesUnit')"),
|
|
184
|
+
fontType: 'blue'
|
|
185
|
+
}, {
|
|
186
|
+
name: translateLocaleText("t('vtxkhmodal.totalDeductedPoints')"),
|
|
187
|
+
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthDeductPoint,
|
|
188
|
+
key: 'subtract',
|
|
189
|
+
unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
|
|
190
|
+
fontType: 'red'
|
|
191
|
+
}].map(function (ele) {
|
|
192
|
+
return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
|
|
193
|
+
img: require("./imgs/".concat(ele.key).concat(isDark ? '' : '_light', ".png")),
|
|
194
|
+
unitStyle: {
|
|
195
|
+
fontSize: 14
|
|
196
|
+
}
|
|
197
|
+
}), ele.key);
|
|
198
|
+
})
|
|
199
|
+
}), /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
200
|
+
columns: columns,
|
|
201
|
+
rowKey: "id"
|
|
202
|
+
}, tableProps))]
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
export default AppraisalInfo;
|
|
@@ -43,9 +43,9 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
43
43
|
chartFontColor = _useSettings.chartFontColor,
|
|
44
44
|
isDark = _useSettings.isDark,
|
|
45
45
|
chartLineColor = _useSettings.chartLineColor;
|
|
46
|
-
var geekblue = ['rgba(22, 119, 255, 1)', 'rgba(22, 119, 255, 0)'];
|
|
47
|
-
var green = ['rgba(15, 185, 100, 1)', 'rgba(15, 185, 100, 0)'];
|
|
48
|
-
var blue = ['rgba(25, 201, 255, 1)', 'rgba(25, 201, 255, 0)'];
|
|
46
|
+
var geekblue = ['rgba(22, 119, 255, 1)', 'rgba(22, 119, 255, 0.5)'];
|
|
47
|
+
var green = ['rgba(15, 185, 100, 1)', 'rgba(15, 185, 100, 0.5)'];
|
|
48
|
+
var blue = ['rgba(25, 201, 255, 1)', 'rgba(25, 201, 255, 0.5)'];
|
|
49
49
|
if (isDark) {
|
|
50
50
|
geekblue = ['rgba(0, 157, 255, 1)', 'rgba(0, 157, 255, 0)'];
|
|
51
51
|
green = ['rgba(19, 249, 122, 1)', 'rgba(19, 249, 122, 0)'];
|
|
@@ -137,7 +137,7 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
137
137
|
type: 'bar',
|
|
138
138
|
data: item.data,
|
|
139
139
|
yAxisIndex: item.yAxisIndex || 0,
|
|
140
|
-
|
|
140
|
+
barMaxWidth: 18,
|
|
141
141
|
itemStyle: {
|
|
142
142
|
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
|
|
143
143
|
offset: 1,
|
|
@@ -16,7 +16,7 @@ import zhCN from 'antd/es/calendar/locale/zh_CN.js';
|
|
|
16
16
|
import BlockA from "../../_imgs/block_alarm.png";
|
|
17
17
|
import BlockN from "../../_imgs/block_normal.png";
|
|
18
18
|
import { transformRgb } from "../../_util";
|
|
19
|
-
import { getRuntimeLanguage } from "./../../hooks/useTranslation.
|
|
19
|
+
import { getRuntimeLanguage } from "./../../hooks/useTranslation.js";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
21
|
var prefix = 'vm-calendar';
|
|
22
22
|
function VmCalendar(props) {
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import { translateLocaleText } from "./../../hooks/useTranslation.
|
|
8
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
9
9
|
import useSettings from "../../_hooks/useSettings";
|
|
10
10
|
import no_chart from "./assets/no_chart.png";
|
|
11
11
|
import no_data from "./assets/no_data.png";
|
|
@@ -5,7 +5,7 @@ import _ from 'lodash';
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import useSettings from "../../_hooks/useSettings";
|
|
7
7
|
import { DownIcon, UpIcon } from "../../_util/iconSvgHtml";
|
|
8
|
-
import { translateLocaleText } from "../../hooks/useTranslation.
|
|
8
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
9
9
|
import "./style";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
11
|
export default function VmFactor(_ref) {
|
|
@@ -15,7 +15,7 @@ import { useDebounce } from 'ahooks';
|
|
|
15
15
|
import { DatePicker, Input, Select } from 'antd';
|
|
16
16
|
import enUS from 'antd/es/date-picker/locale/en_US';
|
|
17
17
|
import zhCN from 'antd/es/date-picker/locale/zh_CN';
|
|
18
|
-
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.
|
|
18
|
+
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
19
19
|
import { useEffect, useState } from 'react';
|
|
20
20
|
import useSettings from "../../_hooks/useSettings";
|
|
21
21
|
import "../../_util/setupDayjs";
|
|
@@ -58,28 +58,24 @@
|
|
|
58
58
|
--border-color: #0b6baf;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
border: 1px solid var(--border-color) !important;
|
|
65
|
-
}
|
|
61
|
+
background: var(--bg-color) !important;
|
|
62
|
+
border-radius: 6px !important;
|
|
63
|
+
border: 1px solid var(--border-color) !important;
|
|
66
64
|
.ant-select-selection-placeholder {
|
|
67
65
|
color: var(--color);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
&:hover {
|
|
71
|
-
.ant-select
|
|
69
|
+
.ant-select {
|
|
72
70
|
border: 1px solid var(--hover-color) !important;
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
&.dark {
|
|
76
|
-
.ant-select-
|
|
77
|
-
|
|
78
|
-
color: white;
|
|
79
|
-
}
|
|
74
|
+
.ant-select-content-value {
|
|
75
|
+
color: white;
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
.ant-select-
|
|
78
|
+
.ant-select-suffix {
|
|
83
79
|
color: white;
|
|
84
80
|
}
|
|
85
81
|
}
|
|
@@ -12,7 +12,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
import { VtxImage, VtxUpload } from '@vtx/components';
|
|
14
14
|
import { isNumber } from 'lodash';
|
|
15
|
-
import { translateLocaleText } from "../../hooks/useTranslation.
|
|
15
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
16
16
|
import "./style";
|
|
17
17
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
18
|
function InfoCollection(props) {
|
|
@@ -64,7 +64,9 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
64
64
|
}],
|
|
65
65
|
legend: _objectSpread({
|
|
66
66
|
show: showLegend,
|
|
67
|
-
|
|
67
|
+
left: '10%',
|
|
68
|
+
top: 0,
|
|
69
|
+
height: 24,
|
|
68
70
|
type: 'scroll',
|
|
69
71
|
itemGap: 8,
|
|
70
72
|
itemHeight: 2,
|
|
@@ -84,6 +86,7 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
84
86
|
grid: _objectSpread({
|
|
85
87
|
left: 50,
|
|
86
88
|
right: 50,
|
|
89
|
+
top: showLegend ? 40 : 32,
|
|
87
90
|
bottom: showDataZoom ? 50 : 20
|
|
88
91
|
}, gridOption),
|
|
89
92
|
xAxis: _objectSpread({
|
|
@@ -19,7 +19,7 @@ import proj4 from 'proj4';
|
|
|
19
19
|
import { useEffect, useRef, useState } from 'react';
|
|
20
20
|
import useSettings from "../../_hooks/useSettings";
|
|
21
21
|
import "./index.less";
|
|
22
|
-
import { translateLocaleText } from "./../../hooks/useTranslation.
|
|
22
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
export default function VmOlMap(_ref) {
|
|
25
25
|
var _mapInfo$olProps, _points$data2, _polygons$data2, _newPoints$data3;
|
|
@@ -9,7 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { Progress } from 'antd';
|
|
11
11
|
import useSettings from "../../_hooks/useSettings";
|
|
12
|
-
import { translateLocaleText } from "../../hooks/useTranslation.
|
|
12
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
13
13
|
import "./style";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
export function Line(props) {
|
|
@@ -7,7 +7,7 @@ import count from "./imgs/count.png";
|
|
|
7
7
|
import VmFactor from "../vm-factor";
|
|
8
8
|
import amountLight from "./imgs/amount_light.png";
|
|
9
9
|
import countLight from "./imgs/count_light.png";
|
|
10
|
-
import { translateLocaleText } from "./../../hooks/useTranslation.
|
|
10
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
var RmInfoSummary = function RmInfoSummary(props) {
|
|
13
13
|
var data = props.data;
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { translateLocaleText } from "./../../hooks/useTranslation.
|
|
7
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
8
8
|
/**
|
|
9
9
|
* 月度趋势分析
|
|
10
10
|
*/
|
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { translateLocaleText } from "./../../hooks/useTranslation.
|
|
13
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
14
14
|
/**
|
|
15
15
|
* 维保记录
|
|
16
16
|
*/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
8
|
+
/**
|
|
9
|
+
* 通用-维保信息
|
|
4
10
|
*/
|
|
5
11
|
|
|
6
12
|
import { Col, Row } from 'antd';
|
|
@@ -13,6 +19,32 @@ import RmRecord from "./RmRecord";
|
|
|
13
19
|
import RmType from "./RmType";
|
|
14
20
|
import "./style";
|
|
15
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
export var REPAIR_MAINTAIN_TAB_KEY = 'rm';
|
|
23
|
+
export var getRepairMaintainTab = function getRepairMaintainTab() {
|
|
24
|
+
return {
|
|
25
|
+
key: REPAIR_MAINTAIN_TAB_KEY,
|
|
26
|
+
title: translateLocaleText("t('vtxcarmodal.maintenanceInformation')")
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export var isRepairMaintainTab = function isRepairMaintainTab(tab) {
|
|
30
|
+
return (tab === null || tab === void 0 ? void 0 : tab.key) === REPAIR_MAINTAIN_TAB_KEY || (tab === null || tab === void 0 ? void 0 : tab.key) === 'default-rm' || "".concat((tab === null || tab === void 0 ? void 0 : tab.key) || '').endsWith('-rm');
|
|
31
|
+
};
|
|
32
|
+
export var insertRepairMaintainTab = function insertRepairMaintainTab() {
|
|
33
|
+
var tabs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
34
|
+
if (!Array.isArray(tabs) || tabs.length === 0) {
|
|
35
|
+
return tabs;
|
|
36
|
+
}
|
|
37
|
+
if (tabs.some(isRepairMaintainTab)) {
|
|
38
|
+
return tabs;
|
|
39
|
+
}
|
|
40
|
+
var customIndex = tabs.findIndex(function (tab) {
|
|
41
|
+
return !!(tab !== null && tab !== void 0 && tab.url);
|
|
42
|
+
});
|
|
43
|
+
if (customIndex === -1) {
|
|
44
|
+
return [].concat(_toConsumableArray(tabs), [getRepairMaintainTab()]);
|
|
45
|
+
}
|
|
46
|
+
return [].concat(_toConsumableArray(tabs.slice(0, customIndex)), [getRepairMaintainTab()], _toConsumableArray(tabs.slice(customIndex)));
|
|
47
|
+
};
|
|
16
48
|
var RepaireMaintain = function RepaireMaintain(props) {
|
|
17
49
|
var id = props.id;
|
|
18
50
|
var date = dayjs().format('YYYY-MM-DD');
|
|
@@ -26,7 +26,7 @@ import zhCN from 'antd/es/locale/zh_CN';
|
|
|
26
26
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
27
27
|
import useSettings from "../../_hooks/useSettings";
|
|
28
28
|
import "./style";
|
|
29
|
-
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.
|
|
29
|
+
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
30
30
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
31
|
var VMTable = function VMTable(props) {
|
|
32
32
|
var _props$rowKey = props.rowKey,
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import useSettings from "../../_hooks/useSettings";
|
|
8
|
-
import { translateLocaleText } from "../../hooks/useTranslation.
|
|
8
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
9
9
|
import "./style";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export default function VmWrapper(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from 'classnames';
|
|
2
2
|
import useSettings from "../../_hooks/useSettings";
|
|
3
3
|
import { ClockIcon } from "../../_util/iconSvgHtml";
|
|
4
|
-
import { translateLocaleText } from "../../hooks/useTranslation.
|
|
4
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
5
5
|
import "./style";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
export default function VmWrapper(props) {
|
|
@@ -1,15 +1,61 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1
7
|
import { HistoryPlayer } from '@vtx/player';
|
|
2
|
-
import { forwardRef, useRef } from 'react';
|
|
8
|
+
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
3
9
|
import VmEmpty from "../vm-empty";
|
|
4
10
|
import "./index.less";
|
|
5
11
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
12
|
var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
|
-
var _channel$list;
|
|
8
13
|
var channel = props.channel,
|
|
9
14
|
onClose = props.onClose;
|
|
15
|
+
var _useState = useState(''),
|
|
16
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
+
url = _useState2[0],
|
|
18
|
+
setUrl = _useState2[1];
|
|
19
|
+
var _useState3 = useState(''),
|
|
20
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
21
|
+
startTime = _useState4[0],
|
|
22
|
+
setStartTime = _useState4[1];
|
|
23
|
+
var _useState5 = useState(''),
|
|
24
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
25
|
+
endTime = _useState6[0],
|
|
26
|
+
setEndTime = _useState6[1];
|
|
10
27
|
var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
|
|
11
|
-
var url = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list = channel.list) === null || _channel$list === void 0 || (_channel$list = _channel$list[0]) === null || _channel$list === void 0 ? void 0 : _channel$list.playbackUrl);
|
|
12
28
|
var gridItemRef = useRef(null);
|
|
29
|
+
useEffect(function () {
|
|
30
|
+
var _channel$list;
|
|
31
|
+
var src = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list = channel.list) === null || _channel$list === void 0 || (_channel$list = _channel$list[0]) === null || _channel$list === void 0 ? void 0 : _channel$list.playbackUrl);
|
|
32
|
+
if (channel.enableAgent) {
|
|
33
|
+
if (src.indexOf('http') === -1) {
|
|
34
|
+
setUrl("".concat(window.location.origin).concat(src));
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
setUrl(src);
|
|
38
|
+
}
|
|
39
|
+
if (channel !== null && channel !== void 0 && channel.totalTimeUrl) {
|
|
40
|
+
setStartTime(props === null || props === void 0 ? void 0 : props.startTime);
|
|
41
|
+
setEndTime(props === null || props === void 0 ? void 0 : props.endTime);
|
|
42
|
+
} else {
|
|
43
|
+
var _channel$list2, _channel$list3;
|
|
44
|
+
setStartTime(channel === null || channel === void 0 || (_channel$list2 = channel.list) === null || _channel$list2 === void 0 || (_channel$list2 = _channel$list2[0]) === null || _channel$list2 === void 0 ? void 0 : _channel$list2.beginTime);
|
|
45
|
+
setEndTime(channel === null || channel === void 0 || (_channel$list3 = channel.list) === null || _channel$list3 === void 0 || (_channel$list3 = _channel$list3[0]) === null || _channel$list3 === void 0 ? void 0 : _channel$list3.endTime);
|
|
46
|
+
}
|
|
47
|
+
}, [channel.enableAgent, props.startTime, JSON.stringify(channel)]);
|
|
48
|
+
useEffect(function () {
|
|
49
|
+
var _channel$list4;
|
|
50
|
+
var src = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list4 = channel.list) === null || _channel$list4 === void 0 || (_channel$list4 = _channel$list4[0]) === null || _channel$list4 === void 0 ? void 0 : _channel$list4.playbackUrl);
|
|
51
|
+
if (channel.enableAgent) {
|
|
52
|
+
if (src.indexOf('http') === -1) {
|
|
53
|
+
setUrl("".concat(window.location.origin).concat(src));
|
|
54
|
+
}
|
|
55
|
+
} else {
|
|
56
|
+
setUrl(src);
|
|
57
|
+
}
|
|
58
|
+
}, [JSON.stringify(channel)]);
|
|
13
59
|
return /*#__PURE__*/_jsx("div", {
|
|
14
60
|
className: "vm-video-content-container",
|
|
15
61
|
ref: gridItemRef,
|
|
@@ -31,7 +77,11 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31
77
|
ref: ref,
|
|
32
78
|
beenHasVideo: channel.beenHasVideo // 对讲
|
|
33
79
|
,
|
|
80
|
+
beenHasAudio: channel.beenHasAudio // 音频
|
|
81
|
+
,
|
|
34
82
|
url: url,
|
|
83
|
+
startTime: startTime,
|
|
84
|
+
endTime: endTime,
|
|
35
85
|
type: channel === null || channel === void 0 ? void 0 : channel.player,
|
|
36
86
|
deviceIp: channel.deviceIp,
|
|
37
87
|
devicePort: channel.devicePort,
|