@vtx/modals2 5.0.9 → 5.0.10

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 (119) hide show
  1. package/lib/index.js +2 -1
  2. package/lib/vtx-base-modal/index.js +15 -2
  3. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +139 -0
  4. package/lib/vtx-housing-estate-modal/components/Sbzj/index.less +73 -0
  5. package/lib/vtx-housing-estate-modal/components/index.js +1 -0
  6. package/lib/vtx-housing-estate-modal/imgs/aibox.png +0 -0
  7. package/lib/vtx-housing-estate-modal/imgs/aibox_light.png +0 -0
  8. package/lib/vtx-housing-estate-modal/imgs/android.png +0 -0
  9. package/lib/vtx-housing-estate-modal/imgs/android_light.png +0 -0
  10. package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd.png +0 -0
  11. package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd_light.png +0 -0
  12. package/lib/vtx-housing-estate-modal/imgs/sbzj_video.png +0 -0
  13. package/lib/vtx-housing-estate-modal/imgs/sbzj_video_light.png +0 -0
  14. package/lib/vtx-sdyd-tfd-modal/api.js +575 -0
  15. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +61 -0
  16. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +132 -0
  17. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL.js +44 -0
  18. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +104 -0
  19. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +67 -0
  20. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +65 -0
  21. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +79 -0
  22. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +111 -0
  23. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +162 -0
  24. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX.js +43 -0
  25. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +183 -0
  26. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +97 -0
  27. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +65 -0
  28. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +103 -0
  29. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +104 -0
  30. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.less +116 -0
  31. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +179 -0
  32. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +123 -0
  33. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +172 -0
  34. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +177 -0
  35. package/lib/vtx-sdyd-tfd-modal/components/OverView/index.js +56 -0
  36. package/lib/vtx-sdyd-tfd-modal/components/OverView/index.less +242 -0
  37. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +138 -0
  38. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.less +78 -0
  39. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +133 -0
  40. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.less +12 -0
  41. package/lib/vtx-sdyd-tfd-modal/components/WGGS/Content.js +63 -0
  42. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +61 -0
  43. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.less +49 -0
  44. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +117 -0
  45. package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.js +52 -0
  46. package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.less +97 -0
  47. package/lib/vtx-sdyd-tfd-modal/components/index.js +6 -0
  48. package/lib/vtx-sdyd-tfd-modal/config.js +63 -0
  49. package/lib/vtx-sdyd-tfd-modal/imgs/BOTTLE.png +0 -0
  50. package/lib/vtx-sdyd-tfd-modal/imgs/CAN.png +0 -0
  51. package/lib/vtx-sdyd-tfd-modal/imgs/KRAFT_PAPER_BOX.png +0 -0
  52. package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN.png +0 -0
  53. package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN_light.png +0 -0
  54. package/lib/vtx-sdyd-tfd-modal/imgs/PLASTIC_BAG.png +0 -0
  55. package/lib/vtx-sdyd-tfd-modal/imgs/aibox.png +0 -0
  56. package/lib/vtx-sdyd-tfd-modal/imgs/aibox_light.png +0 -0
  57. package/lib/vtx-sdyd-tfd-modal/imgs/android.png +0 -0
  58. package/lib/vtx-sdyd-tfd-modal/imgs/android_light.png +0 -0
  59. package/lib/vtx-sdyd-tfd-modal/imgs/avatar.png +0 -0
  60. package/lib/vtx-sdyd-tfd-modal/imgs/avatar_light.png +0 -0
  61. package/lib/vtx-sdyd-tfd-modal/imgs/ddypz.png +0 -0
  62. package/lib/vtx-sdyd-tfd-modal/imgs/ddypz_light.png +0 -0
  63. package/lib/vtx-sdyd-tfd-modal/imgs/garbage_default.png +0 -0
  64. package/lib/vtx-sdyd-tfd-modal/imgs/gzxjcx.png +0 -0
  65. package/lib/vtx-sdyd-tfd-modal/imgs/hjglcx.png +0 -0
  66. package/lib/vtx-sdyd-tfd-modal/imgs/hmd.png +0 -0
  67. package/lib/vtx-sdyd-tfd-modal/imgs/hmd_light.png +0 -0
  68. package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg.png +0 -0
  69. package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg_light.png +0 -0
  70. package/lib/vtx-sdyd-tfd-modal/imgs/rank.png +0 -0
  71. package/lib/vtx-sdyd-tfd-modal/imgs/rank_light.png +0 -0
  72. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd.png +0 -0
  73. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd_light.png +0 -0
  74. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video.png +0 -0
  75. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video_light.png +0 -0
  76. package/lib/vtx-sdyd-tfd-modal/imgs/tfcs.png +0 -0
  77. package/lib/vtx-sdyd-tfd-modal/imgs/tfcs_light.png +0 -0
  78. package/lib/vtx-sdyd-tfd-modal/imgs/tfd.png +0 -0
  79. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht.png +0 -0
  80. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht_light.png +0 -0
  81. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_light.png +0 -0
  82. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi.png +0 -0
  83. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi_light.png +0 -0
  84. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf.png +0 -0
  85. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf_light.png +0 -0
  86. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd.png +0 -0
  87. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd_light.png +0 -0
  88. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf.png +0 -0
  89. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf_light.png +0 -0
  90. package/lib/vtx-sdyd-tfd-modal/imgs/tfhs.png +0 -0
  91. package/lib/vtx-sdyd-tfd-modal/imgs/tfhs_light.png +0 -0
  92. package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr.png +0 -0
  93. package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr_light.png +0 -0
  94. package/lib/vtx-sdyd-tfd-modal/imgs/yyxj.png +0 -0
  95. package/lib/vtx-sdyd-tfd-modal/imgs/yyxj_light.png +0 -0
  96. package/lib/vtx-sdyd-tfd-modal/index.js +113 -0
  97. package/lib/vtx-sdyd-tfd-modal/style/index.js +4 -0
  98. package/lib/vtx-sdyd-tfd-modal/style/index.less +1 -0
  99. package/lib/vtx-wr-modal/components/Appraise/index.js +123 -36
  100. package/lib/vtx-wr-modal/components/Appraise/index.less +40 -43
  101. package/lib/vtx-wr-modal/components/Base/Jbxx.js +151 -227
  102. package/lib/vtx-wr-modal/components/Base/Ptss.js +215 -0
  103. package/lib/vtx-wr-modal/components/Base/Sjjg.js +163 -76
  104. package/lib/vtx-wr-modal/components/Base/assets/blue/dswsj.png +0 -0
  105. package/lib/vtx-wr-modal/components/Base/assets/blue/tywsj.png +0 -0
  106. package/lib/vtx-wr-modal/components/Base/assets/light/dswsj.png +0 -0
  107. package/lib/vtx-wr-modal/components/Base/assets/light/tywsj.png +0 -0
  108. package/lib/vtx-wr-modal/components/Base/index.js +319 -32
  109. package/lib/vtx-wr-modal/components/Base/index.less +237 -227
  110. package/lib/vtx-wr-modal/components/Build/index.js +169 -0
  111. package/lib/vtx-wr-modal/components/Build/index.less +104 -0
  112. package/lib/vtx-wr-modal/components/File/index.js +107 -0
  113. package/lib/vtx-wr-modal/components/File/index.less +41 -0
  114. package/lib/vtx-wr-modal/components/Score/index.js +122 -28
  115. package/lib/vtx-wr-modal/components/Score/index.less +36 -36
  116. package/lib/vtx-wr-modal/components/index.js +3 -1
  117. package/lib/vtx-wr-modal/index.js +79 -15
  118. package/lib/vtx-wr-modal/style/index.js +2 -0
  119. package/package.json +12 -11
