|
@@ -538,7 +538,8 @@
|
|
|
var reg =
|
|
var reg =
|
|
|
/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/;
|
|
/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/;
|
|
|
var regExp = new RegExp(reg);
|
|
var regExp = new RegExp(reg);
|
|
|
- if (regExp.test(time) || time == this.time_string) {
|
|
|
|
|
|
|
+ // if (regExp.test(time) || time == this.time_string) {
|
|
|
|
|
+ if (regExp.test(time)) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '使用中不能解绑',
|
|
title: '使用中不能解绑',
|
|
|
icon: 'error',
|
|
icon: 'error',
|
|
@@ -603,16 +604,6 @@
|
|
|
btn_click(index, air_ip, name, info, order_num, time) {
|
|
btn_click(index, air_ip, name, info, order_num, time) {
|
|
|
// console.log(index, air_ip, name, info, order_num, time);
|
|
// console.log(index, air_ip, name, info, order_num, time);
|
|
|
var _this = this;
|
|
var _this = this;
|
|
|
- // if (time === this.time_string) {
|
|
|
|
|
- // uni.showModal({
|
|
|
|
|
- // title: '提示',
|
|
|
|
|
- // content: '其他人员使用中,你不能关闭!',
|
|
|
|
|
- // confirmText: '好的',
|
|
|
|
|
- // showCancel: false
|
|
|
|
|
- // })
|
|
|
|
|
- // return;
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
let tmp = name.split('-');
|
|
let tmp = name.split('-');
|
|
|
let build = tmp[1],
|
|
let build = tmp[1],
|
|
|
floors = tmp[2],
|
|
floors = tmp[2],
|