Commit 68a0700e authored by 赵啸非's avatar 赵啸非

考勤异常添加绩效考核

parent bfde41a9
...@@ -5,41 +5,20 @@ ...@@ -5,41 +5,20 @@
</template> </template>
<script> <script>
import jwt_decode from "jwt-decode";
export default { export default {
name: "sso",
created() {},
mounted() { mounted() {
let token = this.$route.query.token; let token = this.$route.query.token;
console.log("token:" + token); let siteid = this.$route.query.siteid;
console.log("解析后的token:", jwt_decode(token));
//const decode = jwt_decode(data.normal_login_token).accountId; // 解析
if (token) { if (token) {
//本地登录后跳转 window.sessionStorage.setItem("token", token);
this.form.loginName = jwt_decode(token).userInfo.account; window.sessionStorage.setItem("siteid", siteid);
this.form.password = jwt_decode(token).userInfo.password; this.$router.push("/index"); // 有token直接跳转首页
this.$route.query.sysName
? localStorage.setItem("sysName", this.$route.query.sysName)
: "";
this.$route.query.sysLogo
? localStorage.setItem("sysLogo", this.$route.query.sysLogo)
: "";
this.$route.query.sysName
? (document.title = this.$route.query.sysName)
: "";
/* this.form.loginName="admin"
this.form.password="scsmile"*/
this.login();
//window.sessionStorage.setItem("token", token);
// this.$router.push('/index') // 有token直接跳转首页
} else { } else {
this.$message({ this.$message({
message: "没有权限,正在跳转登录页面...", message: "没有权限,正在跳转登录页面...",
center: true, center: true,
}); });
setTimeout(function() { setTimeout(function () {
window.location.href = window.location.href =
process.env.VUE_APP_PORTAL_URL == "undefined" process.env.VUE_APP_PORTAL_URL == "undefined"
? "http://192.168.0.98:11072" ? "http://192.168.0.98:11072"
...@@ -48,37 +27,6 @@ export default { ...@@ -48,37 +27,6 @@ export default {
}, 1000); }, 1000);
} }
}, },
methods: {
login() {
this.loading = true;
this.$post("/login/login", this.form)
.then(this.loginSuccess)
.catch(this.loginFail);
},
loginSuccess({ data }) {
console.log("userData", data);
this.$store.commit("setUserData", data);
this.$router.push("/index"); // 有token直接跳转首页
/* this.$router.replace({
path: this.redirect,
});*/
},
loginFail(error) {
this.loading = false;
this.$message.error(error.message);
},
},
data() {
return {
form: {
loginName: "",
password: "",
securityCode: "",
},
redirect: this.$route.query.redirect,
loading: true,
};
},
}; };
</script> </script>
......
...@@ -139,7 +139,7 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At ...@@ -139,7 +139,7 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
attendSaveReq.setActualAttendTime(entity.getActualAttendanceDateTime()); attendSaveReq.setActualAttendTime(entity.getActualAttendanceDateTime());
attendSaveReq.setErrorResult(entity.getRemark()); attendSaveReq.setErrorResult(entity.getRemark());
attendSaveReq.setTitle("考勤:" + ErrorStatusEnum.getByValue(entity.getErrorStatus()).getDesc()); // attendSaveReq.setTitle("考勤:" + ErrorStatusEnum.getByValue(entity.getErrorStatus()).getDesc());
attendSaveReq.setHappenTime(entity.getErrorDateTime()); attendSaveReq.setHappenTime(entity.getErrorDateTime());
attendSaveReq.setRuleCode(ruleCode); attendSaveReq.setRuleCode(ruleCode);
attendSaveReq.setStaffId(entity.getStaffId()); attendSaveReq.setStaffId(entity.getStaffId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment