zjf
2023-02-24 3f9bad03f4fbca2d5c5be86e904ae832475634d8
src/views/clients/components/CRMExport.vue
@@ -43,7 +43,7 @@
  OutputContacterToExcel,
  OutputSalesChanceToExcel,
  OutputOtherSalesChanceToExcel,
  DownloadSubscriptions
  ExportSubscriptionsExcel
} from '@/api/common'
export default {
@@ -234,7 +234,7 @@
        }
      } else if (this.crmType === 'subscriptions') {
        params = {
          'taskId': this.headObj ? this.headObj.taskId : ''
          ...this.headObj
        }
      }
      let month = new Date().getMonth() + 1
@@ -245,7 +245,7 @@
        contacts: OutputContacterToExcel,
        business: OutputSalesChanceToExcel,
        businessChances: OutputOtherSalesChanceToExcel,
        subscriptions: DownloadSubscriptions
        subscriptions: ExportSubscriptionsExcel
      }[this.crmType]
      console.log(request)
      request(params)
@@ -279,7 +279,7 @@
          } else if (this.crmType === 'contacts') {
            downloadElement.download = `客户联系人列表` + timer + `.xlsx`
          } else if (this.crmType === 'subscriptions') {
            downloadElement.download = `订阅列表` + timer + `.zip`
            downloadElement.download = `订阅列表` + timer + `.xlsx`
          } else {
            downloadElement.download = `列表` + timer + `.xlsx`
          }