|
|
@@ -8,7 +8,8 @@
|
|
|
:class="{ active: record.key === selectItem.key }"
|
|
|
>
|
|
|
<div class="form-item-box">
|
|
|
- <StFormItem :formConfig="config" :formData='{}' :record="record" :childTableFieldRecord='childTableFieldRecord' :isDesign="true"/>
|
|
|
+ <StFormItem :formConfig="config" :formData='{}' :record="record" :childTableFieldRecord='childTableFieldRecord'
|
|
|
+ :isDesign="true"/>
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="!hideModel"
|
|
|
@@ -138,11 +139,11 @@ export default {
|
|
|
if (newVal == "input") {
|
|
|
//短文本输入框
|
|
|
const types = ['STRING'];
|
|
|
- mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect','checkbox','deptAndPersonSelect']
|
|
|
+ mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox', 'deptAndPersonSelect']
|
|
|
} else if (newVal == "select") {
|
|
|
//下拉选择
|
|
|
const types = ['STRING', 'MULTI'];
|
|
|
- mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox','deptAndPersonSelect']
|
|
|
+ mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox', 'deptAndPersonSelect']
|
|
|
} else if (newVal == "textarea") {
|
|
|
//多行输入框
|
|
|
const types = ['TEXT'];
|
|
|
@@ -190,15 +191,15 @@ export default {
|
|
|
} else if (newVal == "deptAndPersonSelect") {
|
|
|
//人,组织
|
|
|
const types = ['SINGLE', 'MULTI'];
|
|
|
- mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox','deptAndPersonSelect']
|
|
|
+ mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox', 'deptAndPersonSelect']
|
|
|
} else if (newVal == "popUpSelect") {
|
|
|
//弹出选择框
|
|
|
const types = ['STRING', 'MULTI'];
|
|
|
- mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox','cascader']
|
|
|
+ mayBeSelects = ['input', 'select', 'radio', 'treeSelect', 'popUpSelect', 'checkbox', 'cascader']
|
|
|
} else if (newVal == "cascader") {
|
|
|
//级联选择
|
|
|
- const types = [ 'MULTI'];
|
|
|
- mayBeSelects = [ 'select', 'treeSelect', 'popUpSelect', 'checkbox','cascader']
|
|
|
+ const types = ['MULTI'];
|
|
|
+ mayBeSelects = ['select', 'treeSelect', 'popUpSelect', 'checkbox', 'cascader']
|
|
|
} else if (newVal == "batch") {
|
|
|
//子表
|
|
|
const types = ['CHILDREN'];
|
|
|
@@ -210,14 +211,14 @@ export default {
|
|
|
} else {
|
|
|
mayBeSelects = this.validType
|
|
|
}
|
|
|
-
|
|
|
- this.formNodeSelectItems = basicsList.filter(item => {
|
|
|
+ const items = basicsList.filter(item => {
|
|
|
if (this.validType.includes(item.type) && mayBeSelects.includes(item.type)) {
|
|
|
return true;
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
})
|
|
|
+ this.formNodeSelectItems = JSON.parse(JSON.stringify(items))
|
|
|
this.selectItemValue = this.selectItem.type
|
|
|
},
|
|
|
}
|