master
王元梓 2 years ago
parent 9136ea64c4
commit 12076747e0

@ -0,0 +1,53 @@
package com.domain;
public class all {
public int userId;
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public all(int userId, double fen, String guo, String username) {
this.userId = userId;
this.fen = fen;
this.guo = guo;
this.username = username;
}
public String getGuo() {
return guo;
}
public void setGuo(String guo) {
this.guo = guo;
}
public double getFen() {
return fen;
}
public void setFen(double fen) {
this.fen = fen;
}
public double fen;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String guo;
public String username;
}

@ -0,0 +1,229 @@
<!DOCTYPE html>
<html>
<head>
<!-- 页面meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
<!-- 引入样式 -->
<link rel="stylesheet" href="../plugins/elementui/index.css">
<link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../css/style.css">
</head>
<body class="hold-transition">
<div id="app">
<div class="content-header">
<h1>用户模块<small>评测成绩</small></h1>
<el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item>用户模块</el-breadcrumb-item>
<el-breadcrumb-item>评测成绩</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="app-container">
<div class="box">
<div class="filter-container">
</div>
<el-table size="small" current-row-key="id" :data="dataList" stripe highlight-current-row>
<el-table-column type="index" align="center" label="序号"></el-table-column>
<el-table-column prop="fen" label="分数" align="center"></el-table-column>
<el-table-column prop="guo" label="结果" align="center"></el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">详情</el-button>
<el-button type="primary" size="mini" @click="handleUpdate1(scope.row)">匹配</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
</body>
<!-- 引入组件库 -->
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script src="../js/axios-0.18.0.js"></script>
<script>
var vue = new Vue({
el: '#app',
data:{
pagination: {//分页相关模型数据
currentPage: 1,//当前页码
pageSize:10,//每页显示的记录数
total:0,//总记录数
queryString:""//查询条件
},
dataList: [],//当前页要展示的分页列表数据
formData: {},//表单数据
dialogFormVisible: false,//增加表单是否可见
dialogFormVisible4Edit:false,//编辑表单是否可见
rules: {//校验规则
username: [{ required: true, message: '用户名为必填项', trigger: 'blur' }],
password: [{ required: true, message: '密码为必填项', trigger: 'blur' }],
type:[{ required: true, message: '角色为必选项', trigger: 'blur' }],
idCard:[{ required: true, message: '身份证号必填项', trigger: 'blur' }]
},
options: [{
value: 1,
label: '用户'
},
{
value: 0,
label: '管理员'
}]
},
//钩子函数VUE对象初始化完成后自动执行
created(){
this.findPage();
},
methods:{
//编辑
handleEdit() {
//表单校验
this.$refs['dataEditForm'].validate((valid)=>{
if(valid){
//表单校验通过,发送请求
axios.put("/user/Update",this.formData).then((response)=> {
this.dialogFormVisible4Edit = false;
this.$message({
message: "修改成功",
type: 'success'
});
}).finally(()=> {
//重新发送请求查询分页数据
this.findPage();
});
}else{
//表单校验失败
this.$message.error("表单数据校验失败");
return false;
}
});
},
//添加
handleAdd () {
//校验表单输入项是否合法
this.$refs['dataAddForm'].validate((valid) => {
if (valid) {
this.formData.status="拉黑";
//表单数据校验通过发送ajax请求将表单数据提交到后台
axios.post("/user/Save",this.formData).then((response)=> {
//隐藏新增窗口
this.dialogFormVisible = false;
this.$message({
message: "添加成功",
type: 'success'
});
}).finally(()=> {
this.findPage();
});
} else {
this.$message.error("表单数据校验失败");
return false;
}
});
},
// 重置表单
resetForm() {
this.formData = {};
},
// 弹出添加窗口
handleCreate() {
this.resetForm();
this.dialogFormVisible = true;
},
// 弹出编辑窗口
handleUpdate(row) {
localStorage.setItem("userId",row.userId);
window.parent.document.getElementById("f").src="allm.html";
},
handleUpdate1(row) {
localStorage.setItem("biaoshi",row.biaoshi);
window.parent.document.getElementById("f").src="pipei.html";
},
//切换页码
handleCurrentChange(currentPage) {
//currentPage为切换后的页码
this.pagination.currentPage = currentPage;
this.findPage();
},
//切换每页显示条数
handleSizeChange(pageSize){
this.pagination.pageSize =pageSize;
this.findPage();
},
// 删除
handleDelete(row) {
//alert(row.id);
this.$confirm("确认删除吗?","提示",{type:'warning'}).then(()=>{
//点击确定按钮时只需此处代码
//alert('用户点击的是确定按钮');
axios.delete("/user/Delete/" + row.id).then((res)=> {
this.$message({
message: "删除成功",
type: 'success'
});
//调用分页,获取最新分页数据
this.findPage();
});
});
},
//分页查询
findPage() {
axios.get("/ut/selectAll1").then((response)=> {
this.dataList = response.data;
});
},
c(row)
{
axios.get("/user/findById/" + row.id).then((res)=>{
this.formData=res.data;
if(this.formData.status=="拉黑")
{
this.formData.status="已拉黑"
}
else
{
this.formData.status="拉黑"
}
axios.put("/user/Update",this.formData).then((response)=> {
}).finally(()=> {
//重新发送请求查询分页数据
this.findPage();
});
});
}
}
})
</script>
</html>

