update 国内外标准

This commit is contained in:
赵霄
2023-09-25 15:33:08 +08:00
parent 6776041df9
commit aa892bb50b
3 changed files with 10 additions and 5 deletions
@@ -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 {
@@ -511,6 +511,7 @@ export default {
this.searchParams = {}
this.selectedRowKeys = []
this.selectedTreeKeys = []
delete this.filters.nodeCode
this.getTableHeader()
this.loadData()
},
@@ -511,6 +511,7 @@ export default {
this.searchParams = {}
this.selectedRowKeys = []
this.selectedTreeKeys = []
delete this.filters.nodeCode
this.getTableHeader()
this.loadData()
},