邮件日志收件人、抄送人显示修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-12-24 10:17:45 +08:00
parent 3901ceec45
commit bdbca21550
2 changed files with 32 additions and 16 deletions

View File

@ -48,19 +48,27 @@
<el-table-column :label="$t('system:email:table:ToRecipientName')" prop="ToRecipientName" <el-table-column :label="$t('system:email:table:ToRecipientName')" prop="ToRecipientName"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0 <el-tooltip class="item" effect="dark" :content="scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item =>
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item => `${item.RecipientName}: ${item.RecipientAddress}`).join('<br/>')" placement="top-start"
item.RecipientName).join(", ") : '' v-if="Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0">
}}</span> <span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item =>
item.RecipientName).join(", ") : ''
}}</span>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('system:email:table:CcRecipientName')" prop="CcRecipientName" <el-table-column :label="$t('system:email:table:CcRecipientName')" prop="CcRecipientName"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0 <el-tooltip class="item" effect="dark" :content="scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item =>
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item => `${item.RecipientName}: ${item.RecipientAddress}`).join('<br/>')" placement="top-start"
item.RecipientName).join(", ") : '' v-if="Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0">
}}</span> <span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item =>
item.RecipientName).join(", ") : ''
}}</span>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('system:email:table:emailDate')" prop="EmailDate" show-overflow-tooltip <el-table-column :label="$t('system:email:table:emailDate')" prop="EmailDate" show-overflow-tooltip

View File

@ -48,19 +48,27 @@
<el-table-column :label="$t('system:email:table:ToRecipientName')" prop="ToRecipientName" <el-table-column :label="$t('system:email:table:ToRecipientName')" prop="ToRecipientName"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0 <el-tooltip class="item" effect="dark" :content="scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item =>
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item => `${item.RecipientName}: ${item.RecipientAddress}`).join('<br/>')" placement="top-start"
item.RecipientName).join(", ") : '' v-if="Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0">
}}</span> <span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 0).map(item =>
item.RecipientName).join(", ") : ''
}}</span>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('system:email:table:CcRecipientName')" prop="CcRecipientName" <el-table-column :label="$t('system:email:table:CcRecipientName')" prop="CcRecipientName"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0 <el-tooltip class="item" effect="dark" :content="scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item =>
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item => `${item.RecipientName}: ${item.RecipientAddress}`).join('<br/>')" placement="top-start"
item.RecipientName).join(", ") : '' v-if="Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0">
}}</span> <span>{{Array.isArray(scope.row.RecipientList) && scope.row.RecipientList.length > 0
? scope.row.RecipientList.filter(item => item.RecipientTypeEnum === 1).map(item =>
item.RecipientName).join(", ") : ''
}}</span>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('system:email:table:emailDate')" prop="EmailDate" show-overflow-tooltip <el-table-column :label="$t('system:email:table:emailDate')" prop="EmailDate" show-overflow-tooltip