|
@@ -34,6 +34,10 @@ const opts = reactive<any>({
|
|
|
{ field: "cronExpression", name: "Cron表达式", width: "auto", isSort: false, visible: true },
|
|
{ field: "cronExpression", name: "Cron表达式", width: "auto", isSort: false, visible: true },
|
|
|
{ field: "invokeTarget", name: "调用目标", width: "auto", isSort: false, visible: true },
|
|
{ field: "invokeTarget", name: "调用目标", width: "auto", isSort: false, visible: true },
|
|
|
{ field: "status", name: "状态", width: 100, isSort: true, visible: true },
|
|
{ field: "status", name: "状态", width: 100, isSort: true, visible: true },
|
|
|
|
|
+ { field: "execCount", name: "执行次数", width: 100, isSort: true, visible: true },
|
|
|
|
|
+ { field: "failCount", name: "失败次数", width: 100, isSort: true, visible: true },
|
|
|
|
|
+ { field: "lastExecTime", name: "上次执行时间", width: 155, isSort: true, visible: true },
|
|
|
|
|
+ { field: "nextExecTime", name: "下一次执行时间", width: 155, isSort: true, visible: true },
|
|
|
{ field: "createdAt", name: "创建时间", width: 185, isSort: true, visible: true },
|
|
{ field: "createdAt", name: "创建时间", width: 185, isSort: true, visible: true },
|
|
|
{ field: "actions", name: `操作`, width: 150 }
|
|
{ field: "actions", name: `操作`, width: 150 }
|
|
|
],
|
|
],
|
|
@@ -352,6 +356,24 @@ onMounted(() => setTimeout(init, 100))
|
|
|
<template #createdAt="{ row }">
|
|
<template #createdAt="{ row }">
|
|
|
<span>{{ dayjs(row.createdAt).format("YYYY-MM-DD HH:mm:ss") }}</span>
|
|
<span>{{ dayjs(row.createdAt).format("YYYY-MM-DD HH:mm:ss") }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template #lastExecTime="{ row }">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{
|
|
|
|
|
+ row.lastExecTime < 20240000000000
|
|
|
|
|
+ ? "-"
|
|
|
|
|
+ : dayjs(row.lastExecTime + "", "YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
+ }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #nextExecTime="{ row }">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{
|
|
|
|
|
+ row.nextExecTime < 20240000000000
|
|
|
|
|
+ ? "-"
|
|
|
|
|
+ : dayjs(row.nextExecTime + "", "YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
+ }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
<template #actions="{ row }">
|
|
<template #actions="{ row }">
|
|
|
<vb-tooltip content="修改" placement="top">
|
|
<vb-tooltip content="修改" placement="top">
|
|
|
<el-button link type="primary" @click="handleUpdate(row)">
|
|
<el-button link type="primary" @click="handleUpdate(row)">
|