update 国内标准跳转修改
This commit is contained in:
@@ -341,16 +341,15 @@ export default {
|
||||
* @param record
|
||||
*/
|
||||
toDetailPage (type, record) {
|
||||
let standardId, standardNumber, standardSource, path, query
|
||||
let standardId, standardSource, path
|
||||
|
||||
// 判断是新旧那个标准点击的,取字段
|
||||
if (type === 'old') {
|
||||
standardId = record.standardIdLeft
|
||||
standardNumber = record.serialNumberLeft
|
||||
standardSource = record.standardSourceLeft
|
||||
}
|
||||
if (type === 'new') {
|
||||
standardId = record.standardIdRight
|
||||
standardNumber = record.serialNumberRight
|
||||
standardSource = record.standardSourceRight
|
||||
}
|
||||
// 根据来源跳转不同的详情页
|
||||
@@ -358,27 +357,14 @@ export default {
|
||||
// 国内
|
||||
case StandardSource.DOMESTIC.value:
|
||||
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||
query = {
|
||||
id: standardId,
|
||||
type: standardSource,
|
||||
standardNumber: standardNumber
|
||||
}
|
||||
break
|
||||
// 企标
|
||||
case StandardSource.OVERSEAS.value:
|
||||
path = ''
|
||||
query = {
|
||||
id: standardId,
|
||||
type: standardSource,
|
||||
standardNumber: standardNumber
|
||||
}
|
||||
break
|
||||
// 海外
|
||||
case StandardSource.OVERSEAS.value:
|
||||
path = ''
|
||||
break
|
||||
// 企标
|
||||
case StandardSource.ENTERPRISE.value:
|
||||
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||
query = {
|
||||
id: standardId
|
||||
}
|
||||
break
|
||||
default:
|
||||
break
|
||||
@@ -386,6 +372,9 @@ export default {
|
||||
if (!path) {
|
||||
return
|
||||
}
|
||||
const query = {
|
||||
id: standardId
|
||||
}
|
||||
this.$openPageNewSheet({
|
||||
path, query
|
||||
})
|
||||
|
||||
@@ -133,7 +133,7 @@ import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { queryByIdVehicleItemLibrary } from '../../../api/projectLibraryApi.js'
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
|
||||
import JTable from '../../../components/jero/JTable.vue'
|
||||
import { TagsTypeEnums } from '../../../enums/commonEnums.js'
|
||||
import { StandardSource } from '../../../enums/commonEnums.js'
|
||||
import StandardSelectionModal from '../../../components/selection/StandardSelectionModal.vue'
|
||||
|
||||
export default {
|
||||
@@ -300,8 +300,7 @@ export default {
|
||||
this.$openPageNewSheet({
|
||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||
query: {
|
||||
id,
|
||||
type: TagsTypeEnums.DOMESTIC_LIST.value
|
||||
id
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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