当前位置:网站首页>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
边栏推荐
- Class loading mechanism
- uIP1.0 主动发送的问题理解
- uIP1. 0 actively sent problem understanding
- The platinum library cannot search the debug process records of some projection devices
- Data analysis learning directory
- 高效的串口循环Buffer接收处理思路及代码2
- Common processing of point cloud dataset
- 一个简单的(基于redisson的)分布式同步工具类封装
- php参考手册String(7.2千字)
- Coordinate conversion WGS-84 to gcj-02 and gcj-02 to WGS-84
猜你喜欢
Class loading mechanism
php参考手册String(7.2千字)
指针数组与数组指针的区分
Virtual machine performance monitoring and fault handling tools
Matlab 2019 installation of deep learning toolbox model for googlenet network
White screen processing method of fulter startup page
【webrtc】Add x264 encoder for CEF/Chromium
Common SQL commands
@Mapperscan and @ mapper
First experience of using fluent canvas
随机推荐
UML类图几种关系的总结
MySQL syntax collation (3)
The usage of slice and the difference between slice and array
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
MFC obtains local IP (used more in network communication)
Use test of FFT and IFFT library functions of TI DSP
Core concepts of rest
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
uIP1. 0 actively sent problem understanding
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
指针数组与数组指针的区分
Go modules daily use
Some ideas about time-consuming needs assessment
Matlab 2019 installation of deep learning toolbox model for googlenet network
Scrum Patterns之理解各种团队模式
PostgreSQL
山大网安靶场实验平台项目-个人记录(五)
数据库查询 - 选课系统
Strange problems in FrameLayout view hierarchy