车辆控制
This commit is contained in:
@@ -164,6 +164,21 @@ export default {
|
|||||||
}
|
}
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
bool = bool === '0' ? '1' : '0'
|
bool = bool === '0' ? '1' : '0'
|
||||||
|
if (type === '2') {
|
||||||
|
this.switch1 = this.switch1 === '0' ? '1' : '0'
|
||||||
|
}
|
||||||
|
if (type === '3') {
|
||||||
|
this.switch2 = this.switch2 === '0' ? '1' : '0'
|
||||||
|
}
|
||||||
|
if (type === '4') {
|
||||||
|
this.switch3 = this.switch3 === '0' ? '1' : '0'
|
||||||
|
}
|
||||||
|
if (type === '5') {
|
||||||
|
this.switch4 = this.switch4 === '0' ? '1' : '0'
|
||||||
|
}
|
||||||
|
if (type === '6') {
|
||||||
|
this.switch5 = this.switch5 === '0' ? '1' : '0'
|
||||||
|
}
|
||||||
this._ShutDown(type, bool)
|
this._ShutDown(type, bool)
|
||||||
},
|
},
|
||||||
async _ShutDown (type, bool) {
|
async _ShutDown (type, bool) {
|
||||||
@@ -178,6 +193,7 @@ export default {
|
|||||||
this.refresh()
|
this.refresh()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.toast('操作失败')
|
||||||
this.refresh()
|
this.refresh()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -289,7 +305,7 @@ export default {
|
|||||||
_fj(flex-start, flex-start)
|
_fj(flex-start, flex-start)
|
||||||
.control_label
|
.control_label
|
||||||
width 190px
|
width 190px
|
||||||
_font(36px, 56px, #B4C1D8, 500,)
|
_font(36px, 88px, #B4C1D8, 500,)
|
||||||
font-family: SourceHanSansCN-Medium;
|
font-family: SourceHanSansCN-Medium;
|
||||||
.content_wrap_inner
|
.content_wrap_inner
|
||||||
_fj()
|
_fj()
|
||||||
|
|||||||
Reference in New Issue
Block a user