feature(标准跟踪清单): 查询框添加查看功能
This commit is contained in:
@@ -655,6 +655,25 @@ export default {
|
|||||||
selectionChange (selection) {
|
selectionChange (selection) {
|
||||||
this.selectedList = selection
|
this.selectedList = selection
|
||||||
},
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let name = '', id = item.id, pageType = ''
|
||||||
|
if (item.standType === 'INLAND') {
|
||||||
|
name = 'OtherStandardDetails'
|
||||||
|
pageType = 'INLAND_STAND'
|
||||||
|
}else if (item.standType === 'FOREIGN') {
|
||||||
|
name = 'OtherStandardDetails'
|
||||||
|
pageType = 'FOREIGN_STAND'
|
||||||
|
}else if (item.country !== undefined) {
|
||||||
|
name = 'OtherLawsStandDetails'
|
||||||
|
pageType = 'LAWS_STAND'
|
||||||
|
} else {
|
||||||
|
name = 'OtherBussStandardDetails'
|
||||||
|
pageType = 'BUSINESS_STAND'
|
||||||
|
}
|
||||||
|
const routeUrl = this.$router.resolve({ name, params: { id, pageType } })
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
onDrag () {
|
onDrag () {
|
||||||
this.$emit('dragIn', {
|
this.$emit('dragIn', {
|
||||||
list: this.selectedList,
|
list: this.selectedList,
|
||||||
|
|||||||
Reference in New Issue
Block a user