|  |  | 
 |  |  | import OperaYwCustomerWindow from './components/staffEdit.vue' | 
 |  |  | import { fetchList } from '@/api/client/ywCustomer' | 
 |  |  | import { updateStatusById } from '@/api/business/member' | 
 |  |  | import { ywExportExcel } from '@/api/client/staff' | 
 |  |  | import { Message } from 'element-ui' | 
 |  |  | export default { | 
 |  |  |   name: 'YwCustomer', | 
 |  |  | 
 |  |  |         this.clientList = res.records || [] | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     exportExcel () { | 
 |  |  |       this.$dialog.exportConfirm('确认导出吗?') | 
 |  |  |         .then(() => { | 
 |  |  |           this.isWorking.export = true | 
 |  |  |           ywExportExcel({ | 
 |  |  |             page: this.tableData.pagination.pageIndex, | 
 |  |  |             capacity: 1000000, | 
 |  |  |             model: this.searchForm, | 
 |  |  |             sorts: this.tableData.sorts | 
 |  |  |           }) | 
 |  |  |             .then(response => { | 
 |  |  |               this.download(response) | 
 |  |  |             }) | 
 |  |  |             .catch(e => { | 
 |  |  |               this.$tip.apiFailed(e) | 
 |  |  |             }) | 
 |  |  |             .finally(() => { | 
 |  |  |               this.isWorking.export = false | 
 |  |  |             }) | 
 |  |  |         }) | 
 |  |  |         .catch(() => {}) | 
 |  |  |     }, | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | </script> |