Merge branch 'dev-3.8' of git.mesalab.cn:nezha/nezha-fronted into dev-3.9

This commit is contained in:
zyh
2023-10-13 17:00:16 +08:00
2 changed files with 15 additions and 11 deletions

View File

@@ -39,11 +39,11 @@
} }
.alert-label__border.alert-label { .alert-label__border.alert-label {
width: auto !important; width: auto !important;
max-width: 1024px; max-width: 500px;
} }
.copy-value-content__pre { .copy-value-content__pre {
width: auto; width: auto;
max-width: 1024px; max-width: 500px;
max-height: 200px; max-height: 200px;
margin-top: 20px; margin-top: 20px;
padding-right: 5px; padding-right: 5px;

View File

@@ -37,20 +37,24 @@
<div class="col-resize-area"></div> <div class="col-resize-area"></div>
</template> </template>
<template slot-scope="scope" :column="item"> <template slot-scope="scope" :column="item">
<span v-if="item.prop === 'time'"> <span v-if="item.prop === 'time'">{{scope.row[item.prop]}} ms</span>
{{scope.row[item.prop]}} ms
</span>
<span v-else-if="item.prop === 'username'">{{formatUsername(scope.row)}}</span> <span v-else-if="item.prop === 'username'">{{formatUsername(scope.row)}}</span>
<span v-else-if="item.prop === 'createDate'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span> <span v-else-if="item.prop === 'createDate'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span>
<span v-else-if="item.prop === 'response'" @mouseenter="labelHover(scope.row, 'response', true, false, $event)" <span
@mouseleave="labelHover(scope.row, 'response', false, false)"> v-else-if="item.prop === 'response'"
<div class="text-ellipsis" style="width: 100%" :title="scope.row[item.prop]"> @mouseenter="labelHover(scope.row, 'response', true, false, $event)"
@mouseleave="labelHover(scope.row, 'response', false, false)"
>
<div class="text-ellipsis" style="width: 100%">
{{scope.row[item.prop]}} {{scope.row[item.prop]}}
</div> </div>
</span> </span>
<span v-else-if="item.prop === 'params'" @mouseenter="labelHover(scope.row, 'params', true, false, $event)" <span
@mouseleave="labelHover(scope.row, 'params', false, false)"> v-else-if="item.prop === 'params'"
<div class="text-ellipsis" style="width: 100%" :title="scope.row[item.prop]"> @mouseenter="labelHover(scope.row, 'params', true, false, $event)"
@mouseleave="labelHover(scope.row, 'params', false, false)"
>
<div class="text-ellipsis" style="width: 100%">
{{scope.row[item.prop]}} {{scope.row[item.prop]}}
</div> </div>
</span> </span>