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