n20-common-lib 1.2.8 → 1.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.2.8",
3
+ "version": "1.2.11",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -151,6 +151,43 @@ $--input-max: 304px;
151
151
  }
152
152
  }
153
153
  }
154
+ .el-form.label-width-8em {
155
+ margin-left: 66px;
156
+ margin-right: 38px;
157
+ .n20-title {
158
+ margin-left: -66px;
159
+ margin-right: -38px;
160
+ }
161
+ .el-form-item.col-span-24 {
162
+ @media only screen and (min-width: ($--l + 1px)) {
163
+ .el-textarea {
164
+ max-width: calc(25% + 1.5em + #{$--input-max});
165
+ width: calc(50% - 3em);
166
+ }
167
+ }
168
+
169
+ @media only screen and (max-width: $--l) {
170
+ .el-textarea {
171
+ max-width: calc(33.33% + 2em + #{$--input-max});
172
+ width: calc(66.66% - 2em);
173
+ }
174
+ }
175
+
176
+ @media only screen and (max-width: $--m) {
177
+ .el-textarea {
178
+ max-width: calc(50% + 3em + #{$--input-max});
179
+ width: 100%;
180
+ }
181
+ }
182
+
183
+ @media only screen and (max-width: $--s) {
184
+ .el-form-item {
185
+ max-width: none;
186
+ width: 100%;
187
+ }
188
+ }
189
+ }
190
+ }
154
191
  .el-form.label-width-10em {
155
192
  margin-left: 40px;
156
193
  margin-right: 70px;
@@ -188,8 +225,123 @@ $--input-max: 304px;
188
225
  }
189
226
  }
190
227
  }
228
+ .el-form.label-width-12em {
229
+ margin-left: 10px;
230
+ margin-right: 96px;
231
+ .n20-title {
232
+ margin-left: -10px;
233
+ margin-right: -96px;
234
+ }
235
+ .el-form-item.col-span-24 {
236
+ @media only screen and (min-width: ($--l + 1px)) {
237
+ .el-textarea {
238
+ max-width: calc(25% + 3em + #{$--input-max});
239
+ width: calc(50% - 6em);
240
+ }
241
+ }
242
+
243
+ @media only screen and (max-width: $--l) {
244
+ .el-textarea {
245
+ max-width: calc(33.33% + 4em + #{$--input-max});
246
+ width: calc(66.66% - 4em);
247
+ }
248
+ }
249
+
250
+ @media only screen and (max-width: $--m) {
251
+ .el-textarea {
252
+ max-width: calc(50% + 6em + #{$--input-max});
253
+ width: 100%;
254
+ }
255
+ }
256
+
257
+ @media only screen and (max-width: $--s) {
258
+ .el-form-item {
259
+ max-width: none;
260
+ width: 100%;
261
+ }
262
+ }
263
+ }
264
+ }
265
+ .el-form.label-width-14em {
266
+ margin-left: 0px;
267
+ margin-right: 96px;
268
+ .n20-title {
269
+ margin-left: 0px;
270
+ margin-right: -96px;
271
+ }
272
+ .el-form-item.col-span-24 {
273
+ @media only screen and (min-width: ($--l + 1px)) {
274
+ .el-textarea {
275
+ max-width: calc(25% + 4.66em + #{$--input-max});
276
+ width: calc(50% - 7em);
277
+ }
278
+ }
279
+
280
+ @media only screen and (max-width: $--l) {
281
+ .el-textarea {
282
+ max-width: calc(33.33% + 4.66em + #{$--input-max});
283
+ width: calc(66.66% - 4.66em);
284
+ }
285
+ }
286
+
287
+ @media only screen and (max-width: $--m) {
288
+ .el-textarea {
289
+ max-width: calc(50% + 7em + #{$--input-max});
290
+ width: 100%;
291
+ }
292
+ }
293
+
294
+ @media only screen and (max-width: $--s) {
295
+ .el-form-item {
296
+ max-width: none;
297
+ width: 100%;
298
+ }
299
+ }
300
+ }
301
+ }
302
+ .el-form.label-width-16em {
303
+ margin-left: 0px;
304
+ margin-right: 98px;
305
+ .n20-title {
306
+ margin-left: 0px;
307
+ margin-right: -96px;
308
+ }
309
+ .el-form-item.col-span-24 {
310
+ @media only screen and (min-width: ($--l + 1px)) {
311
+ .el-textarea {
312
+ max-width: calc(25% + 4em + #{$--input-max});
313
+ width: calc(50% - 8em);
314
+ }
315
+ }
316
+
317
+ @media only screen and (max-width: $--l) {
318
+ .el-textarea {
319
+ max-width: calc(33.33% + 5.33em + #{$--input-max});
320
+ width: calc(66.66% - 5.33em);
321
+ }
322
+ }
323
+
324
+ @media only screen and (max-width: $--m) {
325
+ .el-textarea {
326
+ max-width: calc(50% + 8em + #{$--input-max});
327
+ width: 100%;
328
+ }
329
+ }
330
+
331
+ @media only screen and (max-width: $--s) {
332
+ .el-form-item {
333
+ max-width: none;
334
+ width: 100%;
335
+ }
336
+ }
337
+ }
338
+ }
191
339
  .el-form.label-width-6em,
192
- .label-width-10em {
340
+ .el-form.label-width-8em,
341
+ .el-form.label-width-10em,
342
+ .el-form.label-width-12em,
343
+ .el-form.label-width-14em,
344
+ .el-form.label-width-16em {
193
345
  .el-form-item {
194
346
  width: 50%;
195
347
  display: inline-block;
@@ -126,7 +126,7 @@ export default {
126
126
  },
127
127
  // 获取提交参数
128
128
  getParam() {
129
- let { typeCode, taskId, groupNo } = this.$route.query
129
+ let { typeCode, taskId, groupNo, isAgentcy } = this.$route.query
130
130
  return [
131
131
  {
132
132
  typeCode,
@@ -135,7 +135,8 @@ export default {
135
135
  taskDefKey: this.taskDefKey,
136
136
  message: this.messageC,
137
137
  formData: JSON.stringify(this.formData),
138
- signText: this.signText
138
+ signText: this.signText,
139
+ isAgentcy: isAgentcy
139
140
  }
140
141
  ]
141
142
  },
@@ -36,6 +36,10 @@ export default {
36
36
  clearable: {
37
37
  type: Boolean,
38
38
  default: true
39
+ },
40
+ isUrban: {
41
+ type: Boolean,
42
+ default: false
39
43
  }
40
44
  },
41
45
  data() {
@@ -47,7 +51,9 @@ export default {
47
51
  if (!window._china_area_tree_) {
48
52
  this.getAreaTree()
49
53
  } else {
50
- this.areaTree = window._china_area_tree_
54
+ this.areaTree = this.isUrban
55
+ ? window._china_urban_tree_
56
+ : window._china_area_tree_
51
57
  }
52
58
  },
53
59
  methods: {
@@ -55,8 +61,10 @@ export default {
55
61
  axios
56
62
  .get('/bems/1.0/area', { isEnable: 1 }, { loading: false })
57
63
  .then(({ data }) => {
64
+ let dataAr = JSON.parse(JSON.stringify(data))
65
+ let dataUb = JSON.parse(JSON.stringify(data))
58
66
  let areaTree = list2tree(
59
- data,
67
+ dataAr,
60
68
  'regionNo',
61
69
  'fatherNo',
62
70
  'children',
@@ -70,7 +78,21 @@ export default {
70
78
  window._china_area_tree_ = areaTree.filter(
71
79
  (a) => a.regionLevel === '1'
72
80
  )
73
- this.areaTree = window._china_area_tree_
81
+
82
+ let urbanTree = list2tree(
83
+ dataUb.filter((d) => d.regionLevel !== '3'),
84
+ 'regionNo',
85
+ 'fatherNo',
86
+ 'children',
87
+ 'regionNo'
88
+ )
89
+
90
+ window._china_urban_tree_ = urbanTree.filter(
91
+ (a) => a.regionLevel === '1'
92
+ )
93
+ this.areaTree = this.isUrban
94
+ ? window._china_urban_tree_
95
+ : window._china_area_tree_
74
96
  })
75
97
  },
76
98
  updateArea() {
@@ -6,7 +6,7 @@
6
6
  :class="{ 'n20-num--rate': type === 'rate' }"
7
7
  :value="valueStr"
8
8
  :disabled="disabled"
9
- :placeholder="$attrs.placeholder"
9
+ :placeholder="phd"
10
10
  @focus="focusFn"
11
11
  />
12
12
  <el-input-number
@@ -17,6 +17,7 @@
17
17
  :controls="false"
18
18
  v-bind="$attrs"
19
19
  :value="valueNum"
20
+ :placeholder="phd"
20
21
  v-on="listeners"
21
22
  @blur="blurFn"
22
23
  @change="changeFn"
@@ -53,6 +54,10 @@ export default {
53
54
  type: Boolean,
54
55
  default: false
55
56
  },
57
+ placeholder: {
58
+ type: String,
59
+ default: undefined
60
+ },
56
61
  dNum: {
57
62
  type: Number,
58
63
  default: undefined
@@ -74,6 +79,17 @@ export default {
74
79
  showStr: true
75
80
  }
76
81
  },
82
+ computed: {
83
+ phd() {
84
+ if (this.placeholder) {
85
+ return this.placeholder
86
+ } else if (this.type === 'rate') {
87
+ return '请输入利率'
88
+ } else {
89
+ return '请输入金额'
90
+ }
91
+ }
92
+ },
77
93
  watch: {
78
94
  value: {
79
95
  handler(val) {
@@ -21,7 +21,7 @@
21
21
  :hide-required-asterisk="true"
22
22
  @submit.native.prevent="submitLogin"
23
23
  >
24
- <el-form-item class="m-b" label="帐号" prop="username">
24
+ <el-form-item class="m-b" label="账号" prop="username">
25
25
  <el-input v-model="form.username" placeholder="请输入账号" />
26
26
  </el-form-item>
27
27
  <el-form-item class="m-b" label="密码" prop="password">
@@ -110,7 +110,7 @@
110
110
  :hide-required-asterisk="true"
111
111
  @submit.native.prevent="submitLogin"
112
112
  >
113
- <el-form-item class="m-b" label="帐号" prop="username">
113
+ <el-form-item class="m-b" label="账号" prop="username">
114
114
  <el-input v-model="form.username" placeholder="请输入账号" />
115
115
  </el-form-item>
116
116
  <el-form-item class="m-b" label="密码" prop="password">