Commit bc28ccf0 by xue_wengang

积分管理平台

parent 65d8864c
src/assets/img/jfgl/titleBg.png

279 KB | W: | H:

src/assets/img/jfgl/titleBg.png

240 KB | W: | H:

src/assets/img/jfgl/titleBg.png
src/assets/img/jfgl/titleBg.png
src/assets/img/jfgl/titleBg.png
src/assets/img/jfgl/titleBg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -8,6 +8,7 @@ import { getToken } from "../utils/auth";
import { Message } from "element-ui";*/
import indexRoutes from "./modules/index";
import otherRoutes from "./modules/other";
import url from "@/api/base";
const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
......@@ -63,11 +64,19 @@ const router = new VueRouter({
next();
});*/
router.beforeEach((to, from, next)=>{
if (to.path != 'login'){
router.beforeEach((to, from, next) => {
if (to.path != 'login') {
var relUrlIp = window.location.host.substring(
0,
window.location.host.length - 5
);
request.getYhxx("").then(res => {
if (res.success === true) {
sessionStorage.setItem("userInfo",JSON.stringify(res.data.rows));
if (res.code === 200) {
sessionStorage.setItem("userInfo", JSON.stringify(res.data.rows));
} else if (data.code == 20004 || data.code == 202) {
if (relUrlIp == '133.8.5.67' || relUrlIp == '26.3.13.120') {
window.open(url.eqMhUrl, '_self');
}
}
})
}
......@@ -75,11 +84,11 @@ router.beforeEach((to, from, next)=>{
})
router.afterEach((to) => {
if(to.path!='/login'&&to.path!='/dwcxIndex'){
if(to.path!='/dwqsajIndex'){
if (to.path != '/login' && to.path != '/dwcxIndex') {
if (to.path != '/dwqsajIndex') {
request.getYhxx("").then(res => {
if (res.success === true) {
Watermark.set(res.data.rows.trueName==null?'':res.data.rows.trueName,res.data.rows.identitycard==null?'':res.data.rows.identitycard,res.data.rows.unitname==null?'':res.data.rows.unitname,res.data.rows.policemanid==null?'':res.data.rows.policemanid,res.data.rows.ip==null?'':res.data.rows.ip)
Watermark.set(res.data.rows.trueName == null ? '' : res.data.rows.trueName, res.data.rows.identitycard == null ? '' : res.data.rows.identitycard, res.data.rows.unitname == null ? '' : res.data.rows.unitname, res.data.rows.policemanid == null ? '' : res.data.rows.policemanid, res.data.rows.ip == null ? '' : res.data.rows.ip)
}
});
}
......
......@@ -113,7 +113,7 @@ export default [
path: "/jfsz",
name: "jfsz",
meta: {
title: '刑侦工作实战积分平台',
title: '个人积分统计',
auth: 5
},
component: () => import("@/views/jfsz/jfsz.vue"),
......@@ -125,7 +125,7 @@ export default [
name: "gRjftjs",
component: () => import("@/views/jfsz/gRjftj.vue"),
meta: {
title: "刑侦工作实战积分平台"
title: "个人积分统计"
}
}
]
......@@ -704,7 +704,7 @@ export default [
path: "/ypbg",
name: "ypbg",
meta: {
title: '研判报告',
title: '积分通报',
auth: 5
},
component: () => import("@/views/ypbg/index.vue")
......@@ -713,9 +713,18 @@ export default [
path: "/jf",
name: "jf",
meta: {
title: '积分管理',
title: '内蒙古刑侦工作积分管理平台',
auth: 5
},
component: () => import("@/views/jf/index.vue")
},
{
path: "/jftb",
name: "jftb",
meta: {
title: '积分通报',
auth: 5
},
component: () => import("@/views/jf/jftb.vue")
}
]
......@@ -17,17 +17,6 @@ var relUrlIp = window.location.host.substring(
service.interceptors.response.use(
response => {
let data = response.data;
if (data.code == 20004||data.code == 202) {
if (!window.tiplock) {
window.tiplock = true;
if(relUrlIp=='133.8.5.67'||relUrlIp=='26.3.13.120'){
window.open(url.eqMhUrl,'_self');
}else{
// window.open(url.eqMhUrl,'_self');
}
}
}
return data;
},
function(error) {
......
<template>
<div class="jf-box">
<div class="title-top">
<div class="img"></div>
</div>
<div class="container">
<el-row :gutter="20">
<el-col :span="12">
<div class="cont">
<div class="cont-bg">
<span>[2021年积分通报] </span>
</div>
<div class="cont-nr">
<div v-for="(item, index) in list2" :key="index">
<img
:src="imgurl"
alt=""
style="width: 30px; margin-right: 10px"
/>
<span @click="goDetail(item)">{{ item.mbmc }}</span>
</div>
</div>
</div>
</el-col>
<el-col :span="12">
<div class="cont">
<div class="cont-bg" style="background: #4372c4">
<span>[2022年积分通报] </span>
</div>
<div class="cont-nr" style="background: #d5daec">
<div v-for="(item, index) in list" :key="index">
<img
:src="imgurl"
alt=""
style="width: 30px; margin-right: 10px"
/>
<span @click="goDetail(item)">{{ item.mbmc }}</span>
</div>
</div>
</div>
</el-col>
</el-row>
</div>
<div class="footer">
<span>内蒙古自治区公安厅刑侦总队</span>
</div>
</div>
</template>
<script>
import Http from "@/utils/axiosHttp.js";
import qs from "qs";
import url from "@/api/base";
export default {
data() {
return {
list: [],
list2: [],
imgurl: require("../../assets/img/jfgl/tz.png"),
};
},
mounted() {
this.getQxpm();
},
methods: {
goDetail(item) {
this.$router.pushToTab({
path: "ypbg",
query: {
xxzjbh: item.xxzjbh,
name: item.mbmc,
},
});
},
doQueryRequest(relurl, form) {
/*post方法*/
return Http({
url: url.rzURL + relurl,
data: qs.stringify(form),
method: "post",
headers: {
"blade-auth": sessionStorage.getItem("token"),
"Content-Type": "application/x-www-form-urlencoded",
},
});
},
getQxpm() {
this.doQueryRequest("/jfmb/getJfmbList")
.then((res) => {
if (res.success) {
this.list = res.data.year;
this.list2 = res.data.lastYear;
}
})
.catch((err) => {});
},
},
};
</script>
<style lang="scss" scoped>
body {
background: #fff;
}
.jf-box {
display: flex;
flex-direction: column;
flex: 1 0 100%;
justify-content: space-between;
height: 100vh;
.title-top {
display: flex;
height: 120px;
width: 100%;
background: url("../../assets/img/jfgl/top-bg.png") no-repeat center;
background-size: 100% 100%;
justify-content: center;
align-items: center;
.img {
width: 192px;
height: 56px;
background: url("../../assets/img/jfgl/jftb.png") no-repeat center;
background-size: 100% 100%;
}
}
.container {
flex: 1;
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 0 15px;
box-sizing: border-box;
margin-top: 80px;
}
}
.cont {
.cont-bg {
height: 120px;
width: 100%;
background: #ffc000;
font-size: 30px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.cont-nr {
background: #ffead0;
height: calc(100vh - 500px);
padding: 22px;
box-sizing: border-box;
font-size: 16px;
.textindex {
text-indent: 2em;
}
span {
cursor: pointer;
}
}
}
.footer {
display: flex;
justify-content: center;
align-items: center;
background: #104c88;
font-size: 18px;
color: #fff;
height: 80px;
margin-top: 56px;
}
</style>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<div class="header">
<div class="left">
<i class="iconfont iconzidianmaxuanze"></i
><span>刑侦工作实战积分平台</span>
><span>个人积分统计</span>
</div>
</div>
<div class="content">
......@@ -31,7 +31,7 @@ export default {
data() {
return {
sidebarItemName: this.$route.name,
headerTitle: "刑侦工作实战积分平台",
headerTitle: "个人积分统计",
propLeftMenu: [
{
id: "gRjftjs",
......
......@@ -3,6 +3,8 @@
<div class="toptitle">
<img src="../assets/img/jfgl/title.png" />
</div>
<div class="redLine"></div>
<div class="blueLine"></div>
<div class="login-container">
<el-form
:model="ruleForm2"
......@@ -21,7 +23,8 @@
auto-complete="off"
placeholder="用户名"
>
<img slot="prefix" src="../assets/img/jfgl/user.png" alt=""></el-input>
<img slot="prefix" src="../assets/img/jfgl/user.png" alt=""
/></el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
......@@ -29,7 +32,8 @@
v-model="ruleForm2.password"
auto-complete="off"
placeholder="密码"
><img slot="prefix" src="../assets/img/jfgl/password.png" alt=""></el-input>
><img slot="prefix" src="../assets/img/jfgl/password.png" alt=""
/></el-input>
</el-form-item>
<el-form-item style="width: 100%">
<div class="subbutton" @click="handleSubmit">登录</div>
......@@ -100,6 +104,18 @@ export default {
line-height: 120px;
text-align: center;
}
.redLine {
height: 2px;
background: #de1a37;
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.blueLine {
height: 32px;
background: #104c88;
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.login-container {
margin-top: 152px;
display: flex;
......@@ -129,10 +145,10 @@ export default {
background: #ebedf1 !important;
border-radius: 4px 4px 4px 4px;
}
/deep/.el-input__prefix{
/deep/.el-input__prefix {
left: 16px;
}
/deep/.el-input--prefix .el-input__inner{
/deep/.el-input--prefix .el-input__inner {
padding-left: 46px;
}
.subbutton {
......
......@@ -152,6 +152,10 @@ export default {
prop: "rs",
label: "总人数",
},
{
prop: "pjfs",
label: "平均分数",
},
],
loading: null,
mbmc:''
......@@ -251,7 +255,7 @@ export default {
}
.title {
height: 52px;
background: #1f212c;
background: #126ce4;
padding-left: 32px;
display: flex;
align-items: center;
......
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