新增页面刷新时间
This commit is contained in:
parent
7ac2216419
commit
9df0e44a92
|
|
@ -260,10 +260,10 @@ export default {
|
||||||
let Aid = params.split('=')[1];
|
let Aid = params.split('=')[1];
|
||||||
this.Aid = Aid;
|
this.Aid = Aid;
|
||||||
this.createdData(Aid)
|
this.createdData(Aid)
|
||||||
let that = this;
|
// let that = this;
|
||||||
setInterval(()=>{
|
// setInterval(()=>{
|
||||||
that.createdData(Aid)
|
// that.createdData(Aid)
|
||||||
}, 900000)
|
// }, 900000)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createdData (Aid) {
|
createdData (Aid) {
|
||||||
|
|
@ -295,7 +295,7 @@ export default {
|
||||||
const parsed = JSON.parse(jsonStr);
|
const parsed = JSON.parse(jsonStr);
|
||||||
|
|
||||||
// 4. 提取目标属性
|
// 4. 提取目标属性
|
||||||
const { row1Style, row2Style } = parsed;
|
const { refreshTime , row1Style, row2Style } = parsed;
|
||||||
this.row1Style = row1Style;
|
this.row1Style = row1Style;
|
||||||
this.row2Style = row2Style;
|
this.row2Style = row2Style;
|
||||||
|
|
||||||
|
|
@ -352,6 +352,9 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showData.name = data.setting.name;
|
this.showData.name = data.setting.name;
|
||||||
|
setTimeout(()=>{
|
||||||
|
that.createdData(Aid)
|
||||||
|
}, Number(refreshTime)*1000)
|
||||||
this.loadingDone = true
|
this.loadingDone = true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue