add 树形分页的字典单选
This commit is contained in:
@@ -431,7 +431,7 @@ export default {
|
||||
val = val + ''
|
||||
// this.contentFlag=val
|
||||
// 树形结构
|
||||
if (val === FieldType.TREE.value || val === FieldType.TREE_SINGLE.value) {
|
||||
if (val === FieldType.TREE.value || val === FieldType.TREE_SINGLE.value || FieldType.TREE_MODAL_SELECT.value) {
|
||||
this.contentOption = [...this.contentOptionTree]
|
||||
this.isTagContent = true
|
||||
} else if (val === FieldType.OPTION_SINGLE.value || val === FieldType.OPTION_MORE.value) {
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
/>
|
||||
</a-form-model-item>
|
||||
<!--父级名称 只有树形结构时显示 TODO 中英文的限制需要做显示的判断-->
|
||||
<a-form-model-item :label="$t('system.tag.parentName')" prop="parentId" v-if="attributeType === TagsAttributeTypeEnums.TREE.value">
|
||||
<a-form-model-item :label="$t('system.tag.parentName')"
|
||||
prop="parentId"
|
||||
v-if="attributeType === TagsAttributeTypeEnums.TREE.value">
|
||||
<a-tree-select
|
||||
style="width:100%"
|
||||
:dropdownStyle="{ maxHeight: '200px', overflow: 'auto' }"
|
||||
@@ -107,7 +109,11 @@ export default {
|
||||
// 名称
|
||||
itemText: [{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.name'), trigger: 'blur' }],
|
||||
// 英文名称
|
||||
enName: [{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'), trigger: 'blur' }],
|
||||
enName: [{
|
||||
required: true,
|
||||
message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'),
|
||||
trigger: 'blur'
|
||||
}],
|
||||
// 数据值
|
||||
itemValue: [
|
||||
{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.dataValue'), trigger: 'blur' },
|
||||
@@ -227,7 +233,9 @@ export default {
|
||||
// 获取所有的树形结构
|
||||
const params = {
|
||||
dictId: this.dictId,
|
||||
isTagDict: 1
|
||||
isTagDict: 1,
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
}
|
||||
getDictTreeList(params).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user