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() },