讲师费用下 控制

This commit is contained in:
gengxin
2025-02-18 17:21:01 +08:00
parent 9cbd72d6ae
commit c4ee10f3da

View File

@@ -65,13 +65,13 @@
<UploadOutlined />导出
</a-button>
</div>
<div v-if="checkMenu('lecturerSummaryExport')" style="display: flex; margin-bottom: 20px">
<a-button class="resetbtn" @click="handleFeeMonthly" type="primary">
<div v-if="checkMenu('lecturerMonthDown')" style="display: flex; margin-bottom: 20px">
<a-button class="resetbtn" @click="handleFeeMonthlyDown" type="primary">
<UploadOutlined />讲师月度费用下载
</a-button>
</div>
<div v-if="checkMenu('lecturerSummaryExport')" style="display: flex; margin-bottom: 20px">
<a-button class="resetbtn" @click="handleFeeMonthly" type="primary">
<div v-if="checkMenu('lecturerMonthDetailDown')" style="display: flex; margin-bottom: 20px">
<a-button class="resetbtn" @click="handleFeeMonthlyDetail" type="primary">
<UploadOutlined />讲师费用详情下载
</a-button>
</div>
@@ -537,6 +537,23 @@ export default {
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportTeacherSummary?&name=${state.searchParam.name ? state.searchParam.name : ""}&id=${state.searchParam.id ? state.searchParam.id : ""}&trainOrgId=${state.searchParam.trainOrgId || ''}`)
}
// 讲师月度费用下载
const handleFeeMonthlyDown = () => {
console.log("handleFeeMonthlyDown state.searchParam.id param" , state.searchParam.id)
// window.open(
// `${process.env.VUE_APP_BASE_API}/admin/export/exportTeacherSummary?&name=${state.searchParam.name ? state.searchParam.name : ""}&id=${state.searchParam.id ? state.searchParam.id : ""}&trainOrgId=${state.searchParam.trainOrgId || ''}`)
}
// 讲师费用详情下载
const handleFeeMonthlyDetail = () => {
console.log("handleFeeMonthlyDetail state.searchParam.id param" , state.searchParam.id)
// window.open(
// `${process.env.VUE_APP_BASE_API}/admin/export/exportTeacherSummary?&name=${state.searchParam.name ? state.searchParam.name : ""}&id=${state.searchParam.id ? state.searchParam.id : ""}&trainOrgId=${state.searchParam.trainOrgId || ''}`)
}
//重置
const searchReset = () => {
state.searchParam = {
@@ -758,6 +775,8 @@ export default {
cancelTeachingDialog,
searchReset,
handleFeeMonthly,
handleFeeMonthlyDown,
handleFeeMonthlyDetail,
handleLook,
handleLess,
handleDetail,