From aa892bb50bf9f361a28fbb964b20ed8de9f82665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 25 Sep 2023 15:33:08 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=9B=BD=E5=86=85=E5=A4=96=E6=A0=87?= =?UTF-8?q?=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commonPage/StandardDetailPage.vue | 13 ++++++++----- .../domesticStandard/DomesticStandardList.vue | 1 + .../overseasStandard/OverseasStandardList.vue | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue b/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue index 833caeaf..5852e4f8 100644 --- a/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue +++ b/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue @@ -108,7 +108,8 @@ import { shareDomesticStandard, getDomesticStandardDetail, getOverseasStandardForm, - getOverseasStandardDocumentInfo + getOverseasStandardDocumentInfo, + shareOverseasStandard } from '../../../api/standardRegulationLibraryApi' import UpdateRecordModal from './modules/UpdateRecordModal.vue' import SubmitQuestionModal from './modules/SubmitQuestionModal.vue' @@ -144,13 +145,15 @@ const OverseasStandardPermission = { // 国内标准接口 const DomesticApi = { getFormFunc: getDomesticStandardFormModal, // 获取字段 - getDetailData: getDomesticStandardDetail // 获取详情数据 + getDetailData: getDomesticStandardDetail, // 获取详情数据 + share: shareDomesticStandard // 分享 } // 海外标准接口 const OverseasApi = { getFormFunc: getOverseasStandardForm, // 获取字段 - getDetailData: getOverseasStandardDocumentInfo // 获取详情数据 + getDetailData: getOverseasStandardDocumentInfo, // 获取详情数据 + share: shareOverseasStandard // 分享 } const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw'] @@ -308,12 +311,12 @@ export default { */ continueShare (ids) { const params = { - id: this.$route.query.id, // 要分享的标准的id + standardId: this.$route.query.id, // 要分享的标准的id standardNumber: this.detailData.standard_number, // 分享的标准编号 recipientId: ids // 分享给的用户的id } this.loading = true - shareDomesticStandard(params).then(res => { + this.operateApiFunc.share(params).then(res => { if (res.success) { this.$message.success(res.message) } else { diff --git a/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue b/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue index 28a740a2..e9e62293 100644 --- a/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue +++ b/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue @@ -511,6 +511,7 @@ export default { this.searchParams = {} this.selectedRowKeys = [] this.selectedTreeKeys = [] + delete this.filters.nodeCode this.getTableHeader() this.loadData() }, diff --git a/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue b/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue index b989358f..0532ea3f 100644 --- a/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue +++ b/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue @@ -511,6 +511,7 @@ export default { this.searchParams = {} this.selectedRowKeys = [] this.selectedTreeKeys = [] + delete this.filters.nodeCode this.getTableHeader() this.loadData() },