update 国内外标准
This commit is contained in:
@@ -108,7 +108,8 @@ import {
|
|||||||
shareDomesticStandard,
|
shareDomesticStandard,
|
||||||
getDomesticStandardDetail,
|
getDomesticStandardDetail,
|
||||||
getOverseasStandardForm,
|
getOverseasStandardForm,
|
||||||
getOverseasStandardDocumentInfo
|
getOverseasStandardDocumentInfo,
|
||||||
|
shareOverseasStandard
|
||||||
} from '../../../api/standardRegulationLibraryApi'
|
} from '../../../api/standardRegulationLibraryApi'
|
||||||
import UpdateRecordModal from './modules/UpdateRecordModal.vue'
|
import UpdateRecordModal from './modules/UpdateRecordModal.vue'
|
||||||
import SubmitQuestionModal from './modules/SubmitQuestionModal.vue'
|
import SubmitQuestionModal from './modules/SubmitQuestionModal.vue'
|
||||||
@@ -144,13 +145,15 @@ const OverseasStandardPermission = {
|
|||||||
// 国内标准接口
|
// 国内标准接口
|
||||||
const DomesticApi = {
|
const DomesticApi = {
|
||||||
getFormFunc: getDomesticStandardFormModal, // 获取字段
|
getFormFunc: getDomesticStandardFormModal, // 获取字段
|
||||||
getDetailData: getDomesticStandardDetail // 获取详情数据
|
getDetailData: getDomesticStandardDetail, // 获取详情数据
|
||||||
|
share: shareDomesticStandard // 分享
|
||||||
}
|
}
|
||||||
|
|
||||||
// 海外标准接口
|
// 海外标准接口
|
||||||
const OverseasApi = {
|
const OverseasApi = {
|
||||||
getFormFunc: getOverseasStandardForm, // 获取字段
|
getFormFunc: getOverseasStandardForm, // 获取字段
|
||||||
getDetailData: getOverseasStandardDocumentInfo // 获取详情数据
|
getDetailData: getOverseasStandardDocumentInfo, // 获取详情数据
|
||||||
|
share: shareOverseasStandard // 分享
|
||||||
}
|
}
|
||||||
|
|
||||||
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
|
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
|
||||||
@@ -308,12 +311,12 @@ export default {
|
|||||||
*/
|
*/
|
||||||
continueShare (ids) {
|
continueShare (ids) {
|
||||||
const params = {
|
const params = {
|
||||||
id: this.$route.query.id, // 要分享的标准的id
|
standardId: this.$route.query.id, // 要分享的标准的id
|
||||||
standardNumber: this.detailData.standard_number, // 分享的标准编号
|
standardNumber: this.detailData.standard_number, // 分享的标准编号
|
||||||
recipientId: ids // 分享给的用户的id
|
recipientId: ids // 分享给的用户的id
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
shareDomesticStandard(params).then(res => {
|
this.operateApiFunc.share(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -511,6 +511,7 @@ export default {
|
|||||||
this.searchParams = {}
|
this.searchParams = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.selectedTreeKeys = []
|
this.selectedTreeKeys = []
|
||||||
|
delete this.filters.nodeCode
|
||||||
this.getTableHeader()
|
this.getTableHeader()
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -511,6 +511,7 @@ export default {
|
|||||||
this.searchParams = {}
|
this.searchParams = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.selectedTreeKeys = []
|
this.selectedTreeKeys = []
|
||||||
|
delete this.filters.nodeCode
|
||||||
this.getTableHeader()
|
this.getTableHeader()
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user