|
@@ -62,13 +62,13 @@
|
|
</div>
|
|
</div>
|
|
<div class="bianhao" style="padding-top: 0; border-bottom: 0.01rem solid #efefef;">
|
|
<div class="bianhao" style="padding-top: 0; border-bottom: 0.01rem solid #efefef;">
|
|
<button @click="startbtn()" :class="classbtn" :disabled="startbtndib">@{{mssage}}</button>
|
|
<button @click="startbtn()" :class="classbtn" :disabled="startbtndib">@{{mssage}}</button>
|
|
- <div style="font-size: .3rem;padding-top: .1rem;padding-bottom: .1rem;">点击【开始测试】,全部箱体立即锁死,每20秒锁位状态改变一次
|
|
|
|
|
|
+ <div style="font-size: .3rem;padding-top: .1rem;padding-bottom: .1rem;">点击【开始测试】,全部箱体立即锁死,每15秒锁位状态改变一次
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bianhao" style="padding-top: 0; margin-top: .4rem; border-bottom: 0.01rem solid #efefef;">
|
|
<div class="bianhao" style="padding-top: 0; margin-top: .4rem; border-bottom: 0.01rem solid #efefef;">
|
|
<button v-preventclick @click="dingshi()" class="" :disabled="dingshibtn">@{{time}}s定时</button>
|
|
<button v-preventclick @click="dingshi()" class="" :disabled="dingshibtn">@{{time}}s定时</button>
|
|
<div style="font-size: .3rem;padding-top: .1rem;padding-bottom: .1rem;">
|
|
<div style="font-size: .3rem;padding-top: .1rem;padding-bottom: .1rem;">
|
|
- 点击【定时测试】,2min后,锁位开启,3min后锁位关闭,设备配置后,无法点击调试</div>
|
|
|
|
|
|
+ 点击【定时测试】,3min后,锁位开启,4min后锁位关闭,设备配置后,无法点击调试</div>
|
|
</div>
|
|
</div>
|
|
<div v-for="(item,index) in boxarr" :key="index">
|
|
<div v-for="(item,index) in boxarr" :key="index">
|
|
<div class="bianhao"
|
|
<div class="bianhao"
|
|
@@ -142,21 +142,20 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
dingshi() {
|
|
dingshi() {
|
|
|
|
+ this.startbtndib = true
|
|
|
|
+ this.allbtn = true
|
|
|
|
+ let timestop = setInterval(() => {
|
|
|
|
+ this.time--
|
|
|
|
+ if (this.time == 0) {
|
|
|
|
+ clearInterval(timestop)
|
|
|
|
+ this.time = 180
|
|
|
|
+ this.startbtndib = false
|
|
|
|
+ this.allbtn = false
|
|
|
|
+ }
|
|
|
|
+ }, 1000)
|
|
axios.get("http://172.31.31.199/send_protocol?id="+id+"&type=" + this.dingshitype).then(res => {
|
|
axios.get("http://172.31.31.199/send_protocol?id="+id+"&type=" + this.dingshitype).then(res => {
|
|
if (res.data.code == 603) {
|
|
if (res.data.code == 603) {
|
|
alert(res.data.msg)
|
|
alert(res.data.msg)
|
|
- } else {
|
|
|
|
- this.startbtndib = true
|
|
|
|
- this.allbtn = true
|
|
|
|
- let timestop = setInterval(() => {
|
|
|
|
- this.time--
|
|
|
|
- if (this.time == 0) {
|
|
|
|
- clearInterval(timestop)
|
|
|
|
- this.time = 180
|
|
|
|
- this.startbtndib = false
|
|
|
|
- this.allbtn = false
|
|
|
|
- }
|
|
|
|
- }, 1000)
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|