菜单页面嵌入
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Time',
|
||||
name: 'jxTime',
|
||||
data () {
|
||||
return {
|
||||
timer: null,
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
height 61px
|
||||
padding-left 10px
|
||||
.date-wraper
|
||||
_font(14px, 20px, #909399,,)
|
||||
_font(12px, 20px, #909399,,)
|
||||
.time-wraper
|
||||
_font(14px, 20px, #909399,,)
|
||||
_font(12px, 20px, #909399,,)
|
||||
</style>
|
||||
|
||||
3
src/pages/modules/home/home.vue
Normal file
3
src/pages/modules/home/home.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
28
src/pages/modules/home/index.vue
Normal file
28
src/pages/modules/home/index.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="body-conatiner">
|
||||
<div class="side-bar-container">
|
||||
<jxSidebar :menus="menus"></jxSidebar>
|
||||
</div>
|
||||
<div class="main-container">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import jxSidebar from '../../shells/sidebar/sidebar.vue'
|
||||
export default {
|
||||
components: {
|
||||
jxSidebar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
menus: [{
|
||||
label: '首页',
|
||||
index: '1',
|
||||
router: '/homehome'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
11
src/pages/modules/teach/teach.vue
Normal file
11
src/pages/modules/teach/teach.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="body-conatiner">
|
||||
<iframe class="iframe" src="../static/index.html" frameborder="0"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.iframe
|
||||
_wh(100%, 100%)
|
||||
</style>
|
||||
342
src/pages/modules/vehicleinformation/agvstatus.vue
Normal file
342
src/pages/modules/vehicleinformation/agvstatus.vue
Normal file
@@ -0,0 +1,342 @@
|
||||
<template>
|
||||
<div class="right_side">
|
||||
<div class="right_side_box_1">
|
||||
<ul class="site_btn_box site_btn_box_1">
|
||||
<li class="site_btn">{{status.inLineStatus_name}}</li>
|
||||
<li class="site_btn">{{status.UpdateStatus_name}}</li>
|
||||
</ul>
|
||||
<ul class="site_btn_box site_btn_box_2">
|
||||
<li class="site_btn_1">
|
||||
<button class="btn_big" type="button" @click="_softStart" :disabled="disabled1">
|
||||
<span class="state_icon state_icon_1"></span>
|
||||
<span class="state_title">软启动</span>
|
||||
</button>
|
||||
</li>
|
||||
<li class="site_btn_1">
|
||||
<button class="btn_big" @click="_skipStartPoint" :disabled="disabled2">
|
||||
<span class="state_icon state_icon_2"></span>
|
||||
<span class="state_title">跳过起点</span>
|
||||
</button>
|
||||
</li>
|
||||
<li class="site_btn_1">
|
||||
<button class="btn_big" @click="_exit" :disabled="disabled5">
|
||||
<span class="state_icon state_icon_3"></span>
|
||||
<span class="state_title">退出</span>
|
||||
</button>
|
||||
</li>
|
||||
<li class="site_btn_1">
|
||||
<button class="btn_big" @click="_fullscreen">
|
||||
<span class="state_icon state_icon_4"></span>
|
||||
<span class="state_title">全屏</span>
|
||||
</button>
|
||||
</li>
|
||||
<li class="site_btn_1">
|
||||
<button class="btn_big" @click="_ShutDown" :disabled="disabled3">
|
||||
<span class="state_icon state_icon_5"></span>
|
||||
<span class="state_title">关机</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="site_btn_box site_btn_box_2 site_btn_box_3">
|
||||
<li class="site_btn_3"><button class="btn_big" @click="_queryRestPoint">初始化坐标</button></li>
|
||||
<!-- <li class="site_btn_3">SLAM页面</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {softStart, skipStartPoint, ShutDown, queryRestPoint, restCoordinate, queryAgvStatus, quitNow} from '@/config/getData2.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
interTime: this.$store.getters.setTime,
|
||||
timer: null,
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
disabled3: false,
|
||||
disabled4: false,
|
||||
disabled5: false,
|
||||
show: false,
|
||||
fullscreen: false,
|
||||
result: [],
|
||||
obj: {},
|
||||
status: {}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
// this._queryAgvStatus()
|
||||
// this.refresh()
|
||||
},
|
||||
beforeDestroy () {
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
refresh () {
|
||||
this.timer = setInterval(() => {
|
||||
this._queryAgvStatus()
|
||||
}, this.interTime)
|
||||
},
|
||||
async _softStart () {
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await softStart()
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
async _skipStartPoint () {
|
||||
this.disabled2 = true
|
||||
try {
|
||||
let res = await skipStartPoint()
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
this.disabled2 = false
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
},
|
||||
async _ShutDown () {
|
||||
this.disabled3 = true
|
||||
try {
|
||||
let res = await ShutDown()
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
this.disabled3 = false
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
}
|
||||
},
|
||||
async _exit () {
|
||||
// window.close()
|
||||
this.disabled5 = true
|
||||
try {
|
||||
let res = await quitNow()
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
this.disabled5 = false
|
||||
} catch (e) {
|
||||
this.disabled5 = false
|
||||
}
|
||||
},
|
||||
_fullscreen () {
|
||||
// let element = document.documentElement
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen()
|
||||
} else if (document.webkitCancelFullScreen) {
|
||||
document.webkitCancelFullScreen()
|
||||
} else if (document.mozCancelFullScreen) {
|
||||
document.mozCancelFullScreen()
|
||||
} else if (document.msExitFullscreen) {
|
||||
document.msExitFullscreen()
|
||||
}
|
||||
// if (this.fullscreen) {
|
||||
// if (document.exitFullscreen) {
|
||||
// document.exitFullscreen()
|
||||
// } else if (document.webkitCancelFullScreen) {
|
||||
// document.webkitCancelFullScreen()
|
||||
// } else if (document.mozCancelFullScreen) {
|
||||
// document.mozCancelFullScreen()
|
||||
// } else if (document.msExitFullscreen) {
|
||||
// document.msExitFullscreen()
|
||||
// }
|
||||
// } else {
|
||||
// if (element.requestFullscreen) {
|
||||
// element.requestFullscreen()
|
||||
// } else if (element.webkitRequestFullScreen) {
|
||||
// element.webkitRequestFullScreen()
|
||||
// } else if (element.mozRequestFullScreen) {
|
||||
// element.mozRequestFullScreen()
|
||||
// } else if (element.msRequestFullscreen) {
|
||||
// // IE11
|
||||
// element.msRequestFullscreen()
|
||||
// }
|
||||
// }
|
||||
// this.fullscreen = !this.fullscreen
|
||||
},
|
||||
async _queryRestPoint () {
|
||||
let res = await queryRestPoint()
|
||||
if (res.code === '1') {
|
||||
this.result = res.result
|
||||
this.show = true
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
},
|
||||
tocheck (e) {
|
||||
this.obj = e
|
||||
},
|
||||
async _restCoordinate () {
|
||||
this.disabled4 = true
|
||||
if (JSON.stringify(this.obj) === '{}') {
|
||||
this.toast('请选择坐标')
|
||||
this.disabled4 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await restCoordinate(this.obj.point_code, this.obj.point_name, this.obj.x, this.obj.y, this.obj.t)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this.show = false
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
this.disabled4 = false
|
||||
} catch (e) {
|
||||
this.disabled4 = false
|
||||
}
|
||||
},
|
||||
async _queryAgvStatus () {
|
||||
let res = await queryAgvStatus()
|
||||
if (res.code === '1') {
|
||||
this.status = res.result
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.pop_btns_box
|
||||
_wh(100%,.88rem)
|
||||
_fj(center)
|
||||
.pop_btn
|
||||
_wh(1.8rem,.88rem)
|
||||
background #989EBB
|
||||
border 2px solid #8B90A6
|
||||
border-radius: .28rem
|
||||
_font(.32rem,.88rem,#fff,500,center)
|
||||
margin 0 .12rem
|
||||
&:disabled
|
||||
background #989EBB
|
||||
border 2px solid #8B90A6
|
||||
.pop_btn_primary
|
||||
background #FD6A35
|
||||
border 2px solid #E74F19
|
||||
.right_side_box_1
|
||||
_wh(100%,100%)
|
||||
padding .26rem .34rem 0 .48rem
|
||||
.site_btn_box
|
||||
_wh(100%,auto)
|
||||
overflow hidden
|
||||
.site_btn_box_2
|
||||
width 10rem
|
||||
margin-top .7rem
|
||||
_fj()
|
||||
.site_btn_box_3
|
||||
_fj(flex-start)
|
||||
margin-top .2rem
|
||||
.site_btn
|
||||
float left
|
||||
_wh(2.6rem,1rem)
|
||||
background #FFFFFF
|
||||
border 1.6px solid #54C0B3
|
||||
box-shadow 2px 0px 5px 0px rgba(222,222,222,1)
|
||||
border-radius .16rem
|
||||
_font(.32rem,1rem,#54C0B3,600,center)
|
||||
margin-right .3rem
|
||||
.site_btn_1
|
||||
float left
|
||||
_wh(1.84rem,1.84rem)
|
||||
_bis('../../../images/aio/agv_btn_bg.png', 100%)
|
||||
.btn_big
|
||||
_wh(100%,100%)
|
||||
background none
|
||||
_fj(center,,column)
|
||||
cursor pointer
|
||||
.state_icon
|
||||
_wh(.6rem,.6rem)
|
||||
margin-bottom .13rem
|
||||
.state_icon_1
|
||||
_bis('../../../images/aio/agv_1.png', 100%)
|
||||
.state_icon_2
|
||||
_bis('../../../images/aio/agv_2.png', 100%)
|
||||
.state_icon_3
|
||||
_bis('../../../images/aio/agv_3.png', 100%)
|
||||
.state_icon_4
|
||||
_bis('../../../images/aio/agv_4.png', 100%)
|
||||
.state_icon_5
|
||||
_bis('../../../images/aio/agv_5.png', 100%)
|
||||
.state_title
|
||||
_font(.32rem,.45rem,#464646,500,)
|
||||
.site_btn_3
|
||||
_wh(4.74rem,1.44rem)
|
||||
_font(.32rem,1.44rem,#464646,600,center)
|
||||
_bis('../../../images/aio/agv_btn_bg_1.png',100%)
|
||||
.pop_wrapper
|
||||
position fixed
|
||||
top 0
|
||||
bottom 0
|
||||
left 0
|
||||
right 0
|
||||
text-align center
|
||||
z-index 10000
|
||||
&::after
|
||||
content ""
|
||||
display inline-block
|
||||
height 100%
|
||||
width 0
|
||||
vertical-align middle
|
||||
.modal
|
||||
position fixed
|
||||
left 0
|
||||
top 0
|
||||
_wh(100%,100%)
|
||||
opacity .5
|
||||
background #000
|
||||
z-index 999
|
||||
.pop_box
|
||||
display inline-block
|
||||
vertical-align middle
|
||||
_wh(9rem,6.4rem)
|
||||
padding .2rem
|
||||
background-color #fff
|
||||
border-radius .16rem
|
||||
overflow hidden
|
||||
h2
|
||||
_font(.4rem,.56rem,#464646,600,center)
|
||||
.pop_ul_wrapper
|
||||
_wh(6.88rem,4.1rem)
|
||||
margin .15rem auto
|
||||
overflow hidden
|
||||
.pop_ul
|
||||
_wh(100%, 100%)
|
||||
overflow-y auto
|
||||
li
|
||||
_wh(100%,.8rem)
|
||||
padding 0 .2rem
|
||||
border-bottom 2px dotted #D6D6D6
|
||||
text-align left
|
||||
span
|
||||
display inline-block
|
||||
_font(.28rem,.8rem,#323232,600,)
|
||||
vertical-align top
|
||||
padding-right .15rem
|
||||
&:nth-child(1)
|
||||
_font(.24rem,.8rem,#323232,600,)
|
||||
background #DFE1E6
|
||||
border-top-left-radius 0.1rem
|
||||
border-top-right-radius 0.1rem
|
||||
.pop_ul .checked
|
||||
background-color #FD6A35
|
||||
.pop_ul li.checked span
|
||||
color #fff
|
||||
</style>
|
||||
36
src/pages/modules/vehicleinformation/index.vue
Normal file
36
src/pages/modules/vehicleinformation/index.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<div class="body-conatiner">
|
||||
<div class="side-bar-container">
|
||||
<jxSidebar :menus="menus"></jxSidebar>
|
||||
</div>
|
||||
<div class="main-container">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import jxSidebar from '../../shells/sidebar/sidebar.vue'
|
||||
export default {
|
||||
components: {
|
||||
jxSidebar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
menus: [{
|
||||
label: '车辆状态',
|
||||
index: '1',
|
||||
router: '/vehiclestatus'
|
||||
}, {
|
||||
label: '传感器状态',
|
||||
index: '2',
|
||||
router: '/sensorstatus'
|
||||
}, {
|
||||
label: 'AGV',
|
||||
index: '3',
|
||||
router: '/agvstatus'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
76
src/pages/modules/vehicleinformation/sensorstatus.vue
Normal file
76
src/pages/modules/vehicleinformation/sensorstatus.vue
Normal file
@@ -0,0 +1,76 @@
|
||||
<template>
|
||||
<div class="right_side">
|
||||
<div class="right_side_box_1">
|
||||
<ul class="site_btn_box">
|
||||
<li class="site_btn" :class="result.stopButton_status === '0' ? 'site_btn_disabled' : ''">
|
||||
<span class="state_color"></span>
|
||||
<span class="state_title">急停按钮</span>
|
||||
</li>
|
||||
<li class="site_btn" :class="result.speedReduction_status === '0' ? 'site_btn_disabled' : ''">
|
||||
<span class="state_color"></span>
|
||||
<span class="state_title">避障减速</span>
|
||||
</li>
|
||||
<li class="site_btn" :class="result.resetButton_status === '0' ? 'site_btn_disabled' : ''">
|
||||
<span class="state_color"></span>
|
||||
<span class="state_title">复位按钮</span>
|
||||
</li>
|
||||
<li class="site_btn" :class="result.speedStop_status === '0' ? 'site_btn_disabled' : ''">
|
||||
<span class="state_color"></span>
|
||||
<span class="state_title">避障停车</span>
|
||||
</li>
|
||||
<li class="site_btn" :class="result.securityTentacle_status === '0' ? 'site_btn_disabled' : ''">
|
||||
<span class="state_color"></span>
|
||||
<span class="state_title">安全触边</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
interTime: this.$store.getters.setTime,
|
||||
timer: null,
|
||||
result: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.right_side_box_1
|
||||
_wh(8rem,100%)
|
||||
padding .26rem .34rem 0 0
|
||||
.site_btn_box
|
||||
_wh(100%,auto)
|
||||
margin .24rem 0 0 .24rem
|
||||
overflow hidden
|
||||
.site_btn
|
||||
float left
|
||||
_wh(2.84rem,1.24rem)
|
||||
background #FFFFFF
|
||||
border .12rem solid #DFE1E6
|
||||
border-radius .16rem
|
||||
margin 0 .24rem .2rem
|
||||
_fj(center)
|
||||
span
|
||||
display block
|
||||
.state_color
|
||||
_wh(.32rem,.32rem)
|
||||
background #00C852
|
||||
border-radius .2rem
|
||||
.state_title
|
||||
_font(.32rem,1rem,#696969,,)
|
||||
padding-left .24rem
|
||||
.site_btn_disabled
|
||||
opacity .5
|
||||
.site_btn
|
||||
border .12rem solid #DFE1E6
|
||||
.state_color
|
||||
background #C6C6C6
|
||||
.state_title
|
||||
color #696969
|
||||
</style>
|
||||
64
src/pages/modules/vehicleinformation/vehiclestatus.vue
Normal file
64
src/pages/modules/vehicleinformation/vehiclestatus.vue
Normal file
@@ -0,0 +1,64 @@
|
||||
<template>
|
||||
<div class="right_side">
|
||||
<div class="right_side_box_1">
|
||||
<ul class="site_btn_box">
|
||||
<li class="site_btn">{{result.working_status}}</li>
|
||||
</ul>
|
||||
<ul class="site_btn_box">
|
||||
<li class="site_btn">{{result.vehicle_status}}</li>
|
||||
</ul>
|
||||
<ul class="site_btn_box site_btn_box_1">
|
||||
<li class="site_btn site_btn_1">X坐标:{{result.x}}</li>
|
||||
<li class="site_btn site_btn_1">Y坐标:{{result.y}}</li>
|
||||
<li class="site_btn site_btn_1">航向角:{{result.z}}</li>
|
||||
<li class="site_btn site_btn_1">下发速度:{{result.send_speed}}</li>
|
||||
<li class="site_btn site_btn_1">实际速度:{{result.real_speed}}</li>
|
||||
<li class="site_btn site_btn_1">舵轮角度:{{result.carrier}}</li>
|
||||
<li class="site_btn site_btn_1">横向偏差:{{result.landscape_deviation}}</li>
|
||||
<li class="site_btn site_btn_1">航向偏差:{{result.course_deviation}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
interTime: this.$store.getters.setTime,
|
||||
timer: null,
|
||||
result: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.right_side_box_1
|
||||
_wh(100%,100%)
|
||||
padding .26rem .34rem 0 .48rem
|
||||
.site_btn_box
|
||||
_wh(100%,auto)
|
||||
overflow hidden
|
||||
.site_btn_box_1
|
||||
margin-top .2rem
|
||||
_fj(flex-start)
|
||||
flex-wrap wrap
|
||||
.site_btn
|
||||
float left
|
||||
_wh(2.6rem,1rem)
|
||||
background #FFFFFF
|
||||
border 1.6px solid #54C0B3
|
||||
box-shadow 2px 0px 5px 0px rgba(222,222,222,1)
|
||||
border-radius .16rem
|
||||
_font(.32rem,1rem,#54C0B3,,center)
|
||||
margin-right .3rem
|
||||
margin-bottom .2rem
|
||||
.site_btn_1
|
||||
width 30%
|
||||
border 1.6px solid #8B90A6
|
||||
color: #696969
|
||||
margin-right 3%
|
||||
margin-bottom .24rem
|
||||
</style>
|
||||
@@ -5,47 +5,46 @@
|
||||
<span class="company-logo"></span>
|
||||
</div>
|
||||
<div class="horizontal-menu-container">
|
||||
<el-menu :default-active="activeIndex" mode="horizontal">
|
||||
<el-menu-item :index="menu.index" v-for="menu in menus" :key="menu.index">
|
||||
<router-link :to="menu.router">{{menu.label}}</router-link>
|
||||
</el-menu-item>
|
||||
<el-menu :default-active="activeIndex" mode="horizontal" @select="handleSelect">
|
||||
<el-menu-item :index="menu.index" v-for="menu in menus" :key="menu.index">{{menu.label}}</el-menu-item>
|
||||
</el-menu>
|
||||
</div>
|
||||
<div class="user-container">
|
||||
<div class="state-container">
|
||||
<div class="state-item">运行</div>
|
||||
<div class="state-line"></div>
|
||||
<div class="state-item">自动</div>
|
||||
<div class="state-line"></div>
|
||||
<div class="state-item">中文<i class="icon_dropdown"></i></div>
|
||||
</div>
|
||||
<div class="user-container">
|
||||
<div class="elec-qty-wrap">
|
||||
<div class="elec-qty"></div>
|
||||
</div>
|
||||
<div class="elec-txt">90%</div>
|
||||
<div class="iconfont icon_admin"></div>
|
||||
<div class="elec-txt">admin</div>
|
||||
<v-time/>
|
||||
</div>
|
||||
<div class="time-container">
|
||||
<jxTime></jxTime>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body-conatiner">
|
||||
<div class="side-bar-container"></div>
|
||||
<div class="main-container"></div>
|
||||
</div>
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import time from '@components/time.vue'
|
||||
import jxTime from '@components/time.vue'
|
||||
export default {
|
||||
components: {
|
||||
vTime: time
|
||||
jxTime
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
activeIndex: '1',
|
||||
activeIndex: this.$store.getters.defaultActive,
|
||||
menus: [{
|
||||
label: '首页',
|
||||
index: '1',
|
||||
router: ''
|
||||
router: '/homehome'
|
||||
}, {
|
||||
label: '任务管理',
|
||||
index: '2',
|
||||
@@ -57,11 +56,11 @@ export default {
|
||||
}, {
|
||||
label: '车辆信息',
|
||||
index: '4',
|
||||
router: ''
|
||||
router: '/vehiclestatus'
|
||||
}, {
|
||||
label: '示教',
|
||||
index: '5',
|
||||
router: ''
|
||||
router: '/teach'
|
||||
}, {
|
||||
label: '地图',
|
||||
index: '6',
|
||||
@@ -72,6 +71,15 @@ export default {
|
||||
router: ''
|
||||
}]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSelect (key) {
|
||||
this.activeIndex = key
|
||||
this.$store.dispatch('getDefaultActive', key)
|
||||
this.$router.push({
|
||||
path: this.menus[Number(key) - 1].router
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -79,10 +87,7 @@ export default {
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.index-container
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
_wh(100%, 100%)
|
||||
.header-container
|
||||
_fj()
|
||||
_wh(100%, 61px)
|
||||
@@ -94,31 +99,33 @@ export default {
|
||||
.company-logo
|
||||
display block
|
||||
_wh(100%, 100%)
|
||||
background url(../../../../images/aio/logo_1.png) left center / 100% auto no-repeat
|
||||
background url(../../../images/aio/logo_1.png) left center / 100% auto no-repeat
|
||||
.horizontal-menu-container
|
||||
height 61px
|
||||
>>>.el-menu-item
|
||||
padding 0 9px
|
||||
padding 0 7px
|
||||
.state-container
|
||||
_fj()
|
||||
.user-container
|
||||
_fj()
|
||||
.time-container
|
||||
_fj()
|
||||
.state-item
|
||||
border 1px solid #54C0B3
|
||||
border-radius 4px
|
||||
_font(15px,25px,#54C0B3,,center)
|
||||
padding 0 7px
|
||||
margin 0 10px
|
||||
&:nth-child(1)
|
||||
margin-left 0
|
||||
.state-line
|
||||
_wh(2px,20px)
|
||||
opacity 0.3
|
||||
background #8991A6
|
||||
margin 0 10px
|
||||
.elec-qty-wrap
|
||||
position relative
|
||||
width 15px
|
||||
height 30px
|
||||
height 25px
|
||||
border 1px solid #dddddd
|
||||
margin-right 3px
|
||||
margin-right 2px
|
||||
.elec-qty
|
||||
position absolute
|
||||
width 100%
|
||||
@@ -129,6 +136,10 @@ export default {
|
||||
// background-color #fa6400
|
||||
.elec-txt
|
||||
_font(15px, 25px, #909399,,left)
|
||||
margin-right 10px
|
||||
.icon_admin
|
||||
_font(20px, 25px, #909399,,left)
|
||||
_font(20px, 25px, #54C0B3,,left)
|
||||
margin-right 2px
|
||||
>>>.el-menu
|
||||
border-right none
|
||||
</style>
|
||||
43
src/pages/shells/sidebar/sidebar.vue
Normal file
43
src/pages/shells/sidebar/sidebar.vue
Normal file
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<el-menu :default-active="activeIndex" @select="handleSelect">
|
||||
<el-menu-item :index="menu.index" v-for="menu in menus" :key="menu.index">{{menu.label}}</el-menu-item>
|
||||
</el-menu>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'jxSidebar',
|
||||
props: {
|
||||
menus: Array
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
activeIndex: '1'
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.menus.map(el => {
|
||||
if (el.router === this.$route.path) {
|
||||
this.activeIndex = el.index
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
handleSelect (key) {
|
||||
this.activeIndex = key
|
||||
this.$router.push({
|
||||
path: this.menus[Number(key) - 1].router
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
>>>.el-menu-item a
|
||||
color #909399
|
||||
>>>.is-active
|
||||
background-color: #ecf5ff
|
||||
>>>.is-active a
|
||||
color #409EFF
|
||||
</style>
|
||||
@@ -4,7 +4,18 @@ import Router from 'vue-router'
|
||||
const Preload = r => require.ensure([], () => r(require('@page/Preload')), 'Preload')
|
||||
const Setup = r => require.ensure([], () => r(require('@page/Setup')), 'Setup')
|
||||
|
||||
const IndexComponent = r => require.ensure([], () => r(require('@page/shells/management/index/index.vue')), 'shells')
|
||||
const IndexComponent = r => require.ensure([], () => r(require('@page/shells/index/index.vue')), 'shells')
|
||||
|
||||
const IndexHome = r => require.ensure([], () => r(require('@page/modules/home/index.vue')), 'modules')
|
||||
const HomeHome = r => require.ensure([], () => r(require('@page/modules/home/home.vue')), 'modules')
|
||||
|
||||
const VehicleInformation = r => require.ensure([], () => r(require('@page/modules/vehicleinformation/index.vue')), 'modules')
|
||||
const VehicleStatus = r => require.ensure([], () => r(require('@page/modules/vehicleinformation/vehiclestatus.vue')), 'modules')
|
||||
const SensorStatus = r => require.ensure([], () => r(require('@page/modules/vehicleinformation/sensorstatus.vue')), 'modules')
|
||||
const AgvStatus = r => require.ensure([], () => r(require('@page/modules/vehicleinformation/agvstatus.vue')), 'modules')
|
||||
|
||||
const Teach = r => require.ensure([], () => r(require('@page/modules/teach/teach.vue')), 'modules')
|
||||
|
||||
// carry
|
||||
const Home = r => require.ensure([], () => r(require('@page/Home2')), 'Home')
|
||||
const MovePoint = r => require.ensure([], () => r(require('@page/MovePoint')), 'MovePoint')
|
||||
@@ -42,7 +53,30 @@ export default new Router({
|
||||
{
|
||||
path: '/index',
|
||||
component: IndexComponent,
|
||||
children: []
|
||||
children: [{
|
||||
path: '/indexhome',
|
||||
component: IndexHome,
|
||||
children: [{
|
||||
path: '/homehome',
|
||||
component: HomeHome
|
||||
}]
|
||||
}, {
|
||||
path: '/vehicleinformation',
|
||||
component: VehicleInformation,
|
||||
children: [{
|
||||
path: '/vehiclestatus',
|
||||
component: VehicleStatus
|
||||
}, {
|
||||
path: '/sensorstatus',
|
||||
component: SensorStatus
|
||||
}, {
|
||||
path: '/agvstatus',
|
||||
component: AgvStatus
|
||||
}]
|
||||
}, {
|
||||
path: '/teach',
|
||||
component: Teach
|
||||
}]
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
|
||||
@@ -39,13 +39,22 @@
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.body-conatiner
|
||||
_fj()
|
||||
_wh(100%, calc(100% - 61px))
|
||||
.side-bar-container
|
||||
_wh(120px, 100%)
|
||||
border-right solid 1px #e6e6e6
|
||||
.main-container
|
||||
_wh(calc(100% - 120px), 100%)
|
||||
|
||||
.site_container
|
||||
_wh(100%, calc(100% - 82px))
|
||||
overflow hidden
|
||||
.left_side
|
||||
_wh(2.72rem, 100%)
|
||||
.right_side
|
||||
_wh(calc(100% - 2.72rem), 100%)
|
||||
_wh(100%, 100%)
|
||||
|
||||
.filter-table
|
||||
width 100%
|
||||
|
||||
@@ -15,10 +15,6 @@ time, mark, audio, video, input, button {
|
||||
padding: 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
/* font-size: 0.14rem;
|
||||
line-height: inherit;
|
||||
color: #464646;
|
||||
font-weight: normal; */
|
||||
}
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
@@ -56,7 +52,6 @@ table {
|
||||
|
||||
/* custom */
|
||||
a,a:link,a:visited,a:active {
|
||||
color: #7e8c8d;
|
||||
text-decoration: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
import * as types from '../types'
|
||||
// import { getStore, setStore } from '@config/mUtils.js'
|
||||
import { getStore, setStore } from '@config/utils.js'
|
||||
|
||||
const state = {
|
||||
materObj: {}, // 物料查询-盘点修改
|
||||
hcxCheckObj: {} // 缓存线盘点 - 盘点修改
|
||||
hcxCheckObj: {}, // 缓存线盘点 - 盘点修改,
|
||||
defaultActive: getStore('defaultActive') || '1',
|
||||
sideActive: getStore('sideActive') || '1'
|
||||
}
|
||||
|
||||
const getters = {
|
||||
materObj: state => state.materObj,
|
||||
hcxCheckObj: state => state.hcxCheckObj
|
||||
hcxCheckObj: state => state.hcxCheckObj,
|
||||
defaultActive: state => state.defaultActive
|
||||
}
|
||||
|
||||
const actions = {
|
||||
@@ -17,6 +20,10 @@ const actions = {
|
||||
},
|
||||
hcxCheckObj ({commit}, res) {
|
||||
commit(types.HCX_CHECK_OBJ, res)
|
||||
},
|
||||
getDefaultActive ({commit}, res) {
|
||||
setStore('defaultActive', res)
|
||||
commit(types.GET_DEFAULT_ACTIVE, res)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +33,9 @@ const mutations = {
|
||||
},
|
||||
[types.HCX_CHECK_OBJ] (state, res) {
|
||||
state.hcxCheckObj = res
|
||||
},
|
||||
[types.GET_DEFAULT_ACTIVE] (state, res) {
|
||||
state.defaultActive = res
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,3 +18,5 @@ export const SET_DEVICE = 'SET_DEVICE'
|
||||
// hcx数据
|
||||
export const MATER_OBJ = 'MATER_OBJ' // 物料查询-盘点修改
|
||||
export const HCX_CHECK_OBJ = 'HCX_CHECK_OBJ' // 缓存线盘点 - 盘点修改
|
||||
|
||||
export const GET_DEFAULT_ACTIVE = 'GET_DEFAULT_ACTIVE' // 菜单activeIndex
|
||||
|
||||
32
static/index.html
Normal file
32
static/index.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><title>立讯</title><script src=../../common/js/appmui.js></script><link href=./static/css/app.eed548fc062a5e0f06128b17bafe2ce6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.5f51929fc72978eab5e9.js></script><script type=text/javascript src=./static/js/app.522a115ee52bf347942f.js></script></body><script type=text/javascript>var event = document.createEvent('HTMLEvents');
|
||||
event.initEvent('qrcodeEvent', false, true);
|
||||
//提供给Android调用的方法
|
||||
function qrcodeCallback(result){
|
||||
event.data = {lxqrcode: result};
|
||||
window.dispatchEvent(event);
|
||||
}
|
||||
function barcodeCallback(result){
|
||||
window.lxqrcode = result
|
||||
// event.data = {lxqrcode: result};
|
||||
// window.dispatchEvent(event);
|
||||
}
|
||||
function imgUploadCallback(result){
|
||||
window.upimgres = result
|
||||
}
|
||||
// window.onload=function(){
|
||||
// document.onkeydown=function(ev){
|
||||
// var event=ev ||event
|
||||
// if(event.keyCode==13){
|
||||
// imgUploadCallback('{"code":"1","desc":"上传成功","fileid":"6042511C35AF4B258045196D19DF9CA0"}')
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// enter键测试调用扫码函数
|
||||
// window.onload=function(){
|
||||
// document.onkeydown=function(ev){
|
||||
// var event=ev ||event
|
||||
// if(event.keyCode==13){
|
||||
// barcodeCallback('04#T0001')
|
||||
// }
|
||||
// }
|
||||
// }</script></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
static/static/fonts/element-icons.535877f.woff
Normal file
BIN
static/static/fonts/element-icons.535877f.woff
Normal file
Binary file not shown.
BIN
static/static/fonts/element-icons.732389d.ttf
Normal file
BIN
static/static/fonts/element-icons.732389d.ttf
Normal file
Binary file not shown.
BIN
static/static/img/bg.04fc0af.png
Normal file
BIN
static/static/img/bg.04fc0af.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
BIN
static/static/img/bg2.c06cca7.png
Normal file
BIN
static/static/img/bg2.c06cca7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
static/static/img/bg3.e7cbf84.png
Normal file
BIN
static/static/img/bg3.e7cbf84.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 159 KiB |
9
static/static/js/0.c6ecf374a3ed74bd7cba.js
Normal file
9
static/static/js/0.c6ecf374a3ed74bd7cba.js
Normal file
File diff suppressed because one or more lines are too long
1
static/static/js/0.c6ecf374a3ed74bd7cba.js.map
Normal file
1
static/static/js/0.c6ecf374a3ed74bd7cba.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/1.a1577c7b9ecac816ac33.js
Normal file
2
static/static/js/1.a1577c7b9ecac816ac33.js
Normal file
File diff suppressed because one or more lines are too long
1
static/static/js/1.a1577c7b9ecac816ac33.js.map
Normal file
1
static/static/js/1.a1577c7b9ecac816ac33.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/2.c6bd5a548d16a02c6a57.js
Normal file
2
static/static/js/2.c6bd5a548d16a02c6a57.js
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([2],{"5zde":function(t,e,s){s("zQR9"),s("qyJz"),t.exports=s("FeBl").Array.from},Gu7T:function(t,e,s){"use strict";e.__esModule=!0;var n,r=s("c/Tr"),a=(n=r)&&n.__esModule?n:{default:n};e.default=function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e<t.length;e++)s[e]=t[e];return s}return(0,a.default)(t)}},P7Ss:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s("Xxa5"),r=s.n(n),a=s("Gu7T"),i=s.n(a),o=s("exGp"),c=s.n(o),u=s("4ijW"),l={name:"Home",data:function(){return{menuList:[],show:!1,secM:[]}},mounted:function(){document.getElementsByTagName("body")[0].className="bgwhite",this.$store.dispatch("receiveMaterObj",{})},created:function(){},methods:{toPage:function(t){var e=t.path.substr(2);"CheckManage"!==e&&"PressCallMater"!==e||this.$store.dispatch("setKeepAlive",[e]),this.$router.push(t.path.substr(2))},_authority:function(){var t=this;return c()(r.a.mark(function e(){var s,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=""!==t.$store.getters.userInfo?JSON.parse(t.$store.getters.userInfo).account_id:"",e.next=3,Object(u.a)(s);case 3:"1"===(n=e.sent).code?t.menuList=[].concat(i()(n.result.sonTree)):t.Dialog(n.desc);case 5:case"end":return e.stop()}},e,t)}))()},Quit:function(){this.$store.dispatch("setSignOut"),this.$router.push("/login")},goInner:function(t){var e=t.substr(1);"CheckManage"!==e&&"PressCallMater"!==e||this.$store.dispatch("setKeepAlive",[e]),this.$router.push(t)}}},f={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",[t._m(0),t._v(" "),s("section",{staticClass:"content",staticStyle:{"margin-bottom":"0"}},[s("div",{staticClass:"userInfo"},[s("div",{staticClass:"fxcol"},[s("p",{staticClass:"p1"},[t._v(t._s(""!==t.$store.getters.userInfo?JSON.parse(t.$store.getters.userInfo).user_name:""))]),t._v(" "),s("p",{staticClass:"p2"},[t._v("欢迎进入晟华手持系统!")])]),t._v(" "),s("div",{staticClass:"exit",on:{click:t.Quit}},[s("i",{staticClass:"icon-exit"}),t._v(" "),s("span",{staticClass:"exit-text"},[t._v("退出")])])])]),t._v(" "),s("div",{staticClass:"con"},[s("ul",[s("li",{on:{click:function(e){t.goInner("/callmanage")}}},[t._v("呼叫管理")]),t._v(" "),s("li",{on:{click:function(e){t.goInner("/zlmanage")}}},[t._v("指令管理")]),t._v(" "),s("li",{on:{click:function(e){t.goInner("/taskmanage")}}},[t._v("任务管理")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("header",[e("span",{staticClass:"fxcol"},[this._v("首页")])])}]};var v=s("VU/8")(l,f,!1,function(t){s("djX5")},"data-v-113cd606",null);e.default=v.exports},"c/Tr":function(t,e,s){t.exports={default:s("5zde"),__esModule:!0}},djX5:function(t,e){},fBQ2:function(t,e,s){"use strict";var n=s("evD5"),r=s("X8DO");t.exports=function(t,e,s){e in t?n.f(t,e,r(0,s)):t[e]=s}},qyJz:function(t,e,s){"use strict";var n=s("+ZMJ"),r=s("kM2E"),a=s("sB3e"),i=s("msXi"),o=s("Mhyx"),c=s("QRG4"),u=s("fBQ2"),l=s("3fs2");r(r.S+r.F*!s("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var e,s,r,f,v=a(t),d="function"==typeof this?this:Array,h=arguments.length,p=h>1?arguments[1]:void 0,_=void 0!==p,g=0,m=l(v);if(_&&(p=n(p,h>2?arguments[2]:void 0,2)),void 0==m||d==Array&&o(m))for(s=new d(e=c(v.length));e>g;g++)u(s,g,_?p(v[g],g):v[g]);else for(f=m.call(v),s=new d;!(r=f.next()).done;g++)u(s,g,_?i(f,p,[r.value,g],!0):r.value);return s.length=g,s}})}});
|
||||
//# sourceMappingURL=2.c6bd5a548d16a02c6a57.js.map
|
||||
1
static/static/js/2.c6bd5a548d16a02c6a57.js.map
Normal file
1
static/static/js/2.c6bd5a548d16a02c6a57.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/3.6feecf8fb27229691e6a.js
Normal file
2
static/static/js/3.6feecf8fb27229691e6a.js
Normal file
File diff suppressed because one or more lines are too long
1
static/static/js/3.6feecf8fb27229691e6a.js.map
Normal file
1
static/static/js/3.6feecf8fb27229691e6a.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/4.1a05ec528439494ece29.js
Normal file
2
static/static/js/4.1a05ec528439494ece29.js
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([4],{AQMZ:function(t,e){},B8a8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("Xxa5"),a=n.n(s),i=n("exGp"),r=n.n(i),c=n("g2+m"),d=n("LIob"),o={name:"ZlManage",components:{NavBar:c.a},data:function(){return{keyword:"",startPoint:"",endPoint:"",btnred:!1,disabled:!1,dataList:[],pkId:""}},mounted:function(){this.queryInstraction(this.keyword,this.startPoint,this.endPoint)},methods:{queryInstraction:function(){var t=this;return r()(a.a.mark(function e(){var n;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d.b)(t.keyword,t.startPoint,t.endPoint);case 3:"1"===(n=e.sent).code?t.dataList=n.result:t.Dialog(n.desc),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),t.Dialog(e.t0);case 10:case"end":return e.stop()}},e,t,[[0,7]])}))()},instOperation:function(t){var e=this;return r()(a.a.mark(function n(){var s;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(d.a)(e.pkId,t);case 3:"1"===(s=n.sent).code?(e.toast("操作成功"),e.disabled=!1,e.pkId="",e.btnred=!1,e.dataList=[],e.queryInstraction()):(e.Dialog(s.desc),e.disabled=!1),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),console.log(n.t0);case 10:case"end":return n.stop()}},n,e,[[0,7]])}))()},toSure:function(t){this.pkId&&(this.disabled=!0,this.instOperation(t))},toCheck:function(t){this.pkId=this.pkId===t.inst_uuid?"":t.inst_uuid,this.pkId?this.btnred=!0:this.btnred=!1}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("nav-bar",{attrs:{title:"指令管理"}}),t._v(" "),n("section",{staticClass:"content grid-wraper"},[n("div",{staticClass:"left_fixed"},[n("table",{staticClass:"layout-t left_layout_t"},[t._m(0),t._v(" "),t._l(t.dataList,function(e,s){return n("tr",{key:s,class:{checked:e.inst_uuid===t.pkId},on:{click:function(n){t.toCheck(e)}}},[n("td",[t._v(t._s(e.task_no))])])})],2)]),t._v(" "),n("div",{staticClass:"slide"},[n("table",{staticClass:"layout-t"},[t._m(1),t._v(" "),t._l(t.dataList,function(e,s){return n("tr",{key:s,class:{checked:e.inst_uuid===t.pkId},on:{click:function(n){t.toCheck(e)}}},[n("td",[t._v(t._s(e.inst_no))]),t._v(" "),n("td",[t._v(t._s(e.start_devicecode))]),t._v(" "),n("td",[t._v(t._s(e.next_devicecode))]),t._v(" "),n("td",[t._v(t._s(e.inst_status_name))]),t._v(" "),n("td",[t._v(t._s(e.vehicle_code))]),t._v(" "),n("td",[t._v(t._s(e.carno))]),t._v(" "),n("td",[t._v(t._s(e.material_type_name))]),t._v(" "),n("td",[t._v(t._s(e.priority))]),t._v(" "),n("td",[t._v(t._s(e.create_time))])])})],2)])]),t._v(" "),n("section",{staticClass:"submit-bar"},[n("button",{staticClass:"btn btn-disabled submit-button",class:{bgred:t.btnred},attrs:{disabled:t.disabled},on:{click:function(e){t.toSure("1")}}},[t._v("指令撤销")]),t._v(" "),n("button",{staticClass:"btn btn-disabled submit-button",class:{bgred:t.btnred},attrs:{disabled:t.disabled},on:{click:function(e){t.toSure("2")}}},[t._v("重新下发")]),t._v(" "),n("button",{staticClass:"btn btn-disabled submit-button",class:{bgred:t.btnred},attrs:{disabled:t.disabled},on:{click:function(e){t.toSure("3")}}},[t._v("强制完成")])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("th",[this._v("任务号")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("th",[t._v("指令号")]),t._v(" "),n("th",[t._v("起点")]),t._v(" "),n("th",[t._v("终点")]),t._v(" "),n("th",[t._v("状态")]),t._v(" "),n("th",[t._v("托盘号")]),t._v(" "),n("th",[t._v("agv车号")]),t._v(" "),n("th",[t._v("物料类型")]),t._v(" "),n("th",[t._v("优先级")]),t._v(" "),n("th",[t._v("时间")])])}]};var _=n("VU/8")(o,u,!1,function(t){n("AQMZ")},"data-v-89640e5c",null);e.default=_.exports},LIob:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return c});var s=n("FT/c"),a=function(t,e,n){return Object(s.a)("api/hand/insts",{keyword:t,start_devicecode:e,next_devicecode:n})},i=function(t,e){return Object(s.a)("api/hand/inst",{inst_uuid:t,type:e})},r=function(t,e,n){return Object(s.a)("api/hand/tasks",{keyword:t,start_devicecode:e,next_devicecode:n})},c=function(t,e){return Object(s.a)("api/hand/taskoperation",{inst_uuid:t,type:e})}}});
|
||||
//# sourceMappingURL=4.1a05ec528439494ece29.js.map
|
||||
1
static/static/js/4.1a05ec528439494ece29.js.map
Normal file
1
static/static/js/4.1a05ec528439494ece29.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/5.8cc26d78d218acc78b93.js
Normal file
2
static/static/js/5.8cc26d78d218acc78b93.js
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([5],{"1rzF":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("Xxa5"),s=n.n(a),i=n("exGp"),r=n.n(i),c=n("g2+m"),d=n("LIob"),o={name:"TaskManage",components:{NavBar:c.a},data:function(){return{keyword:"",startPoint:"",endPoint:"",btnred:!1,disabled:!1,dataList:[],pkId:""}},mounted:function(){this.queryTask(this.keyword,this.startPoint,this.endPoint)},methods:{queryTask:function(){var t=this;return r()(s.a.mark(function e(){var n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d.c)(t.keyword,t.startPoint,t.endPoint);case 3:"1"===(n=e.sent).code?t.dataList=n.result:t.Dialog(n.desc),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),t.Dialog(e.t0);case 10:case"end":return e.stop()}},e,t,[[0,7]])}))()},taskOperation:function(t){var e=this;return r()(s.a.mark(function n(){var a;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(d.d)(e.pkId,t);case 3:"1"===(a=n.sent).code?(e.toast("操作成功"),e.disabled=!1,e.pkId="",e.btnred=!1,e.dataList=[],e.queryTask()):(e.Dialog(a.desc),e.disabled=!1),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),console.log(n.t0);case 10:case"end":return n.stop()}},n,e,[[0,7]])}))()},toSure:function(t){this.pkId&&(this.disabled=!0,this.taskOperation(t))},toCheck:function(t){this.pkId=this.pkId===t.task_uuid?"":t.task_uuid,this.pkId?this.btnred=!0:this.btnred=!1}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("nav-bar",{attrs:{title:"任务管理"}}),t._v(" "),n("section",{staticClass:"content grid-wraper"},[n("div",{staticClass:"left_fixed"},[n("table",{staticClass:"layout-t left_layout_t"},[t._m(0),t._v(" "),t._l(t.dataList,function(e,a){return n("tr",{key:a,class:{checked:e.task_uuid===t.pkId},on:{click:function(n){t.toCheck(e)}}},[n("td",[t._v(t._s(e.task_no))])])})],2)]),t._v(" "),n("div",{staticClass:"slide"},[n("table",{staticClass:"layout-t"},[t._m(1),t._v(" "),t._l(t.dataList,function(e,a){return n("tr",{key:a,class:{checked:e.task_uuid===t.pkId},on:{click:function(n){t.toCheck(e)}}},[n("td",[t._v(t._s(e.start_devicecode))]),t._v(" "),n("td",[t._v(t._s(e.next_devicecode))]),t._v(" "),n("td",[t._v(t._s(e.task_status_name))]),t._v(" "),n("td",[t._v(t._s(e.vehicle_code))]),t._v(" "),n("td",[t._v(t._s(e.material_type_name))]),t._v(" "),n("td",[t._v(t._s(e.priority))]),t._v(" "),n("td",[t._v(t._s(e.create_time))])])})],2)])]),t._v(" "),n("section",{staticClass:"submit-bar"},[n("button",{staticClass:"btn btn-disabled submit-button",class:{bgred:t.btnred},attrs:{disabled:t.disabled},on:{click:function(e){t.toSure("1")}}},[t._v("重新生成")]),t._v(" "),n("button",{staticClass:"btn btn-disabled submit-button",class:{bgred:t.btnred},attrs:{disabled:t.disabled},on:{click:function(e){t.toSure("2")}}},[t._v("强制完成")])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("th",[this._v("任务号")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("th",[t._v("起点")]),t._v(" "),n("th",[t._v("终点")]),t._v(" "),n("th",[t._v("状态")]),t._v(" "),n("th",[t._v("托盘号")]),t._v(" "),n("th",[t._v("物料类型")]),t._v(" "),n("th",[t._v("优先级")]),t._v(" "),n("th",[t._v("时间")])])}]};var _=n("VU/8")(o,u,!1,function(t){n("9HY+")},"data-v-1e7d824a",null);e.default=_.exports},"9HY+":function(t,e){},LIob:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return c});var a=n("FT/c"),s=function(t,e,n){return Object(a.a)("api/hand/insts",{keyword:t,start_devicecode:e,next_devicecode:n})},i=function(t,e){return Object(a.a)("api/hand/inst",{inst_uuid:t,type:e})},r=function(t,e,n){return Object(a.a)("api/hand/tasks",{keyword:t,start_devicecode:e,next_devicecode:n})},c=function(t,e){return Object(a.a)("api/hand/taskoperation",{inst_uuid:t,type:e})}}});
|
||||
//# sourceMappingURL=5.8cc26d78d218acc78b93.js.map
|
||||
1
static/static/js/5.8cc26d78d218acc78b93.js.map
Normal file
1
static/static/js/5.8cc26d78d218acc78b93.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/6.b532cc0a402d61a4ad3d.js
Normal file
2
static/static/js/6.b532cc0a402d61a4ad3d.js
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([6],{QDAA:function(e,s){},vdVF:function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=t("Xxa5"),o=t.n(a),n=t("mvHQ"),i=t.n(n),r=t("woOf"),c=t.n(r),l=t("exGp"),d=t.n(l),p=t("4ijW"),m=t("NHnr"),u={name:"Login",data:function(){return{loginname:"",password:"",type:"password",memberName:!1,disabled:!1}},created:function(){""!==this.$store.getters.userInfo&&(this.loginname=JSON.parse(this.$store.getters.userInfo).loginname,this.memberName=""!==this.loginname)},mounted:function(){document.getElementsByTagName("body")[0].className="login-bg"},methods:{changeType:function(){this.type="password"===this.type?"text":"password"},Remember:function(){this.memberName=!this.memberName},loginApi:function(){var e=this;return d()(o.a.mark(function s(){var t,a;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(p.c)(e.loginname,Object(m.encrypt)(e.password));case 3:"1"===(t=s.sent).code?(a={},a=e.memberName?c()({},t.result,{loginname:e.loginname}):c()({},t.result,{loginname:""}),e.$store.dispatch("setUserInfo",i()(a)),e.$router.push("/home")):e.toast(t.desc),e.disabled=!1,s.next=11;break;case 8:s.prev=8,s.t0=s.catch(0),e.disabled=!1;case 11:case"end":return s.stop()}},s,e,[[0,8]])}))()},_Login:function(){return this.disabled=!0,""===this.loginname?(this.toast("用户名不能为空"),void(this.disabled=!1)):""===this.password?(this.toast("密码不能为空"),void(this.disabled=!1)):(this.logintype="01",void this.loginApi())}}},v={render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("section",[t("section",{staticClass:"content"},[t("p",{staticClass:"p1"},[e._v("欢迎来到")]),e._v(" "),t("p",{staticClass:"p2"},[e._v("立讯手持系统!")]),e._v(" "),t("div",{staticClass:"input-box"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginname,expression:"loginname"}],staticClass:"allwidth",attrs:{type:"text",placeholder:"请输入用户名"},domProps:{value:e.loginname},on:{input:function(s){s.target.composing||(e.loginname=s.target.value)}}})]),e._v(" "),t("div",{staticClass:"fxrow input-box"},["checkbox"===e.type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"fxcol",attrs:{placeholder:"请输入密码",type:"checkbox"},domProps:{checked:Array.isArray(e.password)?e._i(e.password,null)>-1:e.password},on:{change:function(s){var t=e.password,a=s.target,o=!!a.checked;if(Array.isArray(t)){var n=e._i(t,null);a.checked?n<0&&(e.password=t.concat([null])):n>-1&&(e.password=t.slice(0,n).concat(t.slice(n+1)))}else e.password=o}}}):"radio"===e.type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"fxcol",attrs:{placeholder:"请输入密码",type:"radio"},domProps:{checked:e._q(e.password,null)},on:{change:function(s){e.password=null}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"fxcol",attrs:{placeholder:"请输入密码",type:e.type},domProps:{value:e.password},on:{input:function(s){s.target.composing||(e.password=s.target.value)}}}),e._v(" "),t("i",{staticClass:"icon-eye",class:"password"===e.type?"icon-eye-close":"icon-eye-open",on:{click:e.changeType}})]),e._v(" "),t("div",{staticClass:"fxrow check-box"},[t("i",{staticClass:"icon-name-check",class:{"icon-name-checked":e.memberName},on:{click:e.Remember}}),e._v(" "),t("span",{staticClass:"fxcol"},[e._v("记住用户名")]),e._v(" "),t("router-link",{staticClass:"fxcol",staticStyle:{"text-align":"right",color:"#6798ef"},attrs:{to:{path:"/setup"}}},[e._v("设置")])],1),e._v(" "),t("button",{staticClass:"login-btn",attrs:{disabled:e.disabled},on:{click:e._Login}},[e._v("确认登录")])])])},staticRenderFns:[]};var h=t("VU/8")(u,v,!1,function(e){t("QDAA")},"data-v-78eaeccc",null);s.default=h.exports}});
|
||||
//# sourceMappingURL=6.b532cc0a402d61a4ad3d.js.map
|
||||
1
static/static/js/6.b532cc0a402d61a4ad3d.js.map
Normal file
1
static/static/js/6.b532cc0a402d61a4ad3d.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/7.99db30d8ef6f7ce4c098.js
Normal file
2
static/static/js/7.99db30d8ef6f7ce4c098.js
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([7],{Y9Dn:function(t,s){},iL8N:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("section",[t._m(0),t._v(" "),e("section",{staticClass:"content"},[e("ul",{staticClass:"pwd-manage-content"},[e("li",[e("span",[t._v("acs地址:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.acsip,expression:"acsip",modifiers:{trim:!0}}],attrs:{type:"text"},domProps:{value:t.acsip},on:{input:function(s){s.target.composing||(t.acsip=s.target.value.trim())},blur:function(s){t.$forceUpdate()}}})])])]),t._v(" "),e("section",{staticClass:"submit-bar"},[e("button",{staticClass:"btn submit-button",on:{click:t._submit}},[t._v("确认")])])])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("header",[s("span",{staticClass:"fxcol"},[this._v("设置")])])}]};var a=e("VU/8")({name:"Setup",data:function(){return{addrip:this.$store.getters.baseUrl,acsip:this.$store.getters.acsip,printip:this.$store.getters.printUrl,setTime:this.$store.getters.setTime}},methods:{_submit:function(){""!==this.acsip?(this.$store.dispatch("setAcsIp",this.acsip),this.$router.push("/login")):this.toast("请填写acs地址")}}},i,!1,function(t){e("Y9Dn")},"data-v-37671e02",null);s.default=a.exports}});
|
||||
//# sourceMappingURL=7.99db30d8ef6f7ce4c098.js.map
|
||||
1
static/static/js/7.99db30d8ef6f7ce4c098.js.map
Normal file
1
static/static/js/7.99db30d8ef6f7ce4c098.js.map
Normal file
File diff suppressed because one or more lines are too long
49
static/static/js/app.522a115ee52bf347942f.js
Normal file
49
static/static/js/app.522a115ee52bf347942f.js
Normal file
File diff suppressed because one or more lines are too long
1
static/static/js/app.522a115ee52bf347942f.js.map
Normal file
1
static/static/js/app.522a115ee52bf347942f.js.map
Normal file
File diff suppressed because one or more lines are too long
2
static/static/js/manifest.5f51929fc72978eab5e9.js
Normal file
2
static/static/js/manifest.5f51929fc72978eab5e9.js
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=o(o.s=a[d]);return f};var r={},t={9:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"c6ecf374a3ed74bd7cba",1:"a1577c7b9ecac816ac33",2:"c6bd5a548d16a02c6a57",3:"6feecf8fb27229691e6a",4:"1a05ec528439494ece29",5:"8cc26d78d218acc78b93",6:"b532cc0a402d61a4ad3d",7:"99db30d8ef6f7ce4c098"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
|
||||
//# sourceMappingURL=manifest.5f51929fc72978eab5e9.js.map
|
||||
1
static/static/js/manifest.5f51929fc72978eab5e9.js.map
Normal file
1
static/static/js/manifest.5f51929fc72978eab5e9.js.map
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user