修改备份日志
This commit is contained in:
parent
c67c727416
commit
0b243d5eee
|
@ -44,7 +44,7 @@
|
|||
<a-divider type="vertical" />
|
||||
<a @click="handleRun(record.sourceType)">一键备份</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="showlog(record.id)">同步日志</a>
|
||||
<a @click="showlog(record.sourceType)">同步日志</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:width="800"
|
||||
:width="900"
|
||||
:visible="visible"
|
||||
@cancel="close"
|
||||
:footer="null"
|
||||
|
@ -18,7 +18,11 @@
|
|||
:dataSource="dataSource"
|
||||
@change="handleTableChange">
|
||||
<!-- :locale="myLocale"-->
|
||||
|
||||
<template slot="exportStatus" slot-scope="text">
|
||||
<span style="color:black;" v-if="text === 0">正在导出</span>
|
||||
<span style="color:green;" v-if="text === 1">导出成功</span>
|
||||
<span style="color:red;" v-if="text === 2">导出失败</span>
|
||||
</template>
|
||||
<!-- 字符串超长截取省略号显示-->
|
||||
</a-table>
|
||||
</a-spin>
|
||||
|
@ -50,14 +54,25 @@ import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
|
|||
}
|
||||
},
|
||||
{
|
||||
title: '表名',
|
||||
align:"tableName",
|
||||
dataIndex: 'tableName',
|
||||
title: '用户名',
|
||||
align:"center",
|
||||
dataIndex: 'schemaName',
|
||||
},
|
||||
{
|
||||
title: '数据条数',
|
||||
align:"rowCount",
|
||||
dataIndex: 'rowCount'
|
||||
title: '创建时间',
|
||||
align:"center",
|
||||
dataIndex: 'createTime'
|
||||
},
|
||||
{
|
||||
title: '导出状态',
|
||||
align:"center",
|
||||
dataIndex: 'exportStatus',
|
||||
scopedSlots: { customRender: 'exportStatus' }
|
||||
},
|
||||
{
|
||||
title: '导出结束时间',
|
||||
align:"center",
|
||||
dataIndex: 'endTime'
|
||||
},
|
||||
],
|
||||
syncTaskId:"",
|
||||
|
@ -83,7 +98,7 @@ import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
|
|||
this.visible = false;
|
||||
},
|
||||
getlist(){
|
||||
getAction('/dataManager/getExportLog?syncTaskId='+this.syncTaskId).then((res) => {
|
||||
getAction('/idcDataBackup/getDmExportLog?sourceType='+this.syncTaskId).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result;
|
||||
if(res.result.total)
|
||||
|
|
Loading…
Reference in New Issue
Block a user