|
|
|
@ -17,8 +17,10 @@ |
|
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出 |
|
|
|
|
</a-button> |
|
|
|
|
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> |
|
|
|
|
导入 |
|
|
|
|
导入报名 |
|
|
|
|
</j-upload-button> |
|
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsMb"> 导出报名的模版 |
|
|
|
|
</a-button> |
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
|
<template #overlay> |
|
|
|
|
<a-menu> |
|
|
|
@ -67,12 +69,12 @@ |
|
|
|
|
list, |
|
|
|
|
deleteOne, |
|
|
|
|
batchDelete, |
|
|
|
|
getImportUrl, |
|
|
|
|
getExportUrl, |
|
|
|
|
getExportUrlMb, |
|
|
|
|
updateApply, |
|
|
|
|
collectScore, |
|
|
|
|
pj, |
|
|
|
|
cjhz |
|
|
|
|
cjhz, |
|
|
|
|
} from './AnnualCompPoint.api'; |
|
|
|
|
import {downloadFile} from '/@/utils/common/renderUtils'; |
|
|
|
|
import AnnualCompPointModal from './components/AnnualCompPointModal.vue' |
|
|
|
@ -82,12 +84,16 @@ |
|
|
|
|
import {router} from "/@/router"; |
|
|
|
|
import {useRouter} from "vue-router"; |
|
|
|
|
import {personalAbilityEvaluation} from "/@/views/awardpersion/AwardPersion.api"; |
|
|
|
|
import {useMessage} from "../../../hooks/web/useMessage"; |
|
|
|
|
import {useMethods} from "../../../hooks/system/useMethods"; |
|
|
|
|
const { handleImportXls } = useMethods(); |
|
|
|
|
const formRef = ref(); |
|
|
|
|
const queryParam = reactive<any>({}); |
|
|
|
|
const toggleSearchStatus = ref<boolean>(false); |
|
|
|
|
const registerModal = ref(); |
|
|
|
|
const { createMessage } = useMessage(); |
|
|
|
|
//注册table数据 |
|
|
|
|
const {prefixCls, tableContext, onExportXls, onImportXls} = useListPage({ |
|
|
|
|
const {prefixCls, tableContext, onExportXls,onExportXlsMb} = useListPage({ |
|
|
|
|
tableProps: { |
|
|
|
|
title: '年度比赛项目管理', |
|
|
|
|
api: list, |
|
|
|
@ -107,9 +113,10 @@ |
|
|
|
|
url: getExportUrl, |
|
|
|
|
params: queryParam, |
|
|
|
|
}, |
|
|
|
|
importConfig: { |
|
|
|
|
url: getImportUrl, |
|
|
|
|
success: handleSuccess |
|
|
|
|
exportConfigMb: { |
|
|
|
|
name: "报名模板", |
|
|
|
|
url: getExportUrlMb, |
|
|
|
|
params: null, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
const [registerTable, { |
|
|
|
@ -144,6 +151,15 @@ |
|
|
|
|
registerModal.value.edit(record); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function onImportXls(d) { |
|
|
|
|
if(selectedRowKeys.value.length===1){ |
|
|
|
|
handleImportXls(d, '/AnnualCompPoint/annualCompPoint/importExcel?ndbsxmid='+selectedRowKeys.value[0],() => { |
|
|
|
|
handleSuccess; |
|
|
|
|
}); |
|
|
|
|
}else { |
|
|
|
|
createMessage.warning("请选择一条数据进行导入报名"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 详情 |
|
|
|
|
*/ |
|
|
|
|