Compare commits
2 Commits
dcab19a765
...
3ab267754c
Author | SHA1 | Date |
---|---|---|
Kane Wang | 3ab267754c | |
Kane Wang | 8d72241618 |
|
@ -2,7 +2,7 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2022-12-15 11:11:21
|
* @Date: 2022-12-15 11:11:21
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-01-11 09:18:29
|
* @LastEditTime: 2023-01-13 10:08:04
|
||||||
* @FilePath: \AdminSys\src\main\java\com\cpic\xim\web\controllers\account\P13AccountCheckController.java
|
* @FilePath: \AdminSys\src\main\java\com\cpic\xim\web\controllers\account\P13AccountCheckController.java
|
||||||
* @Description: P13账号验证用Controller。
|
* @Description: P13账号验证用Controller。
|
||||||
*
|
*
|
||||||
|
@ -30,7 +30,13 @@ import com.cpic.xim.myutils.account.LdapAccountCheck;
|
||||||
public class P13AccountCheckController
|
public class P13AccountCheckController
|
||||||
{
|
{
|
||||||
/*****************************************************
|
/*****************************************************
|
||||||
*
|
* 根据用户提供的P09工号或者P13账号密码,查找用户信息,并AD域服务器验证p13账号密码。
|
||||||
|
* 验证通过即返回人员信息。
|
||||||
|
* 验证不通过result.success值为false,并在message提供失败原因。
|
||||||
|
* @param param 由json格式转换的请求参数
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return 返回一个P13AccountCheckResult对象,其中提供验证结果
|
||||||
*****************************************************/
|
*****************************************************/
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@RequestMapping( path = "/p13_account_check.do")
|
@RequestMapping( path = "/p13_account_check.do")
|
||||||
|
@ -54,7 +60,6 @@ public class P13AccountCheckController
|
||||||
staff = null;
|
staff = null;
|
||||||
result.setMessage( "人员工号或P13账号不存在!" );
|
result.setMessage( "人员工号或P13账号不存在!" );
|
||||||
result.setSuccess( false );
|
result.setSuccess( false );
|
||||||
|
|
||||||
}
|
}
|
||||||
catch ( ClassNotFoundException error )
|
catch ( ClassNotFoundException error )
|
||||||
{
|
{
|
||||||
|
@ -95,8 +100,7 @@ public class P13AccountCheckController
|
||||||
HttpSession session = request.getSession();
|
HttpSession session = request.getSession();
|
||||||
|
|
||||||
session.setAttribute( "staff_info", staff );
|
session.setAttribute( "staff_info", staff );
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
{
|
{
|
||||||
result.setSuccess( false );
|
result.setSuccess( false );
|
||||||
result.setMessage( "密码错误!" );
|
result.setMessage( "密码错误!" );
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-01-12 15:01:22
|
* @Date: 2023-01-12 15:01:22
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-01-12 15:15:59
|
* @LastEditTime: 2023-01-13 09:23:55
|
||||||
* @FilePath: \AdminSys\src\main\java\com\cpic\xim\web\filters\token\TokenFilter.java
|
* @FilePath: \AdminSys\src\main\java\com\cpic\xim\web\filters\token\TokenFilter.java
|
||||||
* @Description: 用于检查token的过滤器
|
* @Description: 用于检查token的过滤器
|
||||||
*
|
*
|
||||||
|
@ -22,6 +22,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
@SuppressWarnings( "unused")
|
@SuppressWarnings( "unused")
|
||||||
public class TokenFilter implements Filter
|
public class TokenFilter implements Filter
|
||||||
{
|
{
|
||||||
|
/*****************************************************
|
||||||
|
*
|
||||||
|
*****************************************************/
|
||||||
@Override
|
@Override
|
||||||
public void doFilter( ServletRequest req, ServletResponse resp, FilterChain chain )
|
public void doFilter( ServletRequest req, ServletResponse resp, FilterChain chain )
|
||||||
throws ServletException, IOException
|
throws ServletException, IOException
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2022-12-14 15:23:54
|
* @Date: 2022-12-14 15:23:54
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-01-11 14:40:11
|
* @LastEditTime: 2023-01-13 09:35:07
|
||||||
* @FilePath: \admin_system\src\views\account\Login.vue
|
* @FilePath: \admin_system\src\views\account\Login.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -35,10 +35,10 @@
|
||||||
<label class="form-label">验证码</label>
|
<label class="form-label">验证码</label>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-input type="text"></el-input>
|
<el-input type="text" disabled></el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-button type="danger" class="el-button-block" @click="getValidateCode()">获取验证码</el-button>
|
<el-button type="danger" disabled class="el-button-block" @click="getValidateCode()">获取验证码</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -2,22 +2,62 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-01-12 14:43:46
|
* @Date: 2023-01-12 14:43:46
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-01-12 14:43:48
|
* @LastEditTime: 2023-01-13 16:53:55
|
||||||
* @FilePath: \admin_system\src\views\info\StaffInfo.vue
|
* @FilePath: \admin_system\src\views\info\StaffInfo.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div>员工信息查询</div>
|
<div class="query_box">
|
||||||
|
<el-form inline="true">
|
||||||
|
<el-form-item label="员工工号或P13账号:">
|
||||||
|
<el-row :gutter="10" class="el-row">
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-input v-model="query_param.staff_code"></el-input>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-button type="danger">查询</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "staff-info",
|
name: "staff-info",
|
||||||
|
data()
|
||||||
|
{
|
||||||
|
return {
|
||||||
|
query_param: {
|
||||||
|
staff_code: "",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.el-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-label {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.query_box {
|
||||||
|
width: 600px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.query_box:hover {
|
||||||
|
box-shadow: 0px 0px 3px 3px #cccccc;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue