讲师管理bug

This commit is contained in:
zhangsir
2024-11-21 16:31:03 +08:00
parent 49163a4642
commit 12a79be123
4 changed files with 10 additions and 21 deletions

View File

@@ -159,7 +159,11 @@ import {getCookieForName} from "@/api/method";
title:{
type: String,
default: null,
}
},
template:{
type: String,
default: null,
},
},
setup(props, ctx) {
const state = reactive({
@@ -283,22 +287,7 @@ import {getCookieForName} from "@/api/method";
}
};
function downTemplate() {
if (props.url==='/admin/export/importInTeacherRecord'){
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportInTeacherRecord?
&name=${props.name||''}`
);}
else if(props.url==='/admin/export/importOutTeacherRecord'){
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportOutTeacherRecord?
&name=${props.name||''}`
);
}else if(props.url==='/admin/export/exportTeacherExpense') {
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/importTeacherExpense?
&name=${props.name||''}`
);
}
window.open(`${process.env.VUE_APP_BASE}/template/${props.template}.xlsx`);
}
return {

View File

@@ -303,7 +303,7 @@
</a-modal>
</div>
<!-- <div> <ImageUpload/> </div> -->
<ImportWork v-model:showWork="showWork" :url="'/admin/export/importOutTeacherRecord'" :title="title"></ImportWork>
<ImportWork v-model:showWork="showWork" :template="'外部授课记录导入模板'" :url="'/admin/export/importOutTeacherRecord'" :title="title"></ImportWork>
</div>
</template>
<script lang="jsx">

View File

@@ -403,7 +403,7 @@
</div>
</a-modal>
</div>
<ImportWork v-model:showWork="showWork" :url="'/admin/export/importInTeacherRecord'" :title="title"></ImportWork>
<ImportWork v-model:showWork="showWork" :template="'内部授课记录导入模板'" :url="'/admin/export/importInTeacherRecord'" :title="title"></ImportWork>
<!-- <div> <Upload/> </div> -->
</div>
</template>

View File

@@ -437,7 +437,7 @@
</a-button>
</div>
</a-drawer>
<ImportWork v-model:showWork="showWork" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork>
<ImportWork v-model:showWork="showWork" :template="'讲师费导入模板'" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork>
</div>
<!-- 一键确认讲师费 -->
<ConfirmLecturer :ids="selectsIds" v-model:visible="visibleConfirm" :name="'确认讲师费'" />
@@ -455,7 +455,7 @@
FolderAddOutlined,
DownloadOutlined
} from '@ant-design/icons-vue';
import ImportWork from "../../components/project/ImportWork.vue";
import ImportWork from "../../components/lecturer/ImportWork.vue";
import SearchTeacher from "@/components/project/SearchTeacher";
import {getTeacherFeeList,getTeacherFeeDetail,addTeacherFee ,getListByIds,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTeacherLevel,deleteInTeacher,confirm} from "../../api/lecturerFeeManagement";
import {getTeacherSystemList, getAllLevelList,getPayRollPlace,fileUp,submitApproval } from "../../api/Lecturer";