Commit 126f200c by cwq0219

Merge branch 'master' of https://github.com/glsx-web/authority

2 parents d4cbe9f6 88cc8340
...@@ -67,7 +67,11 @@ export default { ...@@ -67,7 +67,11 @@ export default {
this.value.btnTxt = '保存' this.value.btnTxt = '保存'
this.value.del = false this.value.del = false
for (const key in this.value.form) { for (const key in this.value.form) {
this.value.form[key] = null if (key === 'grade') {
break
} else {
this.value.form[key] = null
}
} }
if (this.value.form.createTime !== undefined) { if (this.value.form.createTime !== undefined) {
this.value.form.createTime = timeTip this.value.form.createTime = timeTip
......
...@@ -197,6 +197,7 @@ export default { ...@@ -197,6 +197,7 @@ export default {
this.addData(obj) this.addData(obj)
// 添加子级 // 添加子级
} else if (this.value.children) { } else if (this.value.children) {
obj.grade += 1
obj.parentId = treeData.id obj.parentId = treeData.id
this.addData(obj) this.addData(obj)
// 修改 // 修改
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!