[update] 修改企标制修订,选择标准组件跳详情
This commit is contained in:
@@ -52,6 +52,15 @@
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<!-- 企标编号/企标名称 -->
|
||||||
|
<template v-slot:toDetail="text, record">
|
||||||
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
|
<a v-if="text" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
|
||||||
|
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -144,14 +153,16 @@ export default {
|
|||||||
dataIndex: 'standardNumber',
|
dataIndex: 'standardNumber',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('standardName'),
|
title: this.$t('standardName'),
|
||||||
dataIndex: 'standardName',
|
dataIndex: 'standardName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
// 发布日期
|
// 发布日期
|
||||||
{
|
{
|
||||||
@@ -260,11 +271,29 @@ export default {
|
|||||||
},
|
},
|
||||||
handleTypeChange () {
|
handleTypeChange () {
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
|
// 点击跳转标准详情
|
||||||
|
handleGoDetail (record) {
|
||||||
|
let path = ''
|
||||||
|
// 需要先判断是哪种标准
|
||||||
|
if (record.source === '1') {
|
||||||
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
|
} else if (record.source === '2') {
|
||||||
|
path = '/standardRegulationLibrary/OverseasStandardDetail'
|
||||||
|
} else if (record.source === '3') {
|
||||||
|
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||||
|
}
|
||||||
|
this.$openPageNewSheet({
|
||||||
|
path: path,
|
||||||
|
query: {
|
||||||
|
id: record.id
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+1
@@ -130,6 +130,7 @@ export default {
|
|||||||
// 把数据抛出,在线编辑不知道要不要抛
|
// 把数据抛出,在线编辑不知道要不要抛
|
||||||
const data = {}
|
const data = {}
|
||||||
data.advices = this.dataSource
|
data.advices = this.dataSource
|
||||||
|
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||||
|
|||||||
Reference in New Issue
Block a user