@ -0,0 +1,41 @@
package com.domain;
public class allm {
public int id;
public String name;
public double score;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getScore() {
return score;
}
public void setScore(double score) {
this.score = score;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public double getZscore() {
return zscore;
}
public void setZscore(double zscore) {
this.zscore = zscore;
}
public double zscore;
}

@ -0,0 +1,51 @@
package com.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@TableName("fenduan")
public class fenduan {
@TableId(type= IdType.AUTO)
private int id;
@TableField("start")
private Double start;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Double getStart() {
return start;
}
public void setStart(Double start) {
this.start = start;
}
public Double getEnd() {
return end;
}
public void setEnd(Double end) {
this.end = end;
}
public String getGuo() {
return guo;
}
public void setGuo(String guo) {
this.guo = guo;
}
@TableField("end")
private Double end;
@TableField("guo")
private String guo;
}

@ -0,0 +1,51 @@
package com.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@TableName("liaotian")
public class liaotian {
@TableId(type= IdType.AUTO)
private int id;
@TableField("one")
private int one;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getOne() {
return one;
}
public void setOne(int one) {
this.one = one;
}
public int getTwo() {
return two;
}
public void setTwo(int two) {
this.two = two;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@TableField("two")
private int two;
@TableField("content")
private String content;
}

@ -0,0 +1,333 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" name="viewport">
<title>心理测评系统</title>
<link rel="stylesheet" href="../dist/modules/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../dist/modules/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="../dist/modules/fontawesome/web-fonts-with-css/css/fontawesome-all.min.css">
<link rel="stylesheet" href="../dist/modules/summernote/summernote-lite.css">
<link rel="stylesheet" href="../dist/modules/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="../dist/css/demo.css">
<link rel="stylesheet" href="../dist/css/style.css">
<!-- 引入样式 -->
<link rel="stylesheet" href="../plugins/elementui/index.css">
<link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../css/style.css">
<!-- 引入组件库 -->
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script src="../js/axios-0.18.0.js"></script>
<style type="text/css">
.el-main{
position: absolute;
top: 70px;
bottom: 0px;
left: 200px;
right: 10px;
padding: 0;
}
</style>
</head>
<body>
<div id="app">
<div class="main-wrapper">
<div class="navbar-bg"></div>
<nav class="navbar navbar-expand-lg main-navbar">
<form class="form-inline mr-auto">
<ul class="navbar-nav mr-3">
<li><a href="#" data-toggle="sidebar" class="nav-link nav-link-lg"><i class="ion ion-navicon-round"></i></a></li>
<li><a href="#" data-toggle="search" class="nav-link nav-link-lg d-sm-none"><i class="ion ion-search"></i></a></li>
</ul>
</form>
<ul class="navbar-nav navbar-right">
<li class="dropdown"><a href="#" data-toggle="dropdown" class="nav-link dropdown-toggle nav-link-lg">
<i class="ion ion-android-person d-lg-none"></i>
<div class="d-sm-none d-lg-inline-block">Hi, {{username}}</div></a>
<div class="dropdown-menu dropdown-menu-right">
<a href="#" class="dropdown-item has-icon">
<i class="ion ion-log-out"></i> <a href="/logout" style="display:block;margin-top: -12px">layout</a>
</a>
</div>
</li>
</ul>
</nav>
<div class="main-sidebar">
<aside id="sidebar-wrapper">
<div class="sidebar-brand">
<a href="index.html">心理测评系统</a>
</div>
<div class="sidebar-user">
<div class="sidebar-user-picture">
<img alt="image" src="../img/考研.svg" style="width:50px;">
</div>
<div class="sidebar-user-details">
<div class="user-name">测评</div>
<div class="user-role">
心理测评
</div>
</div>
</div>
<ul class="sidebar-menu">
<li class="menu-header">{{name}}</li>
<li v-for="menu in menuList">
<a href="#" class="has-dropdown"><i class="ion ion-ios-albums-outline"></i><span> {{menu.title}}</span></a>
<ul class="menu-dropdown">
<li v-for="child in menu.children"><a :href="child.linkUrl" target="right" @click="show(child.title)"><i class="ion ion-ios-circle-outline"></i> {{child.title}}</a></li>
</ul>
</li>
</ul>
</aside>
</div>
<div class="main-content">
<section class="section">
<h1 class="section-header">
<div id="n">{{name1}}</div>
</h1>
<div class="row">
<iframe name="right" width="100%" height="500px" frameborder="0" id="f"></iframe>
</div>
</section>
</div>
<footer class="main-footer">
<div class="footer-left" style="margin-left: 260px">
心理测评系统。欢迎您!
</div>
<div class="footer-right"></div>
</footer>
</div>
</div>
<script src="../dist/modules/jquery.min.js"></script>
<script src="../dist/modules/popper.js"></script>
<script src="../dist/modules/tooltip.js"></script>
<script src="../dist/modules/bootstrap/js/bootstrap.min.js"></script>
<script src="../dist/modules/nicescroll/jquery.nicescroll.min.js"></script>
<script src="../dist/modules/scroll-up-bar/dist/scroll-up-bar.min.js"></script>
<script src="../dist/js/sa-functions.js"></script>
<script src="../dist/modules/chart.min.js"></script>
<script src="../dist/modules/summernote/summernote-lite.js"></script>
<script>
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
datasets: [{
label: 'Statistics',
data: [460, 458, 330, 502, 430, 610, 488],
borderWidth: 2,
backgroundColor: 'rgb(87,75,144)',
borderColor: 'rgb(87,75,144)',
borderWidth: 2.5,
pointBackgroundColor: '#ffffff',
pointRadius: 4
}]
},
options: {
legend: {
display: false
},
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
stepSize: 150
}
}],
xAxes: [{
gridLines: {
display: false
}
}]
},
}
});
</script>
<script src="../dist/js/scripts.js"></script>
<script src="../dist/js/custom.js"></script>
<script src="../dist/js/demo.js"></script>
</body>
</html>
<script>
new Vue({
el: '#app',
data: {
username: null,//用户名
menuList: [{
"children": [
]
}],
isCollapse:true,
tags: [
]
},
created() {
axios.get("/user/getUsername").then((response)=>{
this.username=response.data;
localStorage.setItem("username",this.username);
}).finally(()=>{
axios.get("/user/getByUserId?username="+this.username).then((response)=>{
localStorage.setItem("userId",response.data)
});
axios.get("/user/getByUserName?username="+this.username).then((response)=>{
localStorage.setItem("t",response.data);
if(response.data==0)
{
this.menuList=[{
"path": "1",
"title": "管理员模块",
"icon": "fa-dashboard",
"children": [
{
"path": "/1-1",
"title": "个人账号",
"linkUrl": "user1.html",
"children": []
},
{
"path": "/1-2",
"title": "用户管理",
"linkUrl": "user.html",
"children": []
},
{
"path": "/1-3",
"title": "题目管理",
"linkUrl": "mokuai.html",
"children": []
},
{
"path": "/1-4",
"title": "测评分析",
"linkUrl": "fenduan.html",
"children": []
},
{
"path": "/1-5",
"title": "测评结果",
"linkUrl": "all1.html",
"children": []
}
]
}]
}
else {
this.menuList=[{
"path": "1",
"title": "用户模块",
"icon": "fa-dashboard",
"children": [
{
"path": "/1-1",
"title": "个人账号",
"linkUrl": "user1.html",
"children": []
},
{
"path": "/1-2",
"title": "测试",
"linkUrl": "ceshi.html",
"children": []
},
{
"path": "/1-3",
"title": "评测成绩",
"linkUrl": "all.html",
"children": []
},
{
"path": "/1-4",
"title": "聊天",
"linkUrl": "userLiao.html",
"children": []
}
]
}]
}
});
});
},
methods:{
q()
{
this.isCollapse=!this.isCollapse;
},
table()
{
document.getElementById("f").src="table.html";
},
t(value)
{
document.getElementById("f").src=value;
},
add(child)
{
var f={name:child.title,s:child.linkUrl};
this.tags=[];
this.tags.push(f);
},
}
});
$(function() {
var wd = 200;
$(".el-main").css('width', $('body').width() - wd + 'px');
});
</script>
</html>
<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
width: 200px;
min-height: 400px;
}
</style>

