|
@@ -59,40 +59,40 @@
|
|
|
<div v-for="(value, key) in JSON.parse(row.detail)" :key="key">
|
|
<div v-for="(value, key) in JSON.parse(row.detail)" :key="key">
|
|
|
<strong
|
|
<strong
|
|
|
style="
|
|
style="
|
|
|
- margin-left: 3px;
|
|
|
|
|
- background-color: #f56c6c;
|
|
|
|
|
- padding: 2px 4px;
|
|
|
|
|
- border-radius: 5px;
|
|
|
|
|
- flex-grow: 1;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- "
|
|
|
|
|
- >{{ key }}</strong
|
|
|
|
|
|
|
+ margin-left: 3px;
|
|
|
|
|
+ background-color: #f56c6c;
|
|
|
|
|
+ padding: 2px 4px;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ flex-grow: 1;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ "
|
|
|
|
|
+ >{{ key }}</strong
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
style="
|
|
style="
|
|
|
- background-color: #e0f7fa;
|
|
|
|
|
- color: #00796b;
|
|
|
|
|
- padding: 5px 10px;
|
|
|
|
|
- border-radius: 5px;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- margin-left: 3px;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ background-color: #e0f7fa;
|
|
|
|
|
+ color: #00796b;
|
|
|
|
|
+ padding: 5px 10px;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ margin-left: 3px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ "
|
|
|
@click="copyText(value.address)"
|
|
@click="copyText(value.address)"
|
|
|
:title="'点击复制地址: ' + value.address"
|
|
:title="'点击复制地址: ' + value.address"
|
|
|
- >{{ value.address }}</span
|
|
|
|
|
|
|
+ >{{ value.address }}</span
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
style="
|
|
style="
|
|
|
- background-color: #f1f8e9;
|
|
|
|
|
- color: #388e3c;
|
|
|
|
|
- padding: 5px 10px;
|
|
|
|
|
- border-radius: 5px;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- margin-left: 3px;
|
|
|
|
|
- "
|
|
|
|
|
- >{{ value.balance }}</span
|
|
|
|
|
|
|
+ background-color: #f1f8e9;
|
|
|
|
|
+ color: #388e3c;
|
|
|
|
|
+ padding: 5px 10px;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ margin-left: 3px;
|
|
|
|
|
+ "
|
|
|
|
|
+ >{{ value.balance }}</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
<!-- <div v-html="formatRecord(row.record)"></div>-->
|
|
<!-- <div v-html="formatRecord(row.record)"></div>-->
|
|
|
</template>
|
|
</template>
|
|
|
</ElTableColumn>
|
|
</ElTableColumn>
|
|
|
- <ElTableColumn prop="favorite" label="收藏" align="center" width="60">
|
|
|
|
|
|
|
+ <ElTableColumn v-if="isAdmin || isOperator" prop="favorite" label="收藏" align="center" width="60">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<ElButton
|
|
<ElButton
|
|
|
circle
|
|
circle
|
|
@@ -169,6 +169,7 @@ const model = ref({})
|
|
|
const { showEditDialog } = setupEditDialog(model)
|
|
const { showEditDialog } = setupEditDialog(model)
|
|
|
const { copy } = useClipboard({ legacy: true })
|
|
const { copy } = useClipboard({ legacy: true })
|
|
|
const isAdmin = inject('isAdmin')
|
|
const isAdmin = inject('isAdmin')
|
|
|
|
|
+const isOperator = inject('isOperator')
|
|
|
|
|
|
|
|
function formatRecord(record) {
|
|
function formatRecord(record) {
|
|
|
return record
|
|
return record
|