lifanagju_citu 2 ماه پیش
والد
کامیت
2991e50f49
2فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 4 0
      components.d.ts
  2. 6 3
      src/views/recruit/teacher/studentList/index.vue

+ 4 - 0
components.d.ts

@@ -31,6 +31,7 @@ declare module 'vue' {
     CtTextField: typeof import('./src/components/CtVuetify/CtTextField/index.vue')['default']
     DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
+    ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     ElTree: typeof import('element-plus/es')['ElTree']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
@@ -76,4 +77,7 @@ declare module 'vue' {
     VerifySlide: typeof import('./src/components/Verifition/Verify/VerifySlide.vue')['default']
     WangEditor: typeof import('./src/components/FormUI/wangEditor/index.vue')['default']
   }
+  export interface ComponentCustomProperties {
+    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
+  }
 }

+ 6 - 3
src/views/recruit/teacher/studentList/index.vue

@@ -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 {