From 68112a6d2860cf97e4fcdb271848cc2f7b3971aa Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Wed, 8 Nov 2023 16:38:18 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E5=86=85=E9=83=A8?=
=?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=BB=84=E6=96=B0=E5=A2=9E=E4=B8=89=E8=8A=82?=
=?UTF-8?q?=E7=82=B9=E4=BC=9A=E6=8A=8A=E4=BA=8C=E8=8A=82=E7=82=B9=E7=9A=84?=
=?UTF-8?q?userId=E5=B8=A6=E8=BF=87=E5=8E=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/internalWorkGroup/WorkingGroupList.vue | 6 +++---
.../internalWorkGroup/modules/TreeNodeWorkGroupModal.vue | 7 +++++--
2 files changed, 8 insertions(+), 5 deletions(-)
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