[update] 修改内部工作组新增三节点会把二节点的userId带过去

This commit is contained in:
lideqin
2023-11-08 16:38:18 +08:00
parent e065b6d9b8
commit 68112a6d28
2 changed files with 8 additions and 5 deletions
@@ -56,14 +56,16 @@ export default {
url: {
add: '/sys/lawsWorkingGroup/add',
edit: '/sys/lawsWorkingGroup/edit'
}
},
parentUserId: ''
}
},
methods: {
add (parentNodeKey) {
add (parentNodeKey, userId) {
this.visible = true
this.form.resetFields()
this.model.pid = parentNodeKey
this.parentUserId = userId
},
edit (nodeKey, record) {
this.visible = true
@@ -88,6 +90,7 @@ export default {
this.confirmLoading = true
const param = Object.assign({}, this.model)
param.name = values.name
param.userId = this.parentUserId
let url = ''
if (this.model.id) {
url = this.url.edit