|
@@ -76,7 +76,7 @@
|
|
|
></BImportExcel>
|
|
|
<BExportExcel :title="'导出'" :filename="'岗位信息'"
|
|
|
:url="'companyService/post/export'"
|
|
|
- :params="{...searchParams, isExport: true, rows:10000,postIDList:formState.selectedRowKeys.join(',')}"></BExportExcel>
|
|
|
+ :params="{...exportSearchParams, isExport: true, rows:10000,postIDList:formState.selectedRowKeys.join(',')}"></BExportExcel>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
@@ -136,6 +136,12 @@ export default defineComponent({
|
|
|
professionName: null,
|
|
|
recordStatus: null
|
|
|
});
|
|
|
+ // 导出Excel查询参数
|
|
|
+ const exportSearchParams = computed(() => {
|
|
|
+ let data = JSON.parse(JSON.stringify(searchParams));
|
|
|
+ data.pageSize = formState.total;
|
|
|
+ return data;
|
|
|
+ })
|
|
|
const expand = ref(false);
|
|
|
const companyList = ref<SelectProps['options']>();
|
|
|
const postStatusList = [{name: '启用', value: 1}, {name: '禁用', value: 0}];
|
|
@@ -327,7 +333,8 @@ export default defineComponent({
|
|
|
expand,
|
|
|
postStatusList,
|
|
|
companyList,
|
|
|
- onDetail
|
|
|
+ onDetail,
|
|
|
+ exportSearchParams
|
|
|
};
|
|
|
},
|
|
|
created() {
|