@@ -1,246 +1,96 @@
1
- .vm-modal-dark,
2
- .vm-modal-light {
3
- .wr-base-content {
4
- width: 100%;
1
+ .wr-base-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .wr-base-title {
7
+ padding: 12px 16px;
8
+ font-size: 16px;
9
+ box-sizing: border-box;
10
+ }
11
+ .wr-base-left {
12
+ width: 448px;
5
13
  height: 100%;
6
- display: flex;
7
- gap: 16px;
8
- .wr-base-title {
9
- padding: 12px 16px;
10
- font-size: 16px;
14
+ border-radius: 8px;
15
+ box-sizing: border-box;
16
+ .wr-base-inner {
17
+ padding: 16px;
11
18
  box-sizing: border-box;
12
- }
13
- .wr-base-left {
14
- width: 400px;
15
- height: 100%;
19
+ height: calc(100% - 50px);
16
20
  overflow: hidden;
17
21
  overflow-y: auto;
18
- border-radius: 8px;
19
- .wr-base-inner {
20
- padding: 16px;
21
- box-sizing: border-box;
22
- .wr-base-img {
23
- width: 368px;
24
- height: 207px;
25
- border-radius: 8px;
26
- margin-bottom: 8px;
27
- }
28
- .wr-base-info {
29
- line-height: 28px;
22
+ .wr-base-img {
23
+ width: 100%;
24
+ height: 207px;
25
+ border-radius: 8px;
26
+ margin-bottom: 8px;
27
+ }
28
+ .wr-base-info {
29
+ line-height: 28px;
30
+ & > div {
30
31
  overflow: hidden;
31
32
  text-overflow: ellipsis;
32
33
  white-space: nowrap;
33
34
  }
34
- .divider {
35
- width: 100%;
36
- height: 1px;
37
- margin-top: 4px;
38
- }
39
- .wr-base-subTitle {
40
- display: flex;
41
- gap: 12px;
42
- align-items: center;
43
- margin: 12px 0;
44
- .wr-base-subTip {
45
- width: 3px;
46
- height: 14px;
47
- border-radius: 6px;
48
- }
49
- .wr-base-subText {
50
- font-size: 16px;
51
- }
52
- }
53
- .wr-base-ptss {
54
- display: flex;
55
- flex-wrap: nowrap;
56
- justify-content: space-between;
57
- align-items: center;
58
- .wr-ptss-item {
59
- display: flex;
60
- gap: 12px;
61
- align-items: center;
62
- img {
63
- width: 44px;
64
- height: 44px;
65
- }
66
- }
67
- }
68
- .wr-base-kws {
69
- width: 100%;
70
- height: 134px;
71
- border-radius: 8px;
72
- margin: 12px 0;
73
- padding: 14px;
74
- box-sizing: border-box;
75
- .wr-kws-total {
76
- display: flex;
77
- justify-content: space-between;
78
- align-items: center;
79
- .wr-kws-tip {
80
- display: flex;
81
- gap: 10px;
82
- align-items: center;
83
- img {
84
- width: 44px;
85
- height: 44px;
86
- }
87
- }
88
- .wr-total-num {
89
- display: flex;
90
- gap: 30px;
91
- align-items: center;
92
- .num-tip-blue {
93
- display: flex;
94
- width: 6px;
95
- height: 6px;
96
- border-radius: 3px;
97
- background: #009dff;
98
- box-shadow: 0 0 5px rgba(0, 157, 255, 0.8);
99
- margin-right: 10px;
100
- }
101
- .num-tip-red {
102
- display: flex;
103
- width: 6px;
104
- height: 6px;
105
- border-radius: 3px;
106
- background: #ff5861;
107
- box-shadow: 0 0 5px rgba(255, 88, 97, 0.8);
108
- margin-right: 10px;
109
- }
110
- .wr-num-total {
111
- display: flex;
112
- align-items: baseline;
113
- letter-spacing: 4px;
114
- margin-top: -6px;
115
- }
116
- }
117
- }
118
- .wr-kws-each {
119
- display: flex;
120
- flex-wrap: nowrap;
121
- justify-content: space-between;
122
- align-items: center;
123
- text-align: center;
124
- span {
125
- letter-spacing: 4px;
126
- }
127
- img {
128
- width: 16px;
129
- height: 16px;
130
- vertical-align: middle;
131
- margin-right: 6px;
132
- }
133
- }
134
- }
135
35
  }
136
- }
137
- .wr-base-right {
138
- flex: 1;
139
- .wr-base-sjjg {
36
+ .divider {
140
37
  width: 100%;
141
- height: 300px;
142
- padding-bottom: 16px;
143
- border-radius: 8px;
144
- .wr-sjjg-total {
145
- width: 100%;
146
- padding: 6px 180px;
147
- box-sizing: border-box;
148
- display: flex;
149
- justify-content: space-between;
150
- .sjjg-total-each {
151
- display: flex;
152
- gap: 16px;
153
- img {
154
- width: 44px;
155
- height: 44px;
156
- }
157
- }
158
- }
159
- .wr-sjjg-each {
160
- display: flex;
161
- gap: 12px;
162
- padding: 0 16px;
163
- box-sizing: border-box;
164
- .sjjg-each-item {
165
- flex: 1;
166
- height: 182px;
167
- border-radius: 8px;
168
- padding: 14px;
169
- box-sizing: border-box;
170
- overflow: hidden;
171
- overflow-y: auto;
172
- .each-item-title {
173
- display: flex;
174
- gap: 10px;
175
- align-items: center;
176
- img {
177
- width: 44px;
178
- height: 44px;
179
- }
180
- }
181
- .each-item-value {
182
- display: flex;
183
- gap: 6px;
184
- flex-wrap: wrap;
185
- margin: 6px 0;
186
- .each-value {
187
- width: 76px;
188
- display: flex;
189
- flex-direction: column;
190
- align-items: center;
191
- .each-value-num {
192
- font-weight: bold;
193
- }
194
- .each-factor-value {
195
- flex: 1;
196
- display: flex;
197
- align-items: center;
198
- img {
199
- width: 16px;
200
- height: 16px;
201
- vertical-align: middle;
202
- margin-right: 4px;
203
- }
204
- .each-factor-text {
205
- width: 60px;
206
- text-overflow: ellipsis;
207
- overflow: hidden;
208
- white-space: nowrap;
209
- padding-left: 2px;
210
- }
211
- }
212
- }
213
- }
214
- }
215
- }
38
+ height: 1px;
39
+ margin-top: 4px;
216
40
  }
217
- .wr-base-jcbj {
218
- width: 100%;
219
- height: 300px;
220
- padding-bottom: 16px;
221
- overflow: hidden;
222
- overflow-y: auto;
223
- border-radius: 8px;
224
- margin-top: 15px;
225
- position: relative;
226
- .ant-tabs-nav {
227
- margin-bottom: 0;
228
- padding-left: 16px;
41
+ .wr-base-subTitle {
42
+ display: flex;
43
+ gap: 12px;
44
+ align-items: center;
45
+ margin: 12px 0;
46
+ .wr-base-subTip {
47
+ width: 3px;
48
+ height: 14px;
49
+ border-radius: 6px;
229
50
  }
230
- .wr-jcbj-search {
231
- position: absolute;
232
- top: 0;
233
- right: 0;
234
- width: 500px;
235
- height: 46px;
236
- display: flex;
237
- gap: 16px;
238
- align-items: center;
239
- justify-content: end;
51
+ .wr-base-subText {
52
+ font-size: 16px;
240
53
  }
241
54
  }
242
55
  }
243
56
  }
57
+ .wr-base-right {
58
+ width: 704px;
59
+ height: 100%;
60
+ overflow: hidden;
61
+ overflow-y: auto;
62
+ .wr-base-sjjg {
63
+ width: 100%;
64
+ height: 270px;
65
+ padding-bottom: 16px;
66
+ border-radius: 8px;
67
+ }
68
+ .wr-base-jcbj {
69
+ width: 100%;
70
+ height: 330px;
71
+ padding-bottom: 16px;
72
+ overflow: hidden;
73
+ overflow-y: auto;
74
+ border-radius: 8px;
75
+ margin-top: 15px;
76
+ position: relative;
77
+ .ant-tabs-nav {
78
+ margin-bottom: 0;
79
+ padding-left: 16px;
80
+ }
81
+ .wr-jcbj-search {
82
+ position: absolute;
83
+ top: 0;
84
+ right: 26px;
85
+ width: 500px;
86
+ height: 46px;
87
+ display: flex;
88
+ gap: 16px;
89
+ align-items: center;
90
+ justify-content: end;
91
+ }
92
+ }
93
+ }
244
94
  }
245
95
 
246
96
  .vm-modal-dark {
@@ -325,3 +175,163 @@
325
175
  }
326
176
  }
327
177
  }
178
+
179
+ .wr-base-ptss {
180
+ display: flex;
181
+ flex-wrap: nowrap;
182
+ justify-content: space-between;
183
+ align-items: center;
184
+ padding: 10px 136px 0;
185
+ .wr-ptss-item {
186
+ display: flex;
187
+ gap: 12px;
188
+ align-items: center;
189
+ img {
190
+ width: 44px;
191
+ height: 44px;
192
+ }
193
+ }
194
+ }
195
+ .wr-base-kws {
196
+ flex: 1;
197
+ height: 134px;
198
+ border-radius: 8px;
199
+ margin: 12px 0;
200
+ padding: 14px;
201
+ box-sizing: border-box;
202
+ .wr-kws-total {
203
+ display: flex;
204
+ justify-content: space-between;
205
+ align-items: center;
206
+ .wr-kws-tip {
207
+ display: flex;
208
+ gap: 10px;
209
+ align-items: center;
210
+ img {
211
+ width: 44px;
212
+ height: 44px;
213
+ }
214
+ }
215
+ .wr-total-num {
216
+ display: flex;
217
+ gap: 30px;
218
+ align-items: center;
219
+ .num-tip-blue {
220
+ display: flex;
221
+ width: 6px;
222
+ height: 6px;
223
+ border-radius: 3px;
224
+ background: #009dff;
225
+ box-shadow: 0 0 5px rgba(0, 157, 255, 0.8);
226
+ margin-right: 10px;
227
+ }
228
+ .num-tip-red {
229
+ display: flex;
230
+ width: 6px;
231
+ height: 6px;
232
+ border-radius: 3px;
233
+ background: #ff5861;
234
+ box-shadow: 0 0 5px rgba(255, 88, 97, 0.8);
235
+ margin-right: 10px;
236
+ }
237
+ .wr-num-total {
238
+ display: flex;
239
+ align-items: baseline;
240
+ letter-spacing: 4px;
241
+ margin-top: -6px;
242
+ }
243
+ }
244
+ }
245
+ .wr-kws-each {
246
+ display: flex;
247
+ flex-wrap: nowrap;
248
+ justify-content: space-between;
249
+ align-items: center;
250
+ text-align: center;
251
+ span {
252
+ letter-spacing: 4px;
253
+ }
254
+ img {
255
+ width: 16px;
256
+ height: 16px;
257
+ vertical-align: middle;
258
+ margin-right: 6px;
259
+ }
260
+ }
261
+ }
262
+
263
+ .wr-sjjg-total {
264
+ width: 100%;
265
+ padding: 6px 40px 12px 20px;
266
+ box-sizing: border-box;
267
+ display: flex;
268
+ justify-content: space-between;
269
+ .sjjg-total-each {
270
+ display: flex;
271
+ gap: 16px;
272
+ img {
273
+ width: 44px;
274
+ height: 44px;
275
+ }
276
+ }
277
+ }
278
+ .wr-sjjg-each {
279
+ display: flex;
280
+ flex-direction: column;
281
+ gap: 12px;
282
+ padding: 0 6px;
283
+ box-sizing: border-box;
284
+ width: 100%;
285
+ .sjjg-each-item {
286
+ width: 100%;
287
+ height: 182px;
288
+ border-radius: 8px;
289
+ padding: 14px;
290
+ box-sizing: border-box;
291
+ .each-item-title {
292
+ display: flex;
293
+ gap: 10px;
294
+ align-items: center;
295
+ img {
296
+ width: 44px;
297
+ height: 44px;
298
+ }
299
+ }
300
+ .each-item-value {
301
+ display: flex;
302
+ gap: 6px;
303
+ flex-wrap: wrap;
304
+ margin: 6px 0;
305
+ height: calc(100% - 44px);
306
+ overflow: hidden;
307
+ overflow-y: auto;
308
+ .each-value {
309
+ width: 120px;
310
+ display: flex;
311
+ flex-direction: column;
312
+ align-items: center;
313
+ .each-value-num {
314
+ font-weight: bold;
315
+ }
316
+ .each-factor-value {
317
+ flex: 1;
318
+ display: flex;
319
+ align-items: center;
320
+ img {
321
+ width: 16px;
322
+ height: 16px;
323
+ vertical-align: middle;
324
+ margin-right: 4px;
325
+ }
326
+ .each-factor-text {
327
+ width: 100px;
328
+ text-overflow: ellipsis;
329
+ overflow: hidden;
330
+ white-space: nowrap;
331
+ padding-left: 2px;
332
+ }
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }
@@ -0,0 +1,169 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { VtxImage } from '@vtx/components';
8
+ import { getVtxToken, request } from '@vtx/utils';
9
+ import { Button, Space, Tooltip } from 'antd';
10
+ import Base64 from 'base-64';
11
+ import { useEffect, useState } from 'react';
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ var preview = function preview() {
14
+ var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
15
+ id: '',
16
+ name: ''
17
+ };
18
+ window.open("/cloud/kkPreview/onlinePreview?url=".concat(Base64.encode("".concat(location.origin, "/cloudFile/common/downloadFile?token=").concat(getVtxToken('token'), "&id=").concat(item.id, "&fullfilename=").concat(encodeURIComponent(item.name))), "&token=").concat(getVtxToken('token')));
19
+ };
20
+ export var renderFile = function renderFile(list) {
21
+ return list.map(function (item) {
22
+ return /*#__PURE__*/_jsx("div", {
23
+ children: /*#__PURE__*/_jsx(Tooltip, {
24
+ color: "#fff",
25
+ title: /*#__PURE__*/_jsxs(Space, {
26
+ children: [/*#__PURE__*/_jsx(Button, {
27
+ type: "primary",
28
+ onClick: function onClick() {
29
+ return preview(item);
30
+ },
31
+ children: "\u9884\u89C8"
32
+ }), /*#__PURE__*/_jsx(Button, {
33
+ onClick: function onClick() {
34
+ return window.open("/cloudFile/common/downloadFile?token=".concat(getVtxToken('token'), "&id=").concat(item.id));
35
+ },
36
+ children: "\u4E0B\u8F7D"
37
+ })]
38
+ }),
39
+ children: /*#__PURE__*/_jsx("a", {
40
+ className: "fileName",
41
+ title: item.name,
42
+ children: item.name
43
+ })
44
+ })
45
+ }, item.id);
46
+ });
47
+ };
48
+
49
+ //list
50
+ var getFields = function getFields(params) {
51
+ return request.get('/cloud/jcss-reborn/facility/type/view/list', {
52
+ data: params
53
+ });
54
+ };
55
+ var getList = function getList(params) {
56
+ return request.get('/cloud/jcss-reborn/status/approval/facility/changeList', {
57
+ data: params
58
+ });
59
+ };
60
+ export default (function (props) {
61
+ var id = props.id;
62
+ var _useState = useState([]),
63
+ _useState2 = _slicedToArray(_useState, 2),
64
+ fields = _useState2[0],
65
+ setFields = _useState2[1];
66
+ var _useState3 = useState([]),
67
+ _useState4 = _slicedToArray(_useState3, 2),
68
+ list = _useState4[0],
69
+ setList = _useState4[1];
70
+ useEffect(function () {
71
+ getFields({
72
+ code: 'wr'
73
+ }).then(function (res) {
74
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
75
+ setFields(res.data.showFields || []);
76
+ }
77
+ });
78
+ }, []);
79
+ useEffect(function () {
80
+ id && getList({
81
+ jcssId: id
82
+ }).then(function (res) {
83
+ if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
84
+ setList(res.data || []);
85
+ }
86
+ });
87
+ }, [id]);
88
+ var getFileComponents = function getFileComponents(fileJson) {
89
+ if (!JSON.stringify(fileJson)) {
90
+ return;
91
+ }
92
+ var components;
93
+ for (var key in fileJson) {
94
+ var _fileJson$key;
95
+ components = /*#__PURE__*/_jsxs(_Fragment, {
96
+ children: [components, /*#__PURE__*/_jsxs("div", {
97
+ className: "wr-step-line",
98
+ style: {
99
+ width: '100%'
100
+ },
101
+ children: [/*#__PURE__*/_jsxs("span", {
102
+ className: "wr-step-label",
103
+ children: [key, "\uFF1A"]
104
+ }), (_fileJson$key = fileJson[key]) !== null && _fileJson$key !== void 0 && _fileJson$key.length ? renderFile(fileJson[key]) : '--']
105
+ })]
106
+ });
107
+ }
108
+ return components;
109
+ };
110
+ return /*#__PURE__*/_jsxs("div", {
111
+ className: "wr-build-content",
112
+ children: [/*#__PURE__*/_jsx("div", {
113
+ className: "wr-build-title",
114
+ children: "\u5EFA\u8BBE\u4FE1\u606F"
115
+ }), /*#__PURE__*/_jsx("div", {
116
+ className: "wr-build-inner",
117
+ children: list.map(function (item) {
118
+ return /*#__PURE__*/_jsxs("div", {
119
+ className: "wr-build-panel",
120
+ children: [/*#__PURE__*/_jsxs("div", {
121
+ className: "wr-step-title",
122
+ children: [/*#__PURE__*/_jsx("div", {
123
+ className: "wr-step-time",
124
+ children: item.currApprovedDate
125
+ }), /*#__PURE__*/_jsx("div", {
126
+ className: "wr-step-circle",
127
+ children: /*#__PURE__*/_jsx("div", {
128
+ className: "wr-circle-inner"
129
+ })
130
+ }), /*#__PURE__*/_jsx("div", {
131
+ className: "wr-step-text",
132
+ children: item.facilityStatus
133
+ })]
134
+ }), /*#__PURE__*/_jsxs("div", {
135
+ className: "wr-step-content",
136
+ children: [fields.map(function (each) {
137
+ var _each$component, _each$component2, _item$dataJson, _item$dataJson2, _item$dataJson3, _item$dataJson4;
138
+ return /*#__PURE__*/_jsxs("div", {
139
+ className: "wr-step-line",
140
+ style: {
141
+ width: ((_each$component = each.component) === null || _each$component === void 0 ? void 0 : _each$component.type) === 'IMAGE' ? '100%' : '50%'
142
+ },
143
+ children: [/*#__PURE__*/_jsxs("span", {
144
+ className: "wr-step-label",
145
+ children: [each.showName, "\uFF1A"]
146
+ }), ((_each$component2 = each.component) === null || _each$component2 === void 0 ? void 0 : _each$component2.type) === 'IMAGE' ? (_item$dataJson = item.dataJson) !== null && _item$dataJson !== void 0 && _item$dataJson[each.showKey] ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
147
+ children: JSON.parse((_item$dataJson2 = item.dataJson) === null || _item$dataJson2 === void 0 ? void 0 : _item$dataJson2[each.showKey]).map(function (a) {
148
+ return /*#__PURE__*/_jsx(VtxImage, {
149
+ src: "/cloudFile/common/downloadFile?id=".concat(a.id, "&token=").concat(getVtxToken('token')),
150
+ alt: a.name,
151
+ style: {
152
+ width: '56px',
153
+ height: '56px',
154
+ margin: '10px 10px 0 0'
155
+ }
156
+ }, a.id);
157
+ })
158
+ }) : '--' : /*#__PURE__*/_jsx("span", {
159
+ title: (_item$dataJson3 = item.dataJson) === null || _item$dataJson3 === void 0 ? void 0 : _item$dataJson3[each.showKey],
160
+ children: ((_item$dataJson4 = item.dataJson) === null || _item$dataJson4 === void 0 ? void 0 : _item$dataJson4[each.showKey]) || '--'
161
+ })]
162
+ }, each.showKey);
163
+ }), getFileComponents(item.fileJson)]
164
+ })]
165
+ }, item.id);
166
+ })
167
+ })]
168
+ });
169
+ });