update 国内标准跳转修改
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
<div class="detail-page-process-manuscript-file" v-for="file in detailData[formItem.dbFieldName + 'List']" :key="file.id">
|
||||
<div class="detail-page-process-manuscript-file-info">
|
||||
<a-icon type="link" />
|
||||
<div class="detail-page-process-manuscript-file-name">{{ file.fileName }}</div>
|
||||
<div class="detail-page-process-manuscript-file-name" @click="handlePreview(file)">{{ file.fileName }}</div>
|
||||
</div>
|
||||
<div class="detail-page-process-manuscript-file-operate">
|
||||
<!-- 下载-->
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<script>
|
||||
import '@assets/less/common.less'
|
||||
import { FieldType, TagsTypeEnums } from '../../../enums/commonEnums'
|
||||
import { FieldType, StandardSource, TagsTypeEnums } from '../../../enums/commonEnums'
|
||||
import { getDomesticStandardFormModal, shareDomesticStandard, getDomesticStandardDetail } from '../../../api/standardRegulationLibraryApi'
|
||||
import UpdateRecordModal from './modules/UpdateRecordModal.vue'
|
||||
import SubmitQuestionModal from './modules/SubmitQuestionModal.vue'
|
||||
@@ -153,14 +153,28 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 页面标题
|
||||
type () {
|
||||
if (this.$route.path.indexOf('Domestic') !== -1) {
|
||||
return StandardSource.DOMESTIC.value
|
||||
}
|
||||
if (this.$route.path.indexOf('Overseas') !== -1) {
|
||||
return StandardSource.OVERSEAS.value
|
||||
}
|
||||
return ''
|
||||
},
|
||||
pageTitle () {
|
||||
return TagsTypeEnums.nameOfIndex(this.$route.query.type)
|
||||
if (this.type === StandardSource.DOMESTIC.value) {
|
||||
return this.$t('system.tag.domesticLaws')
|
||||
}
|
||||
if (this.type === StandardSource.OVERSEAS.value) {
|
||||
return this.$t('system.tag.foreignStandards')
|
||||
}
|
||||
return ''
|
||||
},
|
||||
// 按钮权限
|
||||
btnPermission () {
|
||||
let permission = {}
|
||||
switch (this.$route.query.type) {
|
||||
switch (this.type) {
|
||||
// 国内标准法规
|
||||
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
||||
permission = DomesticStandardPermission
|
||||
@@ -173,7 +187,7 @@ export default {
|
||||
// 操作接口
|
||||
operateApiFunc () {
|
||||
let func = {}
|
||||
switch (this.$route.query.type) {
|
||||
switch (this.type) {
|
||||
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
||||
func = DomesticApi
|
||||
break
|
||||
@@ -245,7 +259,7 @@ export default {
|
||||
* 更新记录
|
||||
*/
|
||||
handleOpenUpdateRecord () {
|
||||
this.$refs.uploadRecordModal.open(this.$route.query.standardNumber)
|
||||
this.$refs.uploadRecordModal.open(this.detailData.standard_number)
|
||||
},
|
||||
/**
|
||||
* 提交问题
|
||||
@@ -266,7 +280,7 @@ export default {
|
||||
continueShare (ids) {
|
||||
const params = {
|
||||
id: this.$route.query.id, // 要分享的标准的id
|
||||
standardNumber: this.$route.query.standardNumber, // 分享的标准编号
|
||||
standardNumber: this.detailData.standard_number, // 分享的标准编号
|
||||
recipientId: ids // 分享给的用户的id
|
||||
}
|
||||
this.loading = true
|
||||
|
||||
@@ -510,13 +510,11 @@ export default {
|
||||
* @param id
|
||||
* @param standardNumber
|
||||
*/
|
||||
toDetailPage ({ id, standard_number: standardNumber }) {
|
||||
toDetailPage ({ id }) {
|
||||
this.$openPageNewSheet({
|
||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||
query: {
|
||||
id,
|
||||
type: StandardSource.DOMESTIC.value,
|
||||
standardNumber
|
||||
id
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
+1
-2
@@ -212,8 +212,7 @@ export default {
|
||||
this.$openPageNewSheet({
|
||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||
query: {
|
||||
id,
|
||||
type: TagsTypeEnums.DOMESTIC_LIST.value
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user