diff --git a/src/views/system/internalWorkGroup/WorkingGroupList.vue b/src/views/system/internalWorkGroup/WorkingGroupList.vue
index a019d25a..7ae934ea 100644
--- a/src/views/system/internalWorkGroup/WorkingGroupList.vue
+++ b/src/views/system/internalWorkGroup/WorkingGroupList.vue
@@ -47,7 +47,7 @@
-
+
@@ -311,9 +311,9 @@ export default {
this.$refs.treeNodeModal.edit(this.mouseInNodeKey, record)
},
// 左侧树新增(二级节点的新增)
- handleWorkGroupAdd () {
+ handleWorkGroupAdd (record) {
this.$refs.treeNodeWorkGroupModal.title = this.$t('newlyAdded')
- this.$refs.treeNodeWorkGroupModal.add(this.mouseInNodeKey)
+ this.$refs.treeNodeWorkGroupModal.add(this.mouseInNodeKey, record.userId)
},
// 左侧树编辑(三级节点的编辑)
handleWorkGroupEdit (record) {
diff --git a/src/views/system/internalWorkGroup/modules/TreeNodeWorkGroupModal.vue b/src/views/system/internalWorkGroup/modules/TreeNodeWorkGroupModal.vue
index d4a14a16..0af7f3cd 100644
--- a/src/views/system/internalWorkGroup/modules/TreeNodeWorkGroupModal.vue
+++ b/src/views/system/internalWorkGroup/modules/TreeNodeWorkGroupModal.vue
@@ -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