Parcourir la source

去掉学生列表头像显示

shmily1213 il y a 4 semaines
Parent
commit
47a63f5cc1

+ 2 - 1
src/pagesStudy/pages/study-history/components/knowledge-history-teacher.vue

@@ -27,12 +27,13 @@ const studentStatData = ref<StudentPlanStudyRecord[]>([]);
 const averageRate = ref(0);
 
 const loadData = async () => {
+  uni.$ie.showLoading();
   getClassKnowledgeRecord({
     classId: props.teachClass.classId,
   }).then(res => {
     studentStatData.value = res.data.list;
     averageRate.value = res.data.rate;
-  })
+  }).finally(() => uni.$ie.hideLoading());
 }
 
 const handleRowClick = (row: StudentPlanStudyRecord) => {

+ 3 - 3
src/pagesStudy/pages/study-history/components/student-stat-table.vue

@@ -2,9 +2,9 @@
   <view>
     <ie-table :table-columns="tableColumns" :table-config="tableConfig" :data="data" @rowClick="handleRowClick">
       <template #name="{ item }">
-        <view class="flex items-center justify-center">
-          <ie-image :src="item.avatar" class="w-60 h-60 bg-back" :round="999" />
-          <text class="ml-10 flex-1 min-w-1 ellipsis-1">{{ item.name }}</text>
+        <view class="flex items-center justify-center gap-10">
+          <!-- <ie-image :src="item.avatar" class="w-60 h-60 bg-back" :round="999" /> -->
+          <text class="flex-1 min-w-1 ellipsis-1">{{ item.name }}</text>
         </view>
       </template>
       <template #rate="{ item }">