当前位置:网站首页>山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
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
边栏推荐
- How to use go code to compile Pb generated by proto file with protoc Compiler Go file
- Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
- HTTP cache - HTTP authoritative guide Chapter VII
- Web Security
- 音频编辑生成软件
- Unity创建超写实三维场景的一般步骤
- Go modules daily use
- SQL of contention for system time plus time in ocrale database
- Openlayers draw rectangle
猜你喜欢
Matlab 2019 installation of deep learning toolbox model for googlenet network
MySQL syntax collation (4)
Audio signal processing and coding - 2.5.3 the discrete cosine transform
@Mapperscan and @ mapper
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
ArcMap connecting ArcGIS Server
Deep learning -- Summary of Feature Engineering
命令-sudo
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
[transfer] summary of new features of js-es6 (one picture)
随机推荐
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
@Mapperscan and @ mapper
音频编辑生成软件
Pdf reference learning notes
Translation of audio signal processing and coding: Preface
Strange passion
ArcGIS JS API dojoconfig configuration
goroutine
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
图书管理数据库系统设计
Intuitive understanding of the essence of two-dimensional rotation
Scrum Patterns之理解各种团队模式
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
[report] Microsoft: application of deep learning methods in speech enhancement
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
仓库管理数据库系统设计
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
Golang timer
Prefer composition to inheritance
Go modules daily use