vue2-client 1.2.95 → 1.2.96
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
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
</a-col>
|
|
183
183
|
<a-col v-if="item.formType" :span="9">
|
|
184
184
|
<a-card :bodyStyle="bodyStyle" title="扩展属性">
|
|
185
|
-
<template v-if="(dataMode.addOrEditForm || dataMode.queryForm ) && (item.formType === 'input' || item.formType === 'select' || item.formType === 'selects')">
|
|
185
|
+
<template v-if="(dataMode.addOrEditForm || dataMode.queryForm ) && (item.formType === 'input' || item.formType === 'select' || item.formType === 'selects' || item.formType === 'cascader')">
|
|
186
186
|
<a-divider style="font-size: 14px;margin-top: 0">提示相关</a-divider>
|
|
187
187
|
<a-form-model-item label="表单水印" prop="placeholder">
|
|
188
188
|
<a-input v-model="item.placeholder" placeholder="表单水印(placeholder)" />
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
style="margin-top: 5px"
|
|
331
331
|
type="error"/>
|
|
332
332
|
<a-alert
|
|
333
|
-
v-if="dataMode.addOrEditForm && !dataMode.sqlQueryItem && item.formType !== 'file' && item.formType !== 'image' && item.formType !== 'personSetting' "
|
|
333
|
+
v-if="dataMode.addOrEditForm && !dataMode.sqlQueryItem && item.formType !== 'file' && item.formType !== 'image' && item.formType !== 'personSetting' && item.formType !== 'cascader' "
|
|
334
334
|
message="错误:如果要生成新增/修改表单项,必须勾选生成SQL查询项"
|
|
335
335
|
show-icon
|
|
336
336
|
style="margin-top: 5px"
|
|
@@ -380,7 +380,7 @@ export default {
|
|
|
380
380
|
computed: {
|
|
381
381
|
// 是否展示数据源相关字段
|
|
382
382
|
selectDataShow () {
|
|
383
|
-
return this.item.formType === 'select' || (this.item.formType === 'selects' && this.item.groupIndexView === '1') || this.item.formType === 'checkbox' || this.item.formType === 'radio'
|
|
383
|
+
return this.item.formType === 'select' || this.item.formType === 'cascader' || (this.item.formType === 'selects' && this.item.groupIndexView === '1') || this.item.formType === 'checkbox' || this.item.formType === 'radio'
|
|
384
384
|
},
|
|
385
385
|
// 作用域插槽是否禁用
|
|
386
386
|
slotTypeDisabled () {
|
|
@@ -592,7 +592,7 @@ export default {
|
|
|
592
592
|
this.$message.error('请至少选择一种数据模式')
|
|
593
593
|
return
|
|
594
594
|
}
|
|
595
|
-
if (!fileBool && (this.dataMode.addOrEditForm && !this.dataMode.sqlQueryItem) && this.item.formType !== 'personSetting') {
|
|
595
|
+
if (!fileBool && (this.dataMode.addOrEditForm && !this.dataMode.sqlQueryItem) && this.item.formType !== 'personSetting' && this.item.formType !== 'cascader') {
|
|
596
596
|
this.$message.error('如果要生成新增/修改表单项,必须勾选生成SQL查询项')
|
|
597
597
|
return
|
|
598
598
|
}
|
|
@@ -170,12 +170,13 @@
|
|
|
170
170
|
:xl="xl"
|
|
171
171
|
:xxl="xxl">
|
|
172
172
|
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
<a-cascader
|
|
174
|
+
:disabled="disabled"
|
|
175
|
+
change-on-select
|
|
176
|
+
:options="option"
|
|
177
|
+
:value="form[attr.model]"
|
|
178
|
+
:placeholder="attr.placeholder ? attr.placeholder : '请选择'+attr.name.replace(/\s*/g, '')"
|
|
179
|
+
:rows="4"/>
|
|
179
180
|
</a-form-model-item>
|
|
180
181
|
</x-form-col>
|
|
181
182
|
<!-- 文本域 -->
|
|
@@ -312,6 +313,7 @@ export default {
|
|
|
312
313
|
created () {
|
|
313
314
|
if (this.attr.keyName && this.attr.keyName.indexOf('logic@') !== -1) {
|
|
314
315
|
this.getData({}, res => {
|
|
316
|
+
console.log(res, '====')
|
|
315
317
|
this.option = res
|
|
316
318
|
})
|
|
317
319
|
}
|
|
@@ -38,6 +38,9 @@ module.exports = {
|
|
|
38
38
|
{
|
|
39
39
|
label: '级联选择框', key: 'selects'
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
label: 'cascader选择框', key: 'cascader'
|
|
43
|
+
},
|
|
41
44
|
{
|
|
42
45
|
label: '多选框', key: 'checkbox'
|
|
43
46
|
},
|
|
@@ -288,12 +291,12 @@ module.exports = {
|
|
|
288
291
|
{
|
|
289
292
|
label: '字典键',
|
|
290
293
|
key: 'key',
|
|
291
|
-
noMatch: ['selects']
|
|
294
|
+
noMatch: ['selects', 'cascader']
|
|
292
295
|
},
|
|
293
296
|
{
|
|
294
297
|
label: '固定集合',
|
|
295
298
|
key: 'fixArray',
|
|
296
|
-
noMatch: ['selects']
|
|
299
|
+
noMatch: ['selects', 'cascader']
|
|
297
300
|
},
|
|
298
301
|
{
|
|
299
302
|
label: '业务逻辑',
|