Vue3 信息化建设部IT后台管理首页 - IP地址、固定资产、监控维护
<template>
<div class="home">
<h1 class="title">信息化建设部IT后台管理</h1>
<div class="card" @click="goToIpManagement">
<h2 class="card-title">IP地址管理</h2>
<p class="card-description">管理和维护所有IP地址的分配和使用情况。</p>
</div>
<div class="card" @click="goToAssetManagement">
<h2 class="card-title">固定资产</h2>
<p class="card-description">管理和跟踪所有IT固定资产的购买、使用和维修记录。</p>
</div>
<div class="card" @click="goToMaintenanceRecords">
<h2 class="card-title">监控维护记录</h2>
<p class="card-description">记录和查看所有IT设备的监控和维护记录。</p>
</div>
</div>
</template>
<script>
export default {
methods: {
goToIpManagement() {
// 跳转到IP地址管理页面
// 使用Vue Router的编程式导航
this.$router.push('/ip-management');
},
goToAssetManagement() {
// 跳转到固定资产管理页面
this.$router.push('/asset-management');
},
goToMaintenanceRecords() {
// 跳转到监控维护记录页面
this.$router.push('/maintenance-records');
}
}
}
</script>
<style>
.home {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f2f2f2;
}
.title {
font-size: 24px;
margin-bottom: 20px;
color: #333;
}
.card {
width: 300px;
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.card-title {
font-size: 18px;
margin-bottom: 10px;
color: #333;
}
.card-description {
font-size: 14px;
color: #666;
}
</style>
原文地址: https://www.cveoy.top/t/topic/qcTA 著作权归作者所有。请勿转载和采集!