导航
This commit is contained in:
@@ -13,6 +13,9 @@ export const parameterSetting = (num, word) => post('api/developer/parameterSett
|
|||||||
password: word
|
password: word
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const homeQueryHead = () => post('api/home/queryHead', {
|
||||||
|
})
|
||||||
|
|
||||||
// new
|
// new
|
||||||
// 登录
|
// 登录
|
||||||
export const authlogin = (username, password) => post('auth/login', {
|
export const authlogin = (username, password) => post('auth/login', {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
<div class="header-wraper__right">
|
<div class="header-wraper__right">
|
||||||
<div class="header_user_wraper">
|
<div class="header_user_wraper">
|
||||||
<div class="header_user_wraper_inn">
|
<div class="header_user_wraper_inn">
|
||||||
<div class="state-item">运行</div>
|
<div class="state-item">{{ agvInfo.agvrun_status_name }}</div>
|
||||||
<div class="state-line"></div>
|
<div class="state-line"></div>
|
||||||
<div class="state-item">自动</div>
|
<div class="state-item">{{ agvInfo.automatic_status_name }}</div>
|
||||||
<!-- <div class="state-line"></div> -->
|
<!-- <div class="state-line"></div> -->
|
||||||
<!-- <div class="state-item">中文 <i class="icon_dropdown"></i></div> -->
|
<!-- <div class="state-item">中文 <i class="icon_dropdown"></i></div> -->
|
||||||
</div>
|
</div>
|
||||||
@@ -22,10 +22,10 @@
|
|||||||
<div class="header_user_wraper">
|
<div class="header_user_wraper">
|
||||||
<div class="header_user_wraper_inn">
|
<div class="header_user_wraper_inn">
|
||||||
<div class="elec-qty-wrap">
|
<div class="elec-qty-wrap">
|
||||||
<div class="elec-qty"></div>
|
<div class="elec-qty" :style="{height: Number(dataInfo.electric) + '%', backgroundColor: Number(dataInfo.electric) <= 40 ? 'fa6400' : '#54c0b3'}"></div>
|
||||||
<div class="elec-qty-top"></div>
|
<div class="elec-qty-top"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="elec-txt">90%</div>
|
<div class="elec-txt">{{ dataInfo.electric }}%</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header_user_wraper">
|
<div class="header_user_wraper">
|
||||||
@@ -95,7 +95,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import jxTime from '@components/time.vue'
|
import jxTime from '@components/time.vue'
|
||||||
import jxDialog from '@components/dialog.vue'
|
import jxDialog from '@components/dialog.vue'
|
||||||
import { updatePass, sysMenuBuild, authLogout } from '@config/getData2.js'
|
import { queryHomePage } from '@/config/getData.js'
|
||||||
|
import { updatePass, sysMenuBuild, authLogout, homeQueryHead } from '@config/getData2.js'
|
||||||
import {encrypt} from '../../../main.js'
|
import {encrypt} from '../../../main.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -195,7 +196,9 @@ export default {
|
|||||||
options: {
|
options: {
|
||||||
useKbEvents: false,
|
useKbEvents: false,
|
||||||
preventClickEvent: false
|
preventClickEvent: false
|
||||||
}
|
},
|
||||||
|
dataInfo: {},
|
||||||
|
agvInfo: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -328,6 +331,22 @@ export default {
|
|||||||
async _authLogout () {
|
async _authLogout () {
|
||||||
await authLogout()
|
await authLogout()
|
||||||
},
|
},
|
||||||
|
async _queryHomePage () {
|
||||||
|
let res = await queryHomePage()
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.dataInfo = res.result
|
||||||
|
} else {
|
||||||
|
this.toast(res.desc)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _homeQueryHead () {
|
||||||
|
let res = await homeQueryHead()
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.agvInfo = res.result
|
||||||
|
} else {
|
||||||
|
this.toast(res.desc)
|
||||||
|
}
|
||||||
|
},
|
||||||
toEixt () {
|
toEixt () {
|
||||||
this.$store.dispatch('setSignOut')
|
this.$store.dispatch('setSignOut')
|
||||||
this._authLogout()
|
this._authLogout()
|
||||||
@@ -421,8 +440,6 @@ export default {
|
|||||||
height 90%
|
height 90%
|
||||||
left 0
|
left 0
|
||||||
bottom 0
|
bottom 0
|
||||||
background-color #54C0B3
|
|
||||||
// background-color #fa6400
|
|
||||||
.elec-qty-top
|
.elec-qty-top
|
||||||
position absolute
|
position absolute
|
||||||
_wh(8px, 3px)
|
_wh(8px, 3px)
|
||||||
|
|||||||
@@ -459,8 +459,8 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
line-height: 50px;
|
line-height: 100px;
|
||||||
height: 50px;
|
height: 100px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-bottom 20px
|
margin-bottom 20px
|
||||||
margin-right 24px
|
margin-right 24px
|
||||||
@@ -477,11 +477,11 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100px;
|
width: 260px;
|
||||||
height: 50px;
|
height: 100px;
|
||||||
border: 1px solid #dcdfe6;
|
border: 1px solid #dcdfe6;
|
||||||
outline: none;
|
outline: none;
|
||||||
border-radius: 25px;
|
border-radius: 60px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #dcdfe6;
|
background: #dcdfe6;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -496,8 +496,8 @@
|
|||||||
left: 1px;
|
left: 1px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
transition: all .3s;
|
transition: all .3s;
|
||||||
width: 47px;
|
width: 97px;
|
||||||
height: 47px;
|
height: 97px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.is-checked
|
.is-checked
|
||||||
.switch_core
|
.switch_core
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
import * as types from '../types'
|
import * as types from '../types'
|
||||||
// import { getStore, setStore } from '@config/utils.js'
|
import { getStore, setStore } from '@config/utils.js'
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
materObj: {}, // 物料查询-盘点修改
|
materObj: {}, // 物料查询-盘点修改
|
||||||
hcxCheckObj: {} // 缓存线盘点 - 盘点修改
|
hcxCheckObj: {}, // 缓存线盘点 - 盘点修改
|
||||||
|
agvObj: getStore('agvObj') || '' // 存储对象
|
||||||
}
|
}
|
||||||
|
|
||||||
const getters = {
|
const getters = {
|
||||||
materObj: state => state.materObj,
|
materObj: state => state.materObj,
|
||||||
hcxCheckObj: state => state.hcxCheckObj,
|
hcxCheckObj: state => state.hcxCheckObj,
|
||||||
defaultActive: state => state.defaultActive
|
defaultActive: state => state.defaultActive,
|
||||||
|
agvObj: state => state.agvObj
|
||||||
}
|
}
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
@@ -18,6 +20,10 @@ const actions = {
|
|||||||
},
|
},
|
||||||
hcxCheckObj ({commit}, res) {
|
hcxCheckObj ({commit}, res) {
|
||||||
commit(types.HCX_CHECK_OBJ, res)
|
commit(types.HCX_CHECK_OBJ, res)
|
||||||
|
},
|
||||||
|
setAgvObj ({commit}, res) {
|
||||||
|
setStore('agvObj', res)
|
||||||
|
commit(types.SET_AGV_OBJ, res)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,6 +33,9 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
[types.HCX_CHECK_OBJ] (state, res) {
|
[types.HCX_CHECK_OBJ] (state, res) {
|
||||||
state.hcxCheckObj = res
|
state.hcxCheckObj = res
|
||||||
|
},
|
||||||
|
[types.SET_AGV_OBJ] (state, res) {
|
||||||
|
state.agvObj = res
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export const GET_MENUS = 'GET_MENUS'
|
|||||||
|
|
||||||
// 数据
|
// 数据
|
||||||
export const SET_DEVICE = 'SET_DEVICE'
|
export const SET_DEVICE = 'SET_DEVICE'
|
||||||
|
export const SET_AGV_OBJ = 'SET_AGV_OBJ'
|
||||||
|
|
||||||
// hcx数据
|
// hcx数据
|
||||||
export const MATER_OBJ = 'MATER_OBJ' // 物料查询-盘点修改
|
export const MATER_OBJ = 'MATER_OBJ' // 物料查询-盘点修改
|
||||||
|
|||||||
Reference in New Issue
Block a user