样式
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
<view class="setup-label">服务器地址</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model="addrip">
|
||||
</view>
|
||||
<!-- <view class="setup-item">
|
||||
<view class="setup-label">ACS地址</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入ACS地址" v-model="acsip">
|
||||
</view> -->
|
||||
<view class="setup-item">
|
||||
<view class="setup-label">刷新时间(s)</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
|
||||
@@ -47,6 +51,13 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
// if (this.acsip === '') {
|
||||
// uni.showToast({
|
||||
// title: '请填写ACS地址',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if (this.setTime === '') {
|
||||
uni.showToast({
|
||||
title: '请填写刷新时间',
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="呼叫管理"></nav-bar>
|
||||
<view class="zd-row jcflexstart state-wrap">
|
||||
<!-- <view class="zd-row jcflexstart state-wrap">
|
||||
<view class="zd-col-4 zd-row jcflexstart" v-for="e in state">
|
||||
<view class="state-color" :class="e.color"></view>
|
||||
<view class="state-name">{{e.name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="zd-row mgb10 xzd-wraper">
|
||||
<view class="zd-col-11 item-font-6">起:{{sObj.device_name}}</view>
|
||||
<view class="zd-col-11 item-font-6 bggreen">起:{{sObj.device_name}}</view>
|
||||
<view class="zd-col-1 item-font-7">–</view>
|
||||
<view class="zd-col-11 item-font-6">终:{{nObj.device_name}}</view>
|
||||
<view class="zd-col-11 item-font-6 bgblue">终:{{nObj.device_name}}</view>
|
||||
</view>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
@@ -21,9 +21,9 @@
|
||||
</view>
|
||||
<view v-show="e.checked === true" class="site_block" ref="liCon">
|
||||
<view class="site_item" v-for="(el, i) in e.pointArr" :key="i">
|
||||
<view class="site_item_box" :class="['bggray', 'bggreen'][Number(el.status)]" @click="setcode(el)">
|
||||
<text class="title_1">{{el.device_name}}</text>
|
||||
<text class="title_2">来源:{{el.source_device}}</text>
|
||||
<view class="site_item_box" :class="{'bggreen': sObj.device_code === el.device_code, 'bgblue': nObj.device_code === el.device_code}" @click="setcode(el)">
|
||||
<view class="title_1">{{el.device_name}}</view>
|
||||
<view class="title_2">{{el.device_code}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -31,10 +31,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @click="cancle">清空</button>
|
||||
<button class="zd-col-5 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('1')">生箔换轴</button>
|
||||
<button class="zd-col-5 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('2')">分切换轴</button>
|
||||
<button class="zd-col-5 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('3')">搬运任务</button>
|
||||
<button class="zd-col-4 button-default" @click="cancle">清空</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('1')">生箔换轴</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('2')">分切换轴</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': JSON.stringify(sObj) === '{}' && JSON.stringify(nObj) === '{}'}" :disabled="disabled" @tap="_callTask('3')">搬运任务</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -83,10 +83,11 @@
|
||||
},
|
||||
async initArea () {
|
||||
let res = await queryArea()
|
||||
this.areaArr = [...res.result]
|
||||
this.areaArr = [...res.data]
|
||||
this.areaArr.map(el => {
|
||||
this.$set(el, 'checked', false)
|
||||
this.$set(el, 'pointArr', [])
|
||||
this.$set(el, 'region_code', '1')
|
||||
})
|
||||
if (this.areaArr.length > 0) {
|
||||
this.getPonit(this.areaArr[0])
|
||||
@@ -97,7 +98,7 @@
|
||||
this.regobj = e
|
||||
this.areaArr.map(el => {
|
||||
if (el.region_code === e.region_code) {
|
||||
this.$set(el, 'pointArr', [...res.result])
|
||||
this.$set(el, 'pointArr', [...res.data])
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -161,7 +162,7 @@
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
.zd_content
|
||||
padding-top calc(var(--status-bar-height) + 72rpx)
|
||||
// padding-top calc(var(--status-bar-height) + 72rpx)
|
||||
padding-bottom 200rpx
|
||||
.locate_block
|
||||
width 100%
|
||||
@@ -169,19 +170,20 @@
|
||||
position relative
|
||||
_wh(100%,48rpx)
|
||||
.site_block
|
||||
_wh(100%,auto)
|
||||
overflow hidden
|
||||
width 100%
|
||||
transition height .3s
|
||||
_fj(flex-start,,,wrap)
|
||||
padding-bottom 10rpx
|
||||
.site_item
|
||||
_wh(calc(100% / 3),110rpx)
|
||||
width 49%
|
||||
padding 5rpx 5rpx
|
||||
overflow hidden
|
||||
margin-bottom 10rpx
|
||||
_fj(center)
|
||||
&:nth-child(even)
|
||||
margin-left 2%
|
||||
.site_item_box
|
||||
_wh(100%, 100%)
|
||||
padding 10rpx
|
||||
padding 20rpx 10rpx 10rpx 10rpx
|
||||
background-color rgb(220, 223, 230)
|
||||
border-radius 10rpx
|
||||
.title_locate
|
||||
@@ -189,21 +191,19 @@
|
||||
_font(30rpx,40rpx,#333,bold)
|
||||
font-style italic
|
||||
.title_1
|
||||
_wh(100%, 60%)
|
||||
_fj(center)
|
||||
_wh(100%, 40rpx)
|
||||
overflow hidden
|
||||
_font(28rpx,28rpx,#303133,500, center)
|
||||
_font(26rpx,40rpx,#303133,500, center)
|
||||
.title_2
|
||||
_wh(100%, 40%)
|
||||
_fj(center)
|
||||
_wh(100%, 40rpx)
|
||||
overflow hidden
|
||||
_font(24rpx,25rpx,#303133,500, center)
|
||||
opacity .69
|
||||
white-space: nowrap
|
||||
_font(24rpx,40rpx,#999,500, center)
|
||||
.submit-bar
|
||||
padding 10rpx
|
||||
box-shadow none
|
||||
.state-wrap
|
||||
position fixed
|
||||
z-index 200
|
||||
background #f2f5fa
|
||||
top calc(var(--status-bar-height) + 72rpx)
|
||||
_wh(100%, 60rpx)
|
||||
padding 0 14rpx
|
||||
@@ -215,8 +215,13 @@
|
||||
_font(28rpx, 30rpx, #333)
|
||||
.xzd-wraper
|
||||
position fixed
|
||||
bottom 118rpx
|
||||
padding 0 14rpx
|
||||
z-index 200
|
||||
bottom 100rpx
|
||||
padding 14rpx
|
||||
background-color #fff
|
||||
box-shadow: 0 0 20rpx 0 rgba(160,160,160,0.7);
|
||||
.button-default, .button-primary
|
||||
font-size 30rpx
|
||||
.bgblue .title_1,.bgblue .title_2,.bggreen .title_1,.bggreen .title_2
|
||||
color #fff
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user