@vtx/modals2 5.0.58 → 6.0.0-beta.0
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/README.md +18 -2
- package/lib/_components/vm-calendar/index.js +12 -7
- package/lib/_components/vm-calendar/style/index.js +0 -1
- package/lib/_components/vm-calendar/style/index.less +1 -0
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-custom/index.js +1 -1
- package/lib/_components/vm-empty/index.js +13 -11
- package/lib/_components/vm-factor/index.js +1 -0
- package/lib/_components/vm-factor/style/index.less +4 -0
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/index.js +9 -12
- package/lib/_components/vm-info-collection/style/index.js +0 -1
- package/lib/_components/vm-map/index.js +18 -0
- package/lib/_components/vm-pie-charts/index.js +1 -1
- package/lib/_components/vm-popover/index.js +11 -3
- package/lib/_components/vm-popover/index.less +10 -7
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
- package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
- package/lib/_components/vm-repair-maintain/RmType.js +5 -4
- package/lib/_components/vm-repair-maintain/index.js +4 -3
- package/lib/_components/vm-table/index.js +31 -24
- package/lib/_components/vm-tabs/index.js +26 -10
- package/lib/_components/vm-video/index.js +21 -21
- package/lib/_components/vm-wrapper/index.js +8 -4
- package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
- package/lib/_util/http.js +4 -2
- package/lib/_util/setupDayjs.js +16 -0
- package/lib/hooks/useTranslation.js +219 -0
- package/lib/index.js +3 -0
- package/lib/locales/en.json +1377 -0
- package/lib/locales/zh-CN.json +1377 -0
- package/lib/style/index.less +0 -2
- package/lib/vtx-area-modal/api.js +5 -4
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
- package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
- package/lib/vtx-area-modal/index.js +1 -1
- package/lib/vtx-base-modal/Header/index.less +99 -98
- package/lib/vtx-base-modal/index.js +34 -3
- package/lib/vtx-base-modal/style/index.less +14 -1
- package/lib/vtx-car-modal/components/Info/index.js +37 -7
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
- package/lib/vtx-car-modal/index.js +25 -24
- package/lib/vtx-car-modal/style/index.js +1 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
- package/lib/vtx-cc-cp-modal/index.js +2 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
- package/lib/vtx-cc-unit-modal/index.js +17 -10
- package/lib/vtx-cp-modal/api.js +6 -5
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
- package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
- package/lib/vtx-cp-modal/index.js +5 -4
- package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
- package/lib/vtx-default-modal/index.js +4 -3
- package/lib/vtx-default-modal/style/index.js +0 -1
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
- package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-device-modal/index.js +6 -3
- package/lib/vtx-device-modal/style/index.less +32 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
- package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
- package/lib/vtx-df-modal/components/Metering/List.js +12 -10
- package/lib/vtx-df-modal/components/Metering/index.js +11 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
- package/lib/vtx-df-modal/index.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
- package/lib/vtx-housing-estate-modal/config.js +10 -10
- package/lib/vtx-housing-estate-modal/index.js +6 -5
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
- package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
- package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
- package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
- package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
- package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
- package/lib/vtx-kh-modal/api2.js +10 -9
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
- package/lib/vtx-kh-modal/components/Record/index.js +18 -17
- package/lib/vtx-kh-modal/index.js +3 -2
- package/lib/vtx-kh-modal/style/index.js +0 -1
- package/lib/vtx-qyry-modal/api.js +8 -7
- package/lib/vtx-qyry-modal/index.js +17 -16
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
- package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
- package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
- package/lib/vtx-restaurant-modal/config.js +94 -95
- package/lib/vtx-restaurant-modal/index.js +16 -7
- package/lib/vtx-road-modal/api.js +14 -13
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
- package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
- package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
- package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
- package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
- package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
- package/lib/vtx-road-modal/components/Statistical/index.less +40 -32
- package/lib/vtx-road-modal/index.js +30 -21
- package/lib/vtx-road-modal/style/index.js +1 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
- package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
- package/lib/vtx-shxq-modal/api.js +9 -8
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
- package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
- package/lib/vtx-shxq-modal/index.js +6 -5
- package/lib/vtx-staff-modal/api.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
- package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +11 -10
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
- package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
- package/lib/vtx-staff-modal/index.js +6 -5
- package/lib/vtx-tfd-modal/api.js +7 -6
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
- package/lib/vtx-tfd-modal/index.js +4 -4
- package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
- package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
- package/lib/vtx-wr-modal/components/Base/index.js +14 -14
- package/lib/vtx-wr-modal/components/Build/index.js +6 -5
- package/lib/vtx-wr-modal/components/File/index.js +12 -15
- package/lib/vtx-wr-modal/components/File/index.less +8 -3
- package/lib/vtx-wr-modal/components/Score/index.js +20 -27
- package/lib/vtx-wr-modal/components/Score/index.less +49 -26
- package/lib/vtx-wr-modal/index.js +5 -2
- package/lib/vtx-wr-modal/style/index.js +0 -1
- package/lib/vtx-zf-modal/components/Base/index.js +37 -36
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
- package/lib/vtx-zf-modal/components/File/index.js +15 -14
- package/lib/vtx-zf-modal/components/Process/index.js +17 -17
- package/lib/vtx-zf-modal/components/Record/index.js +9 -8
- package/lib/vtx-zf-modal/components/Right/index.js +7 -7
- package/lib/vtx-zf-modal/style/index.js +0 -1
- package/lib/vtx-zg-modal/api.js +13 -12
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
- package/lib/vtx-zg-modal/index.js +2 -1
- package/lib/vtx-zzz-modal/index.js +2 -1
- package/package.json +92 -81
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
.wr-score-content {
|
|
2
2
|
width: 100%;
|
|
3
|
-
height:
|
|
3
|
+
height: 100%;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 10px;
|
|
4
8
|
.wr-score-title {
|
|
9
|
+
flex: 0 0 auto;
|
|
5
10
|
padding: 12px 16px;
|
|
6
11
|
font-size: 16px;
|
|
7
12
|
box-sizing: border-box;
|
|
@@ -12,38 +17,56 @@
|
|
|
12
17
|
.wr-score-panel {
|
|
13
18
|
width: 100%;
|
|
14
19
|
border-radius: 8px;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
.wr-score-overview-panel {
|
|
24
|
+
flex: 0 0 290px;
|
|
25
|
+
}
|
|
26
|
+
.wr-score-table-panel {
|
|
27
|
+
flex: 1;
|
|
28
|
+
min-height: 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
.wr-score-overview-content {
|
|
33
|
+
height: calc(100% - 49px);
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 60px;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
.score-chart {
|
|
38
|
+
width: 480px;
|
|
39
|
+
height: 100%;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
.score-summary {
|
|
21
42
|
height: 100%;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
gap: 80px;
|
|
46
|
+
align-items: center;
|
|
47
|
+
.score-summary-item {
|
|
25
48
|
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
gap: 80px;
|
|
28
49
|
align-items: center;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: 44px;
|
|
34
|
-
height: 44px;
|
|
35
|
-
margin-right: 16px;
|
|
36
|
-
}
|
|
50
|
+
img {
|
|
51
|
+
width: 44px;
|
|
52
|
+
height: 44px;
|
|
53
|
+
margin-right: 16px;
|
|
37
54
|
}
|
|
38
55
|
}
|
|
39
56
|
}
|
|
40
|
-
.score-text {
|
|
41
|
-
width: 480px;
|
|
42
|
-
display: flex;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
}
|
|
46
57
|
}
|
|
58
|
+
.score-text {
|
|
59
|
+
width: 480px;
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.wr-score-table-body {
|
|
66
|
+
flex: 1;
|
|
67
|
+
min-height: 0;
|
|
68
|
+
padding: 12px 16px 16px;
|
|
69
|
+
box-sizing: border-box;
|
|
47
70
|
}
|
|
48
71
|
}
|
|
49
72
|
|
|
@@ -17,6 +17,7 @@ import VtxBaseModal from "../vtx-base-modal";
|
|
|
17
17
|
import VtxDefaultModal from "../vtx-default-modal";
|
|
18
18
|
import { Appraise, Base, Build, File, Score } from "./components";
|
|
19
19
|
import "./style";
|
|
20
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
20
21
|
|
|
21
22
|
//弹窗配置
|
|
22
23
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -108,10 +109,12 @@ export default (function (props) {
|
|
|
108
109
|
value: detail.facilityStatusName
|
|
109
110
|
}, detail.withDevice && {
|
|
110
111
|
color: 'green',
|
|
111
|
-
value: '
|
|
112
|
+
value: translateLocaleText("t('vtxwrmodal.boundDevice')")
|
|
112
113
|
}, !!detail.alarmNum && {
|
|
113
114
|
color: 'red',
|
|
114
|
-
value: "
|
|
115
|
+
value: translateLocaleText("t('vtxwrmodal.alarmingWithCount')", {
|
|
116
|
+
count: detail.alarmNum
|
|
117
|
+
})
|
|
115
118
|
}].filter(function (item) {
|
|
116
119
|
return !!item;
|
|
117
120
|
})
|
|
@@ -1,112 +1,113 @@
|
|
|
1
1
|
import { VmMap } from "../../../_components";
|
|
2
2
|
import Right from "../Right";
|
|
3
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
export default (function (props) {
|
|
5
6
|
var _detail$location, _detail$location2, _detail$location3, _detail$location4;
|
|
6
7
|
var detail = props.detail;
|
|
7
8
|
var base = [{
|
|
8
|
-
name: '
|
|
9
|
+
name: translateLocaleText("t('vtxzfmodal.caseSource')"),
|
|
9
10
|
key: 'caseFromStr'
|
|
10
11
|
}, {
|
|
11
|
-
name: '
|
|
12
|
+
name: translateLocaleText("t('vtxzfmodal.acceptanceAuthority')"),
|
|
12
13
|
key: 'acceptDepartment'
|
|
13
14
|
}, {
|
|
14
|
-
name: '
|
|
15
|
+
name: translateLocaleText("t('vtxzfmodal.hours')"),
|
|
15
16
|
key: 'acceptTime'
|
|
16
17
|
}, {
|
|
17
|
-
name: '
|
|
18
|
+
name: translateLocaleText("t('vtxzfmodal.hours2')"),
|
|
18
19
|
key: 'accidentTime'
|
|
19
20
|
}, {
|
|
20
|
-
name: '
|
|
21
|
+
name: translateLocaleText("t('vtxzfmodal.hours3')"),
|
|
21
22
|
key: 'registrationTime'
|
|
22
23
|
}, {
|
|
23
|
-
name: '
|
|
24
|
+
name: translateLocaleText("t('vtxzfmodal.registrant')"),
|
|
24
25
|
key: 'undertakeUserName'
|
|
25
26
|
}, {
|
|
26
|
-
name: '
|
|
27
|
+
name: translateLocaleText("t('vtxzfmodal.caseSummary')"),
|
|
27
28
|
key: 'caseDescription',
|
|
28
29
|
weights: 2
|
|
29
30
|
}, {
|
|
30
|
-
name: '
|
|
31
|
+
name: translateLocaleText("t('vtxzfmodal.point')"),
|
|
31
32
|
key: 'accidentAddress',
|
|
32
33
|
weights: 2
|
|
33
34
|
}];
|
|
34
35
|
var dsrUnit = [{
|
|
35
|
-
name: '
|
|
36
|
+
name: translateLocaleText("t('vtxzfmodal.currentType')"),
|
|
36
37
|
key: 'casePartyTypeName'
|
|
37
38
|
}, {
|
|
38
|
-
name: '
|
|
39
|
+
name: translateLocaleText("t('vtxzfmodal.unitName')"),
|
|
39
40
|
key: 'partyName'
|
|
40
41
|
}, {
|
|
41
|
-
name: '
|
|
42
|
+
name: translateLocaleText("t('vtxzfmodal.legalRepresentative')"),
|
|
42
43
|
key: 'corporate'
|
|
43
44
|
}, {
|
|
44
|
-
name: '
|
|
45
|
+
name: translateLocaleText("t('vtxzfmodal.unifiedSocialCreditCode')"),
|
|
45
46
|
key: 'socialCode'
|
|
46
47
|
}, {
|
|
47
|
-
name: '
|
|
48
|
+
name: translateLocaleText("t('vtxzfmodal.phone')"),
|
|
48
49
|
key: 'phone'
|
|
49
50
|
}, {
|
|
50
|
-
name: '
|
|
51
|
+
name: translateLocaleText("t('vtxzfmodal.idCardNo')"),
|
|
51
52
|
key: 'identityCode'
|
|
52
53
|
}, {
|
|
53
|
-
name: '
|
|
54
|
+
name: translateLocaleText("t('vtxzfmodal.address')"),
|
|
54
55
|
key: 'liveAddress',
|
|
55
56
|
weights: 2
|
|
56
57
|
}];
|
|
57
58
|
var dsrPerson = [{
|
|
58
|
-
name: '
|
|
59
|
+
name: translateLocaleText("t('vtxzfmodal.currentType')"),
|
|
59
60
|
key: 'casePartyTypeName'
|
|
60
61
|
}, {
|
|
61
|
-
name: '
|
|
62
|
+
name: translateLocaleText("t('vtxzfmodal.personName')"),
|
|
62
63
|
key: 'partyName'
|
|
63
64
|
}, {
|
|
64
|
-
name: '
|
|
65
|
+
name: translateLocaleText("t('vtxzfmodal.phone')"),
|
|
65
66
|
key: 'phone'
|
|
66
67
|
}, {
|
|
67
|
-
name: '
|
|
68
|
+
name: translateLocaleText("t('vtxzfmodal.idCardNo')"),
|
|
68
69
|
key: 'identityCode'
|
|
69
70
|
}, {
|
|
70
|
-
name: '
|
|
71
|
+
name: translateLocaleText("t('vtxzfmodal.address')"),
|
|
71
72
|
key: 'liveAddress',
|
|
72
73
|
weights: 2
|
|
73
74
|
}, {
|
|
74
|
-
name: '
|
|
75
|
+
name: translateLocaleText("t('vtxzfmodal.unitPosition')"),
|
|
75
76
|
key: 'job',
|
|
76
77
|
weights: 2
|
|
77
78
|
}];
|
|
78
79
|
var cbxx = [{
|
|
79
|
-
name: '
|
|
80
|
+
name: translateLocaleText("t('vtxzfmodal.unit')"),
|
|
80
81
|
key: 'undertakeOrgName'
|
|
81
82
|
}, {
|
|
82
|
-
name: '
|
|
83
|
+
name: translateLocaleText("t('vtxzfmodal.primaryHandler')"),
|
|
83
84
|
key: 'undertakeUserName'
|
|
84
85
|
}, {
|
|
85
|
-
name: '
|
|
86
|
+
name: translateLocaleText("t('vtxzfmodal.assistantHandler')"),
|
|
86
87
|
key: 'assistUserName'
|
|
87
88
|
}];
|
|
88
89
|
var laxx = [{
|
|
89
|
-
name: '
|
|
90
|
+
name: translateLocaleText("t('vtxzfmodal.caseProcess')"),
|
|
90
91
|
key: 'caseTypeName'
|
|
91
92
|
}, {
|
|
92
|
-
name: '
|
|
93
|
+
name: translateLocaleText("t('vtxzfmodal.caseNo')"),
|
|
93
94
|
key: 'caseCode'
|
|
94
95
|
}, {
|
|
95
|
-
name: '
|
|
96
|
+
name: translateLocaleText("t('vtxzfmodal.fileNo')"),
|
|
96
97
|
key: 'fileCode'
|
|
97
98
|
}, {
|
|
98
|
-
name: '
|
|
99
|
+
name: translateLocaleText("t('vtxzfmodal.hours4')"),
|
|
99
100
|
key: 'lianTime'
|
|
100
101
|
}, {
|
|
101
|
-
name: '
|
|
102
|
+
name: translateLocaleText("t('vtxzfmodal.caseCause')"),
|
|
102
103
|
key: 'caseCauseManageName',
|
|
103
104
|
weights: 2
|
|
104
105
|
}, {
|
|
105
|
-
name: '
|
|
106
|
+
name: translateLocaleText("t('vtxzfmodal.violatedClause')"),
|
|
106
107
|
key: 'breakContent',
|
|
107
108
|
weights: 2
|
|
108
109
|
}, {
|
|
109
|
-
name: '
|
|
110
|
+
name: translateLocaleText("t('vtxzfmodal.penaltyClause')"),
|
|
110
111
|
key: 'punishContent',
|
|
111
112
|
weights: 2
|
|
112
113
|
}];
|
|
@@ -118,7 +119,7 @@ export default (function (props) {
|
|
|
118
119
|
className: "zf-left-top",
|
|
119
120
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
120
121
|
className: "zf-base-title",
|
|
121
|
-
children: ["
|
|
122
|
+
children: [translateLocaleText("t('vtxzfmodal.caseInformation')"), detail.caseTypeName && /*#__PURE__*/_jsx("span", {
|
|
122
123
|
className: "zf-base-subTitle",
|
|
123
124
|
children: "\u3010".concat(detail.caseTypeName, "-").concat(detail.currentTask, "\u3011")
|
|
124
125
|
})]
|
|
@@ -156,7 +157,7 @@ export default (function (props) {
|
|
|
156
157
|
className: "zf-left-bottom",
|
|
157
158
|
children: [/*#__PURE__*/_jsx("div", {
|
|
158
159
|
className: "zf-base-title",
|
|
159
|
-
children: "
|
|
160
|
+
children: translateLocaleText("t('vtxzfmodal.current')")
|
|
160
161
|
}), /*#__PURE__*/_jsx("div", {
|
|
161
162
|
className: "zf-base-info",
|
|
162
163
|
style: {
|
|
@@ -164,7 +165,7 @@ export default (function (props) {
|
|
|
164
165
|
},
|
|
165
166
|
children: /*#__PURE__*/_jsx("div", {
|
|
166
167
|
className: "zf-base-list",
|
|
167
|
-
children: (detail.casePartyType
|
|
168
|
+
children: (detail.casePartyType === 'unit' ? dsrUnit : dsrPerson).map(function (item) {
|
|
168
169
|
return /*#__PURE__*/_jsxs("div", {
|
|
169
170
|
className: "zf-base-item",
|
|
170
171
|
style: {
|
|
@@ -184,7 +185,7 @@ export default (function (props) {
|
|
|
184
185
|
className: "zf-left-bottom",
|
|
185
186
|
children: [/*#__PURE__*/_jsx("div", {
|
|
186
187
|
className: "zf-base-title",
|
|
187
|
-
children: "
|
|
188
|
+
children: translateLocaleText("t('vtxzfmodal.handlingInformation')")
|
|
188
189
|
}), /*#__PURE__*/_jsx("div", {
|
|
189
190
|
className: "zf-base-info",
|
|
190
191
|
style: {
|
|
@@ -212,7 +213,7 @@ export default (function (props) {
|
|
|
212
213
|
className: "zf-left-bottom",
|
|
213
214
|
children: [/*#__PURE__*/_jsx("div", {
|
|
214
215
|
className: "zf-base-title",
|
|
215
|
-
children: "
|
|
216
|
+
children: translateLocaleText("t('vtxzfmodal.filingInformation')")
|
|
216
217
|
}), /*#__PURE__*/_jsx("div", {
|
|
217
218
|
className: "zf-base-info",
|
|
218
219
|
style: {
|
|
@@ -31,6 +31,7 @@ import { UnorderedListOutlined } from '@ant-design/icons';
|
|
|
31
31
|
import "./index.less";
|
|
32
32
|
import viewRichText from "./view";
|
|
33
33
|
import CKModal from "./widgets/CKModal";
|
|
34
|
+
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
34
35
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
36
|
var defaultPlugins = ClassicEditor.builtinPlugins;
|
|
36
37
|
function CkEditorCustom(_ref, ref) {
|
|
@@ -77,22 +78,22 @@ function CkEditorCustom(_ref, ref) {
|
|
|
77
78
|
heading: {
|
|
78
79
|
options: [{
|
|
79
80
|
model: 'paragraph',
|
|
80
|
-
title: '
|
|
81
|
+
title: translateLocaleText("t('vtxzfmodal.paragraph')"),
|
|
81
82
|
class: 'ck-heading_paragraph'
|
|
82
83
|
}, {
|
|
83
84
|
model: 'heading1',
|
|
84
85
|
view: 'h1',
|
|
85
|
-
title: '
|
|
86
|
+
title: translateLocaleText("t('vtxzfmodal.title1')"),
|
|
86
87
|
class: 'ck-heading_heading1'
|
|
87
88
|
}, {
|
|
88
89
|
model: 'heading2',
|
|
89
90
|
view: 'h2',
|
|
90
|
-
title: '
|
|
91
|
+
title: translateLocaleText("t('vtxzfmodal.title2')"),
|
|
91
92
|
class: 'ck-heading_heading2'
|
|
92
93
|
}, {
|
|
93
94
|
model: 'heading3',
|
|
94
95
|
view: 'h3',
|
|
95
|
-
title: '
|
|
96
|
+
title: translateLocaleText("t('vtxzfmodal.title3')"),
|
|
96
97
|
class: 'ck-heading_heading3'
|
|
97
98
|
}]
|
|
98
99
|
},
|
|
@@ -163,7 +164,7 @@ function CkEditorCustom(_ref, ref) {
|
|
|
163
164
|
setState({
|
|
164
165
|
modalVisible: true,
|
|
165
166
|
modalType: defaultData.type,
|
|
166
|
-
modalTitle: '
|
|
167
|
+
modalTitle: translateLocaleText("t('vtxzfmodal.edit')"),
|
|
167
168
|
defaultData: _objectSpread(_objectSpread({}, defaultData), {}, {
|
|
168
169
|
id: configid
|
|
169
170
|
})
|
|
@@ -182,7 +183,7 @@ function CkEditorCustom(_ref, ref) {
|
|
|
182
183
|
children: [/*#__PURE__*/_jsx("div", {
|
|
183
184
|
className: classNames("tab1"),
|
|
184
185
|
style: {
|
|
185
|
-
display: state.active
|
|
186
|
+
display: state.active === 'source' ? 'block' : 'none'
|
|
186
187
|
},
|
|
187
188
|
children: /*#__PURE__*/_jsx("div", {
|
|
188
189
|
className: classNames("block"),
|
|
@@ -195,7 +196,7 @@ function CkEditorCustom(_ref, ref) {
|
|
|
195
196
|
}), /*#__PURE__*/_jsxs("div", {
|
|
196
197
|
className: classNames("tab2"),
|
|
197
198
|
style: {
|
|
198
|
-
display: state.active
|
|
199
|
+
display: state.active === 'design' ? 'flex' : 'none'
|
|
199
200
|
},
|
|
200
201
|
children: [/*#__PURE__*/_jsx("div", {
|
|
201
202
|
className: classNames("editor"),
|
|
@@ -207,33 +208,33 @@ function CkEditorCustom(_ref, ref) {
|
|
|
207
208
|
className: classNames('right_bar_title'),
|
|
208
209
|
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {
|
|
209
210
|
className: classNames('right_bar_title_icon')
|
|
210
|
-
}), "
|
|
211
|
+
}), translateLocaleText("t('vtxzfmodal.formComponents')")]
|
|
211
212
|
}), [{
|
|
212
|
-
name: '
|
|
213
|
+
name: translateLocaleText("t('vtxzfmodal.text')"),
|
|
213
214
|
type: 'input',
|
|
214
215
|
func: 'insertCustomInput'
|
|
215
216
|
}, {
|
|
216
|
-
name: '
|
|
217
|
+
name: translateLocaleText("t('vtxzfmodal.date')"),
|
|
217
218
|
type: 'date',
|
|
218
219
|
func: 'insertCustomDate'
|
|
219
220
|
}, {
|
|
220
|
-
name: '
|
|
221
|
+
name: translateLocaleText("t('vtxzfmodal.text2')"),
|
|
221
222
|
type: 'textarea',
|
|
222
223
|
func: 'insertCustomTextarea'
|
|
223
224
|
}, {
|
|
224
|
-
name: '
|
|
225
|
+
name: translateLocaleText("t('vtxzfmodal.signatureImage')"),
|
|
225
226
|
type: 'sign',
|
|
226
227
|
func: 'insertCustomSign'
|
|
227
228
|
}, {
|
|
228
|
-
name: '
|
|
229
|
+
name: translateLocaleText("t('vtxzfmodal.editText')"),
|
|
229
230
|
type: 'editable-div',
|
|
230
231
|
func: 'insertEditableDiv'
|
|
231
232
|
}, {
|
|
232
|
-
name: '
|
|
233
|
+
name: translateLocaleText("t('vtxzfmodal.singleSelection')"),
|
|
233
234
|
type: 'radio',
|
|
234
235
|
func: 'insertCustomRadio'
|
|
235
236
|
}, {
|
|
236
|
-
name: '
|
|
237
|
+
name: translateLocaleText("t('vtxzfmodal.checkbox')"),
|
|
237
238
|
type: 'checkbox',
|
|
238
239
|
func: 'insertCustomCheckbox'
|
|
239
240
|
}].map(function (item) {
|
|
@@ -244,7 +245,7 @@ function CkEditorCustom(_ref, ref) {
|
|
|
244
245
|
setState({
|
|
245
246
|
modalVisible: true,
|
|
246
247
|
modalType: item.type,
|
|
247
|
-
modalTitle: "".concat(item.name, " >
|
|
248
|
+
modalTitle: "".concat(item.name, " > ").concat(translateLocaleText("t('vtxzfmodal.configuration')")),
|
|
248
249
|
executeFunc: item.func
|
|
249
250
|
});
|
|
250
251
|
},
|
|
@@ -255,7 +256,7 @@ function CkEditorCustom(_ref, ref) {
|
|
|
255
256
|
}), /*#__PURE__*/_jsx("div", {
|
|
256
257
|
className: classNames("tab3"),
|
|
257
258
|
style: {
|
|
258
|
-
display: state.active
|
|
259
|
+
display: state.active === 'preview' ? 'block' : 'none'
|
|
259
260
|
},
|
|
260
261
|
children: /*#__PURE__*/_jsx("div", {
|
|
261
262
|
className: classNames("block"),
|
|
@@ -268,17 +269,17 @@ function CkEditorCustom(_ref, ref) {
|
|
|
268
269
|
}), /*#__PURE__*/_jsx("div", {
|
|
269
270
|
className: classNames("footer"),
|
|
270
271
|
children: [{
|
|
271
|
-
name: '
|
|
272
|
+
name: translateLocaleText("t('vtxzfmodal.sourceCode')"),
|
|
272
273
|
key: 'source'
|
|
273
274
|
}, {
|
|
274
|
-
name: '
|
|
275
|
+
name: translateLocaleText("t('vtxzfmodal.design')"),
|
|
275
276
|
key: 'design'
|
|
276
277
|
}, {
|
|
277
|
-
name: '
|
|
278
|
+
name: translateLocaleText("t('vtxzfmodal.preview')"),
|
|
278
279
|
key: 'preview'
|
|
279
280
|
}].map(function (item) {
|
|
280
281
|
return /*#__PURE__*/_jsx("span", {
|
|
281
|
-
className: classNames(state.active
|
|
282
|
+
className: classNames(state.active === item.key ? 'checked' : ''),
|
|
282
283
|
onClick: function onClick() {
|
|
283
284
|
setState({
|
|
284
285
|
active: item.key,
|
|
@@ -15,6 +15,7 @@ import React, { useEffect } from "react";
|
|
|
15
15
|
import Config from "./config";
|
|
16
16
|
import classNames from "classnames";
|
|
17
17
|
import { VtxFormLayout } from '@vtx/components';
|
|
18
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
18
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
20
|
export default function CKModal(props) {
|
|
20
21
|
var _props$defaultData = props.defaultData,
|
|
@@ -35,8 +36,9 @@ export default function CKModal(props) {
|
|
|
35
36
|
};
|
|
36
37
|
return /*#__PURE__*/_jsx(Modal, {
|
|
37
38
|
title: "".concat(props.title),
|
|
38
|
-
|
|
39
|
+
open: props.visible,
|
|
39
40
|
maskClosable: false,
|
|
41
|
+
destroyOnHidden: true,
|
|
40
42
|
onCancel: props.onClose,
|
|
41
43
|
onOk: function onOk() {
|
|
42
44
|
return form.submit();
|
|
@@ -48,27 +50,27 @@ export default function CKModal(props) {
|
|
|
48
50
|
children: /*#__PURE__*/_jsx(VtxFormLayout, {
|
|
49
51
|
cols: 1,
|
|
50
52
|
children: (Config[props.type] || []).map(function (item) {
|
|
51
|
-
if (item.type
|
|
53
|
+
if (item.type === 'label') {
|
|
52
54
|
return /*#__PURE__*/_jsx("div", {
|
|
53
55
|
className: classNames("label"),
|
|
54
|
-
children: item.name
|
|
56
|
+
children: translateLocaleText(item.name)
|
|
55
57
|
}, item.key);
|
|
56
58
|
} else {
|
|
57
59
|
return /*#__PURE__*/_jsx(VtxFormLayout.FormItem, {
|
|
58
|
-
label: item.name,
|
|
60
|
+
label: translateLocaleText(item.name),
|
|
59
61
|
name: item.key,
|
|
60
62
|
weights: 1,
|
|
61
63
|
rules: [{
|
|
62
64
|
required: item.require,
|
|
63
|
-
message: '
|
|
65
|
+
message: translateLocaleText("t('vtxzfmodal.required')")
|
|
64
66
|
}],
|
|
65
67
|
getValueFromEvent: function getValueFromEvent(e) {
|
|
66
68
|
return (e.target.value || '').trim();
|
|
67
69
|
},
|
|
68
70
|
children: /*#__PURE__*/_jsx(Input, {
|
|
69
|
-
placeholder: "
|
|
71
|
+
placeholder: translateLocaleText("t('common.placeholder.input')")
|
|
70
72
|
})
|
|
71
|
-
});
|
|
73
|
+
}, item.key);
|
|
72
74
|
}
|
|
73
75
|
})
|
|
74
76
|
})
|