Browse Source

Add time related columns, put the action in the first column

pull/422/head
徐云金YunjinXu 3 years ago
parent
commit
bd76288eb1
  1. 28
      admin/src/views/Dashboard/GlobalTransactions/AllTransactions.vue

28
admin/src/views/Dashboard/GlobalTransactions/AllTransactions.vue

@ -20,7 +20,7 @@
</div>
<a-divider />
<div>
<a-table :columns="columns" :data-source="dataSource" :loading="loading" :pagination="false">
<a-table :columns="columns" :data-source="dataSource" :loading="loading" :pagination="false" :scroll="{ x: true }">
<template #bodyCell="{column, record}">
<template v-if="column.key === 'status'">
<span>
@ -71,6 +71,9 @@ const searchFinish = function() {
const columns = [
{
title: 'Action',
key: 'action'
}, {
title: 'GID',
dataIndex: 'gid',
key: 'gid'
@ -90,10 +93,27 @@ const columns = [
title: 'CreateTime',
dataIndex: 'create_time',
key: 'create_time'
},{
title: 'UpdateTime',
dataIndex: 'update_time',
key: 'update_time'
},{
title: 'FinishTime',
dataIndex: 'finish_time',
key: 'finish_time'
},{
title: 'RollbackTime',
dataIndex: 'rollback_time',
key: 'rollback_time'
}, {
title: 'Action',
key: 'action'
}
title: 'NextCronInterval',
dataIndex: 'next_cron_interval',
key: 'next_cron_interval'
}, {
title: 'NextCronTime',
dataIndex: 'next_cron_time',
key: 'next_cron_time'
},
]
const pages = ref([''])

Loading…
Cancel
Save