feat: 回滚

This commit is contained in:
骑着蜗牛追导弹 2024-11-11 21:19:09 +08:00
parent f82c90a8f8
commit 578ac166ba
4 changed files with 8 additions and 23 deletions

View File

@ -42,5 +42,4 @@ export const menuAside = supplementPath([
// } // }
{ path: '/resolveRecord', title: '解析记录', icon: 'fa-solid fa-compass' }, { path: '/resolveRecord', title: '解析记录', icon: 'fa-solid fa-compass' },
{ path: '/versionRecord', title: '版本记录', icon: 'fa-solid fa-compass' }, { path: '/versionRecord', title: '版本记录', icon: 'fa-solid fa-compass' },
{ path: '/serverStatus', title: '服务状态', icon: 'fa-solid fa-compass' }
]) ])

View File

@ -63,15 +63,6 @@ const frameIn = [
auth: true auth: true
}, },
component: _import('core/versionRecord') component: _import('core/versionRecord')
},
{
path: 'serverStatus',
name: 'ServerStatus',
meta: {
title: '服务状态',
auth: true
},
component: _import('core/serverStatus')
} }
] ]
} }

View File

@ -1,12 +0,0 @@
<template>
<d2-container>
<template slot="header">Page 1 header</template>
Hello World
</d2-container>
</template>
<script>
export default {
name: 'ServerStatus'
}
</script>

View File

@ -1,5 +1,10 @@
<template> <template>
<d2-container> <d2-container>
<template slot="header">
<div style="text-align: right">
<el-button type="primary" @click="queryPage(1, pageSize)">刷新</el-button>
</div>
</template>
<el-table <el-table
:data="tableData" :data="tableData"
height="520" height="520"
@ -93,7 +98,9 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
_this.doRollback(row) _this.doRollback(row)
_this.queryPage(1, this.pageSize) setTimeout(function () {
_this.queryPage(1, _this.pageSize)
}, 1000)
}).catch(() => { }).catch(() => {
}) })
}, },