|
|
@ -40,6 +40,7 @@ |
|
|
|
<a-button type="primary" @click="cxhq" preIcon="ant-design:sync-outlined"> 重新获取</a-button> |
|
|
|
<a-button type="primary" @click="cxhq" preIcon="ant-design:sync-outlined"> 重新获取</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsMb"> 导出模板</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsMb"> 导出模板</a-button> |
|
|
|
|
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlstj"> 导出推荐</a-button> |
|
|
|
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> |
|
|
|
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
@ -118,6 +119,9 @@ import { |
|
|
|
getImportUrl, |
|
|
|
getImportUrl, |
|
|
|
getExportUrl, |
|
|
|
getExportUrl, |
|
|
|
getExportUrlMb, |
|
|
|
getExportUrlMb, |
|
|
|
|
|
|
|
getExportUrltj, |
|
|
|
|
|
|
|
tj, |
|
|
|
|
|
|
|
qxtj, |
|
|
|
// personalAbilityEvaluation |
|
|
|
// personalAbilityEvaluation |
|
|
|
} from './AwardPersion.api'; |
|
|
|
} from './AwardPersion.api'; |
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils'; |
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils'; |
|
|
@ -135,7 +139,7 @@ const registerModal = ref(); |
|
|
|
const registerModal1 = ref(); |
|
|
|
const registerModal1 = ref(); |
|
|
|
const registerModal2 = ref(); |
|
|
|
const registerModal2 = ref(); |
|
|
|
//注册table数据 |
|
|
|
//注册table数据 |
|
|
|
const { prefixCls, tableContext, onExportXls, onImportXls, onExportXlsMb } = useListPage({ |
|
|
|
const { prefixCls, tableContext, onExportXls, onImportXls, onExportXlsMb,onExportXlstj } = useListPage({ |
|
|
|
tableProps: { |
|
|
|
tableProps: { |
|
|
|
title: '获奖管理', |
|
|
|
title: '获奖管理', |
|
|
|
api: list, |
|
|
|
api: list, |
|
|
@ -160,6 +164,11 @@ const { prefixCls, tableContext, onExportXls, onImportXls, onExportXlsMb } = use |
|
|
|
url: getExportUrlMb, |
|
|
|
url: getExportUrlMb, |
|
|
|
params: null, |
|
|
|
params: null, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
exportConfigtj: { |
|
|
|
|
|
|
|
name: "获奖推荐", |
|
|
|
|
|
|
|
url: getExportUrltj, |
|
|
|
|
|
|
|
params: null, |
|
|
|
|
|
|
|
}, |
|
|
|
importConfig: { |
|
|
|
importConfig: { |
|
|
|
url: getImportUrl, |
|
|
|
url: getImportUrl, |
|
|
|
success: handleSuccess |
|
|
|
success: handleSuccess |
|
|
@ -213,6 +222,18 @@ function handleDetail(record: Recordable) { |
|
|
|
async function handleDelete(record) { |
|
|
|
async function handleDelete(record) { |
|
|
|
await deleteOne({ id: record.id }, handleSuccess); |
|
|
|
await deleteOne({ id: record.id }, handleSuccess); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 推荐事件 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async function tjjx(record) { |
|
|
|
|
|
|
|
await tj({ id: record.id }, handleSuccess); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 取消推荐事件 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async function qxtjjx(record) { |
|
|
|
|
|
|
|
await qxtj({ id: record.id }, handleSuccess); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 上传证书事件 |
|
|
|
* 上传证书事件 |
|
|
@ -267,6 +288,23 @@ function getTableAction(record) { |
|
|
|
confirm: handleDelete.bind(null, record), |
|
|
|
confirm: handleDelete.bind(null, record), |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
if (record.tj === "0") { |
|
|
|
|
|
|
|
actions.unshift({ |
|
|
|
|
|
|
|
label: '推荐', |
|
|
|
|
|
|
|
popConfirm: { |
|
|
|
|
|
|
|
title: '是否确认推荐', |
|
|
|
|
|
|
|
confirm: tjjx.bind(null, record), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
actions.unshift({ |
|
|
|
|
|
|
|
label: '取消推荐', |
|
|
|
|
|
|
|
popConfirm: { |
|
|
|
|
|
|
|
title: '是否取消推荐', |
|
|
|
|
|
|
|
confirm: qxtjjx.bind(null, record), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
return actions; |
|
|
|
return actions; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|