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