home
This commit is contained in:
@@ -67,4 +67,18 @@
|
||||
}
|
||||
.icon-check::after {
|
||||
content: '\e608'
|
||||
}
|
||||
|
||||
.cancel_icon::before {
|
||||
content: "\e632";
|
||||
}
|
||||
.cancel_icon {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 25px;
|
||||
color: #fff;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
background-color: #E9B451;
|
||||
}
|
||||
@@ -1,113 +1,177 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="header">
|
||||
<view class="header-item">
|
||||
<text class="header-user">登录人员:{{userName}}</text>
|
||||
<view class="header">首页</view>
|
||||
<view class="userInfo-wrap">
|
||||
<view class="userInfo">
|
||||
<text class="p1">{{userName}}</text>
|
||||
<text class="p2">欢迎进入海亮平板系统!</text>
|
||||
</view>
|
||||
<view class="header-item header-r">
|
||||
<button class="header-button" @click="toExit">退 出</button>
|
||||
<view class="exit" @tap="Quit">
|
||||
<view class="icon-exit"></view>
|
||||
<view class="exit-text">退出</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nav-wrapper">
|
||||
<view class="nav-wrap">
|
||||
<view class="nav-item" @click="toJump('/pages/management/inscanerror')">
|
||||
<text class="nav-text">扫码异常</text>
|
||||
<view class="zd_wrapper">
|
||||
<view class="menu-wrap">
|
||||
<view class="menu-item" v-for="(e, i) in menuList" :key="i" @tap="toPage1(e)">
|
||||
<image class="menu-img" :src="require('../../static/images/' + e.path + '.png')" alt="">
|
||||
<view class="menu-name">{{e.name}}</view>
|
||||
</view>
|
||||
<!-- <view class="nav-item" @click="toJump('/pages/management/outscanerror')">
|
||||
<text class="nav-text">出箱扫码异常</text>
|
||||
</view> -->
|
||||
<view class="nav-item" @click="toJump('/pages/management/hcxcheck')">
|
||||
<text class="nav-text">缓存线盘点</text>
|
||||
</view>
|
||||
<!-- <view class="nav-item" @click="toJump('/pages/management/agvinerror')">
|
||||
<text class="nav-text">AGV入箱异常</text>
|
||||
</view>
|
||||
<view class="nav-item" @click="toJump('/pages/management/AgvOutError')">
|
||||
<text class="nav-text">AGV出箱异常</text>
|
||||
</view> -->
|
||||
<view class="nav-item" @click="toJump('/pages/management/HcxOutError')">
|
||||
<text class="nav-text">缓存线出箱异常</text>
|
||||
</view>
|
||||
<view class="nav-item" @click="toJump('/pages/management/ZlOperate')">
|
||||
<text class="nav-text">任务操作</text>
|
||||
</view>
|
||||
<view class="nav-item" @click="toJump('/pages/management/HcxErrorHandle')">
|
||||
<text class="nav-text">缓存线异常处理</text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show === true" class="sec_menu_wraper">
|
||||
<view class="sec_menu_w">
|
||||
<view class="menu-item" v-for="(e, i) in secM" :key="i" @click="toPage2(e)">
|
||||
<view class="sec_menu-col_inner">
|
||||
<view class="menu-name menu-name_inner">{{e.name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cancel">
|
||||
<view class="iconfont cancel_icon" @tap="show = false"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {authority} from '@/utils/getData2.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : ''
|
||||
}
|
||||
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
|
||||
menuList: [],
|
||||
show: false,
|
||||
secM: []
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
created () {
|
||||
this._authority()
|
||||
},
|
||||
methods: {
|
||||
toJump(path) {
|
||||
uni.navigateTo({
|
||||
url: path
|
||||
});
|
||||
async _authority () {
|
||||
let res = await authority()
|
||||
this.menuList = [...res.sonTree]
|
||||
|
||||
},
|
||||
toExit () {
|
||||
this.$store.dispatch('delUserInfo', '')
|
||||
toPage1 (e) {
|
||||
if (e.sonTree.length > 0) {
|
||||
this.show = true
|
||||
this.secM = e.sonTree
|
||||
}
|
||||
},
|
||||
toPage2 (e) {
|
||||
let url = e.path
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
url: url
|
||||
})
|
||||
},
|
||||
Quit () {
|
||||
this.$store.dispatch('delUserInfo')
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
.content
|
||||
_fj()
|
||||
_wh(100%, 100%)
|
||||
flex-direction column
|
||||
.zd_content
|
||||
padding-top 0
|
||||
.header
|
||||
height 42px
|
||||
_font(16px,42px,#333,,center)
|
||||
.userInfo-wrap
|
||||
_fj()
|
||||
_wh(100%,42px)
|
||||
background-color $red
|
||||
.header-item
|
||||
width calc(50% - 30px)
|
||||
padding 0 10px
|
||||
.header-user
|
||||
_font(16px, 42px, #fff,,)
|
||||
.header-r
|
||||
_fj(flex-end)
|
||||
/deep/ .header-r uni-button
|
||||
margin-right 0
|
||||
.header-button
|
||||
_wh(auto, 34px)
|
||||
_font(16px,34px,#333,,)
|
||||
.nav-wrapper
|
||||
_wh(calc(100% - 15px),calc(100% - 72px))
|
||||
padding 15px 15%
|
||||
_wh(calc(100% - 30px),80px)
|
||||
padding 0 15px
|
||||
_bis($red,'../../static/images/info_bg.png',auto,100%,right,bottom)
|
||||
border-radius 12px
|
||||
margin 0 auto 15px auto
|
||||
.userInfo
|
||||
_fj(,flex-start,column)
|
||||
.p1
|
||||
_font(16px,1,#fff)
|
||||
padding-bottom 8px
|
||||
.p2
|
||||
_font(13px,1,#fff)
|
||||
.exit
|
||||
_fj()
|
||||
height 22px
|
||||
padding 0 7px
|
||||
border 1px solid #FF967C
|
||||
border-radius 10px
|
||||
.icon-exit
|
||||
_wh(10px, 10px)
|
||||
_bis(,'../../static/images/exit.png',11px)
|
||||
.exit-text
|
||||
_font(12px,22px,#fff,,right)
|
||||
padding-left 5px
|
||||
.zd_wrapper
|
||||
_wh(calc(100% - 30px),calc(100% - 152px)) /** 42+80+15+15 */
|
||||
padding 15px 5%
|
||||
background-color #fff
|
||||
border-radius 12px
|
||||
margin 15px auto
|
||||
.nav-wrap
|
||||
_fj(flex-start)
|
||||
align-content center
|
||||
flex-wrap wrap
|
||||
margin 0 auto 15px auto
|
||||
.menu-wrap
|
||||
_fj(flex-start,center,,wrap)
|
||||
height 100%
|
||||
.menu-item
|
||||
_fj()
|
||||
flex-direction column
|
||||
_wh(30%, auto)
|
||||
margin-bottom 20px
|
||||
_font(13px, 30px,#e74f1a,,center)
|
||||
&:nth-child(3n+2)
|
||||
margin-left 5%
|
||||
margin-right 5%
|
||||
::v-deep .menu-img
|
||||
_wh(100%, auto)
|
||||
img
|
||||
position relative
|
||||
opacity 1
|
||||
_wh(55%, auto)
|
||||
max-width 90px
|
||||
margin 0 auto 0.1px
|
||||
.menu-name
|
||||
_font(14px, 18px, #444,,center)
|
||||
.sec_menu_wraper
|
||||
position fixed
|
||||
top 0
|
||||
left 0
|
||||
_wh(100%, 100%)
|
||||
.nav-item
|
||||
background-color rgba(0, 0, 0, .9)
|
||||
z-index 2017
|
||||
flex-direction column
|
||||
.sec_menu_w
|
||||
_fj()
|
||||
_wh(100%, calc(100% - 50px))
|
||||
padding 0 12px
|
||||
flex-wrap wrap
|
||||
align-content center
|
||||
&::after
|
||||
content ''
|
||||
display block
|
||||
_wh(30%,0)
|
||||
.sec_menu-col
|
||||
background-color transparent
|
||||
border none
|
||||
height auto
|
||||
.sec_menu-col_inner
|
||||
_fj(center)
|
||||
align-items center
|
||||
_wh(30%,68px)
|
||||
border-radius 12px
|
||||
border 10px solid #acbec6
|
||||
margin 15px 5% 15px 0
|
||||
.nav-item:nth-child(3n)
|
||||
margin-right 0
|
||||
.nav-text
|
||||
_font(18px, 24px, #333,,)
|
||||
letter-spacing: 2px
|
||||
_wh(80px, 80px)
|
||||
border-radius 50%
|
||||
background-color $yellow
|
||||
margin 0 auto
|
||||
.menu-name_inner
|
||||
color #fff
|
||||
padding 0 10px
|
||||
.cancel
|
||||
_wh(100%, 50px)
|
||||
padding 0 12px
|
||||
overflow hidden
|
||||
background-color rgba(255, 255, 255, .3)
|
||||
box-shadow 0 0.5px 2px 0 rgba(160,160,160,0.9)
|
||||
</style>
|
||||
|
||||
BIN
static/images/RF01.png
Normal file
BIN
static/images/RF01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/images/RF02.png
Normal file
BIN
static/images/RF02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/images/RF03.png
Normal file
BIN
static/images/RF03.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/images/exit.png
Normal file
BIN
static/images/exit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
static/images/info_bg.png
Normal file
BIN
static/images/info_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -21,6 +21,32 @@ export const pdaUpdate = () => request({
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 菜单
|
||||
export const authority = () => {
|
||||
let res = {
|
||||
sonTree: [
|
||||
{menu_id: '1', path: 'RF01', name: '缓存线', sonTree: [
|
||||
{menu_id: '1', name: '扫码异常', path: '/pages/management/inscanerror'},
|
||||
{menu_id: '2', name: '缓存线盘点', path: '/pages/management/hcxcheck'},
|
||||
{menu_id: '3', name: '缓存线出箱异常', path: '/pages/management/HcxOutError'},
|
||||
{menu_id: '4', name: '任务操作', path: '/pages/management/ZlOperate'},
|
||||
{menu_id: '5', name: '缓存线异常处理', path: '/pages/management/HcxErrorHandle'}
|
||||
]
|
||||
},
|
||||
{menu_id: '2', path: 'RF02', name: '生产管理', sonTree: [
|
||||
{menu_id: '1', name: '任务管理', path: '/pages/management/inscanerror'}
|
||||
]
|
||||
},
|
||||
{menu_id: '3', path: 'RF03', name: '出入库管理', sonTree: [
|
||||
{menu_id: '1', name: '成品入库', path: '/pages/management/inscanerror'},
|
||||
{menu_id: '2', name: '半成品入库', path: '/pages/management/inscanerror'}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
/** 扫码异常 */
|
||||
// 1.1缓存线下拉框
|
||||
export const getCacheLine = (area) => request({
|
||||
|
||||
Reference in New Issue
Block a user