|
|
@ -41,6 +41,7 @@ |
|
|
|
projectId: '', |
|
|
|
dom: '', |
|
|
|
name: 'pluginNotice', |
|
|
|
timer: null, |
|
|
|
init() { |
|
|
|
this.dom = document.querySelector("div[data-root=p1419895620596146176]"); |
|
|
|
var domBox = this.dom.parentNode; |
|
|
@ -63,7 +64,7 @@ |
|
|
|
const { success, code, data, msg } = res; |
|
|
|
if (success && code === 200) { |
|
|
|
that.token = data.token; |
|
|
|
setInterval(function (){ |
|
|
|
that.timer = setInterval(function (){ |
|
|
|
//查询当前项目的最新消息 |
|
|
|
that.getFirstAidRecord() |
|
|
|
},3000) |
|
|
@ -93,6 +94,10 @@ |
|
|
|
return response.json(); |
|
|
|
}).catch(function(error){ |
|
|
|
console.error('Error:', error) |
|
|
|
// TODO: 测试数据 |
|
|
|
that.setDate('请<span style="color: #f00">张小小</span>到<span style="color: #f00">3号窗口</span>交费') |
|
|
|
clearInterval(that.timer) |
|
|
|
// TODO |
|
|
|
}).then(function(res){ |
|
|
|
const { success, code, data, msg } = res; |
|
|
|
if (success && code === 200) { |
|
|
|