|
@@ -191,7 +191,6 @@ const stats = reactive({
|
|
|
success_rate: 0
|
|
success_rate: 0
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-// 获取列表
|
|
|
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
try {
|
|
try {
|
|
@@ -211,7 +210,6 @@ const getList = async () => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
tableData.value = res.page?.data || []
|
|
tableData.value = res.page?.data || []
|
|
|
pagination.total = res.page?.total || 0
|
|
pagination.total = res.page?.total || 0
|
|
|
- // 统计数据
|
|
|
|
|
const s = res.data || {}
|
|
const s = res.data || {}
|
|
|
stats.total = s.total || 0
|
|
stats.total = s.total || 0
|
|
|
stats.success_count = s.success_count || 0
|
|
stats.success_count = s.success_count || 0
|
|
@@ -225,13 +223,11 @@ const getList = async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 搜索
|
|
|
|
|
const handleSearch = () => {
|
|
const handleSearch = () => {
|
|
|
pagination.page = 1
|
|
pagination.page = 1
|
|
|
getList()
|
|
getList()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 重置
|
|
|
|
|
const handleReset = () => {
|
|
const handleReset = () => {
|
|
|
searchForm.name = ''
|
|
searchForm.name = ''
|
|
|
searchForm.success = null
|
|
searchForm.success = null
|
|
@@ -240,7 +236,6 @@ const handleReset = () => {
|
|
|
getList()
|
|
getList()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 分页
|
|
|
|
|
const handlePageChange = () => {
|
|
const handlePageChange = () => {
|
|
|
getList()
|
|
getList()
|
|
|
}
|
|
}
|
|
@@ -250,12 +245,10 @@ const handleSizeChange = () => {
|
|
|
getList()
|
|
getList()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 选择变化
|
|
|
|
|
const handleSelectionChange = (selection) => {
|
|
const handleSelectionChange = (selection) => {
|
|
|
selectedIds.value = selection.map(item => item.id)
|
|
selectedIds.value = selection.map(item => item.id)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 删除单条
|
|
|
|
|
const handleDelete = (row) => {
|
|
const handleDelete = (row) => {
|
|
|
ElMessageBox.confirm(
|
|
ElMessageBox.confirm(
|
|
|
`确定要删除任务「${row.name}」的这条执行日志吗?`,
|
|
`确定要删除任务「${row.name}」的这条执行日志吗?`,
|
|
@@ -278,7 +271,6 @@ const handleDelete = (row) => {
|
|
|
}).catch(() => {})
|
|
}).catch(() => {})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 批量删除
|
|
|
|
|
const handleBatchDelete = () => {
|
|
const handleBatchDelete = () => {
|
|
|
if (selectedIds.value.length === 0) return
|
|
if (selectedIds.value.length === 0) return
|
|
|
ElMessageBox.confirm(
|
|
ElMessageBox.confirm(
|
|
@@ -303,7 +295,6 @@ const handleBatchDelete = () => {
|
|
|
}).catch(() => {})
|
|
}).catch(() => {})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 清空所有
|
|
|
|
|
const handleClearAll = () => {
|
|
const handleClearAll = () => {
|
|
|
ElMessageBox.confirm(
|
|
ElMessageBox.confirm(
|
|
|
'确定要清空所有定时任务执行日志吗?此操作不可恢复!',
|
|
'确定要清空所有定时任务执行日志吗?此操作不可恢复!',
|
|
@@ -338,17 +329,6 @@ onMounted(() => {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.page-header {
|
|
|
|
|
- margin-bottom: 16px;
|
|
|
|
|
-
|
|
|
|
|
- h2 {
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- font-size: 20px;
|
|
|
|
|
- font-weight: 600;
|
|
|
|
|
- color: #303133;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
.stats-row {
|
|
.stats-row {
|
|
|
margin-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
|
|
|
|