当前位置:网站首页>山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
2022-04-23 19:30:00 【番茄炒蛋不加蛋!】
目录
一、header
header是页面的导航条,作为一个组件在每个页面中都有引用。
其外观如下图所示:
以下是导航条外观代码:
<template>
<div class="menu">
<el-row>
<!-- logo部分 -->
<el-col :span="2">
<h3 @click="goto_home" style="text-align: center">sducsrp</h3>
</el-col>
<!-- 按钮菜单部分 -->
<el-col :span="15">
<el-menu
:default-active="activeIndex2"
class="el-menu-demo"
mode="horizontal"
background-color="#000"
text-color="#fff"
active-text-color="#ffd04b"
@select="handleSelect"
>
<el-menu-item index="1" @click="goto_honeypot"> 靶场 </el-menu-item>
<el-menu-item index="2" @click="goto_cryptotool">密码工具</el-menu-item>
<el-menu-item index="3" @click="goto_forum">论坛</el-menu-item>
<el-menu-item index="3" @click="goto_management">课程管理</el-menu-item>
</el-menu>
</el-col>
<!-- 用户登录部分 -->
<el-col :span="7">
<div class="header-right">
<div class="header-user-con">
{
{user.realname}}
<el-button type="info" style="background-color: black; border-color: black; padding:0px; float: right" @click="goto_login">
<i class="el-icon-finished" style="padding: 0px; margin: 0px"></i> 登录
</el-button>
<el-button type="info" style="background-color: black; border-color: black; padding:0px; float: right" @click="goto_register">
注册
</el-button>
</div>
</div>
</el-col>
</el-row>
<el-divider ></el-divider>
</div>
</template>
script主要是实现页面跳转的功能,以及从 网站保存的用户信息提取用户名到导航条。
<script>
import router from '../router/index.js'
export default {
setup() {
let goto_home=()=>{
router.push('/');
};
let goto_login=()=>{
router.push('/login');
};
let goto_register=()=>{
router.push('/register');
};
let goto_honeypot=()=>{
router.push('/honeypot')
};
let goto_cryptotool=()=>{
router.push('/cryptotool')
};
let goto_forum=()=>{
router.push('/forum')
};
let goto_management=()=>{
router.push('/management')
};
return{
goto_home,
goto_login,
goto_register,
goto_honeypot,
goto_cryptotool,
goto_forum,
goto_management
}
},
data() {
return {
user: localStorage.getItem("user") ? JSON.parse(localStorage.getItem("user")) : {}
}
}
}
</script>
二、footer
在首页的页尾部分,有关于我们团队项目以及个人介绍
点击可打开相应的blog/gitee页面

具体代码如下:
<template>
<el-row :gutter="10">
<el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4">
<div class="grid-content bg-purple"></div>
</el-col>
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content bg-purple">
<p>WEBSITE</p>
<a class="aaa" href="https://gitee.com/cgchacker/SduCSRP">Project Code</a><br>
<a class="aaa" href="https://blog.csdn.net/qq_50860232/category_11649911.html">BLOG</a><br>
</div>
</el-col>
<el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4">
<div class="grid-content bg-purple">
<el-divider direction="vertical"></el-divider>
</div>
</el-col>
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content bg-purple">
<p>CONTACT US</p>
<a class="aaa" href="https://blog.csdn.net/qq_50860232">Ling Chen</a><br>
<a class="aaa" href="https://blog.csdn.net/m0_52100140">Fan Zhijie</a><br>
<a class="aaa" href="https://blog.csdn.net/m0_51588039">Qiao Jingbo</a><br>
<a class="aaa" href="https://blog.csdn.net/m0_47470899">Li Hongwei</a><br>
<a class="aaa" href="https://blog.csdn.net/weixin_50803761">Liu Jingyou</a><br>
</div>
</el-col>
<el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4">
<div class="grid-content bg-purple"></div>
</el-col>
</el-row>
</template>
三、数据库的设计
3.1 表的设计
目前,数据库主要有以下几个表:

主要实体表的设计如下:
● user 用户表

● problem 靶场题目表

● forum 论坛信息表

● course 课程表

3.2 E-R图
E-R图初步设计如下:

版权声明
本文为[番茄炒蛋不加蛋!]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_52100140/article/details/123896158
边栏推荐
- Oracle configuration st_ geometry
- Translation of audio signal processing and coding: Preface
- Speex维纳滤波与超几何分布的改写
- filebeat、logstash配置安装
- Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
- goroutine
- 2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
- Decompile and get the source code of any wechat applet - just read this (latest)
- 山大网安靶场实验平台项目—个人记录(四)
- Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
猜你喜欢

Reflection on the performance of some OpenGL operations in the past

Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies

Class loading mechanism

优先使用组合而不使用继承

如何在BNB链上创建BEP-20通证

Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。

MySQL syntax collation (5) -- functions, stored procedures and triggers

White screen processing method of fulter startup page

OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!

An idea of rendering pipeline based on FBO
随机推荐
对普通bean进行Autowired字段注入
Lpc1768 optimization comparison of delay time and different levels
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
How to select the third-party package of golang
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
深度学习环境搭建步骤—gpu
Class loading mechanism
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
MySQL practical skills
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
如何在BNB链上创建BEP-20通证
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
MySQL数据库 - 单表查询(三)
C6748 software simulation and hardware test - with detailed FFT hardware measurement time
HTTP cache - HTTP authoritative guide Chapter VII
[webrtc] add x264 encoder for CEF / Chromium
Unity创建超写实三维场景的一般步骤
Shanda Wangan shooting range experimental platform project - personal record (IV)
Codeforces Round #783 (Div. 2) D题解
goroutine