大喇叭

This commit is contained in:
liuye
2022-06-11 13:43:59 +08:00
parent 78a58bc5da
commit fca39122a8
5 changed files with 31 additions and 28 deletions

View File

@@ -108,11 +108,10 @@ export default {
},
setVolume() {
this.isShow = true
this.volume = this.info.volume * 10 || 10
this.volume = this.info.volume
},
confirmAdd() {
var volume = parseInt(this.volume/10)
this.$http.post(`/app/appdlbquipment/volumeControl?deviceId=${this.info.deviceId}&volume=${volume}`).then((res) => {
this.$http.post(`/app/appdlbquipment/volumeControl?deviceId=${this.info.deviceId}&volume=${this.volume}`).then((res) => {
if (res.code == 0) {
this.getDetail()
this.isShow = false