From 98adf4e7c64a494810f909ec1f60929b54898fc4 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 19 Nov 2025 18:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=96=E6=B6=88=E5=85=B1?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/publicService/docCenter.js | 9 +++++++ .../docs-tags/components/addAndEditForm.vue | 3 ++- .../docCenter/components/rightTable.vue | 25 +++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/api/publicService/docCenter.js b/src/api/publicService/docCenter.js index 95c71b8..24cf6ac 100644 --- a/src/api/publicService/docCenter.js +++ b/src/api/publicService/docCenter.js @@ -124,6 +124,15 @@ export function saveSharePermissionAPI(data = {}) { }) } +// 取消共享 +export function cancelSharePermissionAPI(data = {}) { + return request({ + url: '/screen/document/cancelShare', + method: 'POST', + data, + }) +} + // 移动和添加副本时获取的树结构 export function getMoveAndAddCopyTreeAPI(data = {}) { return request({ diff --git a/src/views/dataManage/docs-tags/components/addAndEditForm.vue b/src/views/dataManage/docs-tags/components/addAndEditForm.vue index feba5cb..a1c7e36 100644 --- a/src/views/dataManage/docs-tags/components/addAndEditForm.vue +++ b/src/views/dataManage/docs-tags/components/addAndEditForm.vue @@ -34,7 +34,7 @@ :key="item.value" :label="item.label" :value="item.value" - v-for="item in labelTypeList" + v-for="item in dict.type.tags_type" /> @@ -64,6 +64,7 @@ import { export default { name: 'AddAndEditForm', components: { TitleTip }, + dicts: ['tags_type'], props: { editRow: { type: Object, diff --git a/src/views/publicService/docCenter/components/rightTable.vue b/src/views/publicService/docCenter/components/rightTable.vue index d520387..44082c0 100644 --- a/src/views/publicService/docCenter/components/rightTable.vue +++ b/src/views/publicService/docCenter/components/rightTable.vue @@ -244,6 +244,7 @@ import EditWord from './tableCom/editWord.vue' import { getDocCenterRightListAPI, deleteDocCenterAPI, + cancelSharePermissionAPI, } from '@/api/publicService/docCenter' export default { name: 'RightTable', @@ -384,6 +385,11 @@ export default { click: this.handleAddCopy_1, acthType: [null], }, + { + label: '取消共享', + click: this.handleCancelShare_1, + acthType: ['1', '2'], + }, ], dialogConfig: { @@ -756,6 +762,25 @@ export default { } }, + // 取消共享 + handleCancelShare_1(row) { + this.$confirm('确定取消共享吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + const res = await cancelSharePermissionAPI({ + id: row.id, + }) + if (res.code === 200) { + this.$modal.msgSuccess('取消共享成功') + this.getTableList() + } + }) + .catch(() => {}) + }, + // 关闭共享弹框 handleCloseShareDialog() { this.shareDialogConfig.outerVisible = false