@vtx/modals2 2.10.37 → 2.10.38

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.
Files changed (470) hide show
  1. package/README.md +33 -33
  2. package/lib/style/index.css +2 -0
  3. package/lib/style/index.less +9 -9
  4. package/lib/style/themes/dark.less +71 -71
  5. package/lib/style/themes/default.less +37 -37
  6. package/lib/style/themes/index.less +1 -1
  7. package/lib/style/themesHZ/dark.css +2 -0
  8. package/lib/style/themesHZ/dark.less +70 -69
  9. package/lib/style/themesHZ/default.css +1 -0
  10. package/lib/style/themesHZ/default.less +24 -23
  11. package/lib/style/themesHZ/index.css +2 -0
  12. package/lib/style/themesHZ/index.less +1 -1
  13. package/lib/typings.d.ts +15 -15
  14. package/lib/vm-alarm-info/Components/AlarmStatistics.js +2 -2
  15. package/lib/vm-alarm-info/Components/AlarmStatistics.js.map +1 -1
  16. package/lib/vm-alarm-info/Components/AlarmTrend.js +2 -2
  17. package/lib/vm-alarm-info/Components/AlarmTrend.js.map +1 -1
  18. package/lib/vm-alarm-info/Components/CurrentAlarmNew.js +2 -2
  19. package/lib/vm-alarm-info/Components/CurrentAlarmNew.js.map +1 -1
  20. package/lib/vm-alarm-info/Components/index.less +40 -40
  21. package/lib/vm-alarm-info/index.js +2 -2
  22. package/lib/vm-alarm-info/index.js.map +1 -1
  23. package/lib/vm-alarm-info/style/index.less +16 -16
  24. package/lib/vm-alarm-situation/index.js +2 -2
  25. package/lib/vm-alarm-situation/index.js.map +1 -1
  26. package/lib/vm-alarm-situation/style/index.less +67 -67
  27. package/lib/vm-alarm-situation-pt/index.js +2 -2
  28. package/lib/vm-alarm-situation-pt/index.js.map +1 -1
  29. package/lib/vm-alarm-situation-pt/style/index.less +65 -65
  30. package/lib/vm-analysis-comparison/index.js +2 -2
  31. package/lib/vm-analysis-comparison/index.js.map +1 -1
  32. package/lib/vm-analysis-comparison/style/index.less +12 -12
  33. package/lib/vm-appraisal-info/List.js +1 -1
  34. package/lib/vm-appraisal-info/List.js.map +1 -1
  35. package/lib/vm-appraisal-info/ListKh.js +1 -1
  36. package/lib/vm-appraisal-info/ListKh.js.map +1 -1
  37. package/lib/vm-appraisal-info/ListZg.js +1 -1
  38. package/lib/vm-appraisal-info/ListZg.js.map +1 -1
  39. package/lib/vm-appraisal-info/index.js +2 -2
  40. package/lib/vm-appraisal-info/index.js.map +1 -1
  41. package/lib/vm-appraisal-info/style/index.less +122 -122
  42. package/lib/vm-base-list/index.js +2 -2
  43. package/lib/vm-base-list/index.js.map +1 -1
  44. package/lib/vm-base-list/style/index.less +39 -39
  45. package/lib/vm-button/style/index.less +20 -20
  46. package/lib/vm-charts/Line.js +1 -1
  47. package/lib/vm-charts/Pie.js +1 -1
  48. package/lib/vm-charts/index.less +30 -30
  49. package/lib/vm-checkbox/style/index.less +25 -25
  50. package/lib/vm-common-components/common/vm-modal/style/index.less +108 -108
  51. package/lib/vm-common-components/common/vm-scrollable/index.js +9 -4
  52. package/lib/vm-common-components/common/vm-scrollable/index.js.map +1 -1
  53. package/lib/vm-common-components/common/vm-scrollable/style/index.less +17 -17
  54. package/lib/vm-common-components/common/vm-scrollableRow/index.js +185 -0
  55. package/lib/vm-common-components/common/vm-scrollableRow/index.js.map +1 -0
  56. package/lib/vm-common-components/common/vm-scrollableRow/style/css.js +4 -0
  57. package/lib/vm-common-components/common/vm-scrollableRow/style/css.js.map +1 -0
  58. package/lib/vm-common-components/common/vm-scrollableRow/style/index.css +110 -0
  59. package/lib/vm-common-components/common/vm-scrollableRow/style/index.js +4 -0
  60. package/lib/vm-common-components/common/vm-scrollableRow/style/index.js.map +1 -0
  61. package/lib/vm-common-components/common/vm-scrollableRow/style/index.less +113 -0
  62. package/lib/vm-common-components/common/vm-select/style/index.less +51 -51
  63. package/lib/vm-common-components/common/vm-tabs/index.js +2 -2
  64. package/lib/vm-common-components/common/vm-tabs/index.js.map +1 -1
  65. package/lib/vm-common-components/common/vm-tabs/style/index.less +60 -60
  66. package/lib/vm-common-components/components/Compare/style/index.less +35 -35
  67. package/lib/vm-common-components/components/ImagesGroup/style/index.less +11 -11
  68. package/lib/vm-common-components/components/Portrait/imgs/dx.svg +5 -5
  69. package/lib/vm-common-components/components/Portrait/imgs/gj.svg +6 -6
  70. package/lib/vm-common-components/components/Portrait/imgs/jt.svg +5 -5
  71. package/lib/vm-common-components/components/Portrait/style/index.less +226 -226
  72. package/lib/vm-common-components/components/RadionButton/index.js +2 -2
  73. package/lib/vm-common-components/components/RadionButton/index.js.map +1 -1
  74. package/lib/vm-common-components/components/RadionButton/style/index.less +25 -25
  75. package/lib/vm-common-components/components/Statistics/style/index.less +68 -68
  76. package/lib/vm-common-components/components/SubTitle/style/index.less +63 -63
  77. package/lib/vm-common-components/components/TimePeriodSwitch/index.js +2 -2
  78. package/lib/vm-common-components/components/TimePeriodSwitch/index.js.map +1 -1
  79. package/lib/vm-common-components/components/TimePeriodSwitch/style/index.less +44 -44
  80. package/lib/vm-common-components/components/index.js +1 -1
  81. package/lib/vm-common-components/components/vm-alarm-title/style/index.less +25 -25
  82. package/lib/vm-common-components/components/vm-chart/index.js +2 -2
  83. package/lib/vm-common-components/components/vm-chart/index.js.map +1 -1
  84. package/lib/vm-common-components/components/vm-chart/index.less +12 -12
  85. package/lib/vm-common-components/components/vm-collect/index.js +2 -2
  86. package/lib/vm-common-components/components/vm-collect/index.js.map +1 -1
  87. package/lib/vm-common-components/components/vm-collect/style/index.less +13 -13
  88. package/lib/vm-common-components/components/vm-container/style/index.less +16 -16
  89. package/lib/vm-common-components/components/vm-defects/index.js +2 -2
  90. package/lib/vm-common-components/components/vm-defects/index.js.map +1 -1
  91. package/lib/vm-common-components/components/vm-defects/style/index.less +23 -23
  92. package/lib/vm-common-components/components/vm-nodata/index.js +4 -0
  93. package/lib/vm-common-components/components/vm-nodata/index.js.map +1 -1
  94. package/lib/vm-common-components/components/vm-nodata/style/index.less +20 -20
  95. package/lib/vm-common-components/components/vm-radar/index.js +6 -8
  96. package/lib/vm-common-components/components/vm-radar/index.js.map +1 -1
  97. package/lib/vm-common-components/components/vm-water-wave/index.less +56 -56
  98. package/lib/vm-common-components/index.js +1 -1
  99. package/lib/vm-common-components/index.js.map +1 -1
  100. package/lib/vm-common-components/style/index.css +2 -0
  101. package/lib/vm-common-components/style/index.less +1 -1
  102. package/lib/vm-container/style/index.less +28 -28
  103. package/lib/vm-correlation-comparison/index.js +2 -2
  104. package/lib/vm-correlation-comparison/index.js.map +1 -1
  105. package/lib/vm-correlation-comparison/style/index.less +13 -13
  106. package/lib/vm-empty/style/index.less +23 -23
  107. package/lib/vm-filter/index.js +2 -2
  108. package/lib/vm-filter/index.js.map +1 -1
  109. package/lib/vm-filter/style/index.less +165 -165
  110. package/lib/vm-image-text/style/index.less +30 -30
  111. package/lib/vm-info-collection/style/index.less +38 -38
  112. package/lib/vm-map/index.js +2 -2
  113. package/lib/vm-map/index.js.map +1 -1
  114. package/lib/vm-modal-table/style/index.less +23 -23
  115. package/lib/vm-radio/style/index.less +26 -26
  116. package/lib/vm-real-time-monitor/index.js +2 -2
  117. package/lib/vm-real-time-monitor/index.js.map +1 -1
  118. package/lib/vm-real-time-monitor/style/index.less +12 -12
  119. package/lib/vm-repair-maintain/RmRecord.js +1 -1
  120. package/lib/vm-repair-maintain/RmRecord.js.map +1 -1
  121. package/lib/vm-repair-maintain/style/index.less +108 -108
  122. package/lib/vm-round-content/index.js +2 -2
  123. package/lib/vm-round-content/index.js.map +1 -1
  124. package/lib/vm-round-content/style/index.less +33 -33
  125. package/lib/vm-select-device/index.js +2 -2
  126. package/lib/vm-select-device/index.js.map +1 -1
  127. package/lib/vm-select-device/style/index.less +16 -16
  128. package/lib/vm-sub-tabs/style/index.less +119 -119
  129. package/lib/vm-sub-title/style/index.less +23 -23
  130. package/lib/vm-table/index.js +3 -3
  131. package/lib/vm-table/index.js.map +1 -1
  132. package/lib/vm-table/style/index.less +224 -224
  133. package/lib/vm-video/index.css +2 -0
  134. package/lib/vm-video/index.less +10 -10
  135. package/lib/vtx-base-modal/index.js +2 -2
  136. package/lib/vtx-base-modal/index.js.map +1 -1
  137. package/lib/vtx-base-modal/style/index.less +547 -547
  138. package/lib/vtx-car-modal/components/AlarmInfo/List.js +2 -2
  139. package/lib/vtx-car-modal/components/AlarmInfo/List.js.map +1 -1
  140. package/lib/vtx-car-modal/components/AlarmInfo/index.js +2 -2
  141. package/lib/vtx-car-modal/components/AlarmInfo/index.js.map +1 -1
  142. package/lib/vtx-car-modal/components/AlarmInfo/index.less +38 -38
  143. package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js +1 -1
  144. package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js +1 -1
  145. package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js +1 -1
  146. package/lib/vtx-car-modal/components/BaseInfo/index.js +2 -2
  147. package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -1
  148. package/lib/vtx-car-modal/components/BaseInfo/index.less +239 -239
  149. package/lib/vtx-car-modal/components/Maintenance/index.less +34 -34
  150. package/lib/vtx-car-modal/components/OilConsumption/List.js +1 -1
  151. package/lib/vtx-car-modal/components/OilConsumption/List.js.map +1 -1
  152. package/lib/vtx-car-modal/components/OilConsumption/index.js +1 -1
  153. package/lib/vtx-car-modal/components/OilConsumption/index.js.map +1 -1
  154. package/lib/vtx-car-modal/components/OilConsumption/index.less +36 -36
  155. package/lib/vtx-car-modal/components/StaticInfo/index.js +2 -2
  156. package/lib/vtx-car-modal/components/StaticInfo/index.js.map +1 -1
  157. package/lib/vtx-car-modal/components/StaticInfo/index.less +72 -72
  158. package/lib/vtx-car-modal/components/WaterConsumption/index.js +1 -1
  159. package/lib/vtx-car-modal/components/WaterConsumption/index.js.map +1 -1
  160. package/lib/vtx-car-modal/components/WaterConsumption/index.less +22 -22
  161. package/lib/vtx-car-modal/components/WorkInfo/Wcl.js +1 -1
  162. package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js +2 -2
  163. package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js.map +1 -1
  164. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js +1 -1
  165. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js.map +1 -1
  166. package/lib/vtx-car-modal/components/WorkInfo/index.less +62 -62
  167. package/lib/vtx-car-modal/index.js +1 -1
  168. package/lib/vtx-car-modal/index.js.map +1 -1
  169. package/lib/vtx-car-modal/style/index.css +2 -0
  170. package/lib/vtx-car-modal/style/index.less +6 -6
  171. package/lib/vtx-cc-cp-modal/api.js +2 -2
  172. package/lib/vtx-cc-cp-modal/api.js.map +1 -1
  173. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +2 -2
  174. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
  175. package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
  176. package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js +1 -1
  177. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.less +104 -104
  178. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
  179. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
  180. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
  181. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +2 -2
  182. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js.map +1 -1
  183. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +89 -89
  184. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js +2 -2
  185. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js.map +1 -1
  186. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js +1 -1
  187. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js +1 -1
  188. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.less +104 -104
  189. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +2 -2
  190. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js.map +1 -1
  191. package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +7 -7
  192. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
  193. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
  194. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
  195. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js.map +1 -1
  196. package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +39 -39
  197. package/lib/vtx-cc-cp-modal/index.js +1 -1
  198. package/lib/vtx-cc-cp-modal/index.js.map +1 -1
  199. package/lib/vtx-cc-cp-modal/style/index.css +2 -0
  200. package/lib/vtx-cc-cp-modal/style/index.less +1 -1
  201. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +2 -2
  202. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
  203. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +2 -2
  204. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
  205. package/lib/vtx-cp-modal/components/AlarmInfo/index.less +105 -105
  206. package/lib/vtx-cp-modal/components/BaseInfo/index.less +135 -135
  207. package/lib/vtx-cp-modal/components/ExeceptionInfo/ExeceptionRecord.js +2 -2
  208. package/lib/vtx-cp-modal/components/ExeceptionInfo/ExeceptionRecord.js.map +1 -1
  209. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +2 -2
  210. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js.map +1 -1
  211. package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +105 -105
  212. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +1 -1
  213. package/lib/vtx-cp-modal/components/SyInfo/index.js +2 -2
  214. package/lib/vtx-cp-modal/components/SyInfo/index.js.map +1 -1
  215. package/lib/vtx-cp-modal/components/SyInfo/index.less +37 -37
  216. package/lib/vtx-cp-modal/index.js +1 -1
  217. package/lib/vtx-cp-modal/index.js.map +1 -1
  218. package/lib/vtx-cp-modal/style/index.css +2 -0
  219. package/lib/vtx-cp-modal/style/index.less +1 -1
  220. package/lib/vtx-default-modal/components/BaseInfo/index.less +24 -24
  221. package/lib/vtx-default-modal/index.js +1 -1
  222. package/lib/vtx-default-modal/index.js.map +1 -1
  223. package/lib/vtx-default-modal/style/index.css +2 -0
  224. package/lib/vtx-default-modal/style/index.less +1 -1
  225. package/lib/vtx-device-modal/components/DataAnalysis/index.js +2 -2
  226. package/lib/vtx-device-modal/components/DataAnalysis/index.js.map +1 -1
  227. package/lib/vtx-device-modal/components/OverViewInfo/index.js +2 -2
  228. package/lib/vtx-device-modal/components/OverViewInfo/index.js.map +1 -1
  229. package/lib/vtx-device-modal/index.js +1 -1
  230. package/lib/vtx-device-modal/index.js.map +1 -1
  231. package/lib/vtx-device-modal/style/index.less +7 -7
  232. package/lib/vtx-df-modal/components/BaseInfo/AlarmDetail.js +1 -1
  233. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +2 -2
  234. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js.map +1 -1
  235. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +2 -2
  236. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js.map +1 -1
  237. package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
  238. package/lib/vtx-df-modal/components/BaseInfo/index.js.map +1 -1
  239. package/lib/vtx-df-modal/components/BaseInfo/index.less +191 -191
  240. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
  241. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
  242. package/lib/vtx-df-modal/components/Metering/List.js +1 -1
  243. package/lib/vtx-df-modal/components/Metering/List.js.map +1 -1
  244. package/lib/vtx-df-modal/components/Metering/index.js +2 -2
  245. package/lib/vtx-df-modal/components/Metering/index.js.map +1 -1
  246. package/lib/vtx-df-modal/components/Metering/index.less +75 -75
  247. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
  248. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js.map +1 -1
  249. package/lib/vtx-df-modal/components/WorkCondition/Situation.js +2 -2
  250. package/lib/vtx-df-modal/components/WorkCondition/Situation.js.map +1 -1
  251. package/lib/vtx-df-modal/components/WorkCondition/index.js +2 -2
  252. package/lib/vtx-df-modal/components/WorkCondition/index.js.map +1 -1
  253. package/lib/vtx-df-modal/components/WorkCondition/index.less +113 -113
  254. package/lib/vtx-df-modal/index.js +1 -1
  255. package/lib/vtx-df-modal/index.js.map +1 -1
  256. package/lib/vtx-df-modal/style/index.css +2 -0
  257. package/lib/vtx-df-modal/style/index.less +1 -1
  258. package/lib/vtx-facility-modal/api.js +2 -2
  259. package/lib/vtx-facility-modal/api.js.map +1 -1
  260. package/lib/vtx-facility-modal/components/OverView/index.js +2 -2
  261. package/lib/vtx-facility-modal/components/OverView/index.js.map +1 -1
  262. package/lib/vtx-facility-modal/components/OverView/index.less +116 -116
  263. package/lib/vtx-facility-modal/style/index.less +1 -1
  264. package/lib/vtx-health-modal/api.js +1 -1
  265. package/lib/vtx-health-modal/api.js.map +1 -1
  266. package/lib/vtx-health-modal/components/Health/index.js +47 -34
  267. package/lib/vtx-health-modal/components/Health/index.js.map +1 -1
  268. package/lib/vtx-health-modal/components/Health/style/index.css +14 -2
  269. package/lib/vtx-health-modal/components/Health/style/index.less +32 -9
  270. package/lib/vtx-housing-estate-modal/api.js +2 -2
  271. package/lib/vtx-housing-estate-modal/api.js.map +1 -1
  272. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js +2 -2
  273. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js.map +1 -1
  274. package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js +2 -2
  275. package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js.map +1 -1
  276. package/lib/vtx-housing-estate-modal/components/Alarm/MY.js +2 -2
  277. package/lib/vtx-housing-estate-modal/components/Alarm/MY.js.map +1 -1
  278. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +2 -2
  279. package/lib/vtx-housing-estate-modal/components/Alarm/index.js.map +1 -1
  280. package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
  281. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +2 -2
  282. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js.map +1 -1
  283. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -2
  284. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js.map +1 -1
  285. package/lib/vtx-housing-estate-modal/components/OverView/index.less +246 -246
  286. package/lib/vtx-housing-estate-modal/components/SPJK/index.js +2 -2
  287. package/lib/vtx-housing-estate-modal/components/SPJK/index.js.map +1 -1
  288. package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
  289. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +2 -2
  290. package/lib/vtx-housing-estate-modal/components/TFRD/index.js.map +1 -1
  291. package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
  292. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +2 -2
  293. package/lib/vtx-housing-estate-modal/components/WGGS/index.js.map +1 -1
  294. package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
  295. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +2 -2
  296. package/lib/vtx-housing-estate-modal/components/WGXW/index.js.map +1 -1
  297. package/lib/vtx-housing-estate-modal/components/WGXW/index.less +76 -76
  298. package/lib/vtx-housing-estate-modal/style/index.less +1 -1
  299. package/lib/vtx-hz-facility-modal/api.js +24 -2
  300. package/lib/vtx-hz-facility-modal/api.js.map +1 -1
  301. package/lib/vtx-hz-facility-modal/components/BJGK/index.js +2 -2
  302. package/lib/vtx-hz-facility-modal/components/BJGK/index.js.map +1 -1
  303. package/lib/vtx-hz-facility-modal/components/BaseInfo/index.less +7 -7
  304. package/lib/vtx-hz-facility-modal/components/CommonOverViewInfo/style/index.less +26 -26
  305. package/lib/vtx-hz-facility-modal/components/DetectedData/index.js +1 -1
  306. package/lib/vtx-hz-facility-modal/components/DetectedData/index.js.map +1 -1
  307. package/lib/vtx-hz-facility-modal/components/FacilityFile/style/index.less +22 -22
  308. package/lib/vtx-hz-facility-modal/components/FacilityFile1/style/index.less +30 -30
  309. package/lib/vtx-hz-facility-modal/components/FacilityFile2/index.js +2 -2
  310. package/lib/vtx-hz-facility-modal/components/FacilityFile2/index.js.map +1 -1
  311. package/lib/vtx-hz-facility-modal/components/FacilityFile2/style/index.less +15 -15
  312. package/lib/vtx-hz-facility-modal/components/FacilityFilePoint/style/index.less +33 -33
  313. package/lib/vtx-hz-facility-modal/components/Flaw/style/index.less +2 -2
  314. package/lib/vtx-hz-facility-modal/components/MonitorData/index.js +2 -2
  315. package/lib/vtx-hz-facility-modal/components/MonitorData/index.js.map +1 -1
  316. package/lib/vtx-hz-facility-modal/components/MonitorData/style/inedx.less +4 -4
  317. package/lib/vtx-hz-facility-modal/components/OverViewInfo/index.js +5 -1
  318. package/lib/vtx-hz-facility-modal/components/OverViewInfo/index.js.map +1 -1
  319. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js +2 -2
  320. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js.map +1 -1
  321. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/style/index.less +42 -42
  322. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/index.js +2 -2
  323. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/index.js.map +1 -1
  324. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/style/index.less +50 -50
  325. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/style/index.less +16 -16
  326. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/index.js +138 -0
  327. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/index.js.map +1 -0
  328. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/css.js +4 -0
  329. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/css.js.map +1 -0
  330. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/index.css +10 -0
  331. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/index.js +4 -0
  332. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/index.js.map +1 -0
  333. package/lib/vtx-hz-facility-modal/components/OverViewInfo4/style/index.less +10 -0
  334. package/lib/vtx-hz-facility-modal/components/OverViewPoint/style/index.less +42 -42
  335. package/lib/vtx-hz-facility-modal/components/PipeLine/style/index.less +26 -26
  336. package/lib/vtx-hz-facility-modal/components/PipePoint/style/index.less +26 -26
  337. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.css +2 -3
  338. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.js +8 -15
  339. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.js.map +1 -1
  340. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.less +48 -48
  341. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/RadarCharts/index.js +12 -3
  342. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/RadarCharts/index.js.map +1 -1
  343. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/index.css +45 -24
  344. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/index.js +67 -132
  345. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/index.js.map +1 -1
  346. package/lib/vtx-hz-facility-modal/components/PipelineHealthRating/index.less +62 -53
  347. package/lib/vtx-hz-facility-modal/components/Record/index.js +2 -2
  348. package/lib/vtx-hz-facility-modal/components/Record/index.js.map +1 -1
  349. package/lib/vtx-hz-facility-modal/components/RecordOrder/index.js +2 -2
  350. package/lib/vtx-hz-facility-modal/components/RecordOrder/index.js.map +1 -1
  351. package/lib/vtx-hz-facility-modal/components/RecordOrderWrap/index.js +2 -2
  352. package/lib/vtx-hz-facility-modal/components/RecordOrderWrap/index.js.map +1 -1
  353. package/lib/vtx-hz-facility-modal/components/RecordTask/index.js +2 -3
  354. package/lib/vtx-hz-facility-modal/components/RecordTask/index.js.map +1 -1
  355. package/lib/vtx-hz-facility-modal/components/RecordTaskWrap/index.js +2 -2
  356. package/lib/vtx-hz-facility-modal/components/RecordTaskWrap/index.js.map +1 -1
  357. package/lib/vtx-hz-facility-modal/components/RelevanceDevice/index.js +2 -2
  358. package/lib/vtx-hz-facility-modal/components/RelevanceDevice/index.js.map +1 -1
  359. package/lib/vtx-hz-facility-modal/components/YWGL/index.js +2 -2
  360. package/lib/vtx-hz-facility-modal/components/YWGL/index.js.map +1 -1
  361. package/lib/vtx-hz-facility-modal/index.js +2 -2
  362. package/lib/vtx-hz-facility-modal/index.js.map +1 -1
  363. package/lib/vtx-kh-modal/components/BaseInfo/index.less +62 -62
  364. package/lib/vtx-kh-modal/index.js +1 -1
  365. package/lib/vtx-kh-modal/index.js.map +1 -1
  366. package/lib/vtx-kh-modal/style/index.css +2 -0
  367. package/lib/vtx-kh-modal/style/index.less +1 -1
  368. package/lib/vtx-restaurant-modal/api.js +2 -2
  369. package/lib/vtx-restaurant-modal/api.js.map +1 -1
  370. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
  371. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
  372. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
  373. package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -2
  374. package/lib/vtx-restaurant-modal/components/Alarm/index.js.map +1 -1
  375. package/lib/vtx-restaurant-modal/components/Alarm/index.less +32 -32
  376. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
  377. package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
  378. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
  379. package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
  380. package/lib/vtx-restaurant-modal/components/Basic/index.less +55 -55
  381. package/lib/vtx-restaurant-modal/components/Collection/index.js +2 -2
  382. package/lib/vtx-restaurant-modal/components/Collection/index.js.map +1 -1
  383. package/lib/vtx-restaurant-modal/components/Collection/index.less +23 -23
  384. package/lib/vtx-restaurant-modal/index.js +1 -1
  385. package/lib/vtx-restaurant-modal/index.js.map +1 -1
  386. package/lib/vtx-restaurant-modal/style/index.less +1 -1
  387. package/lib/vtx-road-modal/components/BaseInfo/index.less +134 -134
  388. package/lib/vtx-road-modal/components/Statistical/Zylc.js +1 -1
  389. package/lib/vtx-road-modal/components/Statistical/Zywcl.js +1 -1
  390. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  391. package/lib/vtx-road-modal/components/Statistical/index.js.map +1 -1
  392. package/lib/vtx-road-modal/components/Statistical/index.less +110 -110
  393. package/lib/vtx-road-modal/index.js +1 -1
  394. package/lib/vtx-road-modal/index.js.map +1 -1
  395. package/lib/vtx-road-modal/style/index.css +2 -0
  396. package/lib/vtx-road-modal/style/index.less +1 -1
  397. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
  398. package/lib/vtx-staff-modal/components/AlarmInfo/List.js.map +1 -1
  399. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +2 -2
  400. package/lib/vtx-staff-modal/components/AlarmInfo/index.js.map +1 -1
  401. package/lib/vtx-staff-modal/components/AlarmInfo/index.less +22 -22
  402. package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
  403. package/lib/vtx-staff-modal/components/Attendance/Record.js.map +1 -1
  404. package/lib/vtx-staff-modal/components/Attendance/index.less +19 -19
  405. package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js +1 -1
  406. package/lib/vtx-staff-modal/components/BaseInfo/index.js +2 -2
  407. package/lib/vtx-staff-modal/components/BaseInfo/index.js.map +1 -1
  408. package/lib/vtx-staff-modal/components/BaseInfo/index.less +144 -144
  409. package/lib/vtx-staff-modal/components/Equipment/index.less +27 -27
  410. package/lib/vtx-staff-modal/index.js +1 -1
  411. package/lib/vtx-staff-modal/index.js.map +1 -1
  412. package/lib/vtx-staff-modal/style/index.css +2 -0
  413. package/lib/vtx-staff-modal/style/index.less +1 -1
  414. package/lib/vtx-throw-point-modal/api.js +2 -2
  415. package/lib/vtx-throw-point-modal/api.js.map +1 -1
  416. package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js +2 -2
  417. package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js.map +1 -1
  418. package/lib/vtx-throw-point-modal/components/Alarm/LDB.js +2 -2
  419. package/lib/vtx-throw-point-modal/components/Alarm/LDB.js.map +1 -1
  420. package/lib/vtx-throw-point-modal/components/Alarm/MY.js +2 -2
  421. package/lib/vtx-throw-point-modal/components/Alarm/MY.js.map +1 -1
  422. package/lib/vtx-throw-point-modal/components/Alarm/index.js +2 -2
  423. package/lib/vtx-throw-point-modal/components/Alarm/index.js.map +1 -1
  424. package/lib/vtx-throw-point-modal/components/Alarm/index.less +66 -66
  425. package/lib/vtx-throw-point-modal/components/OverView/Hot.js +2 -2
  426. package/lib/vtx-throw-point-modal/components/OverView/Hot.js.map +1 -1
  427. package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js +2 -2
  428. package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js.map +1 -1
  429. package/lib/vtx-throw-point-modal/components/OverView/index.less +321 -321
  430. package/lib/vtx-throw-point-modal/components/SBZJ/index.js +2 -2
  431. package/lib/vtx-throw-point-modal/components/SBZJ/index.js.map +1 -1
  432. package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
  433. package/lib/vtx-throw-point-modal/components/TFRD/index.js +2 -2
  434. package/lib/vtx-throw-point-modal/components/TFRD/index.js.map +1 -1
  435. package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
  436. package/lib/vtx-throw-point-modal/components/WGGS/index.js +2 -2
  437. package/lib/vtx-throw-point-modal/components/WGGS/index.js.map +1 -1
  438. package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
  439. package/lib/vtx-throw-point-modal/components/WGXW/index.js +2 -2
  440. package/lib/vtx-throw-point-modal/components/WGXW/index.js.map +1 -1
  441. package/lib/vtx-throw-point-modal/components/WGXW/index.less +76 -76
  442. package/lib/vtx-throw-point-modal/style/index.less +1 -1
  443. package/lib/vtx-wr-modal/components/AlarmInfo/AlarmRecord.js +2 -2
  444. package/lib/vtx-wr-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
  445. package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js +2 -2
  446. package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js.map +1 -1
  447. package/lib/vtx-wr-modal/components/AlarmInfo/index.less +103 -103
  448. package/lib/vtx-wr-modal/components/BaseInfo/index.js +2 -2
  449. package/lib/vtx-wr-modal/components/BaseInfo/index.js.map +1 -1
  450. package/lib/vtx-wr-modal/components/BaseInfo/index.less +132 -132
  451. package/lib/vtx-wr-modal/components/Evaluate/AppraiseRecord.js +1 -1
  452. package/lib/vtx-wr-modal/components/Evaluate/AppraiseRecord.js.map +1 -1
  453. package/lib/vtx-wr-modal/components/Evaluate/Summary.js +2 -2
  454. package/lib/vtx-wr-modal/components/Evaluate/Summary.js.map +1 -1
  455. package/lib/vtx-wr-modal/components/Evaluate/index.js +1 -1
  456. package/lib/vtx-wr-modal/components/Evaluate/index.js.map +1 -1
  457. package/lib/vtx-wr-modal/components/Evaluate/index.less +121 -121
  458. package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js +2 -2
  459. package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js.map +1 -1
  460. package/lib/vtx-wr-modal/components/Monitor/index.less +78 -78
  461. package/lib/vtx-wr-modal/index.js +1 -1
  462. package/lib/vtx-wr-modal/index.js.map +1 -1
  463. package/lib/vtx-wr-modal/style/index.css +2 -0
  464. package/lib/vtx-wr-modal/style/index.less +1 -1
  465. package/lib/vtx-zg-modal/components/BaseInfo/index.less +82 -82
  466. package/lib/vtx-zg-modal/index.js +1 -1
  467. package/lib/vtx-zg-modal/index.js.map +1 -1
  468. package/lib/vtx-zg-modal/style/index.css +2 -0
  469. package/lib/vtx-zg-modal/style/index.less +1 -1
  470. package/package.json +1 -1
