diff --git a/src/assets/js/getData2.js b/src/assets/js/getData2.js
index 5d5016a..c85b592 100644
--- a/src/assets/js/getData2.js
+++ b/src/assets/js/getData2.js
@@ -44,7 +44,7 @@ export const getTodayTask = (id) => post('api/deviceBigScreen/getTodayTask', {})
// let res = {
// code: '1',
// srb: {
-// device_group_arr: [{fault_desc: '三六九1', needcast: '1', id: '1'}, {fault_desc: '三六九等了房椒粉', needcast: '1', id: '2'}, {fault_desc: '1', needcast: '1', id: '3'}]
+// device_group_arr: [{fault_desc: '三六九1', needCast: '1', id: '1'}, {fault_desc: '三六九等了房椒粉', needCast: '1', id: '2'}, {fault_desc: '1', needCast: '1', id: '3'}]
// }
// }
// return res
diff --git a/src/pages/DeviceManage.vue b/src/pages/DeviceManage.vue
index 155c3c2..c572a4b 100644
--- a/src/pages/DeviceManage.vue
+++ b/src/pages/DeviceManage.vue
@@ -146,7 +146,7 @@
{{e.input_time}}
{{e.device_name}}
{{e.extend_code}}
- {{e.fault_desc}}
+ {{e.fault_desc}}
{{e.dept_name}}
{{e.invstatus}}
{{e.user_name}}
@@ -356,18 +356,18 @@ export default {
this.speech.init().then(() => {})
},
// 播放函数
- play (textContent, id, needcast) {
+ play (textContent, id, needCast) {
this.speech.speak({
- text: needcast === '1' ? textContent : '', // 播放的文本内容
+ text: needCast === '1' ? textContent : '', // 播放的文本内容
listeners: {
// 开始播放
onstart: () => {
- this.pkId = needcast === '1' ? id : ''
+ this.pkId = needCast === '1' ? id : ''
},
// 判断播放是否完毕
onend: () => {
this.pkId = ''
- if (needcast === '1') {
+ if (needCast === '1') {
this._updateWarnTime([id])
}
},
@@ -870,7 +870,7 @@ export default {
this.gridArr5 = [...res.srb.device_group_arr]
if (this.gridArr5.length > 0) {
this.gridArr5.map((e, i) => {
- this.play(e.fault_desc, e.id, e.needcast)
+ this.play(e.fault_desc, e.id, e.needCast)
})
}
} else {