taskLog.vue
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<div class="app-container">
<div class="block">
<el-row>
<el-col :span="24">
<el-button icon="el-icon-back" size="mini" @click.native="back">{{ $t('button.back') }}</el-button>
</el-col>
</el-row>
</div>
<el-table :data="list" v-loading="listLoading" element-loading-text="Loading" border fit highlight-current-row>
<el-table-column label="任务名">
<template slot-scope="scope">
{{scope.row.name}}
</template>
</el-table-column>
<el-table-column label="执行时间">
<template slot-scope="scope">
{{scope.row.execAt}}
</template>
</el-table-column>
<el-table-column label="执行结果">
<template slot-scope="scope">
{{scope.row.execSuccess === 1 ? '成功' : '失败'}}
</template>
</el-table-column>
<el-table-column label="异常信息">
<template slot-scope="scope">
{{scope.row.jobException}}
</template>
</el-table-column>
</el-table>
<el-pagination
background
layout="total, sizes, prev, pager, next, jumper"
:page-sizes="[10, 20, 50, 100,500]"
:page-size="listQuery.limit"
:total="total"
:current-page.sync="listQuery.page"
@size-change="changeSize"
@current-change="fetchPage"
@prev-click="fetchPrev"
@next-click="fetchNext">
</el-pagination>
</div>
</template>
<script src="./log.js"></script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/common.scss";
</style>