Browse Source

人才详情-附件简历

Xiao_123 6 months ago
parent
commit
46866f84f4

+ 5 - 0
src/api/menduner/system/person/index.ts

@@ -131,5 +131,10 @@ export const PersonInfoApi = {
   // 会员类型-获取用户套餐列表
   getPersonPackageList: async () => {
     return await request.get({ url: `/menduner/system/user-package/list` })
+  },
+
+  // 人才附件简历
+  getPersonAttachmentList: async (params: any) => {
+    return await request.get({ url: `/menduner/system/cv-attachment/page`, params })
   }
 }

+ 40 - 0
src/views/menduner/system/person/details/components/attachment.vue

@@ -0,0 +1,40 @@
+<template>
+  <el-table v-loading="loading" :data="tableData" :stripe="true">
+    <el-table-column label="附件名称" align="center" prop="title" />
+    <el-table-column label="操作" align="center">
+      <template #default="scope">
+        <el-link type="primary" download :href="scope.row.url" :underline="false" target="_blank">下载</el-link>
+      </template>
+    </el-table-column>
+  </el-table>
+</template>
+
+<script setup>
+defineOptions({ name: 'PersonAttachment' })
+import { PersonInfoApi } from '@/api/menduner/system/person'
+
+const props = defineProps({
+  userId: String
+})
+
+const loading = ref(false)
+const tableData = ref([])
+const total = ref(0)
+const queryParams = reactive({
+  pageNo: 1,
+  pageSize: 5,
+  userId: props.userId
+})
+
+const getList = async () => {
+  loading.value = true
+  try {
+    const data = await PersonInfoApi.getPersonAttachmentList(queryParams)
+    tableData.value = data.list
+    total.value = data.total
+  } finally {
+    loading.value = false
+  }
+}
+getList()
+</script>

+ 7 - 0
src/views/menduner/system/person/details/index.vue

@@ -24,6 +24,12 @@
           </template>
           <Collect :user-id="userId" />
         </el-card>
+        <el-card shadow="never" class="m-t-10px">
+          <template #header>
+            <CardTitle title="附件简历" />
+          </template>
+          <Attachment :user-id="userId" />
+        </el-card>
       </el-col>
     </el-row>
 
@@ -69,6 +75,7 @@ import JobIntention from './components/jobIntention.vue'
 import RechargeOrder from './components/rechargeOrder.vue'
 import PointsChange from './components/pointsChange.vue'
 import Collect from './components/collect.vue'
+import Attachment from './components/attachment.vue'
 
 /** 初始化 */
 const { currentRoute } = useRouter() // 路由