mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
fix browser log details
This commit is contained in:
parent
5940dccdb6
commit
72eb42d2da
@ -58,7 +58,7 @@ limitations under the License. -->
|
|||||||
@closed="showDetail = false"
|
@closed="showDetail = false"
|
||||||
:title="t('logDetail')"
|
:title="t('logDetail')"
|
||||||
>
|
>
|
||||||
<LogDetail :currentLog="currentLog" />
|
<LogDetail :currentLog="currentLog" :columns="columns" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -24,7 +24,6 @@ limitations under the License. -->
|
|||||||
]"
|
]"
|
||||||
:style="{
|
:style="{
|
||||||
lineHeight: 1.3,
|
lineHeight: 1.3,
|
||||||
width: `${item.drag ? item.method : ''}px`,
|
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<span v-if="item.label === 'time'">{{ dateFormat(data.time) }}</span>
|
<span v-if="item.label === 'time'">{{ dateFormat(data.time) }}</span>
|
||||||
@ -44,7 +43,7 @@ import { BrowserLogConstants } from "./data";
|
|||||||
|
|
||||||
/*global defineProps, defineEmits, NodeListOf */
|
/*global defineProps, defineEmits, NodeListOf */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: { type: Array as any, default: () => [] },
|
data: { type: Object as any, default: () => ({}) },
|
||||||
});
|
});
|
||||||
const columns = BrowserLogConstants;
|
const columns = BrowserLogConstants;
|
||||||
const emit = defineEmits(["select"]);
|
const emit = defineEmits(["select"]);
|
||||||
|
@ -20,7 +20,10 @@ limitations under the License. -->
|
|||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<span class="g-sm-4 grey">{{ t(item.value) }}:</span>
|
<span class="g-sm-4 grey">{{ t(item.value) }}:</span>
|
||||||
<span v-if="item.label === 'timestamp'" class="g-sm-8 mb-10">
|
<span
|
||||||
|
v-if="['timestamp', 'time'].includes(item.label)"
|
||||||
|
class="g-sm-8 mb-10"
|
||||||
|
>
|
||||||
{{ dateFormat(currentLog[item.label]) }}
|
{{ dateFormat(currentLog[item.label]) }}
|
||||||
</span>
|
</span>
|
||||||
<textarea
|
<textarea
|
||||||
@ -41,14 +44,14 @@ import { computed } from "vue";
|
|||||||
import type { PropType } from "vue";
|
import type { PropType } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { ServiceLogDetail } from "./data";
|
import { Option } from "@/types/app";
|
||||||
|
|
||||||
/*global defineProps */
|
/*global defineProps */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
currentLog: { type: Object as PropType<any>, default: () => ({}) },
|
currentLog: { type: Object as PropType<any>, default: () => ({}) },
|
||||||
|
columns: { type: Array as PropType<Option[]>, default: () => [] },
|
||||||
});
|
});
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const columns = ServiceLogDetail;
|
|
||||||
const logTags = computed(() => {
|
const logTags = computed(() => {
|
||||||
if (!props.currentLog.tags) {
|
if (!props.currentLog.tags) {
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
Reference in New Issue
Block a user