@lambo-design/shared 1.0.0-beta.200 → 1.0.0-beta.201
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/config/config.js +1 -0
- package/nstyles/components/form.less +303 -303
- package/package.json +1 -1
- package/utils/dict/index.js +33 -0
- package/utils/n/api.js +8 -0
package/config/config.js
CHANGED
|
@@ -24,6 +24,7 @@ let config = {
|
|
|
24
24
|
didaHost: "/dida-runtime-micro",
|
|
25
25
|
didaRuntimeServerContext: "/dida-runtime-server",
|
|
26
26
|
fileOnlinePreviewContext: '/file-online-preview',
|
|
27
|
+
immServerContext: '/imarket-manage-server',
|
|
27
28
|
mobileWidth:375,
|
|
28
29
|
mobileHeight:667,
|
|
29
30
|
errorMessage: '数据请求出错,请稍后尝试',
|
|
@@ -1,303 +1,303 @@
|
|
|
1
|
-
.ivu-form {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-wrap: wrap;
|
|
4
|
-
.ivu-form-item {
|
|
5
|
-
display: inline-block;
|
|
6
|
-
width: 100%;
|
|
7
|
-
margin-bottom: var(--search-margin-bottom) !important;
|
|
8
|
-
.ivu-poptip,
|
|
9
|
-
.ivu-poptip-rel {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.textAlignLeft {
|
|
14
|
-
text-align: left;
|
|
15
|
-
}
|
|
16
|
-
.textAlignCenter {
|
|
17
|
-
text-align: center;
|
|
18
|
-
}
|
|
19
|
-
.textAlignRight {
|
|
20
|
-
text-align: right;
|
|
21
|
-
margin-right: 0px;
|
|
22
|
-
// width: 25%;
|
|
23
|
-
.ivu-btn {
|
|
24
|
-
margin-left: var(--search-button-margin);
|
|
25
|
-
}
|
|
26
|
-
.ivu-btn-text {
|
|
27
|
-
color: var(--ind-primary-color);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.show-more-query {
|
|
31
|
-
width: 46px;
|
|
32
|
-
padding: 0 !important;
|
|
33
|
-
&:focus {
|
|
34
|
-
box-shadow: none !important;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ivu-form .ivu-form-item .ivu-form-item-content {
|
|
40
|
-
overflow-wrap: anywhere;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// 全局样式,查询条件-2022年11月11日
|
|
44
|
-
.search {
|
|
45
|
-
// date-picker
|
|
46
|
-
.ivu-date-picker {
|
|
47
|
-
width: 100% !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// form
|
|
51
|
-
.ivu-form {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-wrap: wrap;
|
|
54
|
-
.ivu-form-item {
|
|
55
|
-
margin-bottom: var(--search-margin-bottom) !important;
|
|
56
|
-
}
|
|
57
|
-
.textAlignLeft {
|
|
58
|
-
text-align: left;
|
|
59
|
-
}
|
|
60
|
-
.textAlignCenter {
|
|
61
|
-
text-align: center;
|
|
62
|
-
}
|
|
63
|
-
.textAlignRight {
|
|
64
|
-
text-align: right;
|
|
65
|
-
margin-right: 0px;
|
|
66
|
-
.ivu-btn {
|
|
67
|
-
margin-left: var(--search-button-margin);
|
|
68
|
-
}
|
|
69
|
-
.ivu-btn-text {
|
|
70
|
-
color: var(--ind-primary-color);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.ind-v6-style-form {
|
|
77
|
-
#ind-detail-form();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ind-detail-view {
|
|
81
|
-
#ind-detail-form();
|
|
82
|
-
|
|
83
|
-
.content {
|
|
84
|
-
.ivu-card-body:has(.ivu-form) > div {
|
|
85
|
-
// ivu-form 本身已经有border-left border-top边框,这里需要针对此种场景,去掉边框样式
|
|
86
|
-
border-top: none;
|
|
87
|
-
border-left: none;
|
|
88
|
-
}
|
|
89
|
-
.ivu-form {
|
|
90
|
-
// 补充边框样式
|
|
91
|
-
border-top: 1px solid var(--ind-border-color);
|
|
92
|
-
border-left: 1px solid var(--ind-border-color);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ivu-poptip-rel {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
textarea.ivu-input {
|
|
100
|
-
min-height: 50px !important;
|
|
101
|
-
max-height: 150px !important;
|
|
102
|
-
overflow-y: auto !important;
|
|
103
|
-
}
|
|
104
|
-
.ivu-form .ivu-form-item-label {
|
|
105
|
-
font-size: 14px !important;
|
|
106
|
-
text-align: left;
|
|
107
|
-
}
|
|
108
|
-
.ivu-form-item-required .ivu-form-item-label:before {
|
|
109
|
-
position: absolute;
|
|
110
|
-
left: -12px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// TODO emp 注释掉了
|
|
115
|
-
.ivu-card-body > div:has(.ivu-form-item) {
|
|
116
|
-
border-top: 1px solid var(--ind-border-color);
|
|
117
|
-
border-left: 1px solid var(--ind-border-color);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.ivu-form-inline .ivu-form-item {
|
|
121
|
-
margin-right: 0 !important;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.ind-detail-form-border {
|
|
125
|
-
border-top: 1px solid var(--ind-border-color) !important;
|
|
126
|
-
border-left: 1px solid var(--ind-border-color) !important;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ivu-form .ivu-form-item-label {
|
|
130
|
-
padding: var(--ivu-form-item-label-padding);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ivu-form .ivu-form-item-content {
|
|
134
|
-
line-height: var(--ivu-form-item-content-line-height);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
#ind-detail-form {
|
|
138
|
-
.ivu-form:not(.nov6style) {
|
|
139
|
-
.ivu-form-item {
|
|
140
|
-
height: 100%;
|
|
141
|
-
margin-bottom: 0 !important;
|
|
142
|
-
display: flex;
|
|
143
|
-
.ivu-form-item-label {
|
|
144
|
-
position: relative !important;
|
|
145
|
-
flex-shrink: 0;
|
|
146
|
-
flex-grow: 0;
|
|
147
|
-
text-align: left !important;
|
|
148
|
-
background-color: var(--ind-bg-color-dark) !important;
|
|
149
|
-
padding-left: var(--ivu-form-v6stle-item-label-paddingleft);
|
|
150
|
-
border-right: 1px solid var(--ind-border-color);
|
|
151
|
-
border-bottom: 1px solid var(--ind-border-color);
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
justify-content: space-around;
|
|
155
|
-
}
|
|
156
|
-
.ivu-form-item-content {
|
|
157
|
-
flex-grow: 1;
|
|
158
|
-
width: 10px;
|
|
159
|
-
margin-left: 0 !important;
|
|
160
|
-
background-color: white;
|
|
161
|
-
border-right: 1px solid var(--ind-border-color);
|
|
162
|
-
border-bottom: 1px solid var(--ind-border-color);
|
|
163
|
-
padding: var(--ivu-form-item-content-padding);
|
|
164
|
-
display: flex;
|
|
165
|
-
flex-direction: column;
|
|
166
|
-
justify-content: space-around;
|
|
167
|
-
color: var(--ind-text-color);
|
|
168
|
-
&
|
|
169
|
-
*:not(
|
|
170
|
-
.ivu-badge-count,
|
|
171
|
-
.ivu-btn,
|
|
172
|
-
.ivu-btn > span,
|
|
173
|
-
.ivu-icon-md-information-circle,
|
|
174
|
-
.ivu-form-item-error-tip,
|
|
175
|
-
.pickerCard .pickQuarterCard .defaultSpan .selected,
|
|
176
|
-
.ivu-select-placeholder,
|
|
177
|
-
.upload-file .content-item .download,
|
|
178
|
-
.upload-file .content-item .delete,
|
|
179
|
-
.upload-file .content-item .preview,
|
|
180
|
-
.upload-file .content-item .download .ivu-icon,
|
|
181
|
-
.upload-file .content-item .delete .ivu-icon,
|
|
182
|
-
.upload-file .content-item .preview .ivu-icon
|
|
183
|
-
) {
|
|
184
|
-
color: var(--ind-text-color);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
.ivu-form-item-required .ivu-form-item-label:before {
|
|
189
|
-
position: absolute;
|
|
190
|
-
left: var(--ivu-form-item-label-before-left, 8px);
|
|
191
|
-
}
|
|
192
|
-
.ivu-form-item-error-tip {
|
|
193
|
-
position: absolute;
|
|
194
|
-
top: 30px;
|
|
195
|
-
left: 5px;
|
|
196
|
-
color: white;
|
|
197
|
-
font-size: 14px;
|
|
198
|
-
padding: 3px;
|
|
199
|
-
background-color: #f56a6a;
|
|
200
|
-
border-radius: 3px;
|
|
201
|
-
font-weight: 600;
|
|
202
|
-
box-shadow: 0 5px 10px #dedede;
|
|
203
|
-
z-index:
|
|
204
|
-
}
|
|
205
|
-
.ivu-form-item-error-tip::after {
|
|
206
|
-
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #ff6969;
|
|
207
|
-
border-style: solid;
|
|
208
|
-
border-width: 6px;
|
|
209
|
-
content: '';
|
|
210
|
-
height: 0;
|
|
211
|
-
left: 15px;
|
|
212
|
-
position: absolute;
|
|
213
|
-
top: -11px;
|
|
214
|
-
z-index: 888;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.ivu-modal {
|
|
220
|
-
.ivu-biz-form-row {
|
|
221
|
-
.ivu-form {
|
|
222
|
-
border-top: 1px solid var(--ind-border-color);
|
|
223
|
-
border-left: 1px solid var(--ind-border-color);
|
|
224
|
-
}
|
|
225
|
-
#ind-detail-form();
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.ivu-drawer {
|
|
230
|
-
.ivu-biz-form-row {
|
|
231
|
-
.ivu-form {
|
|
232
|
-
border-top: 1px solid var(--ind-border-color);
|
|
233
|
-
border-left: 1px solid var(--ind-border-color);
|
|
234
|
-
}
|
|
235
|
-
#ind-detail-form();
|
|
236
|
-
}
|
|
237
|
-
.ivu-drawer-content {
|
|
238
|
-
height: 100%;
|
|
239
|
-
.ivu-card {
|
|
240
|
-
padding: 0 0 !important;
|
|
241
|
-
overflow: hidden !important;
|
|
242
|
-
width: 100%;
|
|
243
|
-
.ivu-card-head {
|
|
244
|
-
padding: 14px 16px;
|
|
245
|
-
font-size: 16px;
|
|
246
|
-
color: #17233d;
|
|
247
|
-
font-weight: 500;
|
|
248
|
-
// line-height: 20px;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// 有些form表单要嵌入到form表单里
|
|
255
|
-
.form-in-form {
|
|
256
|
-
.ivu-form-item-content {
|
|
257
|
-
padding: 0 !important;
|
|
258
|
-
border: none !important;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.condition-pannel-wrap {
|
|
263
|
-
margin-top: 10px;
|
|
264
|
-
width: 100%;
|
|
265
|
-
height: 64vh;
|
|
266
|
-
overflow: auto;
|
|
267
|
-
display: flex;
|
|
268
|
-
justify-content: space-between;
|
|
269
|
-
align-content: flex-start;
|
|
270
|
-
flex-wrap: wrap;
|
|
271
|
-
flex-direction: row;
|
|
272
|
-
.condition-card {
|
|
273
|
-
width: 49%;
|
|
274
|
-
margin-bottom: 10px;
|
|
275
|
-
cursor: pointer;
|
|
276
|
-
.title-row {
|
|
277
|
-
width: 100%;
|
|
278
|
-
display: flex;
|
|
279
|
-
justify-content: flex-start;
|
|
280
|
-
height: 32px;
|
|
281
|
-
line-height: 32px;
|
|
282
|
-
.title-name {
|
|
283
|
-
}
|
|
284
|
-
.title-status {
|
|
285
|
-
flex-shrink: 0;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
.condition-content {
|
|
289
|
-
.contidtion-row {
|
|
290
|
-
display: flex;
|
|
291
|
-
flex-wrap: nowrap;
|
|
292
|
-
.condition-label {
|
|
293
|
-
width: 120px;
|
|
294
|
-
flex-shrink: 0;
|
|
295
|
-
color: var(--ind-desc-color);
|
|
296
|
-
}
|
|
297
|
-
.condition-value {
|
|
298
|
-
width: 100%;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
1
|
+
.ivu-form {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
.ivu-form-item {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
margin-bottom: var(--search-margin-bottom) !important;
|
|
8
|
+
.ivu-poptip,
|
|
9
|
+
.ivu-poptip-rel {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.textAlignLeft {
|
|
14
|
+
text-align: left;
|
|
15
|
+
}
|
|
16
|
+
.textAlignCenter {
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
.textAlignRight {
|
|
20
|
+
text-align: right;
|
|
21
|
+
margin-right: 0px;
|
|
22
|
+
// width: 25%;
|
|
23
|
+
.ivu-btn {
|
|
24
|
+
margin-left: var(--search-button-margin);
|
|
25
|
+
}
|
|
26
|
+
.ivu-btn-text {
|
|
27
|
+
color: var(--ind-primary-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.show-more-query {
|
|
31
|
+
width: 46px;
|
|
32
|
+
padding: 0 !important;
|
|
33
|
+
&:focus {
|
|
34
|
+
box-shadow: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ivu-form .ivu-form-item .ivu-form-item-content {
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 全局样式,查询条件-2022年11月11日
|
|
44
|
+
.search {
|
|
45
|
+
// date-picker
|
|
46
|
+
.ivu-date-picker {
|
|
47
|
+
width: 100% !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// form
|
|
51
|
+
.ivu-form {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
.ivu-form-item {
|
|
55
|
+
margin-bottom: var(--search-margin-bottom) !important;
|
|
56
|
+
}
|
|
57
|
+
.textAlignLeft {
|
|
58
|
+
text-align: left;
|
|
59
|
+
}
|
|
60
|
+
.textAlignCenter {
|
|
61
|
+
text-align: center;
|
|
62
|
+
}
|
|
63
|
+
.textAlignRight {
|
|
64
|
+
text-align: right;
|
|
65
|
+
margin-right: 0px;
|
|
66
|
+
.ivu-btn {
|
|
67
|
+
margin-left: var(--search-button-margin);
|
|
68
|
+
}
|
|
69
|
+
.ivu-btn-text {
|
|
70
|
+
color: var(--ind-primary-color);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ind-v6-style-form {
|
|
77
|
+
#ind-detail-form();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ind-detail-view {
|
|
81
|
+
#ind-detail-form();
|
|
82
|
+
|
|
83
|
+
.content {
|
|
84
|
+
.ivu-card-body:has(.ivu-form) > div {
|
|
85
|
+
// ivu-form 本身已经有border-left border-top边框,这里需要针对此种场景,去掉边框样式
|
|
86
|
+
border-top: none;
|
|
87
|
+
border-left: none;
|
|
88
|
+
}
|
|
89
|
+
.ivu-form {
|
|
90
|
+
// 补充边框样式
|
|
91
|
+
border-top: 1px solid var(--ind-border-color);
|
|
92
|
+
border-left: 1px solid var(--ind-border-color);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ivu-poptip-rel {
|
|
97
|
+
display: block;
|
|
98
|
+
}
|
|
99
|
+
textarea.ivu-input {
|
|
100
|
+
min-height: 50px !important;
|
|
101
|
+
max-height: 150px !important;
|
|
102
|
+
overflow-y: auto !important;
|
|
103
|
+
}
|
|
104
|
+
.ivu-form .ivu-form-item-label {
|
|
105
|
+
font-size: 14px !important;
|
|
106
|
+
text-align: left;
|
|
107
|
+
}
|
|
108
|
+
.ivu-form-item-required .ivu-form-item-label:before {
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: -12px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// TODO emp 注释掉了
|
|
115
|
+
.ivu-card-body > div:has(.ivu-form-item) {
|
|
116
|
+
border-top: 1px solid var(--ind-border-color);
|
|
117
|
+
border-left: 1px solid var(--ind-border-color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ivu-form-inline .ivu-form-item {
|
|
121
|
+
margin-right: 0 !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ind-detail-form-border {
|
|
125
|
+
border-top: 1px solid var(--ind-border-color) !important;
|
|
126
|
+
border-left: 1px solid var(--ind-border-color) !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ivu-form .ivu-form-item-label {
|
|
130
|
+
padding: var(--ivu-form-item-label-padding);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ivu-form .ivu-form-item-content {
|
|
134
|
+
line-height: var(--ivu-form-item-content-line-height);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
#ind-detail-form {
|
|
138
|
+
.ivu-form:not(.nov6style) {
|
|
139
|
+
.ivu-form-item {
|
|
140
|
+
height: 100%;
|
|
141
|
+
margin-bottom: 0 !important;
|
|
142
|
+
display: flex;
|
|
143
|
+
.ivu-form-item-label {
|
|
144
|
+
position: relative !important;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
flex-grow: 0;
|
|
147
|
+
text-align: left !important;
|
|
148
|
+
background-color: var(--ind-bg-color-dark) !important;
|
|
149
|
+
padding-left: var(--ivu-form-v6stle-item-label-paddingleft);
|
|
150
|
+
border-right: 1px solid var(--ind-border-color);
|
|
151
|
+
border-bottom: 1px solid var(--ind-border-color);
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
justify-content: space-around;
|
|
155
|
+
}
|
|
156
|
+
.ivu-form-item-content {
|
|
157
|
+
flex-grow: 1;
|
|
158
|
+
width: 10px;
|
|
159
|
+
margin-left: 0 !important;
|
|
160
|
+
background-color: white;
|
|
161
|
+
border-right: 1px solid var(--ind-border-color);
|
|
162
|
+
border-bottom: 1px solid var(--ind-border-color);
|
|
163
|
+
padding: var(--ivu-form-item-content-padding);
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
justify-content: space-around;
|
|
167
|
+
color: var(--ind-text-color);
|
|
168
|
+
&
|
|
169
|
+
*:not(
|
|
170
|
+
.ivu-badge-count,
|
|
171
|
+
.ivu-btn,
|
|
172
|
+
.ivu-btn > span,
|
|
173
|
+
.ivu-icon-md-information-circle,
|
|
174
|
+
.ivu-form-item-error-tip,
|
|
175
|
+
.pickerCard .pickQuarterCard .defaultSpan .selected,
|
|
176
|
+
.ivu-select-placeholder,
|
|
177
|
+
.upload-file .content-item .download,
|
|
178
|
+
.upload-file .content-item .delete,
|
|
179
|
+
.upload-file .content-item .preview,
|
|
180
|
+
.upload-file .content-item .download .ivu-icon,
|
|
181
|
+
.upload-file .content-item .delete .ivu-icon,
|
|
182
|
+
.upload-file .content-item .preview .ivu-icon
|
|
183
|
+
) {
|
|
184
|
+
color: var(--ind-text-color);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
.ivu-form-item-required .ivu-form-item-label:before {
|
|
189
|
+
position: absolute;
|
|
190
|
+
left: var(--ivu-form-item-label-before-left, 8px);
|
|
191
|
+
}
|
|
192
|
+
.ivu-form-item-error-tip {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 30px;
|
|
195
|
+
left: 5px;
|
|
196
|
+
color: white;
|
|
197
|
+
font-size: 14px;
|
|
198
|
+
padding: 3px;
|
|
199
|
+
background-color: #f56a6a;
|
|
200
|
+
border-radius: 3px;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
box-shadow: 0 5px 10px #dedede;
|
|
203
|
+
z-index: 999;
|
|
204
|
+
}
|
|
205
|
+
.ivu-form-item-error-tip::after {
|
|
206
|
+
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #ff6969;
|
|
207
|
+
border-style: solid;
|
|
208
|
+
border-width: 6px;
|
|
209
|
+
content: '';
|
|
210
|
+
height: 0;
|
|
211
|
+
left: 15px;
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: -11px;
|
|
214
|
+
z-index: 888;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ivu-modal {
|
|
220
|
+
.ivu-biz-form-row {
|
|
221
|
+
.ivu-form {
|
|
222
|
+
border-top: 1px solid var(--ind-border-color);
|
|
223
|
+
border-left: 1px solid var(--ind-border-color);
|
|
224
|
+
}
|
|
225
|
+
#ind-detail-form();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ivu-drawer {
|
|
230
|
+
.ivu-biz-form-row {
|
|
231
|
+
.ivu-form {
|
|
232
|
+
border-top: 1px solid var(--ind-border-color);
|
|
233
|
+
border-left: 1px solid var(--ind-border-color);
|
|
234
|
+
}
|
|
235
|
+
#ind-detail-form();
|
|
236
|
+
}
|
|
237
|
+
.ivu-drawer-content {
|
|
238
|
+
height: 100%;
|
|
239
|
+
.ivu-card {
|
|
240
|
+
padding: 0 0 !important;
|
|
241
|
+
overflow: hidden !important;
|
|
242
|
+
width: 100%;
|
|
243
|
+
.ivu-card-head {
|
|
244
|
+
padding: 14px 16px;
|
|
245
|
+
font-size: 16px;
|
|
246
|
+
color: #17233d;
|
|
247
|
+
font-weight: 500;
|
|
248
|
+
// line-height: 20px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// 有些form表单要嵌入到form表单里
|
|
255
|
+
.form-in-form {
|
|
256
|
+
.ivu-form-item-content {
|
|
257
|
+
padding: 0 !important;
|
|
258
|
+
border: none !important;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.condition-pannel-wrap {
|
|
263
|
+
margin-top: 10px;
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: 64vh;
|
|
266
|
+
overflow: auto;
|
|
267
|
+
display: flex;
|
|
268
|
+
justify-content: space-between;
|
|
269
|
+
align-content: flex-start;
|
|
270
|
+
flex-wrap: wrap;
|
|
271
|
+
flex-direction: row;
|
|
272
|
+
.condition-card {
|
|
273
|
+
width: 49%;
|
|
274
|
+
margin-bottom: 10px;
|
|
275
|
+
cursor: pointer;
|
|
276
|
+
.title-row {
|
|
277
|
+
width: 100%;
|
|
278
|
+
display: flex;
|
|
279
|
+
justify-content: flex-start;
|
|
280
|
+
height: 32px;
|
|
281
|
+
line-height: 32px;
|
|
282
|
+
.title-name {
|
|
283
|
+
}
|
|
284
|
+
.title-status {
|
|
285
|
+
flex-shrink: 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
.condition-content {
|
|
289
|
+
.contidtion-row {
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-wrap: nowrap;
|
|
292
|
+
.condition-label {
|
|
293
|
+
width: 120px;
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
color: var(--ind-desc-color);
|
|
296
|
+
}
|
|
297
|
+
.condition-value {
|
|
298
|
+
width: 100%;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
package/package.json
CHANGED
package/utils/dict/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import config from '../../config/config'
|
|
|
2
2
|
import ajax from '../ajax'
|
|
3
3
|
import { builtInDictKeys, builtInDictMap, builtInDictList} from './built-in-dict'
|
|
4
4
|
import { setSessionStorage, getSessionStorage} from "../platform";
|
|
5
|
+
import { axiosN as axios } from '../n/reuqest/axiosN'
|
|
6
|
+
const CONTEXT = '/user-manage-server'
|
|
5
7
|
|
|
6
8
|
export async function getAllDict(dictIdArray) {
|
|
7
9
|
if (dictIdArray.length > 0) {
|
|
@@ -73,3 +75,34 @@ export async function getDictMap(dictId) {
|
|
|
73
75
|
console.error(`getDictsMap error dictId=${dictId}`, error)
|
|
74
76
|
}
|
|
75
77
|
}
|
|
78
|
+
|
|
79
|
+
async function getDictApi(dictId) {
|
|
80
|
+
const dictValue = getSessionStorage(dictId)
|
|
81
|
+
if (!!dictValue) {
|
|
82
|
+
return dictValue
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
const { data } = await axios.get(`${CONTEXT}/dict/getDicts`, { params: { dictId } })
|
|
86
|
+
setSessionStorage(dictId, data)
|
|
87
|
+
return data
|
|
88
|
+
} catch (error) {
|
|
89
|
+
console.error(`getDict error dictId=${dictId}`, error)
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export async function getDictsMap(dictIdArr) {
|
|
93
|
+
if (dictIdArr.length > 0) {
|
|
94
|
+
const resultMap = {}
|
|
95
|
+
const result = await Promise.all(dictIdArr.map((dictId) => getDictApi(dictId)))
|
|
96
|
+
dictIdArr.forEach((dictId, i) => {
|
|
97
|
+
if (result[i]) {
|
|
98
|
+
const resultValue = {}
|
|
99
|
+
result[i].forEach((item) => {
|
|
100
|
+
resultValue[item.K] = item.V
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
resultMap[dictId] = { data: resultValue, renderData: result[i] }
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
return resultMap
|
|
107
|
+
}
|
|
108
|
+
}
|
package/utils/n/api.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { axiosN } from './reuqest/axiosN'
|
|
2
|
+
import config from '../../config/config'
|
|
3
|
+
|
|
4
|
+
const CONTEXT = `${config.immServerContext}/manage/pub/dateperiod`
|
|
5
|
+
|
|
6
|
+
export function getWeeksByMonthAPI(params) {
|
|
7
|
+
return axiosN.get(`${CONTEXT}/getWeekByMonth`, { params })
|
|
8
|
+
}
|