adjust something

Signed-off-by: Chenx221 <chenx221@yandex.com>
This commit is contained in:
Chenx221 2023-06-08 15:50:12 +08:00
parent bbef8dac7f
commit 7a4370dd5b
3 changed files with 15 additions and 12 deletions

View File

@ -16,13 +16,13 @@
</bean>
<!-- 配置Spring Security -->
<security:http auto-config="true">
<security:csrf disabled="true"/>
<!-- <security:intercept-url pattern="/login" access="permitAll()"/>-->
<!-- 限制访问↓-->
<security:intercept-url pattern="/dashboard" access="hasRole('admin')"/>
<security:intercept-url pattern="/student/**" access="hasRole('admin')"/>
<!-- 未登录状态下会自动跳转到/login登录页-->
<security:form-login login-page="/login"
default-target-url="/dashboard"
authentication-failure-handler-ref="customAuthenticationFailureHandler"/>

View File

@ -133,7 +133,7 @@
<div class="container d-flex justify-content-center">
<button type="button" class="btn btn-primary" onclick="location.href='../dashboard'">返回</button>
<div class="table-container rounded-4 shadow-3-strong"
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px;">
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px;max-width: 60vw">
<table class="table table-striped table-hover border-primary">
<thead>
<tr>
@ -159,10 +159,10 @@
</tbody>
</table>
</div>
<div class="container">
<div class="card rounded-4 shadow-3-strong">
<div class="container" style="min-width: 190px">
<div class="card rounded-4 shadow-3-strong" style="min-width: 180px">
<h5 class="card-header">信息修改</h5>
<div class="card-body">
<div class="card-body" style="min-width: 175px">
<form action="modinfo" method="post">
<div class="row mb-2">
<div class="col-12">

View File

@ -133,7 +133,7 @@
<div class="container d-flex justify-content-center">
<button type="button" class="btn btn-primary" onclick="location.href='../dashboard'">返回</button>
<div class="table-container rounded-4 shadow-3-strong"
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px;">
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px">
<table class="table table-striped table-hover border-primary">
<thead>
<tr>
@ -159,15 +159,16 @@
</tbody>
</table>
</div>
<div class="container">
<div class="card rounded-4 shadow-3-strong">
<div class="container" style="min-width: 190px">
<div class="card rounded-4 shadow-3-strong" style="min-width: 180px">
<h5 class="card-header">信息修改</h5>
<div class="card-body">
<div class="card-body" style="min-width: 175px">
<form action="modinfo" method="post">
<div class="row mb-2">
<div class="col-12">
<div class="form-outline">
<input type="number" id="typeText1" class="form-control" required name="id"/>
<input type="number" id="typeText1" class="form-control" required
name="id"/>
<label class="form-label" for="typeText1">ID (必填)</label>
</div>
</div>
@ -218,7 +219,9 @@
</div>
<div class="row mb-2">
<div class="col-lg-6">
<button type="submit" class="btn btn-primary" data-mdb-toggle="tooltip" data-mdb-placement="top" title="留空为不做修改">更改</button>
<button type="submit" class="btn btn-primary" data-mdb-toggle="tooltip"
data-mdb-placement="top" title="留空为不做修改">更改
</button>
</div>
<div class="col-lg-6">
<button type="reset" class="btn btn-secondary">重置</button>