@ -0,0 +1,41 @@
package com.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@TableName("mokuai")
public class mokuai {
@TableId(type= IdType.AUTO)
private int id;
@TableField("name")
private String name;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getQuanzhon() {
return quanzhon;
}
public void setQuanzhon(String quanzhon) {
this.quanzhon = quanzhon;
}
@TableField("quanzhon")
private String quanzhon;
}

@ -0,0 +1,37 @@
package com.domain;
public class pi {
public int userId;
public String username;
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public double getFen() {
return fen;
}
public void setFen(double fen) {
this.fen = fen;
}
public double fen;
}

@ -0,0 +1,813 @@
.outer .toolbar {
position: fixed;
z-index: 999;
width: 300px;
height: 100%;
background-color: #7a6e6e;
transition: right 0.3s ease-in-out 0s;
}
.outer .toolbar.toolbar-out {
top: 0px;
right: 0px;
}
.outer .toolbar.toolbar-wrap {
top: 0px;
right: -294px;
}
.outer .toolbar .content {
position: relative;
left: 6px;
width: 294px;
background-color: bisque;
height: 100%;
z-index: 99;
}
.outer .toolbar .but {
position: relative;
width: 35px;
height: 35px;
line-height: 35px;
text-align: center;
margin-bottom: 1px;
cursor: pointer;
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
position: absolute;
top: 0;
/*right: -6px;*/
left: -29px;
}
.outer .toolbar .but.list {
background-image: url(../images/list.png);
background-repeat: no-repeat;
background-size: cover;
}
.outer .toolbar .but.pull-wrap {
background-image: url(../images/cross.png);
background-repeat: no-repeat;
background-size: cover;
}
.outer .toolbar .toolist {
position: absolute;
top: 50%;
left: -29px;
width: 35px;
margin-top: -80px;
/*background-color: cadetblue;*/
}
.outer .toolbar .toolist .pull {
position: relative;
width: 35px;
height: 35px;
line-height: 35px;
text-align: center;
margin-bottom: 1px;
cursor: pointer;
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
z-index: 66;
}
.outer .toolbar .toolist .pull .vip {
background-image: url(../images/toolbars.png);
background-position: -88px -175px;
}
.outer .toolbar .toolist .pull .cart {
background-image: url(../images/toolbars.png);
background-position: -50px 0;
}
.outer .toolbar .toolist .pull .follow {
background-image: url(../images/toolbars.png);
background-position: -50px -50px;
}
.outer .toolbar .toolist .pull .history {
background-image: url(../images/toolbars.png);
background-position: -50px -100px;
}
.outer .toolbar .toolist .pull .message {
background-image: url(../images/toolbars.png);
background-position: -190px -150px;
}
.outer .toolbar .toolist .pull .jimi {
background-image: url(../images/toolbars.png);
background-position: -50px -150px;
}
.outer .toolbar .toolist .pull .top {
background-image: url(../images/toolbars.png);
background-position: -50px -250px;
}
.outer .toolbar .toolist .pull .tab-text {
width: 62px;
height: 35px;
line-height: 35px;
color: #fff;
text-align: center;
font-family: ;
position: absolute;
/*position: relative;*/
z-index: 1;
left: 35px;
top: 0;
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
font-style: normal;
-webkit-transition: left 0.3s ease-in-out 0.1s;
transition: left 0.3s ease-in-out 0.1s;
}
.outer .toolbar .toolist .pull .tab-ico {
display: inline-block;
position: relative;
/*background-image: url(img/toolbars.png);*/
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
z-index: 2;
width: 35px;
height: 35px;
}
.outer .toolbar > .pull {
position: relative;
width: 35px;
height: 35px;
line-height: 35px;
text-align: center;
margin-bottom: 1px;
cursor: pointer;
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
z-index: 66;
}
.outer .toolbar > .pull .tab-ico {
display: inline-block;
position: relative;
/*background-image: url(img/toolbars.png);*/
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
z-index: 2;
width: 35px;
height: 35px;
}
.outer .toolbar > .pull .top {
background-image: url(../images/toolbars.png);
background-position: -50px -250px;
}
.outer .toolbar > .pull .tab-text {
width: 62px;
height: 35px;
line-height: 35px;
color: #fff;
text-align: center;
font-family: ;
position: absolute;
/*position: relative;*/
z-index: 1;
left: 35px;
top: 0;
background-color: #7a6e6e;
border-radius: 3px 0 0 3px;
font-style: normal;
-webkit-transition: left 0.3s ease-in-out 0.1s;
transition: left 0.3s ease-in-out 0.1s;
}
.outer .toolbar > .back {
position: absolute;
bottom: 0;
/*right: -6px;*/
left: -29px;
display: inline-block;
background-image: url(../images/toolbars.png);
}
.outer .header > .top {
background-color: #eaeaea;
height: 30px;
line-height: 30px;
}
.outer .header > .top .container {
width: 1200px;
margin: 0 auto;
overflow: hidden;
}
.outer .header > .top .container .loginList {
float: left;
}
.outer .header > .top .container .loginList p {
float: left;
margin-right: 10px;
}
.outer .header > .top .container .loginList p .register {
border-left: 1px solid #b3aeae;
padding: 0 5px;
margin-left: 5px;
}
.outer .header > .top .container .typeList {
float: right;
}
.outer .header > .top .container .typeList a {
padding: 0 10px;
}
.outer .header > .top .container .typeList a + a {
border-left: 1px solid #b3aeae;
}
.outer .header > .bottom {
width: 1200px;
margin: 0 auto;
overflow: hidden;
}
.outer .header > .bottom .logoArea {
float: left;
}
.outer .header > .bottom .logoArea .logo img {
width: 175px;
margin: 25px 45px;
}
.outer .header > .bottom .searchArea {
float: right;
margin-top: 35px;
}
.outer .header > .bottom .searchArea .searchForm {
overflow: hidden;
}
.outer .header > .bottom .searchArea .searchForm input {
box-sizing: border-box;
width: 490px;
height: 32px;
padding: 0px 4px;
border: 2px solid #ea4a36;
float: left;
}
.outer .header > .bottom .searchArea .searchForm input:focus {
outline: none;
}
.outer .header > .bottom .searchArea .searchForm button {
height: 32px;
width: 68px;
background-color: #ea4a36;
border: none;
color: #fff;
float: left;
cursor: pointer;
}
.outer .header > .bottom .searchArea .searchForm button:focus {
outline: none;
}
.outer .typeNav {
border-bottom: 2px solid #e1251b;
}
.outer .typeNav .container {
width: 1200px;
margin: 0 auto;
display: flex;
position: relative;
}
.outer .typeNav .container .all {
width: 210px;
height: 45px;
background-color: #e1251b;
line-height: 45px;
text-align: center;
color: #fff;
font-size: 14px;
font-weight: bold;
}
.outer .typeNav .container .nav a {
height: 45px;
margin: 0 22px;
line-height: 45px;
font-size: 16px;
color: #333;
}
.outer .typeNav .container .sort {
left: 0;
top: 45px;
width: 210px;
height: 461px;
position: absolute;
background: #fafafa;
z-index: 999;
}
.outer .typeNav .container .sort .all-sort-list2 .item h3 {
line-height: 30px;
font-size: 14px;
font-weight: 400;
overflow: hidden;
padding: 0 20px;
margin: 0;
}
.outer .typeNav .container .sort .all-sort-list2 .item h3 a {
color: #333;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list {
display: none;
position: absolute;
width: 734px;
min-height: 460px;
_height: 200px;
background: #f7f7f7;
left: 210px;
border: 1px solid #ddd;
top: 0;
z-index: 9999 !important;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem {
float: left;
width: 650px;
padding: 0 4px 0 8px;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem dl {
border-top: 1px solid #eee;
padding: 6px 0;
overflow: hidden;
zoom: 1;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem dl.fore {
border-top: 0;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem dl dt {
float: left;
width: 54px;
line-height: 22px;
text-align: right;
padding: 3px 6px 0 0;
font-weight: 700;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem dl dd {
float: left;
width: 415px;
padding: 3px 0 0;
overflow: hidden;
}
.outer .typeNav .container .sort .all-sort-list2 .item .item-list .subitem dl dd em {
float: left;
height: 14px;
line-height: 14px;
padding: 0 8px;
margin-top: 5px;
border-left: 1px solid #ccc;
}
.outer .typeNav .container .sort .all-sort-list2 .item:hover .item-list {
display: block;
}
.outer .main {
margin: 10px 0;
}
.outer .main .py-container {
width: 1200px;
margin: 0 auto;
}
.outer .main .py-container .bread {
margin-bottom: 5px;
overflow: hidden;
}
.outer .main .py-container .bread .sui-breadcrumb {
padding: 3px 15px;
margin: 0;
font-weight: 400;
border-radius: 3px;
float: left;
}
.outer .main .py-container .bread .sui-breadcrumb li {
display: inline-block;
line-height: 18px;
}
.outer .main .py-container .bread .sui-breadcrumb li a {
color: #666;
text-decoration: none;
}
.outer .main .py-container .bread .sui-breadcrumb li a:hover {
color: #4cb9fc;
}
.outer .main .py-container .bread .sui-tag {
margin-top: -5px;
list-style: none;
font-size: 0;
line-height: 0;
padding: 5px 0 0;
margin-bottom: 18px;
float: left;
}
.outer .main .py-container .bread .sui-tag .with-x {
font-size: 12px;
margin: 0 5px 5px 0;
display: inline-block;
overflow: hidden;
color: #000;
background: #f7f7f7;
padding: 0 7px;
height: 20px;
line-height: 20px;
border: 1px solid #dedede;
white-space: nowrap;
transition: color 400ms;
cursor: pointer;
}
.outer .main .py-container .bread .sui-tag .with-x i {
margin-left: 10px;
cursor: pointer;
font: 400 14px tahoma;
display: inline-block;
height: 100%;
vertical-align: middle;
}
.outer .main .py-container .bread .sui-tag .with-x:hover {
color: #28a3ef;
}
.outer .main .py-container .selector {
border: 1px solid #ddd;
margin-bottom: 5px;
overflow: hidden;
}
.outer .main .py-container .selector .logo {
border-top: 0;
margin: 0;
position: relative;
overflow: hidden;
}
.outer .main .py-container .selector .logo .key {
padding-bottom: 87px!important;
}
.outer .main .py-container .selector .type-wrap {
margin: 0;
position: relative;
border-top: 1px solid #ddd;
overflow: hidden;
}
.outer .main .py-container .selector .type-wrap .key {
width: 100px;
background: #f1f1f1;
line-height: 26px;
text-align: right;
padding: 10px 10px 0 15px;
float: left;
}
.outer .main .py-container .selector .type-wrap .value {
overflow: hidden;
padding: 10px 0 0 15px;
color: #333;
margin-left: 120px;
padding-right: 90px;
}
.outer .main .py-container .selector .type-wrap .value .logo-list li {
float: left;
border: 1px solid #e4e4e4;
margin: -1px -1px 0 0;
width: 105px;
height: 52px;
text-align: center;
line-height: 52px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
color: #e1251b;
font-style: italic;
font-size: 14px;
}
.outer .main .py-container .selector .type-wrap .value .logo-list li img {
max-width: 100%;
vertical-align: middle;
}
.outer .main .py-container .selector .type-wrap .value .type-list li {
float: left;
display: block;
margin-right: 30px;
line-height: 26px;
}
.outer .main .py-container .selector .type-wrap .value .type-list li a {
text-decoration: none;
color: #666;
}
.outer .main .py-container .selector .type-wrap .ext {
position: absolute;
top: 10px;
right: 10px;
}
.outer .main .py-container .selector .type-wrap .ext .sui-btn {
display: inline-block;
padding: 2px 14px;
box-sizing: border-box;
margin-bottom: 0;
font-size: 12px;
line-height: 18px;
text-align: center;
vertical-align: middle;
cursor: pointer;
padding: 0 10px;
background: #fff;
border: 1px solid #d5d5d5;
}
.outer .main .py-container .selector .type-wrap .ext a {
color: #666;
}
.outer .main .py-container .details {
margin-bottom: 5px;
}
.outer .main .py-container .details .sui-navbar {
overflow: visible;
margin-bottom: 0;
}
.outer .main .py-container .details .sui-navbar .filter {
min-height: 40px;
padding-right: 20px;
background: #fbfbfb;
border: 1px solid #e2e2e2;
padding-left: 0;
border-radius: 0;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
.outer .main .py-container .details .sui-navbar .filter .sui-nav {
position: relative;
left: 0;
display: block;
float: left;
margin: 0 10px 0 0;
}
.outer .main .py-container .details .sui-navbar .filter .sui-nav li {
float: left;
line-height: 18px;
}
.outer .main .py-container .details .sui-navbar .filter .sui-nav li a {
display: block;
cursor: pointer;
padding: 11px 15px;
color: #777;
text-decoration: none;
}
.outer .main .py-container .details .sui-navbar .filter .sui-nav li.active a {
background: #e1251b;
color: #fff;
}
.outer .main .py-container .details .goods-list {
margin: 20px 0;
}
.outer .main .py-container .details .goods-list ul {
display: flex;
flex-wrap: wrap;
}
.outer .main .py-container .details .goods-list ul li {
height: 100%;
width: 20%;
margin-top: 10px;
line-height: 28px;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .p-img {
padding-left: 15px;
width: 215px;
height: 255px;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .p-img a {
color: #666;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .p-img a img {
max-width: 100%;
height: auto;
vertical-align: middle;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .price {
padding-left: 15px;
font-size: 18px;
color: #c81623;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .price strong {
font-weight: 700;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .price strong i {
margin-left: -5px;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .attr {
padding-left: 15px;
width: 85%;
overflow: hidden;
margin-bottom: 8px;
min-height: 38px;
cursor: pointer;
line-height: 1.8;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .attr a {
color: #333;
text-decoration: none;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .commit {
padding-left: 15px;
height: 22px;
font-size: 13px;
color: #a7a7a7;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .commit span {
font-weight: 700;
color: #646fb0;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate {
padding: 12px 15px;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate .sui-btn {
display: inline-block;
padding: 2px 14px;
box-sizing: border-box;
margin-bottom: 0;
font-size: 12px;
line-height: 18px;
text-align: center;
vertical-align: middle;
cursor: pointer;
border-radius: 0;
background-color: transparent;
margin-right: 15px;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate .btn-bordered {
min-width: 85px;
background-color: transparent;
border: 1px solid #8c8c8c;
color: #8c8c8c;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate .btn-bordered:hover {
border: 1px solid #666;
color: #fff !important;
background-color: #666;
text-decoration: none;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate .btn-danger {
border: 1px solid #e1251b;
color: #e1251b;
}
.outer .main .py-container .details .goods-list ul li .list-wrap .operate .btn-danger:hover {
border: 1px solid #e1251b;
background-color: #e1251b;
color: white!important;
text-decoration: none;
}
.outer .main .py-container .details .page {
width: 733px;
height: 66px;
overflow: hidden;
float: right;
}
.outer .main .py-container .details .page .sui-pagination {
margin: 18px 0;
}
.outer .main .py-container .details .page .sui-pagination ul {
margin-left: 0;
margin-bottom: 0;
vertical-align: middle;
width: 490px;
float: left;
}
.outer .main .py-container .details .page .sui-pagination ul li {
line-height: 18px;
display: inline-block;
}
.outer .main .py-container .details .page .sui-pagination ul li a {
position: relative;
float: left;
line-height: 18px;
text-decoration: none;
background-color: #fff;
border: 1px solid #e0e9ee;
margin-left: -1px;
font-size: 14px;
padding: 9px 18px;
color: #333;
}
.outer .main .py-container .details .page .sui-pagination ul li.active a {
background-color: #fff;
color: #e1251b;
border-color: #fff;
cursor: default;
}
.outer .main .py-container .details .page .sui-pagination ul li.prev a {
background-color: #fafafa;
}
.outer .main .py-container .details .page .sui-pagination ul li.disabled a {
color: #999;
cursor: default;
}
.outer .main .py-container .details .page .sui-pagination ul li.dotted span {
margin-left: -1px;
position: relative;
float: left;
line-height: 18px;
text-decoration: none;
background-color: #fff;
font-size: 14px;
border: 0;
padding: 9px 18px;
color: #333;
}
.outer .main .py-container .details .page .sui-pagination ul li.next a {
background-color: #fafafa;
}
.outer .main .py-container .details .page .sui-pagination div {
color: #333;
font-size: 14px;
float: right;
width: 241px;
}
.outer .main .py-container .hot-sale {
margin-bottom: 5px;
border: 1px solid #ddd;
}
.outer .main .py-container .hot-sale .title {
font-weight: 700;
font-size: 14px;
line-height: 21px;
border-bottom: 1px solid #ddd;
background: #f1f1f1;
color: #333;
margin: 0;
padding: 5px 0 5px 15px;
}
.outer .main .py-container .hot-sale .hot-list {
padding: 15px;
}
.outer .main .py-container .hot-sale .hot-list ul {
display: flex;
}
.outer .main .py-container .hot-sale .hot-list ul li {
width: 25%;
height: 100%;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .p-img,
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .price,
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .attr,
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .commit {
padding-left: 15px;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .p-img img {
max-width: 100%;
vertical-align: middle;
border: 0;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .attr {
width: 85%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
margin-bottom: 8px;
min-height: 38px;
cursor: pointer;
line-height: 1.8;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .price {
font-size: 18px;
color: #c81623;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .price strong {
font-weight: 700;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .price strong i {
margin-left: -5px;
}
.outer .main .py-container .hot-sale .hot-list ul li .list-wrap .commit {
height: 22px;
font-size: 13px;
color: #a7a7a7;
}
.outer .footer {
background-color: #eaeaea;
}
.outer .footer .footer-container {
width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
.outer .footer .footer-container .footerList {
padding: 20px;
border-bottom: 1px solid #e4e1e1;
border-top: 1px solid #e4e1e1;
overflow: hidden;
padding-left: 40px;
}
.outer .footer .footer-container .footerList .footerItem {
width: 16.6666667%;
float: left;
}
.outer .footer .footer-container .footerList .footerItem h4 {
font-size: 14px;
}
.outer .footer .footer-container .footerList .footerItem .footerItemCon li {
line-height: 18px;
}
.outer .footer .footer-container .footerList .footerItem:last-child img {
width: 121px;
}
.outer .footer .footer-container .copyright {
padding: 20px;
}
.outer .footer .footer-container .copyright .helpLink {
text-align: center;
}
.outer .footer .footer-container .copyright .helpLink li {
display: inline;
}
.outer .footer .footer-container .copyright .helpLink li .space {
border-left: 1px solid #666;
width: 1px;
height: 13px;
background: #666;
margin: 8px 10px;
}
.outer .footer .footer-container .copyright p {
margin: 10px 0;
text-align: center;
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,123 @@
package com.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@TableName("timu")
public class timu {
@TableId(type= IdType.AUTO)
private int id;
@TableField("xuhao")
private int xuhao;
@TableField("them")
private String them;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getXuhao() {
return xuhao;
}
public void setXuhao(int xuhao) {
this.xuhao = xuhao;
}
public String getThem() {
return them;
}
public void setThem(String them) {
this.them = them;
}
public String getOne() {
return one;
}
public void setOne(String one) {
this.one = one;
}
public String getTwo() {
return two;
}
public void setTwo(String two) {
this.two = two;
}
public String getThree() {
return three;
}
public void setThree(String three) {
this.three = three;
}
public String getFour() {
return four;
}
public void setFour(String four) {
this.four = four;
}
public String getOk() {
return ok;
}
public void setOk(String ok) {
this.ok = ok;
}
@TableField("one")
private String one;
@TableField("two")
private String two;
@TableField("three")
private String three;
public double getFen() {
return fen;
}
public void setFen(double fen) {
this.fen = fen;
}
@TableField("four")
private String four;
@TableField("ok")
private String ok;
public String getDa() {
return da;
}
public int getMokuaiId() {
return mokuaiId;
}
public void setMokuaiId(int mokuaiId) {
this.mokuaiId = mokuaiId;
}
public void setDa(String da) {
this.da = da;
}
@TableField("fen")
private double fen;
@TableField("mokuaiId")
private int mokuaiId;
@TableField("da")
private String da;
}

@ -0,0 +1,132 @@
/*
SQLyog Ultimate v12.08 (64 bit)
MySQL - 8.0.26 : Database - xinli
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`xinli` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `xinli`;
/*Table structure for table `fenduan` */
DROP TABLE IF EXISTS `fenduan`;
CREATE TABLE `fenduan` (
`id` int NOT NULL AUTO_INCREMENT,
`start` double DEFAULT NULL,
`end` double DEFAULT NULL,
`guo` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3;
/*Data for the table `fenduan` */
insert into `fenduan`(`id`,`start`,`end`,`guo`) values (9,0,59,'抑郁'),(10,60,85,'正常'),(11,85,100,'精神非常好');
/*Table structure for table `liaotian` */
DROP TABLE IF EXISTS `liaotian`;
CREATE TABLE `liaotian` (
`id` int NOT NULL AUTO_INCREMENT,
`one` int DEFAULT NULL,
`two` int DEFAULT NULL,
`content` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb3;
/*Data for the table `liaotian` */
insert into `liaotian`(`id`,`one`,`two`,`content`) values (17,6,7,'<div style=\"margin-top: 10px\">李丽说:无奈</div><div style=\"margin-top: 10px\">李丽说:好累啊</div><div style=\"margin-top: 10px\">孙策说:去你的</div>');
/*Table structure for table `mokuai` */
DROP TABLE IF EXISTS `mokuai`;
CREATE TABLE `mokuai` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(200) DEFAULT NULL,
`quanzhon` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3;
/*Data for the table `mokuai` */
insert into `mokuai`(`id`,`name`,`quanzhon`) values (3,'第一模块','30'),(4,'第二模块','30'),(5,'第三模块','30');
/*Table structure for table `timu` */
DROP TABLE IF EXISTS `timu`;
CREATE TABLE `timu` (
`id` int NOT NULL AUTO_INCREMENT,
`xuhao` int DEFAULT NULL,
`them` varchar(200) DEFAULT NULL,
`one` varchar(200) DEFAULT NULL,
`two` varchar(200) DEFAULT NULL,
`three` varchar(200) DEFAULT NULL,
`four` varchar(200) DEFAULT NULL,
`ok` varchar(200) DEFAULT NULL,
`fen` double DEFAULT NULL,
`da` varchar(200) DEFAULT NULL,
`mokuaiId` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3;
/*Data for the table `timu` */
insert into `timu`(`id`,`xuhao`,`them`,`one`,`two`,`three`,`four`,`ok`,`fen`,`da`,`mokuaiId`) values (8,1,'童年','快乐','悲伤','兴奋','优秀','快乐',20,NULL,3),(9,2,'成年','压抑','忧郁','失败','成功','成功',10,NULL,3),(10,1,'吃饭','爱吃','厌食','暴饮暴食','正常就餐','正常就餐',20,NULL,4),(11,2,'睡觉','嗜睡','失眠','正常','压抑','正常',30,NULL,4),(12,1,'自我评价','正常','神经','快乐','失败','快乐',10,NULL,5),(13,2,'未来规划','努力生活','混吃等死','积极向上','好好学习','积极向上',10,NULL,5);
/*Table structure for table `user` */
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(200) DEFAULT NULL,
`password` varchar(200) DEFAULT NULL,
`type` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;
/*Data for the table `user` */
insert into `user`(`id`,`username`,`password`,`type`) values (1,'admin','123',0),(6,'李丽','123',1),(7,'孙策','123',1),(8,'李云','123',1);
/*Table structure for table `ut` */
DROP TABLE IF EXISTS `ut`;
CREATE TABLE `ut` (
`id` int NOT NULL AUTO_INCREMENT,
`userId` int DEFAULT NULL,
`xuhao` int DEFAULT NULL,
`them` varchar(200) DEFAULT NULL,
`one` varchar(200) DEFAULT NULL,
`two` varchar(200) DEFAULT NULL,
`three` varchar(200) DEFAULT NULL,
`four` varchar(200) DEFAULT NULL,
`ok` varchar(200) DEFAULT NULL,
`da` varchar(200) DEFAULT NULL,
`fen` double DEFAULT NULL,
`mokuaiId` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8mb3;
/*Data for the table `ut` */
insert into `ut`(`id`,`userId`,`xuhao`,`them`,`one`,`two`,`three`,`four`,`ok`,`da`,`fen`,`mokuaiId`) values (118,7,1,'童年','快乐','悲伤','兴奋','优秀','快乐','快乐',20,3),(119,7,2,'成年','压抑','忧郁','失败','成功','成功','压抑',0,3),(120,7,1,'吃饭','爱吃','厌食','暴饮暴食','正常就餐','正常就餐','正常就餐',20,4),(121,7,2,'睡觉','嗜睡','失眠','正常','压抑','正常','正常',30,4),(122,7,1,'自我评价','正常','神经','快乐','失败','快乐','正常',0,5),(123,7,2,'未来规划','努力生活','混吃等死','积极向上','好好学习','积极向上','努力生活',0,5),(130,8,1,'童年','快乐','悲伤','兴奋','优秀','快乐','快乐',20,3),(131,8,2,'成年','压抑','忧郁','失败','成功','成功','成功',10,3),(132,8,1,'吃饭','爱吃','厌食','暴饮暴食','正常就餐','正常就餐','正常就餐',20,4),(133,8,2,'睡觉','嗜睡','失眠','正常','压抑','正常','正常',30,4),(134,8,1,'自我评价','正常','神经','快乐','失败','快乐','快乐',10,5),(135,8,2,'未来规划','努力生活','混吃等死','积极向上','好好学习','积极向上','积极向上',10,5),(136,6,1,'童年','快乐','悲伤','兴奋','优秀','快乐','快乐',20,3),(137,6,2,'成年','压抑','忧郁','失败','成功','成功','失败',0,3),(138,6,1,'吃饭','爱吃','厌食','暴饮暴食','正常就餐','正常就餐','暴饮暴食',0,4),(139,6,2,'睡觉','嗜睡','失眠','正常','压抑','正常','正常',30,4),(140,6,1,'自我评价','正常','神经','快乐','失败','快乐','神经',0,5),(141,6,2,'未来规划','努力生活','混吃等死','积极向上','好好学习','积极向上','努力生活',0,5);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
Loading…
Cancel
Save