diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts index 47914e0..f9839c1 100644 --- a/src/api/home/filling/filling.ts +++ b/src/api/home/filling/filling.ts @@ -27,3 +27,12 @@ data, }) } +// 导出 +export function exportFilling(params: object) { + return request({ + url: '/planQuotaRep/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts index 47914e0..f9839c1 100644 --- a/src/api/home/filling/filling.ts +++ b/src/api/home/filling/filling.ts @@ -27,3 +27,12 @@ data, }) } +// 导出 +export function exportFilling(params: object) { + return request({ + url: '/planQuotaRep/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/rule/proxy.ts b/src/api/home/rule/proxy.ts index 93ce448..448f7cd 100644 --- a/src/api/home/rule/proxy.ts +++ b/src/api/home/rule/proxy.ts @@ -35,4 +35,13 @@ data, }) } +// 导出 +export function exportProxy(params: object) { + return request({ + url: '/quotaInfo/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts index 47914e0..f9839c1 100644 --- a/src/api/home/filling/filling.ts +++ b/src/api/home/filling/filling.ts @@ -27,3 +27,12 @@ data, }) } +// 导出 +export function exportFilling(params: object) { + return request({ + url: '/planQuotaRep/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/rule/proxy.ts b/src/api/home/rule/proxy.ts index 93ce448..448f7cd 100644 --- a/src/api/home/rule/proxy.ts +++ b/src/api/home/rule/proxy.ts @@ -35,4 +35,13 @@ data, }) } +// 导出 +export function exportProxy(params: object) { + return request({ + url: '/quotaInfo/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/views/flling/treat/index.vue b/src/views/flling/treat/index.vue index 44e356d..362a67a 100644 --- a/src/views/flling/treat/index.vue +++ b/src/views/flling/treat/index.vue @@ -7,7 +7,7 @@ import { reactive, ref } from 'vue' import { ElLoading, ElMessage, ElMessageBox } from 'element-plus' import FillingDialog from './fillingDialog.vue' -import { batchSubmitApi, getListPage } from '@/api/home/filling/filling' +import { batchSubmitApi, exportFilling, getListPage } from '@/api/home/filling/filling' import { getDictByCode } from '@/api/system/dict' import { exportFile } from '@/utils/exportUtils' const { proxy } = getCurrentInstance() as any @@ -243,13 +243,13 @@ limit: undefined, // ids: selectList.value.map(item => item.id), } - // exportGrade(data).then((res) => { - // exportFile(res.data, '考核等级评定') - // loading.close() - // }) - // .catch((_) => { - // loading.close() - // }) + exportFilling(data).then((res) => { + exportFile(res.data, '已填报考核结果') + loading.close() + }) + .catch((_) => { + loading.close() + }) } else { ElMessage.warning('无可导出内容') diff --git a/src/api/home/filling/filling.ts b/src/api/home/filling/filling.ts index 47914e0..f9839c1 100644 --- a/src/api/home/filling/filling.ts +++ b/src/api/home/filling/filling.ts @@ -27,3 +27,12 @@ data, }) } +// 导出 +export function exportFilling(params: object) { + return request({ + url: '/planQuotaRep/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/rule/proxy.ts b/src/api/home/rule/proxy.ts index 93ce448..448f7cd 100644 --- a/src/api/home/rule/proxy.ts +++ b/src/api/home/rule/proxy.ts @@ -35,4 +35,13 @@ data, }) } +// 导出 +export function exportProxy(params: object) { + return request({ + url: '/quotaInfo/export', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/views/flling/treat/index.vue b/src/views/flling/treat/index.vue index 44e356d..362a67a 100644 --- a/src/views/flling/treat/index.vue +++ b/src/views/flling/treat/index.vue @@ -7,7 +7,7 @@ import { reactive, ref } from 'vue' import { ElLoading, ElMessage, ElMessageBox } from 'element-plus' import FillingDialog from './fillingDialog.vue' -import { batchSubmitApi, getListPage } from '@/api/home/filling/filling' +import { batchSubmitApi, exportFilling, getListPage } from '@/api/home/filling/filling' import { getDictByCode } from '@/api/system/dict' import { exportFile } from '@/utils/exportUtils' const { proxy } = getCurrentInstance() as any @@ -243,13 +243,13 @@ limit: undefined, // ids: selectList.value.map(item => item.id), } - // exportGrade(data).then((res) => { - // exportFile(res.data, '考核等级评定') - // loading.close() - // }) - // .catch((_) => { - // loading.close() - // }) + exportFilling(data).then((res) => { + exportFile(res.data, '已填报考核结果') + loading.close() + }) + .catch((_) => { + loading.close() + }) } else { ElMessage.warning('无可导出内容') diff --git a/src/views/rule/grade/index.vue b/src/views/rule/grade/index.vue index 814538d..f356fb8 100644 --- a/src/views/rule/grade/index.vue +++ b/src/views/rule/grade/index.vue @@ -152,7 +152,7 @@