Commit 847ba784 authored by 沈翠玲's avatar 沈翠玲

修复管理导出增加参数

parent 9b887e93
......@@ -34,7 +34,7 @@
type="primary"
@click="admindownload"
class="mr-3"
>导出全部</el-button
>导出</el-button
>
<!-- <el-button
v-permission="'repair_te_export'"
......@@ -172,7 +172,22 @@
downloadfile('/RepairRecord/downloadByTenant', {}, '修复.xls');
};
const admindownload = () => {
downloadfile('/RepairRecord/download', {}, '修复.xls');
const list = selectdList.value;
if (dataValue.value === '对选中项操作' && (!selectdList.value || !selectdList.value.length)) {
return ElMessage.warning({
message: '请先选择操作对象!',
plain: true,
});
}
if (dataValue.value !== '对选中项操作') {
const param = { ...pageParams.value };
delete param['current'];
delete param['size'];
downloadfile('/RepairRecord/download', param, '修复.xls');
} else {
const ids = list.map((v) => v.id).join(',');
downloadfile('/RepairRecord/download', { recordIds: ids }, '修复.xls');
}
};
const query = () => caseLRef.value?.search();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment