diff --git a/src/views/modules/heart/actuserrelation.vue b/src/views/modules/heart/actuserrelation.vue index c704240..fb5b86b 100644 --- a/src/views/modules/heart/actuserrelation.vue +++ b/src/views/modules/heart/actuserrelation.vue @@ -35,6 +35,7 @@ >  {{ $t('query') }} + {{ $t('export') }} @@ -110,6 +111,8 @@ import mixinViewModule from '@/mixins/view-module' import AddOrUpdate from './actuserrelation-add-or-update' import ActuserrelationDetail from './actuserrelation-detail' +import Cookies from 'js-cookie' +import qs from 'qs' export default { mixins: [mixinViewModule], name: 'ActUserRelation', @@ -120,7 +123,8 @@ export default { getDataListURL: '/heart/actuserrelation/page', getDataListIsPage: true, deleteURL: '/heart/actuserrelation', - deleteIsBatch: true + deleteIsBatch: true, + exportURL: '/heart/actuserrelation/export' }, dataForm: { @@ -188,6 +192,19 @@ export default { } else if (state === '1') { return '男' } + }, + // 导出 + exportList () { + var params = qs.stringify({ + 'token': Cookies.get('token'), + 'actId': this.dataForm.actId, + 'status': this.dataForm.status, + 'realName': this.dataForm.realName, + 'mobile': this.dataForm.mobile, + 'startTime': this.dataForm.startTime, + 'endTime': this.dataForm.endTime + }) + window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportURL}?${params}` } }, components: { diff --git a/src/views/modules/user/volunteerinfo.vue b/src/views/modules/user/volunteerinfo.vue index a091dfe..0ae9d4a 100644 --- a/src/views/modules/user/volunteerinfo.vue +++ b/src/views/modules/user/volunteerinfo.vue @@ -28,6 +28,7 @@ {{ $t('query') }} + {{ $t('export') }}