2023-04-08 18:44:10 +08:00
|
|
|
|
<template>
|
2023-04-08 19:14:38 +08:00
|
|
|
|
<!-- <a-list item-layout="horizontal" :data-source="list" :grid="{ gutter: 16, xs: 1, sm: 2, md: 4, lg: 4, xl: 6, xxl: 3, xxxl: 2 }"> -->
|
2023-04-08 18:44:10 +08:00
|
|
|
|
<a-list item-layout="horizontal" :data-source="list">
|
|
|
|
|
<template #renderItem="{ item }">
|
|
|
|
|
<a-list-item>
|
|
|
|
|
<a-list-item-meta>
|
|
|
|
|
<template #title>
|
2023-04-15 09:45:50 +08:00
|
|
|
|
<div class="wenZiJiaCu fs1d1r">
|
|
|
|
|
听了 {{ item.kkdw }} {{item.skjs}} 主讲的 《{{ item.kcmc }}》
|
2023-04-08 18:44:10 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #description>
|
2023-04-09 21:54:59 +08:00
|
|
|
|
<!-- -{{ item }}- -->
|
2023-04-15 09:45:50 +08:00
|
|
|
|
<div class="wenZiJiaCu">
|
2023-05-27 17:54:16 +08:00
|
|
|
|
<span v-if="item.score" class="hand" style="color: #337ab7;" @click="viewModal.view(item)">已评分:{{ item.score }}分</span>
|
|
|
|
|
<span v-else class="hand" style="color: #b77633;" @click="tingKeZuJiAddModal.view(item)"><FormOutlined/>填写评价</span>
|
2023-06-09 08:31:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span v-if="item.source != null" class="hand" style="padding-left: .5rem;color: #337ab7;">【</span>
|
|
|
|
|
<span v-if="item.source=='0'" class="hand" style="padding-left: .5rem;color: #337ab7;">课程中心</span>
|
|
|
|
|
<span v-else-if="item.source=='1'" class="hand" style="padding-left: .5rem;color: #337ab7;">老系统</span>
|
|
|
|
|
<span v-else-if="item.source=='2'" class="hand" style="padding-left: .5rem;color: #337ab7;">政务大厅</span>
|
|
|
|
|
<span v-else-if="item.source=='3'" class="hand" style="padding-left: .5rem;color: #337ab7;">纸质评价</span>
|
|
|
|
|
<span v-if="item.source != null" class="hand" style="padding-left: .5rem;color: #337ab7;">--</span>
|
|
|
|
|
<span v-if="item.evaluationver=='1'" class="hand" style="padding-left: .5rem;color: #337ab7;">原始数据</span>
|
|
|
|
|
<span v-else-if="item.evaluationver=='2'" class="hand" style="padding-left: .5rem;color: #337ab7;">线上听课</span>
|
|
|
|
|
<span v-else-if="item.evaluationver=='3'" class="hand" style="padding-left: .5rem;color: #337ab7;">听课记录</span>
|
|
|
|
|
<span v-else-if="item.evaluationver=='4'" class="hand" style="padding-left: .5rem;color: #337ab7;">同行专家</span>
|
|
|
|
|
<span v-if="item.source != null" class="hand" style="padding-left: .5rem;color: #337ab7;">】</span>
|
|
|
|
|
|
2023-05-27 17:54:16 +08:00
|
|
|
|
<span v-if="item.suibiNotes" class="hand" style="padding-left: .5rem;color: #337ab7;">
|
2023-05-05 23:52:51 +08:00
|
|
|
|
<a-popover title="听课笔记">
|
2023-05-04 23:50:32 +08:00
|
|
|
|
<template #content>
|
|
|
|
|
{{ item.suibiNotes }}
|
|
|
|
|
</template>
|
2023-05-05 23:52:51 +08:00
|
|
|
|
查看听课笔记
|
2023-05-04 23:50:32 +08:00
|
|
|
|
</a-popover>
|
|
|
|
|
</span>
|
2023-06-07 00:02:49 +08:00
|
|
|
|
<span v-if="item.bh" style="color: #337ab7;margin-left: 30px;" @click="fwdtModal.view(item)"><FormOutlined/>服务大厅</span>
|
2023-04-15 09:45:50 +08:00
|
|
|
|
</div>
|
2023-04-08 18:44:10 +08:00
|
|
|
|
</template>
|
|
|
|
|
<template #avatar>
|
|
|
|
|
<div class="wenZiJuZhong">
|
2023-04-15 09:45:50 +08:00
|
|
|
|
<!-- <TeamOutlined/> -->
|
|
|
|
|
<i class="fas fa-users" />
|
2023-04-08 18:44:10 +08:00
|
|
|
|
<div>{{ item.shijian }}</div>
|
|
|
|
|
<div style="color: #1ab394;">{{ item.tkrq }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</a-list-item-meta>
|
|
|
|
|
</a-list-item>
|
|
|
|
|
</template>
|
|
|
|
|
</a-list>
|
2023-04-09 21:54:59 +08:00
|
|
|
|
<addModalPage ref="tingKeZuJiAddModal"/>
|
|
|
|
|
<viewModalPage ref="viewModal"/>
|
2023-05-05 19:23:53 +08:00
|
|
|
|
<fwdtModalPage ref="fwdtModal"/>
|
2023-04-08 18:44:10 +08:00
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
2023-06-07 00:02:49 +08:00
|
|
|
|
import { ref, onMounted, watch } from 'vue';
|
2023-04-08 18:44:10 +08:00
|
|
|
|
import { TeamOutlined, FormOutlined } from '@ant-design/icons-vue';
|
2023-04-10 23:14:07 +08:00
|
|
|
|
import { getUserId,getSysConfig } from '/@/views/site/utils/index';
|
2023-04-08 18:44:10 +08:00
|
|
|
|
|
2023-04-09 21:54:59 +08:00
|
|
|
|
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
|
|
|
|
import viewModalPage from '/@/views/site/tingKeZuJi/components/viewModal.vue';
|
2023-05-05 19:23:53 +08:00
|
|
|
|
import fwdtModalPage from '/@/views/site/tingKeZuJi/components/fwdtModal.vue';
|
2023-04-08 18:44:10 +08:00
|
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
|
enum Api {
|
|
|
|
|
list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-09 21:54:59 +08:00
|
|
|
|
const tingKeZuJiAddModal = ref();
|
|
|
|
|
const viewModal = ref();
|
2023-05-05 19:23:53 +08:00
|
|
|
|
const fwdtModal = ref();
|
2023-04-09 21:54:59 +08:00
|
|
|
|
|
2023-04-12 23:21:42 +08:00
|
|
|
|
const props = defineProps({
|
2023-05-04 23:50:32 +08:00
|
|
|
|
queryParam: { type: Object, default: () => ({}) },
|
|
|
|
|
});
|
2023-04-12 23:21:42 +08:00
|
|
|
|
|
2023-04-08 18:44:10 +08:00
|
|
|
|
/**
|
|
|
|
|
* 列表接口
|
|
|
|
|
* @param params
|
|
|
|
|
*/
|
|
|
|
|
const listApi = (params) => defHttp.get({ url: Api.list, params });
|
|
|
|
|
|
|
|
|
|
const list = ref<any>([]);
|
|
|
|
|
onMounted(() => {
|
2023-04-12 23:21:42 +08:00
|
|
|
|
init();
|
|
|
|
|
});
|
2023-04-08 18:44:10 +08:00
|
|
|
|
|
2023-06-07 00:02:49 +08:00
|
|
|
|
watch(
|
|
|
|
|
() => props.queryParam,
|
|
|
|
|
(v) => {
|
|
|
|
|
init();
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
2023-04-12 23:21:42 +08:00
|
|
|
|
function init() {
|
|
|
|
|
console.log('init');
|
|
|
|
|
listApi({ userid: getUserId(), tingketime: getSysConfig().bxqkssj, ...props.queryParam }).then(res => {
|
2023-04-08 18:44:10 +08:00
|
|
|
|
list.value = res ?? [];
|
|
|
|
|
});
|
2023-04-12 23:21:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function onSearch() {
|
|
|
|
|
init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
|
onSearch
|
2023-04-08 18:44:10 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.wenZiJuZhong {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.wenZiJiaCu {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
2023-04-15 09:45:50 +08:00
|
|
|
|
.fs1d1r {
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
}
|
2023-05-27 17:54:16 +08:00
|
|
|
|
.hand {
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
2023-04-08 18:44:10 +08:00
|
|
|
|
|
|
|
|
|
</style>
|