forked from 19833906703/psychological_health
Compare commits
4 Commits
swq_projec
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
65ad37ba56 | 3 years ago |
|
|
12076747e0 | 3 years ago |
|
|
9136ea64c4 | 3 years ago |
|
|
bfc6dce051 | 3 years ago |
@ -0,0 +1,46 @@
|
||||
.navbar.active {
|
||||
background-color: #fff;
|
||||
}
|
||||
.navbar-bg {
|
||||
background-color: #fff;
|
||||
}
|
||||
.navbar .nav-link {
|
||||
color: #2C2E3E;
|
||||
}
|
||||
.navbar .nav-link:hover {
|
||||
color: #3f4257;
|
||||
}
|
||||
.navbar .form-inline .form-control {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.navbar .form-inline .btn {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.main-sidebar {
|
||||
background-color: #212330;
|
||||
}
|
||||
.main-sidebar .sidebar-brand {
|
||||
background-color: #1f202e;
|
||||
}
|
||||
.main-sidebar .sidebar-brand a {
|
||||
color: #fff;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li.active a {
|
||||
background-color: #1f202e;
|
||||
color: #fff;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li ul.menu-dropdown li a {
|
||||
color: #868e96;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li ul.menu-dropdown li.active a {
|
||||
color: #fff;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li a:hover {
|
||||
background-color: #1f202e;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li.menu-header {
|
||||
color: #3f4257;
|
||||
}
|
||||
.main-sidebar .sidebar-user .sidebar-user-details .user-name {
|
||||
color: #ededed;
|
||||
}
|
||||
@ -0,0 +1,195 @@
|
||||
.bg-primary {
|
||||
background-color: #39065A !important;
|
||||
}
|
||||
.text-primary {
|
||||
color: #39065A !important;
|
||||
}
|
||||
a {
|
||||
color: #39065A;
|
||||
}
|
||||
a:hover {
|
||||
color: #c9253d;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #39065A;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
.btn-primary:focus,
|
||||
.btn-primary:focus:active,
|
||||
.btn-primary:active,
|
||||
.btn-primary:hover {
|
||||
background-color: #c9253d !important;
|
||||
}
|
||||
.btn-primary.disabled, .btn-primary:disabled {
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.btn-outline-primary {
|
||||
color: #39065A;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
border-color: #39065A;
|
||||
}
|
||||
|
||||
.btn-outline-primary:hover {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
|
||||
color: #39065A;
|
||||
background-color: transparent;
|
||||
}
|
||||
.btn-outline-primary:not([disabled]):not(.disabled):active, .btn-outline-primary:not([disabled]):not(.disabled).active,
|
||||
.show > .btn-outline-primary.dropdown-toggle {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.btn-link {
|
||||
font-weight: 400;
|
||||
color: #39065A;
|
||||
background-color: transparent;
|
||||
}
|
||||
.btn-link:hover {
|
||||
color: #c9253d;
|
||||
}
|
||||
.dropdown-item.active, .dropdown-item:active {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
}
|
||||
.custom-control-input:checked ~ .custom-control-label::before {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
}
|
||||
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.nav-pills .nav-link.active,
|
||||
.nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
}
|
||||
.page-link {
|
||||
color: #39065A;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ededed;
|
||||
}
|
||||
.page-item.active .page-link {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.page-link:focus, .page-link:hover {
|
||||
color: #c9253d;
|
||||
}
|
||||
|
||||
.badge-primary {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
}
|
||||
.progress-bar {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
}
|
||||
.list-group-item.active {
|
||||
color: #fff;
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.bg-primary {
|
||||
background-color: #39065A !important;
|
||||
}
|
||||
.border-primary {
|
||||
border-color: #39065A !important;
|
||||
}
|
||||
.text-primary {
|
||||
color: #39065A !important;
|
||||
}
|
||||
|
||||
.navbar.active {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.navbar-bg {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.form-control:focus {
|
||||
border-color: #39065A;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li.active a {
|
||||
background-color: #f9f9f9;
|
||||
color: #39065A;
|
||||
}
|
||||
.main-sidebar .sidebar-menu li ul.menu-dropdown li a:hover {
|
||||
color: #39065A;
|
||||
}
|
||||
|
||||
.main-sidebar .sidebar-menu li ul.menu-dropdown li.active a {
|
||||
color: #39065A;
|
||||
}
|
||||
.alert.alert-primary {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.card.card-primary {
|
||||
border-top: 2px solid #39065A;
|
||||
}
|
||||
.fc button.fc-state-active {
|
||||
background-color: #39065A;
|
||||
color: #fff;
|
||||
}
|
||||
.jqvmap-circle {
|
||||
background-color: #39065A;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
.weather ul li {
|
||||
border: 2px solid #39065A;
|
||||
color: #39065A;
|
||||
}
|
||||
.card-chat .chat-content .chat-item.chat-right .chat-details .chat-text {
|
||||
background-color: #39065A;
|
||||
color: #fff;
|
||||
}
|
||||
.nav-tabs .nav-item .nav-link {
|
||||
color: #39065A;
|
||||
}
|
||||
.nav-pills .nav-item .nav-link {
|
||||
color: #39065A;
|
||||
}
|
||||
.swal-button.swal-button--confirm {
|
||||
background-color: #39065A;
|
||||
}
|
||||
.page-item .page-link {
|
||||
color: #39065A;
|
||||
}
|
||||
.page-item.active .page-link {
|
||||
background-color: #39065A;
|
||||
border-color: #39065A;
|
||||
}
|
||||
.btn-group .btn.active {
|
||||
background-color: #39065A;
|
||||
color: #fff;
|
||||
}
|
||||
.media .media-right {
|
||||
color: #39065A;
|
||||
}
|
||||
.selectric-items li.selected,
|
||||
.selectric-items li.highlighted {
|
||||
background-color: #39065A;
|
||||
color: #fff;
|
||||
}
|
||||
.dropzone {
|
||||
border: 2px dashed #39065A;
|
||||
}
|
||||
.accordion .accordion-header[aria-expanded="true"] {
|
||||
background-color: #39065A;
|
||||
color: #fff;
|
||||
}
|
||||
.bootstrap-tagsinput .tag {
|
||||
background-color: #39065A;
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
.demo-settings {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 2002;
|
||||
}
|
||||
.demo-settings .demo-settings-toggle {
|
||||
transition: all .5s;
|
||||
-webkit-transition: all .5s;
|
||||
-o-transition: all .5s;
|
||||
-moz-transition: all .5s;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
-moz-border-radius: 50%;
|
||||
-ms-border-radius: 50%;
|
||||
-o-border-radius: 50%;
|
||||
background-color: #F73F52;
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.demo-settings .demo-settings-toggle i {
|
||||
font-size: 24px;
|
||||
}
|
||||
.demo-settings .demo-settings-options {
|
||||
transition: all .5s;
|
||||
-webkit-transition: all .5s;
|
||||
-o-transition: all .5s;
|
||||
-moz-transition: all .5s;
|
||||
transition-delay: .3s;
|
||||
-webkit-transition-delay: .3s;
|
||||
-o-transition-delay: .3s;
|
||||
-moz-transition-delay: .3s;
|
||||
z-index: -1;
|
||||
position: absolute;
|
||||
left: -170px;
|
||||
top: 0;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 30px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
.demo-settings .demo-settings-options ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.demo-settings .demo-settings-options ul li {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: #000;
|
||||
margin-right: 10px;
|
||||
margin-top: 15px;
|
||||
border-radius: 3px;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: all .5s;
|
||||
-webkit-transition: all .5s;
|
||||
-o-transition: all .5s;
|
||||
-moz-transition: all .5s;
|
||||
}
|
||||
.demo-settings .demo-settings-options ul li:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
.demo-settings.active .demo-settings-toggle {
|
||||
margin: 5px;
|
||||
box-shadow: none;
|
||||
line-height: 50px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.demo-settings.active .demo-settings-options {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
width: 220px;
|
||||
}
|
||||
.demo-settings.active .demo-settings-options ul li {
|
||||
opacity: 1;
|
||||
transition-delay: .3s;
|
||||
-webkit-transition-delay: .3s;
|
||||
-moz-transition-delay: .3s;
|
||||
-o-transition-delay: .3s;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=demo.css.map */
|
||||
@ -1,15 +0,0 @@
|
||||
package com.service;
|
||||
|
||||
import com.domain.fenduan;
|
||||
import com.untils.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface fenduanService {
|
||||
|
||||
public int insert(fenduan fenduan);
|
||||
public int delete(int id);
|
||||
public int edit(fenduan fenduan);
|
||||
public fenduan findById(int id);
|
||||
public List<fenduan> selectAll();
|
||||
}
|
||||
@ -1,582 +0,0 @@
|
||||
html,body {
|
||||
/* overflow-y: scroll; */
|
||||
margin: 0;
|
||||
}
|
||||
a {
|
||||
color: #3c8dbc;
|
||||
text-decoration:none;
|
||||
}
|
||||
/* new style */
|
||||
.skin-purple .main-sidebar {
|
||||
background: #fff;
|
||||
}
|
||||
.skin-purple .main-header .logo:hover {
|
||||
background: #0abdfe;
|
||||
}
|
||||
.skin-purple .main-header .navbar .sidebar-toggle:hover {
|
||||
/* background: #0abdfe; */
|
||||
}
|
||||
.skin-purple .main-header {
|
||||
min-height: 70px;
|
||||
padding: 0;
|
||||
}
|
||||
.skin-purple .main-header .logo {
|
||||
height: 50px;
|
||||
/* background: #0abdfe; */
|
||||
float: left;
|
||||
padding: 20px 0 0 15px;
|
||||
/* width: 230px; */
|
||||
}
|
||||
.skin-purple .main-header .navbar {
|
||||
height: 70px;
|
||||
background: linear-gradient(to right, #0abdfe, #67f0e0);
|
||||
/* margin-left: 230px; */
|
||||
}
|
||||
.winfo{margin-left: 230px;}
|
||||
.skin-purple .main-header .sidebar-toggle {
|
||||
display: inline-block;
|
||||
padding: 24px 15px;
|
||||
color: #fff;
|
||||
}
|
||||
.skin-purple .main-sidebar {
|
||||
padding-top: 75px;
|
||||
}
|
||||
.sidebar-menu > li {
|
||||
line-height: 1.8
|
||||
}
|
||||
.skin-purple .sidebar-menu > li > a {
|
||||
font-size: 16px;
|
||||
color: #666
|
||||
}
|
||||
.skin-purple .sidebar-menu>li:hover>a,
|
||||
.skin-purple .sidebar-menu>li.active>a {
|
||||
background: transparent;
|
||||
color: #666;
|
||||
border-left-color: transparent
|
||||
}
|
||||
.skin-purple .treeview-menu>li>a:hover {
|
||||
color: #fff
|
||||
}
|
||||
.skin-purple .sidebar-menu>li>.treeview-menu {
|
||||
background: #fff;
|
||||
}
|
||||
.sidebar-menu .treeview-menu > li > a {
|
||||
font-size: 16px;
|
||||
padding-left: 35px;
|
||||
color: #999
|
||||
}
|
||||
.sidebar-menu .treeview-menu > li:hover {
|
||||
background: #0abdfe;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.skin-purple .navbar-nav>li>a
|
||||
{
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
}
|
||||
.modal-body .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
|
||||
color: #0abdfe
|
||||
}
|
||||
.modal-body .nav-tabs>li>a {
|
||||
color: #555
|
||||
}
|
||||
.bg-olive {
|
||||
background-color: #0abdfe !important;
|
||||
}
|
||||
.dataTable .btn[class*='bg-']:hover {
|
||||
box-shadow: none
|
||||
}
|
||||
.btn-primary {
|
||||
background: #0abdfe;
|
||||
border-color: #0abdfe;
|
||||
}
|
||||
.box-body .nav>li>a {
|
||||
color: #666
|
||||
}
|
||||
.box-body .nav>li.active>a {
|
||||
color: #0abdfe;
|
||||
}
|
||||
|
||||
|
||||
/* tab 1*/
|
||||
.double {
|
||||
line-height: 58px;
|
||||
}
|
||||
.title .glyphicon{
|
||||
padding: 3px;
|
||||
font-size: 13px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
.data span.arrowup {
|
||||
color: #d88918;
|
||||
}
|
||||
.data span.arrowdown {
|
||||
color: #6bb10a;
|
||||
}
|
||||
.item-blue .glyphicon{
|
||||
background-color: #39a9ea;
|
||||
}
|
||||
.item-green {
|
||||
line-height: 58px;
|
||||
}
|
||||
.item-green .glyphicon{
|
||||
background-color: #6bb10a;
|
||||
line-height: 12px;
|
||||
}
|
||||
.item-orange .glyphicon{
|
||||
background-color:#d88918;
|
||||
}
|
||||
.item-red .glyphicon{
|
||||
background-color: #f14f4f;
|
||||
}
|
||||
.chart .chart-box {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* 数据表格label */
|
||||
.content-wrapper .data-type {
|
||||
/*width: 90%;*/
|
||||
margin: 10px 5px;
|
||||
border:1px solid #d4d4d4;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.data-type .title,
|
||||
.data-type .data {
|
||||
padding: 3px 12px;
|
||||
border-top: 1px solid #d4d4d4;
|
||||
overflow: hidden;
|
||||
height: 42px;
|
||||
}
|
||||
.data-type .title {
|
||||
line-height: 34px;
|
||||
border-right: 1px solid #d4d4d4;
|
||||
}
|
||||
|
||||
.data-type .data:last-child{
|
||||
border-right: 0;
|
||||
}
|
||||
.data-type .title{
|
||||
text-align: center;
|
||||
background: #ececec;
|
||||
}
|
||||
.data-type .data .line{
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
/* label行高度 */
|
||||
.data-type .data > label {
|
||||
line-height:36px;
|
||||
}
|
||||
.data-type .data > .form-group {
|
||||
line-height:36px;
|
||||
}
|
||||
.data-type .data.text {
|
||||
line-height:36px;
|
||||
}
|
||||
/* label行分隔符 */
|
||||
.data-type .data.border-right {
|
||||
border-right: 1px solid #d4d4d4;
|
||||
}
|
||||
|
||||
/* 表格双倍高度 */
|
||||
.data-type .title.rowHeight2x,
|
||||
.data-type .data.rowHeight2x {
|
||||
height:84px;
|
||||
}
|
||||
.data-type .title.rowHeight2x ,
|
||||
.data-type .data.rowHeight2x.text {
|
||||
line-height:78px;
|
||||
}
|
||||
/*.data-type .data.rowHeight2x > label {
|
||||
line-height:78px;
|
||||
}*/
|
||||
.data-type .title.editer,
|
||||
.data-type .data.editer {
|
||||
height:320px;
|
||||
}
|
||||
.data-type .title.editer {
|
||||
line-height:300px;
|
||||
}
|
||||
|
||||
/*清除parding*/
|
||||
.padding-clear {
|
||||
padding-right: 0px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
/* 文件上传 */
|
||||
/*a upload */
|
||||
.a-upload {
|
||||
padding: 4px 10px;
|
||||
height: 35px;
|
||||
line-height: 25px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
color: #888;
|
||||
background: #fafafa;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
*display: inline;
|
||||
*zoom: 1
|
||||
}
|
||||
.a-upload input {
|
||||
position: absolute;
|
||||
font-size: 100px;
|
||||
right: 0;
|
||||
top: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
cursor: pointer
|
||||
}
|
||||
.a-upload:hover {
|
||||
color: #444;
|
||||
background: #eee;
|
||||
border-color: #ccc;
|
||||
text-decoration: none
|
||||
}
|
||||
/* 医疗 */
|
||||
.search-box {
|
||||
display: inline-block
|
||||
}
|
||||
.input-sm {
|
||||
height: 32px;
|
||||
}
|
||||
.btn-create {
|
||||
margin-left: 10px;
|
||||
background-color: #0abdfe;
|
||||
border-color: #0abdfe;
|
||||
color: #fff;
|
||||
}
|
||||
.btn-create:hover,
|
||||
.btn-create:active,
|
||||
.btn-create:focus
|
||||
{
|
||||
color: #fff;
|
||||
}
|
||||
.pagination {
|
||||
margin: 0
|
||||
}
|
||||
.medical-modal {
|
||||
position:absolute;
|
||||
top:0%;
|
||||
left:0%;
|
||||
display:none;
|
||||
background:rgba(0,0,0,0.3);
|
||||
width:100%;
|
||||
height:100%;
|
||||
position:fixed;
|
||||
z-index:9999
|
||||
}
|
||||
.medical-modal .content {
|
||||
position: absolute;
|
||||
left: 35%;
|
||||
top: 25%;
|
||||
border-radius: 8px;
|
||||
width: 30%;
|
||||
height: 40%;
|
||||
background-color: #fff;
|
||||
}
|
||||
.pageitems, .jump {
|
||||
margin-left: 15px;
|
||||
display: inline-block;
|
||||
}
|
||||
.jumppage {
|
||||
width: 30px;
|
||||
text-align: center
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.subscribe .modal-dialog {
|
||||
width: 900px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
}
|
||||
.checklist {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.checklist .input-group {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.modal-page {
|
||||
margin-top: 20px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.modal-page .form-control {
|
||||
font-size: 12px;
|
||||
padding: 0;
|
||||
height: 26px;
|
||||
}
|
||||
.table-check {
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.daterange {
|
||||
margin:10px 10px 0;
|
||||
}
|
||||
.daterange .input-group .form-control {
|
||||
width: 20%;
|
||||
}
|
||||
.chart-title {
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
}
|
||||
.diaocha {
|
||||
line-height: 2
|
||||
}
|
||||
.diaocha h5{
|
||||
color: #f98d45;
|
||||
background: #f5f7f9;
|
||||
line-height: 2;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.diaocha div {
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid #dce1e7;
|
||||
}
|
||||
.diaocha div h5 {
|
||||
color: #555;
|
||||
background: transparent;
|
||||
padding-left: 0;
|
||||
}
|
||||
.diaocha label {
|
||||
font-weight: normal;
|
||||
}
|
||||
.diaocha .form-group {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.diaocha .options label {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.tizhi button{
|
||||
margin-right: 15px;
|
||||
}
|
||||
.innerform {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.fa-search {
|
||||
cursor: pointer
|
||||
}
|
||||
.line {
|
||||
margin-top: 10px;
|
||||
}
|
||||
input[type=radio]:focus {
|
||||
outline: none
|
||||
}
|
||||
input[type="radio"]{
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
outline: none;
|
||||
display:none
|
||||
}
|
||||
label input[type="radio"] {
|
||||
content: "\a0";
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
font-size: 16px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
margin-right: .4em;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #c7c6c6;
|
||||
line-height: 1;
|
||||
margin-top: -1px;
|
||||
}
|
||||
label input[type="radio"]:checked {
|
||||
border: 3px solid #0abdfe;
|
||||
}
|
||||
.right-menu {
|
||||
float: right;
|
||||
padding: 18px 30px 0 0;
|
||||
color: #fff;
|
||||
}
|
||||
.el-dropdown{color: #fff;}
|
||||
.avatar-wrapper img{width: 30px;height: 30px;border-radius: 15px;vertical-align: middle}
|
||||
.el-popper[x-placement^=bottom]{margin-top: 30px;}
|
||||
.el-dropdown-menu__item--divided{margin: 0;border:0 none;border-bottom: 1px solid #ebeef5}
|
||||
.help{
|
||||
padding: 0 10px;
|
||||
}
|
||||
.help .fa{ margin-right: 5px;}
|
||||
.el-main{
|
||||
background: #ecf0f5;
|
||||
}
|
||||
.el-menu{border: 0 none;}
|
||||
.main{
|
||||
height: 100vh;
|
||||
min-width: 800px;
|
||||
min-height: 600px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.main aside{
|
||||
overflow: visible;
|
||||
height: 100%;
|
||||
}
|
||||
.main aside.isClossTab{
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
cursor: pointer;
|
||||
font-size: 25px;
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
font-weight: bold;
|
||||
border-right: 1px solid #807c7c;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.main aside .menu{
|
||||
width: 100%;
|
||||
border-right:0;
|
||||
}
|
||||
.el-menu .fa{
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
}
|
||||
.el-menu-item a{
|
||||
color: #303133
|
||||
}
|
||||
.el-menu-item:hover,.el-menu-item.is-active {
|
||||
color: #fff;
|
||||
background: #0abdfe;
|
||||
}
|
||||
.el-menu-item:hover a,.el-menu-item.is-active a{
|
||||
color: #fff;
|
||||
}
|
||||
.el-submenu__title:hover{background: none;}
|
||||
.main-footer {
|
||||
background: #fff;
|
||||
padding: 15px 0;
|
||||
color: #444;
|
||||
}
|
||||
/* title */
|
||||
.content-header {
|
||||
position: relative;
|
||||
padding: 15px 15px 0 15px;
|
||||
/* margin-top: 70px; */
|
||||
}
|
||||
.content-header > h1 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
font-weight: normal;
|
||||
}
|
||||
.content-header > h1 > small {
|
||||
font-size: 15px;
|
||||
display: inline-block;
|
||||
padding-left: 4px;
|
||||
font-weight: 300;
|
||||
}
|
||||
.content-header > .breadcrumb {
|
||||
float: right;
|
||||
background: transparent;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 12px;
|
||||
padding: 7px 5px;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 10px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
/* */
|
||||
.app-container{
|
||||
background: #fff;
|
||||
margin: 15px 30px 15px 15px;
|
||||
|
||||
}
|
||||
.pagiantion{
|
||||
text-align: right;
|
||||
padding: 15px;
|
||||
}
|
||||
.box {
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
background: #ffffff;
|
||||
border-top: 3px solid #3c8dbc;
|
||||
padding: 10px;
|
||||
margin-bottom: 20px;
|
||||
width: 100%;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.filter-container{
|
||||
padding:10px 0 15px 0;
|
||||
}
|
||||
.main-container{margin-top: 70px;}
|
||||
.filter-container .el-button,.filter-container .el-input__inner{
|
||||
padding: 0 15px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
}
|
||||
.el-aside{overflow: hidden;}
|
||||
.el-submenu .el-menu-item a{
|
||||
display: block;
|
||||
height: 50px;
|
||||
}
|
||||
.el-menu--collapse .el-submenu__icon-arrow{ display: none}
|
||||
/* .el-container{position: relative;} */
|
||||
/* foot */
|
||||
.el-footer{
|
||||
position: absolute;
|
||||
left: 180px;
|
||||
right: 0px;
|
||||
bottom: -80px;
|
||||
}
|
||||
.boxMain .el-upload--text{
|
||||
position:static;
|
||||
}
|
||||
.boxMain >div{
|
||||
display: inline-block;
|
||||
}
|
||||
.excelTitle{
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
line-height: 40px;
|
||||
}
|
||||
.excelTitle .el-button{
|
||||
float: left;
|
||||
}
|
||||
.excelTime{
|
||||
padding: 10px 0;
|
||||
text-align: right;
|
||||
}
|
||||
.exceTable{
|
||||
width: 100%;
|
||||
border-right: 1px solid #e6e6e6;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
.exceTable tr,.exceTable td{
|
||||
border-left: 1px solid #e6e6e6;
|
||||
border-top: 1px solid #e6e6e6;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.exceTable .headBody{
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
}
|
||||
.tabletrBg{
|
||||
background: #fcfcfc;
|
||||
text-align: right;
|
||||
}
|
||||
.textCenter{
|
||||
text-align: center
|
||||
}
|
||||
.checkScrol{
|
||||
height: 277px;
|
||||
overflow-y:scroll; ;
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
package com.service;
|
||||
|
||||
import com.domain.timu;
|
||||
import com.untils.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface timuService {
|
||||
public PageResult SelectPage(timu timu, int size, int current);
|
||||
public int insert(timu timu);
|
||||
public int delete(int id);
|
||||
public int edit(timu timu);
|
||||
public timu findById(int id);
|
||||
public List<timu> selectAll();
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package com.service;
|
||||
|
||||
import com.domain.user;
|
||||
import com.untils.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface userService {
|
||||
public PageResult SelectPage(user user, int size, int current);
|
||||
public PageResult SelectPageStudent(user user, int size, int current);
|
||||
public int insert(user user);
|
||||
public int delete(int id);
|
||||
public int edit(user user);
|
||||
public user findById(int id);
|
||||
public user login(user user);
|
||||
public user selectByUserName(String username);
|
||||
public List<user> selectAllByStudent();
|
||||
}
|
||||
@ -0,0 +1,142 @@
|
||||
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("ut")
|
||||
public class ut {
|
||||
@TableId(type= IdType.AUTO)
|
||||
private int id;
|
||||
@TableField("userId")
|
||||
private int userId;
|
||||
|
||||
public int getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(int userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getDa() {
|
||||
return da;
|
||||
}
|
||||
|
||||
public void setDa(String da) {
|
||||
this.da = da;
|
||||
}
|
||||
|
||||
@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;
|
||||
|
||||
public double getFen() {
|
||||
return fen;
|
||||
}
|
||||
|
||||
public void setFen(double fen) {
|
||||
this.fen = fen;
|
||||
}
|
||||
|
||||
@TableField("three")
|
||||
private String three;
|
||||
|
||||
|
||||
@TableField("four")
|
||||
private String four;
|
||||
|
||||
|
||||
|
||||
@TableField("ok")
|
||||
private String ok;
|
||||
|
||||
public int getMokuaiId() {
|
||||
return mokuaiId;
|
||||
}
|
||||
|
||||
public void setMokuaiId(int mokuaiId) {
|
||||
this.mokuaiId = mokuaiId;
|
||||
}
|
||||
|
||||
@TableField("da")
|
||||
private String da;
|
||||
@TableField("fen")
|
||||
private double fen;
|
||||
|
||||
|
||||
@TableField("mokuaiId")
|
||||
private int mokuaiId;
|
||||
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
package com.service;
|
||||
|
||||
import com.domain.all;
|
||||
import com.domain.ut;
|
||||
import com.untils.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface utService {
|
||||
public PageResult SelectPage(ut ut, int size, int current);
|
||||
public int insert(ut ut);
|
||||
public int delete(int id);
|
||||
public int edit(ut ut);
|
||||
public ut findById(int id);
|
||||
|
||||
public List<all> selectAll(int userId);
|
||||
|
||||
public List<all> selectAll1();
|
||||
|
||||
public List<ut> selectDetails(String biaoshi);
|
||||
|
||||
}
|
||||
@ -1,150 +0,0 @@
|
||||
package com.service.Imple;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.dao.UserDao;
|
||||
import com.domain.all;
|
||||
import com.domain.fenduan;
|
||||
import com.domain.ut;
|
||||
import com.domain.ut;
|
||||
import com.service.utService;
|
||||
import com.untils.PageResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class utServiceImple implements utService {
|
||||
@Autowired
|
||||
private com.dao.utDao utDao;
|
||||
@Autowired
|
||||
private com.dao.fenduanDao fenduanDao;
|
||||
@Autowired
|
||||
private UserDao userDao;
|
||||
@Override
|
||||
public PageResult SelectPage(ut ut, int size, int current) {
|
||||
try
|
||||
{
|
||||
|
||||
IPage page=new Page(current,size);
|
||||
QueryWrapper<ut> queryWrapper = new QueryWrapper<ut>();
|
||||
queryWrapper.like("them",ut.getThem());
|
||||
queryWrapper.orderByAsc("xuhao");
|
||||
|
||||
page=utDao.selectPage(page, queryWrapper);
|
||||
while(true)
|
||||
{
|
||||
if(page.getRecords().size()==0&¤t>=1)
|
||||
{
|
||||
page=new Page(current--,size);
|
||||
page=utDao.selectPage(page, queryWrapper);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return new PageResult(page.getTotal(),page.getRecords());
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(ut ut) {
|
||||
|
||||
int i=55;
|
||||
if((!ut.getDa().equals(ut.getOk())))
|
||||
{
|
||||
ut.setFen(0);
|
||||
}
|
||||
|
||||
|
||||
return utDao.insert(ut);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(int id) {
|
||||
return utDao.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int edit(ut ut) {
|
||||
return utDao.updateById(ut);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ut findById(int id) {
|
||||
return utDao.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<all> selectAll(int userId) {
|
||||
QueryWrapper<ut> queryWrapper = new QueryWrapper<ut>();
|
||||
queryWrapper.eq("userId",userId);
|
||||
queryWrapper.select("sum(fen) as fen,biaoshi");
|
||||
queryWrapper.groupBy("biaoshi");
|
||||
List<Map<String, Object>> list=utDao.selectMaps(queryWrapper);
|
||||
|
||||
List<all> list1=new ArrayList<>();
|
||||
for (Map item:list)
|
||||
{
|
||||
all a=new all(userId,item.get("biaoshi").toString(),Double.parseDouble(item.get("fen").toString()));
|
||||
|
||||
double fen=Double.parseDouble(item.get("fen").toString());
|
||||
QueryWrapper<fenduan> queryWrapper1 = new QueryWrapper<fenduan>();
|
||||
queryWrapper1.ge("end",fen).le("start",fen);
|
||||
fenduan f=fenduanDao.selectOne(queryWrapper1);
|
||||
a.setGuo(f.getGuo());
|
||||
list1.add(a);
|
||||
}
|
||||
return list1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ut> selectDetails(String biaoshi) {
|
||||
QueryWrapper<ut> queryWrapper = new QueryWrapper<ut>();
|
||||
queryWrapper.eq("biaoshi",biaoshi);
|
||||
return utDao.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<all> selectAll1() {
|
||||
QueryWrapper<ut> queryWrapper = new QueryWrapper<ut>();
|
||||
|
||||
queryWrapper.select("sum(fen) as fen,userId,biaoshi");
|
||||
queryWrapper.groupBy("userId").groupBy("biaoshi");
|
||||
List<Map<String, Object>> list=utDao.selectMaps(queryWrapper);
|
||||
|
||||
List<all> list1=new ArrayList<>();
|
||||
for (Map item:list)
|
||||
{
|
||||
all a=new all(Integer.parseInt(item.get("userId").toString()),item.get("biaoshi").toString(),Double.parseDouble(item.get("fen").toString()));
|
||||
|
||||
double fen=Double.parseDouble(item.get("fen").toString());
|
||||
QueryWrapper<fenduan> queryWrapper1 = new QueryWrapper<fenduan>();
|
||||
queryWrapper1.ge("end",fen).le("start",fen);
|
||||
fenduan f=fenduanDao.selectOne(queryWrapper1);
|
||||
a.setGuo(f.getGuo());
|
||||
|
||||
String username= userDao.selectById(item.get("userId").toString()).getUsername();
|
||||
a.setUsername(username);
|
||||
list1.add(a);
|
||||
}
|
||||
return list1;
|
||||
}
|
||||
}
|
||||
@ -1,55 +0,0 @@
|
||||
package com.controller;
|
||||
|
||||
import com.domain.fenduan;
|
||||
import com.untils.PageResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/fenduan")
|
||||
public class fenduanController {
|
||||
@Autowired
|
||||
public com.service.fenduanService fenduanService;
|
||||
|
||||
@PostMapping("/Save")
|
||||
public int Save(@RequestBody fenduan fenduan)
|
||||
{
|
||||
return fenduanService.insert(fenduan);
|
||||
|
||||
}
|
||||
@DeleteMapping("/Delete/{id}")
|
||||
public int Delete(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return fenduanService.delete(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping("/findById/{id}")
|
||||
public fenduan findById(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return fenduanService.findById(id);
|
||||
}
|
||||
@PutMapping("/Update")
|
||||
public int Update(@RequestBody fenduan fenduan)
|
||||
{
|
||||
|
||||
return fenduanService.edit(fenduan);
|
||||
}
|
||||
|
||||
@GetMapping("/selectAll")
|
||||
public List<fenduan> selectAll()
|
||||
{
|
||||
|
||||
return fenduanService.selectAll();
|
||||
}
|
||||
}
|
||||
@ -1,147 +0,0 @@
|
||||
html,body {
|
||||
/* overflow-y: scroll; */
|
||||
margin: 0;
|
||||
}
|
||||
.login-container .input{
|
||||
display: inline-block;
|
||||
height: 47px;
|
||||
width: 85%;
|
||||
|
||||
}
|
||||
.login-container .input input {
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 0px;
|
||||
padding: 12px 5px 12px 0;
|
||||
height: 47px;
|
||||
}
|
||||
.login-container .el-form-item {
|
||||
border: 1px solid #DCDFE6;
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
color: #454545;
|
||||
}
|
||||
.login-container .el-button--medium{
|
||||
height: 50px;
|
||||
line-height: 20px;
|
||||
font-size: 22px;
|
||||
}
|
||||
.login-container .loginBox{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: url('./../img/logingBg.png') no-repeat 100% 100%;
|
||||
position: relative;
|
||||
}
|
||||
.login-container .loginBox .el-form-item__content{
|
||||
line-height: initial;
|
||||
}
|
||||
.login-container form {
|
||||
position: absolute;
|
||||
left: 20%;
|
||||
top: 50%;
|
||||
width: 520px;
|
||||
padding: 35px 35px 15px 35px;
|
||||
margin: -200px 0 0 0;
|
||||
background:#f5f5f5;
|
||||
}
|
||||
.login-container .tips {
|
||||
font-size: 14px;
|
||||
/* // color: #fff; */
|
||||
margin-bottom: 10px;
|
||||
/* span {
|
||||
&:first-of-type {
|
||||
margin-right: 16px;
|
||||
}
|
||||
} */
|
||||
}
|
||||
.login-container .svg-container {
|
||||
padding: 6px 5px 6px 15px;
|
||||
color: #889aa4;
|
||||
vertical-align: middle;
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
/* &_login {
|
||||
font-size: 20px;
|
||||
} */
|
||||
}
|
||||
.login-container .title-container {
|
||||
position: relative;
|
||||
|
||||
|
||||
}
|
||||
.login-container .title-container .title {
|
||||
font-size: 26px;
|
||||
/* // font-weight: 400; */
|
||||
color: #333;
|
||||
margin: 0px auto 40px auto;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
.login-container .title-container .set-language {
|
||||
/* // color: #fff; */
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 0px;
|
||||
}
|
||||
.login-container {
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: #2d3a4b;
|
||||
background: url('./../img/bg.jpg');
|
||||
-moz-background-size: 100% 100%;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.login-container .show-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 7px;
|
||||
font-size: 16px;
|
||||
color: #889aa4;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.login-container .thirdparty-button {
|
||||
position: absolute;
|
||||
right: 35px;
|
||||
bottom: 28px;
|
||||
}
|
||||
.logoInfo{
|
||||
padding-bottom:35px;
|
||||
text-align: center;
|
||||
}
|
||||
.logoInfo span{
|
||||
font-size: 22px;
|
||||
padding: 0 10px;
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
.logoInfo .logo{
|
||||
background: url(../img/loginLogo.png) no-repeat;
|
||||
display:inline-block;
|
||||
width: 200px;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.tipInfo{font-size: 12px;}
|
||||
.tipInfo span{
|
||||
color: #66b1ff;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.tipInfo .el-checkbox{
|
||||
margin: 0;
|
||||
}
|
||||
.svg-container span{
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: inline-block;
|
||||
}
|
||||
.svg-container .user{
|
||||
background: url(../img/user.png) no-repeat 0 50%;
|
||||
}
|
||||
.svg-container .username{
|
||||
background: url(../img/pwd.png) no-repeat 0 50%;
|
||||
}
|
||||
@ -1,245 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
<!-- 引入组件库 -->
|
||||
<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 class="hold-transition skin-purple sidebar-mini">
|
||||
<div id="app">
|
||||
|
||||
<el-container>
|
||||
<el-header class="main-header" style="height:70px;">
|
||||
<nav class="navbar navbar-static-top" :class=''>
|
||||
<!-- Logo -->
|
||||
<a href="#" class="logo" style="text-align:center;">
|
||||
|
||||
<span>心理测评系统</span>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
<input type="image" src="../img/展开.svg" style="width: 30px;position: absolute;top:15px;left: 160px" style="" @click="q"/>
|
||||
<div class="right-menu">
|
||||
|
||||
<el-dropdown class="avatar-container right-menu-item" trigger="click">
|
||||
<div class="avatar-wrapper">
|
||||
|
||||
欢迎你:{{username}}
|
||||
</div>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item divided>
|
||||
|
||||
<span style="display:block;"><a href="/logout">退出</a></span>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</nav>
|
||||
</el-header>
|
||||
<el-container>
|
||||
|
||||
<el-menu :collapse="isCollapse" class="el-menu-vertical-demo" >
|
||||
<el-submenu v-for="menu in menuList" :index="menu.path">
|
||||
<template slot="title">
|
||||
<i class="fa" :class="menu.icon"></i>
|
||||
|
||||
<span slot="title"> {{menu.title}}</span>
|
||||
</template>
|
||||
<template v-for="child in menu.children">
|
||||
<el-menu-item :index="child.path">
|
||||
<a :href="child.linkUrl" target="right" @click="add(child)">{{child.title}}</a>
|
||||
</el-menu-item>
|
||||
</template>
|
||||
</el-submenu>
|
||||
</el-menu>
|
||||
|
||||
|
||||
<div style="width: 100%">
|
||||
<el-tag @click="table">桌面</el-tag>
|
||||
<el-tag
|
||||
v-for="tag in tags"
|
||||
:key="tag.name"
|
||||
|
||||
@click="t(tag.s)"
|
||||
|
||||
|
||||
>
|
||||
{{tag.name}}
|
||||
</el-tag>
|
||||
<iframe name="right" width="100%" height="600px" frameborder="0" src="table.html" id="f"></iframe>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</el-container>
|
||||
</el-container>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
username: null,//用户名
|
||||
menuList: [ ],
|
||||
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": "timu.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": []
|
||||
}
|
||||
|
||||
|
||||
|
||||
]
|
||||
}]
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
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>
|
||||
@ -1,60 +0,0 @@
|
||||
package com.controller;
|
||||
|
||||
import com.domain.timu;
|
||||
import com.service.timuService;
|
||||
import com.untils.PageResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/timu")
|
||||
public class timuController {
|
||||
@Autowired
|
||||
public com.service.timuService timuService;
|
||||
|
||||
@PostMapping("/Save")
|
||||
public int Save(@RequestBody timu timu)
|
||||
{
|
||||
return timuService.insert(timu);
|
||||
|
||||
}
|
||||
@DeleteMapping("/Delete/{id}")
|
||||
public int Delete(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return timuService.delete(id);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/SelectPage/{size}/{current}")
|
||||
public PageResult selectPage(@PathVariable Integer size, @PathVariable Integer current, timu timu)
|
||||
{
|
||||
return timuService.SelectPage(timu,size,current);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping("/findById/{id}")
|
||||
public timu findById(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return timuService.findById(id);
|
||||
}
|
||||
@PutMapping("/Update")
|
||||
public int Update(@RequestBody timu timu)
|
||||
{
|
||||
|
||||
return timuService.edit(timu);
|
||||
}
|
||||
|
||||
@GetMapping("/selectAll")
|
||||
public List<timu> selectAll()
|
||||
{
|
||||
|
||||
return timuService.selectAll();
|
||||
}
|
||||
}
|
||||
@ -1,96 +0,0 @@
|
||||
package com.controller;
|
||||
|
||||
import com.domain.user;
|
||||
import com.service.userService;
|
||||
import com.untils.PageResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/user")
|
||||
public class userController {
|
||||
@Autowired
|
||||
public userService userService;
|
||||
|
||||
@PostMapping("/Save")
|
||||
public int Save(@RequestBody user user)
|
||||
{
|
||||
return userService.insert(user);
|
||||
|
||||
}
|
||||
@DeleteMapping("/Delete/{id}")
|
||||
public int Delete(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return userService.delete(id);
|
||||
}
|
||||
@PutMapping("/Update")
|
||||
public int Update(@RequestBody user user)
|
||||
{
|
||||
return userService.edit(user);
|
||||
}
|
||||
|
||||
@GetMapping("/SelectPage/{size}/{current}")
|
||||
public PageResult selectPage(@PathVariable Integer size, @PathVariable Integer current,user user)
|
||||
{
|
||||
return userService.SelectPage(user,size,current);
|
||||
}
|
||||
|
||||
@GetMapping("/SelectPageStudent/{size}/{current}")
|
||||
public PageResult selectPageStudent(@PathVariable Integer size, @PathVariable Integer current,user user)
|
||||
{
|
||||
return userService.SelectPageStudent(user,size,current);
|
||||
}
|
||||
|
||||
@GetMapping("/findById/{id}")
|
||||
public user findById(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return userService.findById(id);
|
||||
}
|
||||
|
||||
@PostMapping("/login")
|
||||
public Boolean login(@RequestBody user user)
|
||||
{
|
||||
user user1= userService.login(user);
|
||||
if (user1==null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
//获取当前登录用户的用户名
|
||||
@GetMapping("/getUsername")
|
||||
public String getUsername(){
|
||||
|
||||
org.springframework.security.core.userdetails.User user =
|
||||
(org.springframework.security.core.userdetails.User)
|
||||
SecurityContextHolder.getContext().getAuthentication().getPrincipal();
|
||||
return user.getUsername();
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/getByUserName")
|
||||
public int getByUserName(String username){
|
||||
|
||||
return userService.selectByUserName(username).getType();
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/getByUserId")
|
||||
public int getByUserId(String username){
|
||||
|
||||
return userService.selectByUserName(username).getId();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1,85 +0,0 @@
|
||||
package com.controller;
|
||||
|
||||
import com.domain.all;
|
||||
import com.domain.ut;
|
||||
import com.untils.PageResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/ut")
|
||||
public class utController {
|
||||
@Autowired
|
||||
public com.service.utService utService;
|
||||
|
||||
@PostMapping("/Save")
|
||||
public int Save(@RequestBody List<ut> uts)
|
||||
{
|
||||
UUID uuid = UUID.randomUUID();
|
||||
|
||||
for (ut item:uts)
|
||||
{
|
||||
item.setBiaoshi(uuid.toString());
|
||||
utService.insert(item);
|
||||
}
|
||||
return 1;
|
||||
|
||||
}
|
||||
@DeleteMapping("/Delete/{id}")
|
||||
public int Delete(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return utService.delete(id);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/SelectPage/{size}/{current}")
|
||||
public PageResult selectPage(@PathVariable Integer size, @PathVariable Integer current, ut ut)
|
||||
{
|
||||
return utService.SelectPage(ut,size,current);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping("/findById/{id}")
|
||||
public ut findById(@PathVariable Integer id)
|
||||
{
|
||||
|
||||
return utService.findById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@PutMapping("/Update")
|
||||
public int Update(@RequestBody ut ut)
|
||||
{
|
||||
|
||||
return utService.edit(ut);
|
||||
}
|
||||
@GetMapping("/selectAll/{userId}")
|
||||
public List<all> selectAll(@PathVariable int userId)
|
||||
{
|
||||
|
||||
return utService.selectAll(userId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/selectAll1")
|
||||
public List<all> selectAll1()
|
||||
{
|
||||
|
||||
return utService.selectAll1();
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/selectDetails/{biaoshi}")
|
||||
public List<ut> selectDetails(@PathVariable String biaoshi) {
|
||||
return utService.selectDetails(biaoshi);
|
||||
}
|
||||
}
|
||||
@ -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,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;
|
||||
}
|
||||
@ -1,133 +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 */;
|
||||
/*
|
||||
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…
Reference in new issue