修改表格显示字段.

This commit is contained in:
lijiahang
2024-08-21 12:56:07 +08:00
parent 059fb30aa4
commit aa9b96a9c1
6 changed files with 51 additions and 14 deletions

View File

@@ -29,8 +29,20 @@
</template>
<!-- 操作日志 -->
<template #originLogInfo="{ record }">
<icon-copy class="copy-left" @click="copy(record.originLogInfo, true)" />
<span v-html="replaceHtmlTag(record.logInfo)" />
<!-- 操作日志 -->
<a-tooltip position="tl"
:content="record.originLogInfo">
<span v-html="replaceHtmlTag(record.logInfo)"
class="text-copy"
@click="copy(record.originLogInfo, true)" />
</a-tooltip>
<!-- 错误消息 -->
<br v-if="record.errorMessage">
<span v-if="record.errorMessage"
class="table-cell-sub-value text-copy error-message"
@click="copy(record.errorMessage, true)">
{{ record.errorMessage }}
</span>
</template>
<!-- 留痕地址 -->
<template #address="{ record }">
@@ -170,4 +182,8 @@
</script>
<style lang="less" scoped>
.error-message {
color: rgb(var(--red-6));
font-size: 12px;
}
</style>

View File

@@ -77,8 +77,20 @@
</template>
<!-- 操作日志 -->
<template #originLogInfo="{ record }">
<icon-copy class="copy-left" @click="copy(record.originLogInfo, true)" />
<span v-html="replaceHtmlTag(record.logInfo)" />
<!-- 操作日志 -->
<a-tooltip position="tl"
:content="record.originLogInfo">
<span v-html="replaceHtmlTag(record.logInfo)"
class="text-copy"
@click="copy(record.originLogInfo, true)" />
</a-tooltip>
<!-- 错误消息 -->
<br v-if="record.errorMessage">
<span v-if="record.errorMessage"
class="table-cell-sub-value text-copy error-message"
@click="copy(record.errorMessage, true)">
{{ record.errorMessage }}
</span>
</template>
<!-- 留痕地址 -->
<template #address="{ record }">
@@ -226,4 +238,8 @@
</script>
<style lang="less" scoped>
.error-message {
color: rgb(var(--red-6));
font-size: 12px;
}
</style>

View File

@@ -33,7 +33,6 @@ const columns = [
minWidth: 238,
align: 'left',
ellipsis: true,
tooltip: true,
}, {
title: '留痕地址',
dataIndex: 'address',