当前位置:网站首页>Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
2022-04-23 19:40:00 【Scrambled eggs with tomatoes without eggs!】
Catalog
One 、header
header Is the navigation bar of the page , As a component, there are references in every page .
Its appearance is shown in the figure below :
The following is the appearance code of the navigation bar :
<template>
<div class="menu">
<el-row>
<!-- logo part -->
<el-col :span="2">
<h3 @click="goto_home" style="text-align: center">sducsrp</h3>
</el-col>
<!-- Button menu section -->
<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"> shooting range </el-menu-item>
<el-menu-item index="2" @click="goto_cryptotool"> Password tool </el-menu-item>
<el-menu-item index="3" @click="goto_forum"> Forum </el-menu-item>
<el-menu-item index="3" @click="goto_management"> Course management </el-menu-item>
</el-menu>
</el-col>
<!-- User login section -->
<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> Sign in
</el-button>
<el-button type="info" style="background-color: black; border-color: black; padding:0px; float: right" @click="goto_register">
register
</el-button>
</div>
</div>
</el-col>
</el-row>
<el-divider ></el-divider>
</div>
</template>
script It mainly realizes the function of page Jump , And from The user information saved in the website extracts the user name to the navigation bar .
<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>
Two 、footer
At the end of the first page , About our team project and personal introduction
Click to open the corresponding blog/gitee page
The specific code is as follows :
<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、 ... and 、 Database design
3.1 Table design
at present , The database mainly has the following tables :
The design of the main entity table is as follows :
● user User table
● problem Range title table
● forum Forum information table
● course The curriculum
3.2 E-R chart
E-R The preliminary design of the drawing is as follows :
版权声明
本文为[Scrambled eggs with tomatoes without eggs!]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231929365766.html
边栏推荐
- Golang timer
- Kubernetes getting started to proficient - install openelb on kubernetes
- 对普通bean进行Autowired字段注入
- @Mapperscan and @ mapper
- 2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
- Esp8266 - beginner level Chapter 1
- 【webrtc】Add x264 encoder for CEF/Chromium
- SQL of contention for system time plus time in ocrale database
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- Codeforces Round #783 (Div. 2) D题解
猜你喜欢
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
NiO related Basics
基于pytorch搭建GoogleNet神经网络用于花类识别
JVM的类加载过程
[report] Microsoft: application of deep learning methods in speech enhancement
Build intelligent garbage classification applet based on Zero
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
山大网安靶场实验平台项目—个人记录(四)
如何在BNB链上创建BEP-20通证
随机推荐
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
Thoughts on the optimization of examination papers in the examination system
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
HTTP cache - HTTP authoritative guide Chapter VII
Openlayers 5.0 two centering methods
视频理解-Video Understanding
Matlab 2019 installation of deep learning toolbox model for googlenet network
MySQL数据库 - 数据库和表的基本操作(二)
Some ideas about time-consuming needs assessment
Inject Autowired fields into ordinary beans
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
Core concepts of rest
Easy mock local deployment (you need to experience three times in a crowded time. Li Zao will do the same as me. Love is like a festival mock)
Why is PostgreSQL about to surpass SQL Server?
Steps to build a deep learning environment GPU
The flyer realizes page Jump through routing routes
Reflection on the performance of some OpenGL operations in the past
Kibana reports an error server is not ready yet. Possible causes
C语言的十六进制printf为何输出有时候输出带0xFF有时没有
Lpc1768 optimization comparison of delay time and different levels