vue2-client 1.6.46 → 1.6.47
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<!-- 输入框 -->
|
|
3
3
|
<x-form-col
|
|
4
4
|
v-if="attr.type === 'input'"
|
|
5
|
-
:xl="xl"
|
|
6
|
-
:xxl="xxl">
|
|
5
|
+
:xl="attr.xl"
|
|
6
|
+
:xxl="attr.xxl">
|
|
7
7
|
<a-form-model-item
|
|
8
8
|
:ref="attr.model"
|
|
9
9
|
:label="attr.name"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<!-- 下拉框 -->
|
|
15
15
|
<x-form-col
|
|
16
16
|
v-else-if="attr.type === 'select'"
|
|
17
|
-
:xl="xl"
|
|
18
|
-
:xxl="xxl">
|
|
17
|
+
:xl="attr.xl"
|
|
18
|
+
:xxl="attr.xxl">
|
|
19
19
|
<a-form-model-item
|
|
20
20
|
:ref="attr.model"
|
|
21
21
|
:label="attr.name"
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
<!-- 多选框 -->
|
|
89
89
|
<x-form-col
|
|
90
90
|
v-else-if="attr.type === 'checkbox'"
|
|
91
|
-
:xl="xl"
|
|
92
|
-
:xxl="xxl">
|
|
91
|
+
:xl="attr.xl"
|
|
92
|
+
:xxl="attr.xxl">
|
|
93
93
|
<a-form-model-item
|
|
94
94
|
:ref="attr.model"
|
|
95
95
|
:label="attr.name"
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
<!-- 单选框 -->
|
|
155
155
|
<x-form-col
|
|
156
156
|
v-else-if="attr.type === 'radio'"
|
|
157
|
-
:xl="xl"
|
|
158
|
-
:xxl="xxl">
|
|
157
|
+
:xl="attr.xl"
|
|
158
|
+
:xxl="attr.xxl">
|
|
159
159
|
<a-form-model-item
|
|
160
160
|
:ref="attr.model"
|
|
161
161
|
:label="attr.name"
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
<!-- 日期范围选择器 -->
|
|
185
185
|
<x-form-col
|
|
186
186
|
v-else-if="attr.type === 'rangePicker'"
|
|
187
|
-
:xl="xl"
|
|
188
|
-
:xxl="xxl">
|
|
187
|
+
:xl="attr.xl"
|
|
188
|
+
:xxl="attr.xxl">
|
|
189
189
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
190
190
|
<a-range-picker v-model="form[attr.model]" :disabled="disabled" :show-time="true" valueFormat="YYYY-MM-DD HH:mm:ss"/>
|
|
191
191
|
</a-form-model-item>
|
|
@@ -193,8 +193,8 @@
|
|
|
193
193
|
<!-- 月份选择器 -->
|
|
194
194
|
<x-form-col
|
|
195
195
|
v-else-if="attr.type === 'monthPicker'"
|
|
196
|
-
:xl="xl"
|
|
197
|
-
:xxl="xxl">
|
|
196
|
+
:xl="attr.xl"
|
|
197
|
+
:xxl="attr.xxl">
|
|
198
198
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
199
199
|
<a-month-picker v-model="form[attr.model]" :disabled="disabled" :show-time="true" valueFormat="YYYY-MM"/>
|
|
200
200
|
</a-form-model-item>
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
<!-- 年份选择器 -->
|
|
203
203
|
<x-form-col
|
|
204
204
|
v-else-if="attr.type === 'yearPicker'"
|
|
205
|
-
:xl="xl"
|
|
206
|
-
:xxl="xxl">
|
|
205
|
+
:xl="attr.xl"
|
|
206
|
+
:xxl="attr.xxl">
|
|
207
207
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
208
208
|
<a-date-picker
|
|
209
209
|
v-model="form[attr.model]"
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
<!-- 日期选择器 -->
|
|
221
221
|
<x-form-col
|
|
222
222
|
v-else-if="attr.type === 'datePicker'"
|
|
223
|
-
:xl="xl"
|
|
224
|
-
:xxl="xxl">
|
|
223
|
+
:xl="attr.xl"
|
|
224
|
+
:xxl="attr.xxl">
|
|
225
225
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
226
226
|
<a-date-picker
|
|
227
227
|
v-model="form[attr.model]"
|
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
<!-- 省市区选择框 -->
|
|
264
264
|
<x-form-col
|
|
265
265
|
v-else-if="attr.type === 'citySelect'"
|
|
266
|
-
:xl="xl"
|
|
267
|
-
:xxl="xxl">
|
|
266
|
+
:xl="attr.xl"
|
|
267
|
+
:xxl="attr.xxl">
|
|
268
268
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
269
269
|
<citySelect v-model="form[attr.model]" ></citySelect>
|
|
270
270
|
</a-form-model-item>
|
|
@@ -272,8 +272,8 @@
|
|
|
272
272
|
<!-- 地点搜索框 -->
|
|
273
273
|
<x-form-col
|
|
274
274
|
v-else-if="attr.type === 'addressSearch'"
|
|
275
|
-
:xl="xl"
|
|
276
|
-
:xxl="xxl">
|
|
275
|
+
:xl="attr.xl"
|
|
276
|
+
:xxl="attr.xxl">
|
|
277
277
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
278
278
|
<address-search-combobox
|
|
279
279
|
v-model="searchResult"
|
|
@@ -286,8 +286,8 @@
|
|
|
286
286
|
<!-- 人员选择框 -->
|
|
287
287
|
<x-form-col
|
|
288
288
|
v-else-if="attr.type === 'personSetting'"
|
|
289
|
-
:xl="xl"
|
|
290
|
-
:xxl="xxl">
|
|
289
|
+
:xl="attr.xl"
|
|
290
|
+
:xxl="attr.xxl">
|
|
291
291
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
292
292
|
<PersonSetting v-model="form[attr.model]" ></PersonSetting>
|
|
293
293
|
</a-form-model-item>
|
|
@@ -295,8 +295,8 @@
|
|
|
295
295
|
<!-- 树形选择框 -->
|
|
296
296
|
<x-form-col
|
|
297
297
|
v-else-if="attr.type === 'treeSelect'"
|
|
298
|
-
:xl="xl"
|
|
299
|
-
:xxl="xxl">
|
|
298
|
+
:xl="attr.xl"
|
|
299
|
+
:xxl="attr.xxl">
|
|
300
300
|
<x-tree-select
|
|
301
301
|
ref="xTreeSelect">
|
|
302
302
|
</x-tree-select>
|
|
@@ -364,14 +364,6 @@ export default {
|
|
|
364
364
|
return '查询'
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
|
-
xl: {
|
|
368
|
-
type: Number,
|
|
369
|
-
default: undefined
|
|
370
|
-
},
|
|
371
|
-
xxl: {
|
|
372
|
-
type: Number,
|
|
373
|
-
default: undefined
|
|
374
|
-
},
|
|
375
367
|
files: {
|
|
376
368
|
type: Array,
|
|
377
369
|
default: () => {
|
|
@@ -418,6 +410,14 @@ export default {
|
|
|
418
410
|
},
|
|
419
411
|
methods: {
|
|
420
412
|
init () {
|
|
413
|
+
if (this.mode === '新增/修改') {
|
|
414
|
+
if (!this.attr.xl) {
|
|
415
|
+
this.attr.xl = 12
|
|
416
|
+
}
|
|
417
|
+
if (!this.attr.xxl) {
|
|
418
|
+
this.attr.xxl = 8
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
421
|
if (this.attr.keyName && this.attr.keyName.indexOf('logic@') !== -1) {
|
|
422
422
|
this.getData({}, res => {
|
|
423
423
|
this.option = res
|