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> </div>
<a-divider /> <a-divider />
<div> <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 #bodyCell="{column, record}">
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<span> <span>
@ -71,6 +71,9 @@ const searchFinish = function() {
const columns = [ const columns = [
{ {
title: 'Action',
key: 'action'
}, {
title: 'GID', title: 'GID',
dataIndex: 'gid', dataIndex: 'gid',
key: 'gid' key: 'gid'
@ -90,10 +93,27 @@ const columns = [
title: 'CreateTime', title: 'CreateTime',
dataIndex: 'create_time', dataIndex: 'create_time',
key: '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', title: 'NextCronInterval',
key: 'action' dataIndex: 'next_cron_interval',
} key: 'next_cron_interval'
}, {
title: 'NextCronTime',
dataIndex: 'next_cron_time',
key: 'next_cron_time'
},
] ]
const pages = ref(['']) const pages = ref([''])

Loading…
Cancel
Save