|
@@ -50,9 +50,9 @@ const rightMenuList = ref([])
|
|
|
|
|
|
const initMenus = async () => {
|
|
|
let locals: any = localStorage.getItem('roleRouters')
|
|
|
- let roleRouters = JSON.parse(JSON.parse(locals).v)[1].children
|
|
|
- let leftMenu = roleRouters.slice(0, 2)
|
|
|
- let rightMenu = roleRouters.slice(2, 4)
|
|
|
+ let roleRouters = JSON.parse(JSON.parse(locals).v)?.[1]?.children
|
|
|
+ let leftMenu = roleRouters?.slice(0, 2)
|
|
|
+ let rightMenu = roleRouters?.slice(2, 4)
|
|
|
leftMenuList.value = leftMenu
|
|
|
rightMenuList.value = rightMenu
|
|
|
}
|
|
@@ -83,128 +83,141 @@ onMounted(() => {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.viewLayout-header {
|
|
|
+ position: relative;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: url(@/assets/imgs/oaView/oaViewHeader.png) no-repeat;
|
|
|
+ background: url('@/assets/imgs/oaView/oaViewHeader.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
- position: relative;
|
|
|
+
|
|
|
.header-title {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ display: flex;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
margin: 0 auto;
|
|
|
- display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top: 0;
|
|
|
+
|
|
|
p {
|
|
|
- color: #fff;
|
|
|
- font-size: 44px;
|
|
|
+ margin-top: -35px;
|
|
|
font-family: AlibabaPuHuiTiB;
|
|
|
- text-shadow: 1px 2px 3px rgba(255, 255, 255, 0.5);
|
|
|
+ font-size: 44px;
|
|
|
font-weight: 600;
|
|
|
- color: #ffffff;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ color: #fff;
|
|
|
+ text-shadow: 1px 2px 3px rgb(255 255 255 / 50%);
|
|
|
background: linear-gradient(0deg, #ffff 20%, #def1ff 100%);
|
|
|
- -webkit-background-clip: text;
|
|
|
+ background-clip: text;
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
- margin-top: -35px;
|
|
|
- letter-spacing: 3px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.weather-box {
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
position: absolute;
|
|
|
left: 10px;
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
margin-top: -30px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
|
|
|
p {
|
|
|
- color: #fff;
|
|
|
font-size: 16px;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.left-menu {
|
|
|
position: absolute;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
left: 170px;
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
+ margin-top: -31px;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- margin-top: -31px;
|
|
|
+
|
|
|
ul {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
height: 34px;
|
|
|
+
|
|
|
li {
|
|
|
width: 122px;
|
|
|
height: 100%;
|
|
|
|
|
|
a {
|
|
|
+ display: flex;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: url(@/assets/imgs/oaView/menuLeft.png) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
+ text-decoration: none;
|
|
|
cursor: pointer;
|
|
|
- display: flex;
|
|
|
+ background: url('@/assets/imgs/oaView/menuLeft.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- text-decoration: none;
|
|
|
+
|
|
|
span {
|
|
|
+ font-family: AlibabaPuHuiTiB;
|
|
|
font-size: 18px;
|
|
|
color: #7ac1ec;
|
|
|
- font-family: AlibabaPuHuiTiB;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.router-link-active {
|
|
|
- background: url(@/assets/imgs/oaView/menuLeftActive.png) no-repeat;
|
|
|
+ background: url('@/assets/imgs/oaView/menuLeftActive.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
+
|
|
|
span {
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.right-menu {
|
|
|
position: absolute;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
right: 170px;
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
+ margin-top: -31px;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- margin-top: -31px;
|
|
|
+
|
|
|
ul {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
height: 34px;
|
|
|
+
|
|
|
li {
|
|
|
width: 122px;
|
|
|
height: 100%;
|
|
|
|
|
|
a {
|
|
|
+ display: flex;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: url(@/assets/imgs/oaView/menuRight.png) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
+ text-decoration: none;
|
|
|
cursor: pointer;
|
|
|
- display: flex;
|
|
|
+ background: url('@/assets/imgs/oaView/menuRight.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- text-decoration: none;
|
|
|
+
|
|
|
span {
|
|
|
+ font-family: AlibabaPuHuiTiB;
|
|
|
font-size: 18px;
|
|
|
color: #7ac1ec;
|
|
|
- font-family: AlibabaPuHuiTiB;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.router-link-active {
|
|
|
- background: url(@/assets/imgs/oaView/menuRightActive.png) no-repeat;
|
|
|
+ background: url('@/assets/imgs/oaView/menuRightActive.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
+
|
|
|
span {
|
|
|
color: #fff;
|
|
|
}
|
|
@@ -215,17 +228,19 @@ onMounted(() => {
|
|
|
.user-box {
|
|
|
position: absolute;
|
|
|
right: 25px;
|
|
|
- height: 100%;
|
|
|
display: flex;
|
|
|
+ height: 100%;
|
|
|
+ margin-top: -32px;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- margin-top: -32px;
|
|
|
+
|
|
|
h4 {
|
|
|
margin-right: 10px;
|
|
|
- font-size: 18px;
|
|
|
font-family: AlibabaPuHuiTiB;
|
|
|
+ font-size: 18px;
|
|
|
color: #fff;
|
|
|
}
|
|
|
+
|
|
|
img {
|
|
|
cursor: pointer;
|
|
|
}
|