@@ -2,9 +2,8 @@
2
2
  display: -webkit-box;
3
3
  display: -ms-flexbox;
4
4
  display: flex;
5
- -webkit-box-pack: center;
6
- -ms-flex-pack: center;
7
- justify-content: center;
5
+ -ms-flex-pack: distribute;
6
+ justify-content: space-around;
8
7
  -webkit-box-align: center;
9
8
  -ms-flex-align: center;
10
9
  align-items: center;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -15,13 +15,11 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
15
15
  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."); }
16
16
  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); }
17
17
  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; }
18
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
18
+ 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; } }
19
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  function CustomRatingChart(props) {
21
21
  var _props$list = props.list,
22
22
  list = _props$list === void 0 ? [] : _props$list,
23
- _props$colors = props.colors,
24
- colors = _props$colors === void 0 ? [] : _props$colors,
25
23
  _props$legendPosition = props.legendPosition,
26
24
  legendPosition = _props$legendPosition === void 0 ? 'top' : _props$legendPosition,
27
25
  _props$isShowScore = props.isShowScore,
@@ -70,11 +68,7 @@ function CustomRatingChart(props) {
70
68
  style: Object.assign(Object.assign({}, legend.style || {}), {
71
69
  marginRight: 10
72
70
  })
73
- }), /*#__PURE__*/_react["default"].createElement("div", {
74
- style: {
75
- marginRight: 15
76
- }
77
- }, legend.name)), list.length === 1 && isShowScore && /*#__PURE__*/_react["default"].createElement("div", {
71
+ }), /*#__PURE__*/_react["default"].createElement("div", null, legend.name)), list.length === 1 && isShowScore && /*#__PURE__*/_react["default"].createElement("div", {
78
72
  className: _index["default"].legendBottom
79
73
  }, list[0]["".concat(legend.key)], "\u5206"));
