|
@@ -111,15 +111,10 @@
|
|
|
:key="column.key"
|
|
|
:prop="column.prop"
|
|
|
:label="column.prop"
|
|
|
- :formatter="formatter"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- prop="message"
|
|
|
- label="message"
|
|
|
- width="200"
|
|
|
>
|
|
|
- <template slot-scope="{ row }">
|
|
|
+ <template slot-scope="scope">
|
|
|
<el-tooltip
|
|
|
+ v-if="column.showTooltip"
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
placement="top-start"
|
|
@@ -128,10 +123,33 @@
|
|
|
slot="content"
|
|
|
class="tooltip-content"
|
|
|
>
|
|
|
- {{ row.message }}
|
|
|
+ {{
|
|
|
+ formatter(
|
|
|
+ scope.row,
|
|
|
+ scope.column,
|
|
|
+ scope.row[scope.column.property]
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ <div class="tooltip-trigger">
|
|
|
+ {{
|
|
|
+ formatter(
|
|
|
+ scope.row,
|
|
|
+ scope.column,
|
|
|
+ scope.row[scope.column.property]
|
|
|
+ )
|
|
|
+ }}
|
|
|
</div>
|
|
|
- <div class="tooltip-trigger">{{ row.message }}</div>
|
|
|
</el-tooltip>
|
|
|
+ <span v-else>
|
|
|
+ {{
|
|
|
+ formatter(
|
|
|
+ scope.row,
|
|
|
+ scope.column,
|
|
|
+ scope.row[scope.column.property]
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<template #empty>
|
|
@@ -215,6 +233,14 @@ export default {
|
|
|
{
|
|
|
prop: 'createtime',
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'message',
|
|
|
+ showTooltip: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'sendResult',
|
|
|
+ showTooltip: true,
|
|
|
+ },
|
|
|
],
|
|
|
tableData: [],
|
|
|
loading: false,
|