This commit is contained in:
2023-12-13 17:13:59 +08:00
parent 8ac8bac350
commit 5fdf74ff2c

View File

@@ -1,6 +1,6 @@
<template> <template>
<view class="zd_container"> <view class="zd_container">
<nav-bar title="呼叫管理"></nav-bar> <nav-bar title="站点管理"></nav-bar>
<view class="zd_content"> <view class="zd_content">
<view class="state-wrap"> <view class="state-wrap">
<view class="state-item-wrap" v-for="e in state"> <view class="state-item-wrap" v-for="e in state">
@@ -18,7 +18,6 @@
<view class="site_item" v-for="(el, i) in e.pointArr" :key="i"> <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)"> <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_1">{{el.device_name}}</text>
<text class="title_2">{{el.source_device}}</text>
</view> </view>
</view> </view>
</view> </view>
@@ -122,7 +121,6 @@
this.active = true this.active = true
this.obj = el this.obj = el
this.value = el.status this.value = el.status
console.log(this.value)
}, },
change(e){ change(e){
console.log(this.value) console.log(this.value)
@@ -139,7 +137,7 @@
async _bindpoint () { async _bindpoint () {
try { try {
let res = await bindpoint(this.obj.device_code, this.value) let res = await bindpoint(this.obj.device_code, this.value)
this.cancle() this.msgCancle()
uni.showToast({ uni.showToast({
title: res.desc, title: res.desc,
icon: 'none' icon: 'none'
@@ -188,7 +186,7 @@
_fj(flex-start,,,wrap) _fj(flex-start,,,wrap)
padding-bottom 10rpx padding-bottom 10rpx
.site_item .site_item
_wh(calc(100% / 3),110rpx) _wh(calc(100% / 3),70rpx)
padding 5rpx 10rpx padding 5rpx 10rpx
overflow hidden overflow hidden
_fj(center) _fj(center)
@@ -202,7 +200,7 @@
_font(30rpx,40rpx,#333,bold) _font(30rpx,40rpx,#333,bold)
font-style italic font-style italic
.title_1 .title_1
_wh(100%, 60%) _wh(100%, 100%)
_fj(center) _fj(center)
overflow hidden overflow hidden
_font(28rpx,28rpx,#303133,500, center) _font(28rpx,28rpx,#303133,500, center)