Browse Source

日志时间按照最新时间查询

返回首页关闭当前页面
master
yangzongjia 2 years ago
parent
commit
5def9b9e60
  1. 291
      src/layout/components/Navbar.vue
  2. 2
      src/views/baojingchaxun/baojingchaxunList.vue

291
src/layout/components/Navbar.vue

@ -1,16 +1,17 @@
<template> <template>
<div> <div>
<div class="navbar"> <div class="navbar">
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png" style="width: 45px;height: 45px;margin-right: 10px;"/>汇融云眼贷后监管平台</p> <p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png"
<!-- <h3 class="breadcrumb-container">汇融银行供应链贷后监管平台</h3> --> style="width: 45px;height: 45px;margin-right: 10px;" />汇融云眼贷后监管平台</p>
<!-- <h3 class="breadcrumb-container">汇融银行供应链贷后监管平台</h3> -->
<div class="right-menu"> <div class="right-menu">
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>--> <!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->
<p>欢迎您{{name}}</p> <p>欢迎您{{ name }}</p>
<el-badge :value="6" class="item"> <el-badge :value="6" class="item">
<img @click="toxiaoxi()" src="@/assets/images/info.png"> <img @click="toxiaoxi()" src="@/assets/images/info.png">
</el-badge> </el-badge>
<!-- <img src="@/assets/images/dy.png" @click="logout"> --> <!-- <img src="@/assets/images/dy.png" @click="logout"> -->
<span class="backToHome"><i class="el-icon-back"></i>返回首页</span> <span class="backToHome" @click="logout"><i class="el-icon-back"></i>返回首页</span>
</div> </div>
</div> </div>
<el-footer class="footer" height="40px">Copyright © {{ year }} 技术支持集团 All Rights Reserved</el-footer> <el-footer class="footer" height="40px">Copyright © {{ year }} 技术支持集团 All Rights Reserved</el-footer>
@ -18,168 +19,172 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
Orgname: '', Orgname: '',
departmentName: '', departmentName: '',
name: '', name: '',
year:'', year: '',
pNameAndDepartmentNameAndPostName:'' pNameAndDepartmentNameAndPostName: ''
} }
}, },
mounted() { mounted() {
this.Orgname = window.sessionStorage.getItem('Orgname') this.Orgname = window.sessionStorage.getItem('Orgname')
this.departmentName = window.sessionStorage.getItem('departmentName') this.departmentName = window.sessionStorage.getItem('departmentName')
this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('defaultOrgPathName') this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('defaultOrgPathName')
this.name = window.sessionStorage.getItem('name') this.name = window.sessionStorage.getItem('name')
var nowDate = new Date() var nowDate = new Date()
this.year = nowDate.getFullYear() this.year = nowDate.getFullYear()
},
methods: {
logout() {
this.$router.push({ path: '/home' })
window.opener = null
window.open('about:blank', '_top').close()
}, },
methods: { toxiaoxi() {
logout() { this.$router.push('/xiaoxi/xiaoxiList')
// this.$router.push({ path: '/home' })
window.opener = null
window.open('about:blank', '_top').close()
},
toxiaoxi() {
this.$router.push('/xiaoxi/xiaoxiList')
}
} }
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "~@/styles/variables.scss"; @import "~@/styles/variables.scss";
.navbar { .navbar {
height: 60px; height: 60px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: $header-bg; background: $header-bg;
padding: 0 30px; padding: 0 30px;
box-shadow: 0 1px 4px rgba(0, 21, 41, .08); box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
.hamburger-container { .hamburger-container {
line-height: 46px; line-height: 46px;
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer; cursor: pointer;
transition: background .3s; transition: background .3s;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
&:hover {
background: rgba(0, 0, 0, .025)
}
}
&:hover { .breadcrumb-container {
background: rgba(0, 0, 0, .025) display: flex;
} align-items: center;
color: #fff;
font-size: 24px;
line-height: 60px;
font-weight: bold;
margin: 0;
float: left;
}
.right-menu {
float: right;
height: 100%;
line-height: 60px;
color: #fff;
&:focus {
outline: none;
} }
.breadcrumb-container { p {
display: flex; display: inline-block;
align-items: center; margin: 0;
color: #fff; padding: 0;
font-size: 24px; padding: 0 15px;
line-height: 60px;font-weight: bold; }
margin: 0;
float: left;
}
.right-menu {
float: right;
height: 100%;
line-height: 60px;
color: #fff;
&:focus { img {
outline: none; vertical-align: middle;
} margin: 0 10px;
cursor: pointer;
}
p { .backToHome {
display: inline-block; display: inline-block;
margin: 0; vertical-align: middle;
padding: 0; padding: 0 15px;
padding: 0 15px; cursor: pointer;
} }
img { .backToHome:hover {
vertical-align: middle; background: #087dba;
margin: 0 10px; }
cursor: pointer;
} .right-menu-item {
display: inline-block;
padding: 0 8px;
height: 100%;
font-size: 18px;
color: #5a5e66;
vertical-align: text-bottom;
.backToHome { &.hover-effect {
display: inline-block;
vertical-align: middle;
padding: 0 15px;
cursor: pointer; cursor: pointer;
} transition: background .3s;
.backToHome:hover { &:hover {
background: #087dba; background: rgba(0, 0, 0, .025)
}
} }
}
.right-menu-item { .avatar-container {
display: inline-block; margin-right: 30px;
padding: 0 8px;
height: 100%;
font-size: 18px;
color: #5a5e66;
vertical-align: text-bottom;
&.hover-effect { .avatar-wrapper {
cursor: pointer; margin-top: 5px;
transition: background .3s; position: relative;
&:hover { .user-avatar {
background: rgba(0, 0, 0, .025) cursor: pointer;
} width: 40px;
height: 40px;
border-radius: 10px;
} }
}
.avatar-container { .el-icon-caret-bottom {
margin-right: 30px; cursor: pointer;
position: absolute;
.avatar-wrapper { right: -20px;
margin-top: 5px; top: 25px;
position: relative; font-size: 12px;
.user-avatar {
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 10px;
}
.el-icon-caret-bottom {
cursor: pointer;
position: absolute;
right: -20px;
top: 25px;
font-size: 12px;
}
} }
} }
} }
} }
}
.footer { .footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
line-height: 40px; line-height: 40px;
background: #E9F1F7; background: #E9F1F7;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: #666; color: #666;
} }
::v-deep .el-badge__content{position: relative;
::v-deep .el-badge__content {
height: 20px; position: relative;
line-height: 20px;
padding: 0 6px; height: 20px;
} line-height: 20px;
::v-deep .el-badge__content.is-fixed { padding: 0 6px;
position: absolute; }
top: 17px;
right: 14px; ::v-deep .el-badge__content.is-fixed {
position: absolute;
top: 17px;
right: 14px;
} }
</style> </style>

2
src/views/baojingchaxun/baojingchaxunList.vue

@ -109,7 +109,7 @@ export default {
listLoading: false, listLoading: false,
listQuery: { listQuery: {
current: 1, current: 1,
size: 5, size: 10,
total: 10 total: 10
}, },
supplierType_list: [ supplierType_list: [

Loading…
Cancel
Save