-
{{info.deviceName}}
+
{{info.name}}
设备编号
{{info.serialNo}}
设备状态
- {{info.devStatus}}
+ {{ $dict.getLabel('dlbDevStatus', info.devStatus) }}
信号强度
- {{info.network}}
+ {{ $dict.getLabel('dlbDevSignal', info.devSignal) }}
音量
@@ -79,15 +79,19 @@ export default {
barStyle: {width: '98px', bottom: '-3px', left: '-38px'},
tab: [{name: '基本信息'}, {name: '播发任务'}],
list: [],
- currIndex: 1,
+ currIndex: 0,
current: 1,
isShow: false,
volume: 10,
- info: {}
+ info: {},
+ id: ''
}
},
onLoad(query) {
-
+ this.id = query.id
+ this.$dict.load(['dlbDevStatus', 'dlbDevSignal']).then(() => {
+ this.getDetail()
+ })
},
onShow() {
@@ -106,12 +110,21 @@ export default {
this.volume = this.info.volume * 10 || 10
},
confirmAdd() {
- this.$http.post(`/app/appdlbquipment/volumeControl?deviceId=${this.info.deviceId}&volume=${this.volume}`).then((res) => {
+ var volume = parseInt(this.volume/10)
+ this.$http.post(`/app/appdlbquipment/volumeControl?deviceId=${this.info.deviceId}&volume=${volume}`).then((res) => {
if (res.code == 0) {
this.getDetail()
+ this.isShow = false
this.$u.toast('音量设置成功')
}
})
+ },
+ getDetail() {
+ this.$http.post(`/app/appdlbquipment/queryDetailById?id=${this.id}`).then((res) => {
+ if (res.code == 0) {
+ this.info = res.data
+ }
+ })
}
},
diff --git a/src/apps/AppBroadcast1/AppResourcesManage/AppResourcesManage.vue b/src/apps/AppBroadcast1/AppResourcesManage/AppResourcesManage.vue
index f5efd3a4..b21d3cc8 100644
--- a/src/apps/AppBroadcast1/AppResourcesManage/AppResourcesManage.vue
+++ b/src/apps/AppBroadcast1/AppResourcesManage/AppResourcesManage.vue
@@ -41,7 +41,7 @@