[update] 标签内容管理,字典配置树形结构获取列表换接口,树形结构新增编辑parentId没有值就给0
This commit is contained in:
@@ -176,6 +176,10 @@ export default {
|
||||
} else {
|
||||
obj = editDictItem
|
||||
}
|
||||
// 树形结构没有parentId说明是一级
|
||||
if (this.attributeType === TagsAttributeTypeEnums.TREE.value && !params.parentId) {
|
||||
params.parentId = '0'
|
||||
}
|
||||
obj(params).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message)
|
||||
|
||||
@@ -150,7 +150,7 @@ export default {
|
||||
},
|
||||
// 树形结构对应的接口
|
||||
treeUrl: {
|
||||
list: 'sys/dictItem/treeList',
|
||||
list: 'sys/dictItem/treeListByTag',
|
||||
delete: 'sys/dictItem/delete',
|
||||
deleteBatch: 'sys/dictItem/deleteBatch'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user