2023年4月6日 完善听课足迹
This commit is contained in:
parent
aab9630324
commit
31a7d85afc
|
@ -15,14 +15,15 @@
|
|||
</div>
|
||||
</template>
|
||||
<template #description>
|
||||
<span style="color: #337ab7;">已评分:5分</span>
|
||||
<span v-if="item.score" style="color: #337ab7;">已评分:{{ item.score }}分</span>
|
||||
<span v-else style="color: #337ab7;"><FormOutlined/>填写评价</span>
|
||||
</template>
|
||||
<template #avatar>
|
||||
<div class="wenZiJuZhong">
|
||||
<!-- <a-avatar style="marginRight: 5px" :src="getFileAccessHttpUrl(item.picPath)" shape="square" :size="25"/> -->
|
||||
<!-- <a-avatar src="https://joeschmoe.io/api/v1/random" /> -->
|
||||
<TeamOutlined/>
|
||||
<div>08:32:49 {{ item.hhks }} - {{ item.hhjs }}</div>
|
||||
<div>{{ item.shijian }}</div>
|
||||
<div style="color: #1ab394;">{{ item.skrq }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -34,13 +35,13 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onMounted } from 'vue';
|
||||
import { TeamOutlined } from '@ant-design/icons-vue';
|
||||
import { TeamOutlined, FormOutlined } from '@ant-design/icons-vue';
|
||||
// import { dateUtil, formatToDate } from '/@/utils/dateUtil';
|
||||
import { getUserId } from '/@/views/site/utils/index';
|
||||
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
enum Api {
|
||||
list = '/kcYuyue/kcYuyue/findTingkeZuJiByPage'
|
||||
list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -51,8 +52,13 @@ const listApi = (params) => defHttp.get({ url: Api.list, params });
|
|||
|
||||
const list = ref<any>([]);
|
||||
onMounted(() => {
|
||||
listApi({ pageSize: 4, isdeleted:0, userid: getUserId(), isOrderByNow: true }).then(res => {
|
||||
list.value = (res?.records) ?? [];
|
||||
listApi({ userid: getUserId(), tingketime: '2023-02-19' }).then(res => {
|
||||
|
||||
console.log(`🚀 ---------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:57 ~ listApi ~ res:`, res);
|
||||
console.log(`🚀 ---------------------------------------------🚀`);
|
||||
|
||||
list.value = res ?? [];
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue