fix: download query bug
This commit is contained in:
@@ -53,5 +53,5 @@ export function deleteProductUnitListByIds(ids: number[]) {
|
||||
|
||||
/** 导出产品单位 */
|
||||
export function exportProductUnit(params: any) {
|
||||
return requestClient.download('/basic/product-unit/export-excel', params);
|
||||
return requestClient.download('/basic/product-unit/export-excel', { params });
|
||||
}
|
||||
|
||||
@@ -49,5 +49,7 @@ export async function deleteProcessExpression(id: number) {
|
||||
|
||||
/** 导出流程表达式 */
|
||||
export async function exportProcessExpression(params: any) {
|
||||
return requestClient.download('/bpm/process-expression/export-excel', params);
|
||||
return requestClient.download('/bpm/process-expression/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -133,5 +133,7 @@ export const getChildrenTaskList = async (id: string) => {
|
||||
|
||||
// 撤回任务
|
||||
export const withdrawTask = async (taskId: string) => {
|
||||
return await requestClient.put('/bpm/task/withdraw', null, { params: { taskId } });
|
||||
return await requestClient.put('/bpm/task/withdraw', null, {
|
||||
params: { taskId },
|
||||
});
|
||||
};
|
||||
|
||||
@@ -108,7 +108,7 @@ export function deleteBusiness(id: number) {
|
||||
|
||||
/** 导出商机 */
|
||||
export function exportBusiness(params: any) {
|
||||
return requestClient.download('/crm/business/export-excel', params);
|
||||
return requestClient.download('/crm/business/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 联系人关联商机列表 */
|
||||
|
||||
@@ -67,7 +67,7 @@ export function deleteClue(id: number) {
|
||||
|
||||
/** 导出线索 */
|
||||
export function exportClue(params: any) {
|
||||
return requestClient.download('/crm/clue/export-excel', params);
|
||||
return requestClient.download('/crm/clue/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 线索转移 */
|
||||
|
||||
@@ -96,7 +96,7 @@ export function deleteContact(id: number) {
|
||||
|
||||
/** 导出联系人 */
|
||||
export function exportContact(params: any) {
|
||||
return requestClient.download('/crm/contact/export-excel', params);
|
||||
return requestClient.download('/crm/contact/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 获得联系人列表(精简) */
|
||||
|
||||
@@ -108,7 +108,7 @@ export function deleteContract(id: number) {
|
||||
|
||||
/** 导出合同 */
|
||||
export function exportContract(params: any) {
|
||||
return requestClient.download('/crm/contract/export-excel', params);
|
||||
return requestClient.download('/crm/contract/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 提交审核 */
|
||||
|
||||
@@ -74,7 +74,7 @@ export function deleteCustomer(id: number) {
|
||||
|
||||
/** 导出客户 */
|
||||
export function exportCustomer(params: any) {
|
||||
return requestClient.download('/crm/customer/export-excel', params);
|
||||
return requestClient.download('/crm/customer/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 下载客户导入模板 */
|
||||
|
||||
@@ -53,5 +53,5 @@ export function deleteProduct(id: number) {
|
||||
|
||||
/** 导出产品 */
|
||||
export function exportProduct(params: any) {
|
||||
return requestClient.download('/crm/product/export-excel', params);
|
||||
return requestClient.download('/crm/product/export-excel', { params });
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export function deleteReceivable(id: number) {
|
||||
|
||||
/** 导出回款 */
|
||||
export function exportReceivable(params: any) {
|
||||
return requestClient.download('/crm/receivable/export-excel', params);
|
||||
return requestClient.download('/crm/receivable/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 提交审核 */
|
||||
|
||||
@@ -55,5 +55,7 @@ export function deleteDemo01ContactList(ids: number[]) {
|
||||
|
||||
/** 导出示例联系人 */
|
||||
export function exportDemo01Contact(params: any) {
|
||||
return requestClient.download('/infra/demo01-contact/export-excel', params);
|
||||
return requestClient.download('/infra/demo01-contact/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -42,5 +42,7 @@ export function deleteDemo02Category(id: number) {
|
||||
|
||||
/** 导出示例分类 */
|
||||
export function exportDemo02Category(params: any) {
|
||||
return requestClient.download('/infra/demo02-category/export-excel', params);
|
||||
return requestClient.download('/infra/demo02-category/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export function deleteUserList(ids: number[]) {
|
||||
|
||||
/** 导出用户 */
|
||||
export function exportUser(params: any) {
|
||||
return requestClient.download('/system/user/export-excel', params);
|
||||
return requestClient.download('/system/user/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 下载用户导入模板 */
|
||||
|
||||
@@ -115,7 +115,11 @@ async function handelUpload({
|
||||
所属岗位
|
||||
</div>
|
||||
</template>
|
||||
{{ profile.posts && profile.posts.length > 0 ? profile.posts.map(post => post.name).join(',') : '-' }}
|
||||
{{
|
||||
profile.posts && profile.posts.length > 0
|
||||
? profile.posts.map((post) => post.name).join(',')
|
||||
: '-'
|
||||
}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem>
|
||||
<template #label>
|
||||
|
||||
@@ -3,7 +3,6 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
|
||||
import type { SystemUserApi } from '#/api/system/user';
|
||||
|
||||
// TODO @jason:业务表单审批时,读取不到界面,参见 https://t.zsxq.com/eif2e
|
||||
|
||||
import { nextTick, onMounted, ref, shallowRef, watch } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
|
||||
@@ -143,4 +143,4 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
width: 100,
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user