调度中心日志修改

This commit is contained in:
XinWei 2024-07-12 15:03:51 +08:00
parent 2f3aa86095
commit bd9eb37b07
3 changed files with 7 additions and 6 deletions

View File

@ -1,9 +1,10 @@
<template> <template>
<el-alert v-if="getEnable()" type="success" show-icon> <!-- <el-alert v-if="getEnable()" type="success" show-icon>
<template #title> <template #title>
<div @click="goToUrl">{{ '' + title + '文档地址' + url }}</div> <div @click="goToUrl">{{ '' + title + '文档地址' + url }}</div>
</template> </template>
</el-alert> </el-alert> -->
<div></div>
</template> </template>
<script setup lang="tsx"> <script setup lang="tsx">
import { propTypes } from '@/utils/propTypes' import { propTypes } from '@/utils/propTypes'

View File

@ -13,14 +13,14 @@
<el-descriptions-item label="处理器的参数"> <el-descriptions-item label="处理器的参数">
{{ detailData.handlerParam }} {{ detailData.handlerParam }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="第几次执行"> <!-- <el-descriptions-item label="第几次执行">
{{ detailData.executeIndex }} {{ detailData.executeIndex }}
</el-descriptions-item> </el-descriptions-item> -->
<el-descriptions-item label="执行时间"> <el-descriptions-item label="执行时间">
{{ formatDate(detailData.beginTime) + ' ~ ' + formatDate(detailData.endTime) }} {{ formatDate(detailData.beginTime) + ' ~ ' + formatDate(detailData.endTime) }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="执行时长"> <el-descriptions-item label="执行时长">
{{ detailData.duration + ' 毫秒' }} {{ detailData.duration == null? '无' : detailData.duration + ' 毫秒' }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="任务状态"> <el-descriptions-item label="任务状态">
<dict-tag :type="DICT_TYPE.INFRA_JOB_LOG_STATUS" :value="detailData.status" /> <dict-tag :type="DICT_TYPE.INFRA_JOB_LOG_STATUS" :value="detailData.status" />

View File

@ -88,7 +88,7 @@
</el-table-column> </el-table-column>
<el-table-column label="执行时长" align="center" prop="duration"> <el-table-column label="执行时长" align="center" prop="duration">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.duration + ' 毫秒' }}</span> <span>{{ scope.row.duration ==null? '无': scope.row.duration + ' 毫秒' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="任务状态" align="center" prop="status"> <el-table-column label="任务状态" align="center" prop="status">