| | |
| | | data() { |
| | | return { |
| | | async: '未完成....', |
| | | normal: '未变化....' |
| | | normal: '未变化....', |
| | | count:0 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.bill.exceptionRecurrence = obj['exceptionRecurrence'] |
| | | this.bill.exceptionTypeAggregation = obj['exceptionTypeAggregation'] |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | |
| | | increment(){ |
| | | this.count++ |
| | | console.log(document.getElementById('but').textContent) |
| | | nextTick(()=>{ |
| | | console.log('abc',document.getElementById('but').textContent) |
| | | }) |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <template> |
| | | <el-button id="but" @click="increment" >{{count}} </el-button> |
| | | <div> |
| | | <!-- 点击"获取数据"后,每隔一个小时执行一次 --> |
| | | </div> |