feat: add static pages manage in tool list.

pull/3445/head
ruibaby 2019-12-26 00:26:02 +08:00
parent c9292ebbf2
commit b2ff5ac7ed
4 changed files with 44 additions and 1 deletions

View File

@ -16,4 +16,4 @@ module.exports = {
] ]
], ],
plugins plugins
} }

View File

@ -185,6 +185,13 @@ export const asyncRouterMap = [
component: () => import('@/views/system/ToolList'), component: () => import('@/views/system/ToolList'),
meta: { title: '小工具', hiddenHeaderContent: false } meta: { title: '小工具', hiddenHeaderContent: false }
}, },
{
path: '/system/tools/staticpages',
name: 'StaticPagesManage',
hidden: true,
component: () => import('@/views/system/staticpages/StaticPagesManage'),
meta: { title: '静态部署', hiddenHeaderContent: false }
},
{ {
path: '/system/about', path: '/system/about',
name: 'About', name: 'About',

View File

@ -45,6 +45,7 @@
<a-button <a-button
type="primary" type="primary"
style="float:right" style="float:right"
@click="handleToStaticPagesManage"
>管理</a-button> >管理</a-button>
</a-card> </a-card>
</a-col> </a-col>
@ -150,6 +151,9 @@ export default {
handleToDeveloperOptions() { handleToDeveloperOptions() {
this.$router.push({ name: 'DeveloperOptions' }) this.$router.push({ name: 'DeveloperOptions' })
}, },
handleToStaticPagesManage() {
this.$router.push({ name: 'StaticPagesManage' })
},
onUploadClose() { onUploadClose() {
this.$refs.upload.handleClearFileList() this.$refs.upload.handleClearFileList()
} }

View File

@ -0,0 +1,32 @@
<template>
<div>
<a-row>
<a-col :span="24">
<div class="card-container">
<a-tabs type="card">
<a-tab-pane key="environment">
<span slot="tab">
<a-icon type="folder" />文件列表
</span>
</a-tab-pane>
<a-tab-pane key="runtimeLogs">
<span slot="tab">
<a-icon type="appstore" />部署平台
</span>
</a-tab-pane>
<a-tab-pane key="optionsList">
<span slot="tab">
<a-icon type="setting" />配置
</span>
</a-tab-pane>
</a-tabs>
</div>
</a-col>
</a-row>
</div>
</template>
<script>
export default {
name: 'StaticPagesManage'
}
</script>