[update] 解决bug87314

This commit is contained in:
lideqin
2024-07-22 09:40:35 +08:00
parent 36f40b7e27
commit 13651e7321
@@ -171,12 +171,12 @@ export default {
customRender: (text, row, index) => { customRender: (text, row, index) => {
return { return {
children: <a-tooltip overlay-class-name="tooltip-style"> children: <a-tooltip overlay-class-name="tooltip-style">
<template slot={'title'}>{ text || text === 0 ? text : global.emptyLine }</template> <template slot={'title'}>{ text || text === 0 ? text : global.emptyLine }</template>
<a class="link-a" onClick={() => this.toDetail(row)}>{{ text }}</a> <a class="link-a" onClick={() => this.toDetail(row)}>{{ text }}</a>
</a-tooltip>, </a-tooltip>,
attrs: { attrs: {
// 合并行 含col字段则合并,其他的必须设置为0!! // 合并行 含col字段则合并,其他的必须设置为0!!
rowSpan: row.col ? row.col : 0, rowSpan: row.col ? row.col : 0
} }
} }
} }
@@ -191,11 +191,11 @@ export default {
return { return {
children: <a-tooltip overlay-class-name="tooltip-style"> children: <a-tooltip overlay-class-name="tooltip-style">
<template slot={'title'}>{ text || text === 0 ? text : global.emptyLine }</template> <template slot={'title'}>{ text || text === 0 ? text : global.emptyLine }</template>
<a class="link-a" onClick={() => this.toDetail(row)}>{{ text }}</a> <a class="link-a" onClick={() => this.toDetail(row)}>{{ text }}</a>
</a-tooltip>, </a-tooltip>,
attrs: { attrs: {
// 合并行 含col字段则合并,其他的必须设置为0!! // 合并行 含col字段则合并,其他的必须设置为0!!
rowSpan: row.col ? row.col : 0, rowSpan: row.col ? row.col : 0
} }
} }
} }
@@ -214,7 +214,7 @@ export default {
</a-tooltip>, </a-tooltip>,
attrs: { attrs: {
// 合并行 含col字段则合并,其他的必须设置为0!! // 合并行 含col字段则合并,其他的必须设置为0!!
rowSpan: row.col ? row.col : 0, rowSpan: row.col ? row.col : 0
} }
} }
} }
@@ -245,7 +245,7 @@ export default {
title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'applicableCountryRegion_dictText', dataIndex: 'country_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 适用车型 { // 适用车型
@@ -273,7 +273,7 @@ export default {
title: this.$t('standardRegulationLibrary.marketListField.type'), title: this.$t('standardRegulationLibrary.marketListField.type'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'stanardClass_dictText', dataIndex: 'type_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 动力类型 { // 动力类型
@@ -419,7 +419,7 @@ export default {
indexcount (arr, item) { indexcount (arr, item) {
const arr1 = [] const arr1 = []
for (var i = 0; i < arr.length; i++) { for (var i = 0; i < arr.length; i++) {
if (arr[i].standardNumber == item) { if (arr[i].standardNumber === item) {
arr1.push(arr[i].id) arr1.push(arr[i].id)
} }
} }