80
74
  }));
@@ -126,16 +120,15 @@ function CustomRatingChart(props) {
126
120
  width: "".concat(scoreWidth > 100 ? 100 : scoreWidth, "%"),
127
121
  height: '100%',
128
122
  zIndex: 1,
129
- background: "".concat(colors.length && colors[0] || '#dcf9fa')
123
+ background: "".concat(legendData.length && legendData[0].style.background || '#dcf9fa')
130
124
  }
131
125
  }), /*#__PURE__*/_react["default"].createElement("div", {
132
126
  style: {
133
127
  position: 'absolute',
134
128
  width: "".concat(allScoreWidth > 100 ? 100 : allScoreWidth, "%"),
135
- height: '65%',
136
- top: '17%',
129
+ height: '100%',
137
130
  zIndex: 2,
138
- background: "".concat(colors.length && colors[1] || '#f5e288')
131
+ background: "".concat(legendData.length && legendData[1].style.background || '#f5e288')
139
132
  }
140
133
  }), /*#__PURE__*/_react["default"].createElement("div", {
141
134
  style: {
@@ -144,7 +137,7 @@ function CustomRatingChart(props) {
144
137
  height: '40%',
145
138
  top: '30%',
146
139
  zIndex: 3,
147
- background: "".concat(colors.length && colors[2] || '#407fcd')
140
+ background: "".concat(legendData.length && legendData[2].style.background || '#407fcd')
148
141
  }
149
142
  }), /*#__PURE__*/_react["default"].createElement("div", {
150
143
  style: {
@@ -152,7 +145,7 @@ function CustomRatingChart(props) {
152
145
  width: "1%",
153
146
  height: '100%',
154
147
  zIndex: 4,
155
- background: "".concat(colors.length && colors[3] || '#052a2b'),
148
+ background: "".concat(legendData.length && legendData[3].style.background || '#052a2b'),
156
149
  left: "".concat(classAverageLeft >= 100 ? 99 : classAverageLeft, "%")
157
150
  }
158
151
  })))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_index","_interopRequireDefault","_antd","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","length","arr2","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","push","value","err","isArray","CustomRatingChart","props","_props$list","list","_props$colors","colors","_props$legendPosition","legendPosition","_props$isShowScore","isShowScore","_props$isShowLabel","isShowLabel","_props$isShowScale","isShowScale","_props$legendData","legendData","_useState","useState","_useState2","maxScore","setMaxScore","_useState3","_useState4","scaleValList","setScaleValList","useEffect","max","map","item","score","val","parseInt","legendHtml","React","createElement","className","styles","customRatingChartLegend","legend","index","legendContent","legendTop","style","assign","marginRight","legendBottom","concat","Fragment","nowScoreWidth","classAverageLeft","allScoreWidth","scoreWidth","Number","nowScore","toFixed","classAverage","allScore","customRatingChart","label","typeName","bar","width","scaleVal","num","left","right","position","Tooltip","title","content","height","zIndex","background","top","_default","exports"],"sources":["vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport styles from './index.less';\nimport { Tooltip } from 'antd';\nfunction CustomRatingChart(props) {\n const { list = [], colors = [], legendPosition = 'top', // 图例位置\n isShowScore = false, // 图例是否展示分数\n isShowLabel = true, // 是否展示标签\n isShowScale = true, // 是否展示刻度\n legendData = [], // 图例数据\n } = props;\n const [maxScore, setMaxScore] = useState(100);\n const [scaleValList, setScaleValList] = useState([]);\n useEffect(() => {\n if ((list === null || list === void 0 ? void 0 : list.length) > 0) {\n let max = 0;\n list.map((item) => {\n if ((item.score || item.score === 0) && item.score > max) {\n max = item.score;\n }\n });\n let arr = [0, 1, 2, 3, 4, 5].map(val => val * parseInt((max / 6).toString(), 10));\n if ((arr === null || arr === void 0 ? void 0 : arr.length) && arr[arr.length - 1] !== max) {\n arr[arr.length - 1] = max;\n }\n setScaleValList(arr);\n setMaxScore(max);\n }\n }, [list]);\n const legendHtml = (React.createElement(\"div\", { className: styles.customRatingChartLegend }, legendData.map((legend, index) => {\n return (React.createElement(\"div\", { className: styles.legendContent, key: index },\n React.createElement(\"div\", { className: styles.legendTop },\n React.createElement(\"div\", { style: Object.assign(Object.assign({}, (legend.style || {})), { marginRight: 10 }) }),\n React.createElement(\"div\", { style: { marginRight: 15 } }, legend.name)),\n list.length === 1 && isShowScore && (React.createElement(\"div\", { className: styles.legendBottom },\n list[0][`${legend.key}`],\n \"\\u5206\"))));\n })));\n return (React.createElement(React.Fragment, null,\n legendPosition === 'top' && legendHtml,\n list.length > 0 &&\n list.map((item, index) => {\n let nowScoreWidth = 0, classAverageLeft = 0, allScoreWidth = 0, scoreWidth = 0;\n nowScoreWidth = Number(((item.nowScore / maxScore) * 100).toFixed(2));\n classAverageLeft = Number(((item.classAverage / maxScore) * 100).toFixed(2));\n allScoreWidth = Number(((item.allScore / maxScore) * 100).toFixed(2));\n scoreWidth = Number(((item.score / maxScore) * 100).toFixed(2));\n return (React.createElement(\"div\", { className: styles.customRatingChart, key: index },\n isShowLabel && React.createElement(\"div\", { className: styles.label }, item.typeName),\n React.createElement(\"div\", { className: styles.bar, style: { width: isShowLabel ? '80%' : '100%' } },\n isShowScale && (React.createElement(\"div\", { className: styles.scaleVal }, scaleValList.length > 0 &&\n scaleValList.map((val, index) => {\n let num = ((val / maxScore) * 100).toFixed(2);\n let obj = {\n left: `${num}%`,\n right: 'auto',\n };\n if (index === scaleValList.length - 1) {\n obj = {\n right: 0,\n };\n }\n return (React.createElement(\"div\", { key: index, style: Object.assign({ position: 'absolute' }, obj) }, val));\n }))),\n React.createElement(Tooltip, { title: React.createElement(React.Fragment, null,\n React.createElement(\"p\", null, `满分:${item.score || '-'}`),\n React.createElement(\"p\", null, `所有平均分:${item.allScore || '-'}`),\n React.createElement(\"p\", null, `当前分数:${item.nowScore || '-'}`),\n React.createElement(\"p\", null, `同类平均分:${item.classAverage || '-'}`)) },\n React.createElement(\"div\", { className: styles.content },\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${scoreWidth > 100 ? 100 : scoreWidth}%`,\n height: '100%',\n zIndex: 1,\n background: `${(colors.length && colors[0]) ||\n '#dcf9fa'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${allScoreWidth > 100 ? 100 : allScoreWidth}%`,\n height: '65%',\n top: '17%',\n zIndex: 2,\n background: `${(colors.length && colors[1]) ||\n '#f5e288'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${nowScoreWidth > 100 ? 100 : nowScoreWidth}%`,\n height: '40%',\n top: '30%',\n zIndex: 3,\n background: `${(colors.length && colors[2]) ||\n '#407fcd'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `1%`,\n height: '100%',\n zIndex: 4,\n background: `${(colors.length && colors[3]) ||\n '#052a2b'}`,\n left: `${classAverageLeft >= 100 ? 99 : classAverageLeft}%`,\n } }))))));\n }),\n legendPosition === 'bottom' && legendHtml));\n}\nexport default CustomRatingChart;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAA+B,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR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AM,EAAE,CAAC;QACTC,UAAU,KAAA1B,MAAA,CAAMzC,MAAM,CAACvB,MAAM,IAAIuB,MAAM,CAAC,CAAC,CAAC,IACtC,SAAS,CAAE;QACf2D,IAAI,KAAAlB,MAAA,CAAKG,gBAAgB,IAAI,GAAG,GAAG,EAAE,GAAGA,gBAAgB;MAC5D;IAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAChC,CAAC,CAAC,EACN1C,cAAc,KAAK,QAAQ,IAAIyB,UAAU,CAAC;AAClD;AAAC,IAAA0C,QAAA,GACc1E,iBAAiB;AAAA2E,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_index","_interopRequireDefault","_antd","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","length","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","isArray","CustomRatingChart","props","_props$list","list","_props$legendPosition","legendPosition","_props$isShowScore","isShowScore","_props$isShowLabel","isShowLabel","_props$isShowScale","isShowScale","_props$legendData","legendData","_useState","useState","_useState2","maxScore","setMaxScore","_useState3","_useState4","scaleValList","setScaleValList","useEffect","max","map","item","score","val","parseInt","legendHtml","React","createElement","className","styles","customRatingChartLegend","legend","index","legendContent","legendTop","style","assign","marginRight","legendBottom","concat","Fragment","nowScoreWidth","classAverageLeft","allScoreWidth","scoreWidth","Number","nowScore","toFixed","classAverage","allScore","customRatingChart","label","typeName","bar","width","scaleVal","num","left","right","position","Tooltip","title","content","height","zIndex","background","top","_default","exports"],"sources":["vtx-hz-facility-modal/components/PipelineHealthRating/CustomRatingChart/index.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport styles from './index.less';\nimport { Tooltip } from 'antd';\nfunction CustomRatingChart(props) {\n const { list = [], legendPosition = 'top', // 图例位置\n isShowScore = false, // 图例是否展示分数\n isShowLabel = true, // 是否展示标签\n isShowScale = true, // 是否展示刻度\n legendData = [], // 图例数据\n } = props;\n const [maxScore, setMaxScore] = useState(100);\n const [scaleValList, setScaleValList] = useState([]);\n useEffect(() => {\n if ((list === null || list === void 0 ? void 0 : list.length) > 0) {\n let max = 0;\n list.map((item) => {\n if ((item.score || item.score === 0) && item.score > max) {\n max = item.score;\n }\n });\n let arr = [0, 1, 2, 3, 4, 5].map(val => val * parseInt((max / 6).toString(), 10));\n if ((arr === null || arr === void 0 ? void 0 : arr.length) && arr[arr.length - 1] !== max) {\n arr[arr.length - 1] = max;\n }\n setScaleValList(arr);\n setMaxScore(max);\n }\n }, [list]);\n const legendHtml = (React.createElement(\"div\", { className: styles.customRatingChartLegend }, legendData.map((legend, index) => {\n return (React.createElement(\"div\", { className: styles.legendContent, key: index },\n React.createElement(\"div\", { className: styles.legendTop },\n React.createElement(\"div\", { style: Object.assign(Object.assign({}, (legend.style || {})), { marginRight: 10 }) }),\n React.createElement(\"div\", null, legend.name)),\n list.length === 1 && isShowScore && (React.createElement(\"div\", { className: styles.legendBottom },\n list[0][`${legend.key}`],\n \"\\u5206\"))));\n })));\n return (React.createElement(React.Fragment, null,\n legendPosition === 'top' && legendHtml,\n list.length > 0 &&\n list.map((item, index) => {\n let nowScoreWidth = 0, classAverageLeft = 0, allScoreWidth = 0, scoreWidth = 0;\n nowScoreWidth = Number(((item.nowScore / maxScore) * 100).toFixed(2));\n classAverageLeft = Number(((item.classAverage / maxScore) * 100).toFixed(2));\n allScoreWidth = Number(((item.allScore / maxScore) * 100).toFixed(2));\n scoreWidth = Number(((item.score / maxScore) * 100).toFixed(2));\n return (React.createElement(\"div\", { className: styles.customRatingChart, key: index },\n isShowLabel && React.createElement(\"div\", { className: styles.label }, item.typeName),\n React.createElement(\"div\", { className: styles.bar, style: { width: isShowLabel ? '80%' : '100%' } },\n isShowScale && (React.createElement(\"div\", { className: styles.scaleVal }, scaleValList.length > 0 &&\n scaleValList.map((val, index) => {\n let num = ((val / maxScore) * 100).toFixed(2);\n let obj = {\n left: `${num}%`,\n right: 'auto',\n };\n if (index === scaleValList.length - 1) {\n obj = {\n right: 0,\n };\n }\n return (React.createElement(\"div\", { key: index, style: Object.assign({ position: 'absolute' }, obj) }, val));\n }))),\n React.createElement(Tooltip, { title: React.createElement(React.Fragment, null,\n React.createElement(\"p\", null, `满分:${item.score || '-'}`),\n React.createElement(\"p\", null, `所有平均分:${item.allScore || '-'}`),\n React.createElement(\"p\", null, `当前分数:${item.nowScore || '-'}`),\n React.createElement(\"p\", null, `同类平均分:${item.classAverage || '-'}`)) },\n React.createElement(\"div\", { className: styles.content },\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${scoreWidth > 100 ? 100 : scoreWidth}%`,\n height: '100%',\n zIndex: 1,\n background: `${(legendData.length &&\n legendData[0].style.background) ||\n '#dcf9fa'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${allScoreWidth > 100 ? 100 : allScoreWidth}%`,\n height: '100%',\n zIndex: 2,\n background: `${(legendData.length &&\n legendData[1].style.background) ||\n '#f5e288'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `${nowScoreWidth > 100 ? 100 : nowScoreWidth}%`,\n height: '40%',\n top: '30%',\n zIndex: 3,\n background: `${(legendData.length &&\n legendData[2].style.background) ||\n '#407fcd'}`,\n } }),\n React.createElement(\"div\", { style: {\n position: 'absolute',\n width: `1%`,\n height: '100%',\n zIndex: 4,\n background: `${(legendData.length &&\n legendData[3].style.background) ||\n '#052a2b'}`,\n left: `${classAverageLeft >= 100 ? 99 : classAverageLeft}%`,\n } }))))));\n }),\n legendPosition === 'bottom' && legendHtml));\n}\nexport default CustomRatingChart;\n"],"mappings":";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;QACbG,GAAG,EAAE,KAAK;QACVF,MAAM,EAAE,CAAC;QACTC,UAAU,KAAA1B,MAAA,CAAM/B,UAAU,CAAC7B,MAAM,IAC7B6B,UAAU,CAAC,CAAC,CAAC,CAAC2B,KAAK,CAAC8B,UAAU,IAC9B,SAAS;MACjB;IAAE,CAAC,CAAC,eACRvC,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;MAAEQ,KAAK,EAAE;QAC5BwB,QAAQ,EAAE,UAAU;QACpBL,KAAK,MAAM;QACXS,MAAM,EAAE,MAAM;QACdC,MAAM,EAAE,CAAC;QACTC,UAAU,KAAA1B,MAAA,CAAM/B,UAAU,CAAC7B,MAAM,IAC7B6B,UAAU,CAAC,CAAC,CAAC,CAAC2B,KAAK,CAAC8B,UAAU,IAC9B,SAAS,CAAE;QACfR,IAAI,KAAAlB,MAAA,CAAKG,gBAAgB,IAAI,GAAG,GAAG,EAAE,GAAGA,gBAAgB;MAC5D;IAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAChC,CAAC,CAAC,EACN1C,cAAc,KAAK,QAAQ,IAAIyB,UAAU,CAAC;AAClD;AAAC,IAAA0C,QAAA,GACcxE,iBAAiB;AAAAyE,OAAA,cAAAD,QAAA"}
@@ -1,48 +1,48 @@
1
- .customRatingChartLegend {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- .legendContent {
6
- display: flex;
7
- justify-content: center;
8
- flex-wrap: wrap;
9
- align-items: center;
10
- .legendTop {
11
- display: flex;
12
- justify-content: center;
13
- align-items: center;
14
- width: 100%;
15
- }
16
- .legendBottom {
17
- font-size: 18px;
18
- font-weight: 400;
19
- }
20
- }
21
- }
22
- .customRatingChart {
23
- display: flex;
24
- justify-content: flex-start;
25
- align-items: center;
26
- margin: 5px 0;
27
- .label {
28
- width: 20%;
29
- font-size: 16px;
30
- font-weight: 400;
31
- }
32
- .bar {
33
- background: rgba(255, 255, 255, 0);
34
- position: relative;
35
- .scaleVal {
36
- width: 100%;
37
- position: relative;
38
- height: 15px;
39
- line-height: 15px;
40
- }
41
- .content {
42
- width: 100%;
43
- position: relative;
44
- height: 35px;
45
- background: var(--health-content-bg);
46
- }
47
- }
48
- }
1
+ .customRatingChartLegend {
2
+ display: flex;
3
+ justify-content: space-around;
4
+ align-items: center;
5
+ .legendContent {
6
+ display: flex;
7
+ justify-content: center;
8
+ flex-wrap: wrap;
9
+ align-items: center;
10
+ .legendTop {
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ width: 100%;
15
+ }
16
+ .legendBottom {
17
+ font-size: 18px;
18
+ font-weight: 400;
19
+ }
20
+ }
21
+ }
22
+ .customRatingChart {
23
+ display: flex;
24
+ justify-content: flex-start;
25
+ align-items: center;
26
+ margin: 5px 0;
27
+ .label {
28
+ width: 20%;
29
+ font-size: 16px;
30
+ font-weight: 400;
31
+ }
32
+ .bar {
33
+ background: rgba(255, 255, 255, 0);
34
+ position: relative;
35
+ .scaleVal {
36
+ width: 100%;
37
+ position: relative;
38
+ height: 15px;
39
+ line-height: 15px;
40
+ }
41
+ .content {
42
+ width: 100%;
43
+ position: relative;
44
+ height: 35px;
45
+ background: var(--health-content-bg);
46
+ }
47
+ }
48
+ }
@@ -38,13 +38,13 @@ var RadarCharts = function RadarCharts(_ref) {
38
38
  symbolSize: [2, 2],
39
39
  lineStyle: {
40
40
  //边缘颜色
41
- width: 2,
41
+ width: 1,
42
42
  color: item.areaColor
43
43
  },
44
44
  areaStyle: {
45
45
  // color: 'rgba(116, 77, 254)',
46
46
  color: item.areaColor,
47
- opacity: 0.4
47
+ opacity: 0.2
48
48
  }
49
49
  });
50
50
  });
