Browse Source

自动更新时间

pull/148/head
liwei 3 years ago
parent
commit
6ea1b9f23f
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/views/DataP/index.vue

+ 8
- 0
src/views/DataP/index.vue View File

@ -117,6 +117,14 @@ export default {
this.title=this.titleData[this.getQueryVariable('type')]?this.titleData[this.getQueryVariable('type')].title:'' this.title=this.titleData[this.getQueryVariable('type')]?this.titleData[this.getQueryVariable('type')].title:''
}, },
methods: { methods: {
// setTimeData
setTimeData(){
this.time=moment().format('YYYY-MM-DD');
this.getData();
setTimeout(()=>{
this.setTimeData();
},360000)
},
// //
colorValue(status){ colorValue(status){
return this.orderColors[status]; return this.orderColors[status];


Loading…
Cancel
Save