lifanagju_citu hace 2 meses
padre
commit
9086e732eb
Se han modificado 1 ficheros con 8 adiciones y 6 borrados
  1. 8 6
      src/views/recruit/teacher/studentList/index.vue

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

@@ -47,6 +47,7 @@ defineOptions({name: 'studentList-index'})
 import { ref } from 'vue'
 import Snackbar from '@/plugins/snackbar'
 import { formatName } from '@/utils/getText'
+import { getUserAvatar } from '@/utils/avatar'
 
 const loading = ref(false)
 const query = ref({
@@ -57,21 +58,22 @@ const query = ref({
 
 const headers = [
   { title: '学生姓名', key: 'studentName', sortable: false },
-  { title: '学生学号', key: 'studentName', sortable: false },
-  { title: '所属专业', key: 'studentName', sortable: false },
-  { title: '录用企业', key: 'studentName', sortable: false, value: item => formatName(item.studentName) },
-  { title: '录用部门', key: 'studentName', sortable: false, value: item => formatName(item.studentName) },
-  { title: '录用岗位', key: 'studentName', sortable: false, value: item => formatName(item.studentName) },
+  { title: '学生学号', key: 'test', sortable: false },
+  { title: '所属专业', key: 'test', sortable: false },
+  { title: '录用企业', key: 'test', sortable: false, value: item => formatName(item.test) },
+  { title: '录用部门', key: 'test', sortable: false, value: item => formatName(item.test) },
+  { title: '录用岗位', key: 'test', sortable: false, value: item => formatName(item.test) },
   { title: '操作', key: 'actions', sortable: false }
 ]
 
-const tableData = ref([{ studentName: '123'}])
+const tableData = ref([])
 const total = ref(0)
 // 列表
 const getData = async (isRefresh = false) => {
   // const { list, total: number } = await getInterviewInvitePage(query.value)
   // tableData.value = list
   // total.value = number
+  tableData.value = [{ test: 'ces', person: { name: '123' }}]
   if (isRefresh) Snackbar.success('刷新成功')
 }