jiangping
2025-06-06 77946261ec663aa1fe7f6f97e550532ed879f982
admin/src/views/client/staffList.vue
@@ -70,6 +70,7 @@
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',
@@ -113,6 +114,28 @@
        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>