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) {