体征检测优化
This commit is contained in:
parent
17b0c42d31
commit
ba1c0dbd6f
@ -89,8 +89,20 @@
|
|||||||
return z.y + '-' + z.M + '-' + z.d + ' ' + z.h + ':' + z.m + ':' + z.s
|
return z.y + '-' + z.M + '-' + z.d + ' ' + z.h + ':' + z.m + ':' + z.s
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if (this.data.sn) {
|
if (!this.data.sn) {
|
||||||
if (this.data.deviceType) {
|
this.$refs.uToast.show({
|
||||||
|
title: '请输入设备序列号',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.data.deviceType) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '请选择设备类型',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
binding(this.data).then(res => {
|
binding(this.data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -109,18 +121,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '请选择设备类型',
|
|
||||||
type: 'error',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '请输入设备序列号',
|
|
||||||
type: 'error',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user