[update] 修改内部工作组新增三节点会把二节点的userId带过去
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user