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