@@ -69,8 +69,9 @@ var RadarCharts = function RadarCharts(_ref) {
69
69
  splitLine: {
70
70
  show: true,
71
71
  lineStyle: {
72
+ type: 'dashed',
72
73
  // 使用深浅的间隔色
73
- color: ['rgba(123,90,251,0.3)']
74
+ color: ['#E9E9E9']
74
75
  }
75
76
  },
76
77
  axisLine: {
@@ -79,6 +80,14 @@ var RadarCharts = function RadarCharts(_ref) {
79
80
  // 使用深浅的间隔色
80
81
  color: ['rgba(123,90,251,0.3)']
81
82
  }
83
+ },
84
+ splitArea: {
85
+ // 坐标轴在 grid 区域中的分隔区域,默认不显示。
86
+ show: true,
87
+ areaStyle: {
88
+ // 分隔区域的样式设置。
89
+ color: ['transparent'] // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
90
+ }
82
91
  }
83
92
  }, radarConfig),
84
93
  series: [{
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_echartsForReact","_useSettings2","obj","__esModule","RadarCharts","_ref","_ref$data","data","_ref$height","height","_ref$width","width","_ref$indicator","indicator","_ref$radarConfig","radarConfig","_useSettings","useSettings","theme","result","map","item","push","value","name","symbolSize","lineStyle","color","areaColor","areaStyle","opacity","option","tooltip","trigger","position","radar","Object","assign","center","radius","textStyle","fontSize","padding","nameGap","splitLine","show","axisLine","series","type","React","createElement","Chart","notMerge","lazyUpdate","style","_default","exports"],"sources":["vtx-hz-facility-modal/components/PipelineHealthRating/RadarCharts/index.js"],"sourcesContent":["/*\n * @Author: limingxian limingxian@vortexinfo.cn\n * @Date: 2023-09-02 22:08:12\n * @LastEditors: limingxian limingxian@vortexinfo.cn\n * @LastEditTime: 2023-09-07 11:37:11\n * @FilePath: /zhsw-psfw-web/src/components/DetailModal/DetailContents/current-line-network-health-content/Components/PipelineHealthRating/RadarCharts/index.js\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react';\nimport Chart from 'echarts-for-react';\nimport useSettings from '../../../../vm-hooks/useSettings';\nconst RadarCharts = ({ data = [], height = '100%', width = '100%', indicator = [], radarConfig = {}, }) => {\n const { theme } = useSettings();\n let result = [];\n data.map((item) => {\n result.push({\n value: item.value || [],\n name: item.name,\n symbolSize: [2, 2],\n lineStyle: {\n //边缘颜色\n width: 2,\n color: item.areaColor,\n },\n areaStyle: {\n // color: 'rgba(116, 77, 254)',\n color: item.areaColor,\n opacity: 0.4,\n },\n });\n });\n let option = {\n tooltip: {\n trigger: 'item',\n position: ['50%', '50%'],\n },\n radar: Object.assign({ center: ['45%', '60%'], radius: '50%', name: {\n textStyle: {\n color: theme === 'dark' ? '#FFFFFF' : '#000000',\n fontSize: 14,\n padding: [-2, -10], // 控制文字padding\n },\n }, nameGap: 5, indicator: indicator, splitLine: {\n show: true,\n lineStyle: {\n // 使用深浅的间隔色\n color: ['rgba(123,90,251,0.3)'],\n },\n }, axisLine: {\n show: true,\n lineStyle: {\n // 使用深浅的间隔色\n color: ['rgba(123,90,251,0.3)'],\n },\n } }, radarConfig),\n series: [\n {\n type: 'radar',\n data: result,\n },\n ],\n };\n return React.createElement(Chart, { option: option, notMerge: true, lazyUpdate: true, style: { height, width } });\n};\nexport default RadarCharts;\n"],"mappings":";;;;;;AAQA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA2D,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAV3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAA0F;EAAA,IAAAC,SAAA,GAAAD,IAAA,CAApFE,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,EAAE,GAAAA,SAAA;IAAAE,WAAA,GAAAH,IAAA,CAAEI,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,MAAM,GAAAA,WAAA;IAAAE,UAAA,GAAAL,IAAA,CAAEM,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,MAAM,GAAAA,UAAA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B,SAAS,EAAEA,SAAS;MAAE+B,SAAS,EAAE;QAC5CC,IAAI,EAAE,IAAI;QACVnB,SAAS,EAAE;UACP;UACAC,KAAK,EAAE,CAAC,sBAAsB;QAClC;MACJ,CAAC;MAAEmB,QAAQ,EAAE;QACTD,IAAI,EAAE,IAAI;QACVnB,SAAS,EAAE;UACP;UACAC,KAAK,EAAE,CAAC,sBAAsB;QAClC;MACJ;IAAE,CAAC,EAAEZ,WAAW,CAAC;IACrBgC,MAAM,EAAE,CACJ;MACIC,IAAI,EAAE,OAAO;MACbzC,IAAI,EAAEY;IACV,CAAC;EAET,CAAC;EACD,oBAAO8B,iBAAK,CAACC,aAAa,CAACC,2BAAK,EAAE;IAAEpB,MAAM,EAAEA,MAAM;IAAEqB,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEC,KAAK,EAAE;MAAE7C,MAAM,EAANA,MAAM;MAAEE,KAAK,EAALA;IAAM;EAAE,CAAC,CAAC;AACrH,CAAC;AAAC,IAAA4C,QAAA,GACanD,WAAW;AAAAoD,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_echartsForReact","_useSettings2","obj","__esModule","RadarCharts","_ref","_ref$data","data","_ref$height","height","_ref$width","width","_ref$indicator","indicator","_ref$radarConfig","radarConfig","_useSettings","useSettings","theme","result","map","item","push","value","name","symbolSize","lineStyle","color","areaColor","areaStyle","opacity","option","tooltip","trigger","position","radar","Object","assign","center","radius","textStyle","fontSize","padding","nameGap","splitLine","show","type","axisLine","splitArea","series","React","createElement","Chart","notMerge","lazyUpdate","style","_default","exports"],"sources":["vtx-hz-facility-modal/components/PipelineHealthRating/RadarCharts/index.js"],"sourcesContent":["/*\n * @Author: limingxian limingxian@vortexinfo.cn\n * @Date: 2023-09-02 22:08:12\n * @LastEditors: limingxian limingxian@vortexinfo.cn\n * @LastEditTime: 2023-09-07 11:37:11\n * @FilePath: /zhsw-psfw-web/src/components/DetailModal/DetailContents/current-line-network-health-content/Components/PipelineHealthRating/RadarCharts/index.js\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react';\nimport Chart from 'echarts-for-react';\nimport useSettings from '../../../../vm-hooks/useSettings';\nconst RadarCharts = ({ data = [], height = '100%', width = '100%', indicator = [], radarConfig = {}, }) => {\n const { theme } = useSettings();\n let result = [];\n data.map((item) => {\n result.push({\n value: item.value || [],\n name: item.name,\n symbolSize: [2, 2],\n lineStyle: {\n //边缘颜色\n width: 1,\n color: item.areaColor,\n },\n areaStyle: {\n // color: 'rgba(116, 77, 254)',\n color: item.areaColor,\n opacity: 0.2,\n },\n });\n });\n let option = {\n tooltip: {\n trigger: 'item',\n position: ['50%', '50%'],\n },\n radar: Object.assign({ center: ['45%', '60%'], radius: '50%', name: {\n textStyle: {\n color: theme === 'dark' ? '#FFFFFF' : '#000000',\n fontSize: 14,\n padding: [-2, -10], // 控制文字padding\n },\n }, nameGap: 5, indicator: indicator, splitLine: {\n show: true,\n lineStyle: {\n type: 'dashed',\n // 使用深浅的间隔色\n color: ['#E9E9E9'],\n },\n }, axisLine: {\n show: true,\n lineStyle: {\n // 使用深浅的间隔色\n color: ['rgba(123,90,251,0.3)'],\n },\n }, splitArea: {\n // 坐标轴在 grid 区域中的分隔区域,默认不显示。\n show: true,\n areaStyle: {\n // 分隔区域的样式设置。\n color: ['transparent'], // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。\n },\n } }, radarConfig),\n series: [\n {\n type: 'radar',\n data: result,\n },\n ],\n };\n return React.createElement(Chart, { option: option, notMerge: true, lazyUpdate: true, style: { height, width } });\n};\nexport default RadarCharts;\n"],"mappings":";;;;;;AAQA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,I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M;MAAEE,KAAK,EAALA;IAAM;EAAE,CAAC,CAAC;AACrH,CAAC;AAAC,IAAA6C,QAAA,GACapD,WAAW;AAAAqD,OAAA,cAAAD,QAAA"}
@@ -1,38 +1,59 @@
1
+ .healthContent {
2
+ height: 70vh;
3
+ overflow-y: auto;
4
+ }
1
5
  .healthContent.dark {
2
6
  color: var(--label-color);
3
7
  }
8
+ .healthContent .top {
9
+ width: 100%;
10
+ height: 50px;
11
+ line-height: 50px;
12
+ border: 1px solid #e8e8e8;
13
+ border-radius: 4px;
14
+ font-size: 16px;
15
+ font-weight: 400;
16
+ background: var(--wrap-bg);
17
+ padding: 0 20px;
18
+ margin-bottom: 5px;
19
+ }
4
20
  .healthContent .ratingRank {
5
21
  width: 100%;
6
22
  display: -webkit-box;
7
23
  display: -ms-flexbox;
8
24
  display: flex;
25
+ -webkit-box-orient: vertical;
26
+ -webkit-box-direction: normal;
27
+ -ms-flex-direction: column;
28
+ flex-direction: column;
29
+ padding: 20px 0;
30
+ border-top: 1px solid #e8e8e8;
31
+ -webkit-box-pack: start;
32
+ -ms-flex-pack: start;
33
+ justify-content: flex-start;
34
+ }
35
+ .healthContent .ratingRank .ratingRankLeft,
36
+ .healthContent .ratingRank .ratingRankRight {
37
+ width: 100%;
38
+ height: 100px;
39
+ display: -webkit-box;
40
+ display: -ms-flexbox;
41
+ display: flex;
42
+ padding: 17px 20px;
43
+ -webkit-box-orient: vertical;
44
+ -webkit-box-direction: normal;
45
+ -ms-flex-direction: column;
46
+ flex-direction: column;
9
47
  -ms-flex-pack: distribute;
10
48
  justify-content: space-around;
11
- padding: 100px 0;
12
- -webkit-box-align: center;
13
- -ms-flex-align: center;
14
- align-items: center;
15
- text-align: center;
16
- }
17
- .healthContent .ratingRank .ratingRankLeft .ratingRankLeftTitle {
18
- font-size: 18px;
19
- font-weight: 400;
20
- margin-bottom: 10px;
49
+ background: var(--rank-bg);
50
+ border-radius: 2px 2px 2px 2px;
51
+ margin-bottom: 20px;
21
52
  }
22
- .healthContent .ratingRank .ratingRankLeft .ratingRankLeftText {
23
- color: #1f8184;
24
- font-size: 16px;
25
- margin-top: 10px;
26
- }
27
- .healthContent .ratingRank .ratingRankRight .ratingRankRightTitle {
28
- font-size: 18px;
29
- font-weight: 400;
30
- margin-bottom: 10px;
31
- }
32
- .healthContent .ratingRank .ratingRankRight .ratingRankRightText {
33
- color: #1f8184;
34
- font-size: 16px;
35
- margin-top: 10px;
53
+ .healthContent .ratingRank .ratingRankLeft .rank,
54
+ .healthContent .ratingRank .ratingRankRight .rank {
55
+ font-size: 30px;
56
+ font-weight: 500;
36
57
  }
37
58
  .healthContent .ratingRank .ratingRankText {
38
59
  color: var(--label-color);