update 国内标准跳转修改
This commit is contained in:
@@ -341,16 +341,15 @@ export default {
|
|||||||
* @param record
|
* @param record
|
||||||
*/
|
*/
|
||||||
toDetailPage (type, record) {
|
toDetailPage (type, record) {
|
||||||
let standardId, standardNumber, standardSource, path, query
|
let standardId, standardSource, path
|
||||||
|
|
||||||
// 判断是新旧那个标准点击的,取字段
|
// 判断是新旧那个标准点击的,取字段
|
||||||
if (type === 'old') {
|
if (type === 'old') {
|
||||||
standardId = record.standardIdLeft
|
standardId = record.standardIdLeft
|
||||||
standardNumber = record.serialNumberLeft
|
|
||||||
standardSource = record.standardSourceLeft
|
standardSource = record.standardSourceLeft
|
||||||
}
|
}
|
||||||
if (type === 'new') {
|
if (type === 'new') {
|
||||||
standardId = record.standardIdRight
|
standardId = record.standardIdRight
|
||||||
standardNumber = record.serialNumberRight
|
|
||||||
standardSource = record.standardSourceRight
|
standardSource = record.standardSourceRight
|
||||||
}
|
}
|
||||||
// 根据来源跳转不同的详情页
|
// 根据来源跳转不同的详情页
|
||||||
@@ -358,27 +357,14 @@ export default {
|
|||||||
// 国内
|
// 国内
|
||||||
case StandardSource.DOMESTIC.value:
|
case StandardSource.DOMESTIC.value:
|
||||||
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
query = {
|
|
||||||
id: standardId,
|
|
||||||
type: standardSource,
|
|
||||||
standardNumber: standardNumber
|
|
||||||
}
|
|
||||||
break
|
|
||||||
// 企标
|
|
||||||
case StandardSource.OVERSEAS.value:
|
|
||||||
path = ''
|
|
||||||
query = {
|
|
||||||
id: standardId,
|
|
||||||
type: standardSource,
|
|
||||||
standardNumber: standardNumber
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
// 海外
|
// 海外
|
||||||
|
case StandardSource.OVERSEAS.value:
|
||||||
|
path = ''
|
||||||
|
break
|
||||||
|
// 企标
|
||||||
case StandardSource.ENTERPRISE.value:
|
case StandardSource.ENTERPRISE.value:
|
||||||
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||||
query = {
|
|
||||||
id: standardId
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
@@ -386,6 +372,9 @@ export default {
|
|||||||
if (!path) {
|
if (!path) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const query = {
|
||||||
|
id: standardId
|
||||||
|
}
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
path, query
|
path, query
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
|||||||
import { queryByIdVehicleItemLibrary } from '../../../api/projectLibraryApi.js'
|
import { queryByIdVehicleItemLibrary } from '../../../api/projectLibraryApi.js'
|
||||||
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
|
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
|
||||||
import JTable from '../../../components/jero/JTable.vue'
|
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'
|
import StandardSelectionModal from '../../../components/selection/StandardSelectionModal.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -300,8 +300,7 @@ export default {
|
|||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||||
query: {
|
query: {
|
||||||
id,
|
id
|
||||||
type: TagsTypeEnums.DOMESTIC_LIST.value
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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" v-for="file in detailData[formItem.dbFieldName + 'List']" :key="file.id">
|
||||||
<div class="detail-page-process-manuscript-file-info">
|
<div class="detail-page-process-manuscript-file-info">
|
||||||
<a-icon type="link" />
|
<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>
|
||||||
<div class="detail-page-process-manuscript-file-operate">
|
<div class="detail-page-process-manuscript-file-operate">
|
||||||
<!-- 下载-->
|
<!-- 下载-->
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import '@assets/less/common.less'
|
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 { getDomesticStandardFormModal, shareDomesticStandard, getDomesticStandardDetail } 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'
|
||||||
@@ -153,14 +153,28 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
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 () {
|
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 () {
|
btnPermission () {
|
||||||
let permission = {}
|
let permission = {}
|
||||||
switch (this.$route.query.type) {
|
switch (this.type) {
|
||||||
// 国内标准法规
|
// 国内标准法规
|
||||||
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
||||||
permission = DomesticStandardPermission
|
permission = DomesticStandardPermission
|
||||||
@@ -173,7 +187,7 @@ export default {
|
|||||||
// 操作接口
|
// 操作接口
|
||||||
operateApiFunc () {
|
operateApiFunc () {
|
||||||
let func = {}
|
let func = {}
|
||||||
switch (this.$route.query.type) {
|
switch (this.type) {
|
||||||
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
case TagsTypeEnums.DOMESTIC_LIST.value + '':
|
||||||
func = DomesticApi
|
func = DomesticApi
|
||||||
break
|
break
|
||||||
@@ -245,7 +259,7 @@ export default {
|
|||||||
* 更新记录
|
* 更新记录
|
||||||
*/
|
*/
|
||||||
handleOpenUpdateRecord () {
|
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) {
|
continueShare (ids) {
|
||||||
const params = {
|
const params = {
|
||||||
id: this.$route.query.id, // 要分享的标准的id
|
id: this.$route.query.id, // 要分享的标准的id
|
||||||
standardNumber: this.$route.query.standardNumber, // 分享的标准编号
|
standardNumber: this.detailData.standard_number, // 分享的标准编号
|
||||||
recipientId: ids // 分享给的用户的id
|
recipientId: ids // 分享给的用户的id
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -510,13 +510,11 @@ export default {
|
|||||||
* @param id
|
* @param id
|
||||||
* @param standardNumber
|
* @param standardNumber
|
||||||
*/
|
*/
|
||||||
toDetailPage ({ id, standard_number: standardNumber }) {
|
toDetailPage ({ id }) {
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||||
query: {
|
query: {
|
||||||
id,
|
id
|
||||||
type: StandardSource.DOMESTIC.value,
|
|
||||||
standardNumber
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-2
@@ -212,8 +212,7 @@ export default {
|
|||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
path: '/standardRegulationLibrary/DomesticStandardDetail',
|
||||||
query: {
|
query: {
|
||||||
id,
|
id
|
||||||
type: TagsTypeEnums.DOMESTIC_LIST.value
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user