Browse Source

导出功能

origin/feature/monitoring
zhangyuan 5 years ago
parent
commit
45fc5bd27a
  1. 18
      src/views/modules/epidemic/epidemicuserinfo.vue

18
src/views/modules/epidemic/epidemicuserinfo.vue

@ -57,6 +57,9 @@
type="danger" type="danger"
@click="deleteHandle()">{{ $t('deleteBatch') }}</el-button> @click="deleteHandle()">{{ $t('deleteBatch') }}</el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item>-->
<!-- <el-button type="primary" @click="exportHandle()">{{ $t('export') }}</el-button>-->
<!-- </el-form-item>-->
</el-form> </el-form>
<el-table v-loading="dataListLoading" <el-table v-loading="dataListLoading"
:data="dataList" :data="dataList"
@ -209,7 +212,9 @@ export default {
getDataListURL: 'sys/epidemicuserinfo/getEpidemicPage', getDataListURL: 'sys/epidemicuserinfo/getEpidemicPage',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: 'sys/epidemicuserinfo', deleteURL: 'sys/epidemicuserinfo',
deleteIsBatch: true deleteIsBatch: true,
exportURL: '/sys/vaccinationerror/exportError',
exportErrorInfoURL: 'sys/vaccinationerror/exportError'
}, },
dataForm: { dataForm: {
infoId: '', infoId: '',
@ -342,11 +347,12 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
var params = qs.stringify({ this.exportHandle()
'token': Cookies.get('token'), // var params = qs.stringify({
...this.dataForm // 'token': Cookies.get('token'),
}) // ...this.dataForm
window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportErrorInfoURL}?${params}` // })
// window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportErrorInfoURL}?${params}`
this.$message({ this.$message({
type: 'success', type: 'success',
message: '下载成功' message: '下载成功'

Loading…
Cancel
Save