Commit 88cc8340 by 胡悦

菜单控制添加grade

1 parent 7a37243a
...@@ -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
......
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,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!