| | |
| | | <input type="text" v-model="basePort"> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="item"> |
| | | <view class="desc">ledId:</view> |
| | | <view class="input"> |
| | | <input type="text" v-model="baseLedId"> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="desc">CrnId:</view> |
| | | <view class="input"> |
| | | <input type="text" v-model="baseCrnId"> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view class="item"> |
| | | <view class="desc">Url:</view> |
| | | <view class="input"> |
| | | <input type="text" v-model="baseUrl"> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="item"> |
| | | <view class="desc">楼层:</view> |
| | | <radio-group @change="floor"> |
| | | <label> |
| | | <radio :checked="ck1" style="margin-left: 50rpx;"/><text>1楼</text> |
| | | </label> |
| | | <label> |
| | | <radio :checked="ck2" style="margin-left: 50rpx;"/><text>3楼</text> |
| | | </label> |
| | | </radio-group> |
| | | </view> |
| | | |
| | | <view class="item"> |
| | | <view class="desc">缓存货架:</view> |
| | | <radio-group @change="radioChange" > |
| | | <label v-for="(item, index) in rows" :key="item.value"> |
| | | <radio style="margin-left: 50rpx;" :value="item.value" :checked="index === current" />{{item.name}} |
| | | </label> |
| | | </radio-group> |
| | | </view> |
| | | |
| | | </scroll-view> |
| | | <!-- button --> |
| | | <view class="eject-button"> |
| | |
| | | data() { |
| | | return { |
| | | locs: [], |
| | | floors: [{value: 1,name:'1楼'},{value:2,name:'3楼'}], |
| | | rows: [{value: 'cs-101',name:'1号'},{value: 'cs-102',name:'2号'}], |
| | | ck1: true, |
| | | ck2: false, |
| | | current: 'cs-101', |
| | | series: [], |
| | | homeViewShow: true, |
| | | infoViewShow: false , |
| | |
| | | baseLedId: '', |
| | | baseCrnId: '', |
| | | baseUrl: 'tzskwms', |
| | | floor1: true, |
| | | floor2: false, |
| | | row: '', |
| | | info: null, |
| | | error: null, |
| | | infoType: 0, |
| | |
| | | // this.getError2() |
| | | // this.getUrl() |
| | | this.controller() |
| | | this.getVisualized() |
| | | },1000) |
| | | |
| | | }, |
| | | methods: { |
| | | floor() { |
| | | var temp = this.ck1 |
| | | this.ck1 = this.ck2 |
| | | this.ck2 = temp |
| | | if (this.ck1) { |
| | | this.rows = [{value: 'cs-101',name:'1号'},{value: 'cs-102',name:'2号'}] |
| | | } else { |
| | | this.rows = [{value: 'CS-305',name:'1号'},{value: 'CS-306',name:'2号'},{value: 'CS-307',name:'3号'}] |
| | | } |
| | | }, |
| | | radioChange(evt) { |
| | | for (let i = 0; i < this.rows.length; i++) { |
| | | if (this.rows[i].value === evt.detail.value) { |
| | | this.current = evt.detail.value; |
| | | break; |
| | | } |
| | | } |
| | | }, |
| | | getVisualized() { |
| | | let that = this |
| | | let param = {stationCode: 'CS-101'} |
| | | let param = {stationCode: `${that.current}`} |
| | | uni.request({ |
| | | url: `${that.commonUrl}/agv/basDevp/visualized/list/auth`, |
| | | header: { 'Access-Control-Allow-Origin': '*'}, |
| | |
| | | @import url("home.css"); |
| | | |
| | | .main-y { |
| | | font-size: 40rpx; |
| | | font-size: 22rpx; |
| | | background-color: rgba(255, 255, 255, .05); |
| | | width:19vw; |
| | | height: 28vh; |
| | |
| | | /* background-color: #FF5722; */ |
| | | } |
| | | .y-it-desc { |
| | | width: 240rpx; |
| | | text-align: right; |
| | | /* background-color: #FF5722; */ |
| | | } |
| | | .margin { |
| | | margin-left: 20rpx; |
| | | margin-left: 10rpx; |
| | | } |
| | | |
| | | /* 列 */ |