81 lines
2.8 KiB
Vue
81 lines
2.8 KiB
Vue
<template>
|
|
<admin-layout
|
|
:page-title="pageTitle"
|
|
@menu-change="handleMenuChange"
|
|
>
|
|
<!-- 环境管理页面 -->
|
|
<env-management
|
|
v-if="currentPage === 'env'"
|
|
ref="envManagement"
|
|
/>
|
|
|
|
<!-- 系统设置页面 -->
|
|
<div v-else-if="currentPage === 'settings'" class="bg-white rounded-xl shadow-sm border border-gray-200 p-8">
|
|
<div class="text-center py-12">
|
|
<svg class="w-16 h-16 text-gray-300 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
</svg>
|
|
<h3 class="text-lg font-medium text-gray-900 mb-2">系统设置</h3>
|
|
<p class="text-gray-500">此功能正在开发中...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 操作日志页面 -->
|
|
<div v-else-if="currentPage === 'logs'" class="bg-white rounded-xl shadow-sm border border-gray-200 p-8">
|
|
<div class="text-center py-12">
|
|
<svg class="w-16 h-16 text-gray-300 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
</svg>
|
|
<h3 class="text-lg font-medium text-gray-900 mb-2">操作日志</h3>
|
|
<p class="text-gray-500">此功能正在开发中...</p>
|
|
</div>
|
|
</div>
|
|
</admin-layout>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import AdminLayout from './AdminLayout.vue';
|
|
import EnvManagement from './EnvManagement.vue';
|
|
|
|
export default {
|
|
name: 'EnvManager',
|
|
components: {
|
|
AdminLayout,
|
|
EnvManagement
|
|
},
|
|
data() {
|
|
return {
|
|
currentPage: 'env',
|
|
pageTitle: '环境配置管理'
|
|
}
|
|
},
|
|
mounted() {
|
|
console.log('EnvManager mounted');
|
|
},
|
|
methods: {
|
|
handleMenuChange(menu) {
|
|
this.currentPage = menu;
|
|
|
|
// 更新页面标题
|
|
const titles = {
|
|
'env': '环境配置管理',
|
|
'settings': '系统设置',
|
|
'logs': '操作日志'
|
|
};
|
|
|
|
this.pageTitle = titles[menu] || '环境配置管理';
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
/* 主应用样式 */
|
|
</style>
|