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