修复红点换行影响下钻传参的问题
This commit is contained in:
@@ -71,9 +71,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-for="prop in Object.keys(textAlignFiels)" :key="prop" #[`${prop}`]="scope">
|
<template v-for="prop in Object.keys(textAlignFiels)" :key="prop" #[`${prop}`]="scope">
|
||||||
<div v-if="textAlignFiels[prop]" >
|
<div v-if="textAlignFiels[prop]&&scope.row[prop]&&scope.row[prop].split(' ').length>1" >
|
||||||
<span v-html="scope.row[prop]"></span>
|
<span v-html="scope.row[prop].split(' ').map(val=>'<div>'+val+'</div>').join('')"></span>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>{{scope.row[prop]}}</div>
|
||||||
</template>
|
</template>
|
||||||
<template #stdGoodsName=scope>
|
<template #stdGoodsName=scope>
|
||||||
|
|
||||||
@@ -919,11 +920,11 @@ const getTableData = async (isLoading = true) => {
|
|||||||
flatRecord[field.fieldCode] = fixedValues[recordIndex] || ''
|
flatRecord[field.fieldCode] = fixedValues[recordIndex] || ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Object.keys(textAlignFiels.value).forEach(item=>{
|
// Object.keys(textAlignFiels.value).forEach(item=>{
|
||||||
if(textAlignFiels.value[item]){
|
// if(textAlignFiels.value[item]){
|
||||||
flatRecord[item]=record[item]&&record[item].split(' ').length>1?record[item].split(' ').map(val=>'<div>'+val+'</div>').join(''):flatRecord[item]
|
// flatRecord[item]=record[item]&&record[item].split(' ').length>1?record[item].split(' ').map(val=>'<div>'+val+'</div>').join(''):flatRecord[item]
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
return flatRecord
|
return flatRecord
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user