样式
This commit is contained in:
@@ -9,10 +9,12 @@ $fc1 = #323232
|
||||
background-color: $red !important
|
||||
.bggreen
|
||||
background-color: $green !important
|
||||
color #fff !important
|
||||
.bgyellow
|
||||
background-color: $yellow !important
|
||||
.bgblue
|
||||
background-color: $blue !important
|
||||
color #fff !important
|
||||
.bggray
|
||||
background-color: $gray !important
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -32,7 +32,7 @@ export const queryArea = () => request({
|
||||
export const queryPointByArea = (code) => request({
|
||||
url:'api/hand/queryPointByArea',
|
||||
data: {
|
||||
areaCode: code
|
||||
region_code: code
|
||||
}
|
||||
})
|
||||
// 1.3创建任务(生成任务号为-开头)
|
||||
|
||||
@@ -55,13 +55,13 @@ export const taskOperation = (uuid, type) => {
|
||||
}
|
||||
export const queryArea = () => {
|
||||
let res = {
|
||||
result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
|
||||
data: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const queryPointByArea = () => {
|
||||
let res = {
|
||||
result: [{
|
||||
data: [{
|
||||
device_code: '1',
|
||||
device_name: 'JLDFJLLJ',
|
||||
source_device: 'FAL3LAA01',
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import * as types from '../types'
|
||||
|
||||
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8011' : 'http://192.168.81.162:8011'
|
||||
const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8010' : 'http://192.168.81.162:8010'
|
||||
const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8010' : 'http://192.168.81.162:8010'
|
||||
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8011' : 'http://192.168.81.120:8011'
|
||||
const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8010' : 'http://192.168.81.120:8010'
|
||||
const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8010' : 'http://192.168.81.120:8010'
|
||||
const state = {
|
||||
baseUrl: uni.getStorageSync('baseUrl') || baseUrl,
|
||||
acsUrl: uni.getStorageSync('acsUrl') || acsUrl,
|
||||
printUrl: uni.getStorageSync('printUrl') || printUrl,
|
||||
setTime: uni.getStorageSync('setTime') || 5000,
|
||||
setTime: uni.getStorageSync('setTime') || 50000,
|
||||
loginName: uni.getStorageSync('loginName') ? uni.getStorageSync('loginName') : '',
|
||||
userInfo: uni.getStorageSync('userInfo') ? uni.getStorageSync('userInfo') : '',
|
||||
saveToken: uni.getStorageSync('saveToken') || ''
|
||||
|
||||
Reference in New Issue
Block a user