From 55d10c88998fe823dc1497d02a6c01b66dc350ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 31 Oct 2023 16:36:56 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B5=84=E6=96=99=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profileCenter/ProfileCenterList.vue | 5 +++++ .../profileCenter/modules/ProfileCenterModal.vue | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue index cd1519b3..5fb70810 100644 --- a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue +++ b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue @@ -243,6 +243,11 @@ export default { this.treeLoading = false }) }, + handleAdd: function () { + this.$refs.modalForm.add({folderId: this.selectedTreeKeys.join(',')}) + this.$refs.modalForm.title = this.$t('newlyAdded') + this.$refs.modalForm.disableSubmit = false + }, /** * 树节点查询 */ diff --git a/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterModal.vue b/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterModal.vue index ee79f481..f7c07296 100644 --- a/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterModal.vue +++ b/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterModal.vue @@ -101,7 +101,8 @@ export default { } }, methods: { - add () { + add (params) { + this.modal = params this.visible = true }, edit (record) {