1. exportData(val){
    2. //初始化表格数据
    3. this.tableData = val
    4. this.dataIsReturn = true
    5. },
    6. async fetchData(){
    7. this.showFormData('export')
    8. let res = await new Promise((resolve, reject) => {
    9. //轮询
    10. this.fetchDataTimer = setInterval(() => {
    11. if(this.dataIsReturn){
    12. this.fetchDataTimer = null
    13. this.dataIsReturn = false
    14. resolve(true)
    15. }
    16. },1000)
    17. })
    18. return this.exportData
    19. },