|
@@ -34,8 +34,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #actions="{ item }">
|
|
|
- <v-btn v-if="!item?.recommendationLetter" color="primary" variant="text" @click="handleUploadLetter(item.id)">上传推荐信</v-btn>
|
|
|
- <v-btn v-if="!item?.evaluate" color="#00897B" variant="text" @click="handleIssueCertificate(item.id)">颁发实习证书</v-btn>
|
|
|
+ <v-btn v-if="!item?.recommendationLetter" color="primary" variant="text" @click="previewFile(item.recommendationLetter)">推荐信</v-btn>
|
|
|
+ <v-btn v-if="!item?.evaluate" color="#00897B" variant="text" @click="previewFile(item.evaluate)">实习证书</v-btn>
|
|
|
</template>
|
|
|
</CtTable>
|
|
|
<!-- <Loading :visible="loading"></Loading> -->
|
|
@@ -51,6 +51,7 @@ import { formatName } from '@/utils/getText'
|
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
|
import { schoolOrganization, studentList } from '@/api/school'
|
|
|
// import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
+import { previewFile } from '@/utils'
|
|
|
|
|
|
const loading = ref(false)
|
|
|
const query = ref({
|
|
@@ -82,7 +83,7 @@ const headers = [
|
|
|
const tableData = ref([]); const total = ref(0)
|
|
|
const getData = async (isRefresh = false) => {
|
|
|
if (!query.value?.schoolDepartmentName) return
|
|
|
-
|
|
|
+
|
|
|
const { data, total: number } = await studentList(query.value)
|
|
|
tableData.value = data?.records?.length && data.records.map(item=>{
|
|
|
const { enterpeiseName, enterpriseRecruitJobName, jobDept } = item
|
|
@@ -128,7 +129,9 @@ const studentDetails = (id) => {
|
|
|
if (id) window.open(`/recruit/teacher/studentList/detail/${id}`)
|
|
|
}
|
|
|
|
|
|
+// 导出
|
|
|
const exportLoading = ref(false)
|
|
|
+
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.title {
|