2023年6月20日 新增评课足迹
This commit is contained in:
parent
288f4f6041
commit
021ff80859
|
@ -81,8 +81,8 @@
|
||||||
{{ text }}
|
{{ text }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ text }}
|
<!-- {{ text }} -->
|
||||||
<!-- <a @click="openKetangView(record)">{{ text }}</a> -->
|
<a @click="openKetangView(record)">{{ text }}</a>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<!--省市区字段回显插槽-->
|
<!--省市区字段回显插槽-->
|
||||||
|
|
|
@ -74,7 +74,7 @@ function view(record){
|
||||||
|
|
||||||
let params = { pageSize: -1, status: 0, column: 'ordernum', order: 'asc' }
|
let params = { pageSize: -1, status: 0, column: 'ordernum', order: 'asc' }
|
||||||
//回答记录
|
//回答记录
|
||||||
let queryData = defHttp.get({ url: Api.queryResData, params: { userid: record.userid, minkcid: record.ketangbiaoid, evaluationver: record.evaluationver} });
|
let queryData = defHttp.get({ url: Api.queryResData, params: { userid: (record.userid || record.upuserid), minkcid: record.ketangbiaoid, evaluationver: record.evaluationver} });
|
||||||
//题目
|
//题目
|
||||||
let queryQue = defHttp.get({ url: Api.que, params: { ...params, evaluationver: record.evaluationver } });
|
let queryQue = defHttp.get({ url: Api.que, params: { ...params, evaluationver: record.evaluationver } });
|
||||||
//答案列表
|
//答案列表
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<a style="padding-right: 0.5rem;" @click="reloadPkzj()">刷新</a>
|
<a style="padding-right: 0.5rem;" @click="reloadPkzj()">刷新</a>
|
||||||
<RouterLink to="/site/pingKeZuJiMore">查看更多</RouterLink>
|
<RouterLink to="/site/pingKeZuJiMore">查看更多</RouterLink>
|
||||||
</template>
|
</template>
|
||||||
<listPkzjPage :queryParam="{ pageSize: 3 ,score:'1', ...pkzjParam }"/>
|
<listPkzjPage :queryParam="{ pageSize: 3 , ...pkzjParam }"/>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -80,6 +80,7 @@ const total = ref<number>(2);
|
||||||
const loadingList = ref<boolean>(false);
|
const loadingList = ref<boolean>(false);
|
||||||
|
|
||||||
const APagination = Pagination;
|
const APagination = Pagination;
|
||||||
|
const emit = defineEmits(['changeParam']);
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
queryParam: { type: Object, default: () => ({}) },
|
queryParam: { type: Object, default: () => ({}) },
|
||||||
|
@ -100,8 +101,10 @@ onMounted(() => {
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.queryParam,
|
() => props.queryParam,
|
||||||
(v) => {
|
(v) => init(),
|
||||||
init();
|
{
|
||||||
|
deep:true,
|
||||||
|
immediate:true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -153,8 +156,9 @@ function loadData(){
|
||||||
|
|
||||||
function handlePageChange(record){
|
function handlePageChange(record){
|
||||||
console.log(`🚀 ~ file: list.vue:150 ~ handlePageChange ~ record:`, record)
|
console.log(`🚀 ~ file: list.vue:150 ~ handlePageChange ~ record:`, record)
|
||||||
props.queryParam.pageNo=record
|
// props.queryParam.pageNo=record
|
||||||
loadData();
|
emit('changeParam',record);
|
||||||
|
// loadData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- <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 }"> -->
|
<!-- <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 }"> -->
|
||||||
<a-list item-layout="horizontal" :data-source="list">
|
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList">
|
||||||
<template #renderItem="{ item }">
|
<template #renderItem="{ item }">
|
||||||
<a-list-item>
|
<a-list-item>
|
||||||
<a-list-item-meta>
|
<a-list-item-meta>
|
||||||
|
@ -39,6 +39,7 @@
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
</template>
|
</template>
|
||||||
</a-list>
|
</a-list>
|
||||||
|
<a-pagination v-model="current" :total="total" show-less-items @change="handlePageChange" v-if="props.flagPage" style="text-align: right;" :hideOnSinglePage="true"/>
|
||||||
<addModalPage ref="tingKeZuJiAddModal"/>
|
<addModalPage ref="tingKeZuJiAddModal"/>
|
||||||
<viewModalPage ref="viewModal"/>
|
<viewModalPage ref="viewModal"/>
|
||||||
<fwdtModalPage ref="fwdtModal"/>
|
<fwdtModalPage ref="fwdtModal"/>
|
||||||
|
@ -46,6 +47,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, watch } from 'vue';
|
import { ref, onMounted, watch } from 'vue';
|
||||||
import { TeamOutlined, FormOutlined } from '@ant-design/icons-vue';
|
import { TeamOutlined, FormOutlined } from '@ant-design/icons-vue';
|
||||||
|
import { Pagination } from 'ant-design-vue';
|
||||||
import { getUserId,getSysConfig } from '/@/views/site/utils/index';
|
import { getUserId,getSysConfig } from '/@/views/site/utils/index';
|
||||||
|
|
||||||
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
||||||
|
@ -53,15 +55,24 @@ import viewModalPage from '/@/views/site/tingKeZuJi/components/viewModal.vue';
|
||||||
import fwdtModalPage from '/@/views/site/tingKeZuJi/components/fwdtModal.vue';
|
import fwdtModalPage from '/@/views/site/tingKeZuJi/components/fwdtModal.vue';
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
|
// list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
|
||||||
|
list = '/qa/kcEvaluation/queryPkZuJiList'
|
||||||
}
|
}
|
||||||
|
|
||||||
const tingKeZuJiAddModal = ref();
|
const tingKeZuJiAddModal = ref();
|
||||||
const viewModal = ref();
|
const viewModal = ref();
|
||||||
const fwdtModal = ref();
|
const fwdtModal = ref();
|
||||||
|
|
||||||
|
const current = ref<number>(0);
|
||||||
|
const total = ref<number>(2);
|
||||||
|
const loadingList = ref<boolean>(false);
|
||||||
|
|
||||||
|
const APagination = Pagination;
|
||||||
|
const emit = defineEmits(['changeParam']);
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
queryParam: { type: Object, default: () => ({}) },
|
queryParam: { type: Object, default: () => ({}) },
|
||||||
|
flagPage: { type:Boolean,default:false}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,19 +89,32 @@ onMounted(() => {
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.queryParam,
|
() => props.queryParam,
|
||||||
(v) => {
|
(v) => init(),
|
||||||
init();
|
{
|
||||||
|
deep:true,
|
||||||
|
immediate:true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
console.log('init');
|
console.log('init');
|
||||||
listApi({ userid: getUserId(),pj:'1', tingketime: getSysConfig().bxqkssj, ...props.queryParam }).then(res => {
|
loadingList.value = true
|
||||||
list.value = res ?? [];
|
listApi({ upuserid: getUserId(),pj:'1', tingketime: getSysConfig().bxqkssj, ...props.queryParam }).then(res => {
|
||||||
|
list.value = res?.records ?? [];
|
||||||
|
|
||||||
|
total.value = res.total;
|
||||||
|
current.value = res.current;
|
||||||
|
list.value = res.records
|
||||||
|
loadingList.value = false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handlePageChange(record){
|
||||||
|
emit('changeParam',record);
|
||||||
|
// loadData();
|
||||||
|
}
|
||||||
|
|
||||||
function onSearch() {
|
function onSearch() {
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<a-divider class="divider"/>
|
<a-divider class="divider"/>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<listPage ref="listRef" :queryParam="queryParam" flagPage/>
|
<listPage ref="listRef" :queryParam="queryParam" flagPage @change-param="changeParam"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
@ -73,6 +73,10 @@ const listRef = ref();
|
||||||
function onSearch(){
|
function onSearch(){
|
||||||
listRef.value.onSearch();
|
listRef.value.onSearch();
|
||||||
}
|
}
|
||||||
|
function changeParam(pageNo){
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
onSearch();
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<a-divider class="divider"/>
|
<a-divider class="divider"/>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<listPkzjPage ref="listRef" :queryParam="queryParam"/>
|
<listPkzjPage ref="listRef" :queryParam="queryParam" flagPage @change-param="changeParam"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
@ -60,7 +60,7 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectT
|
||||||
import { getSysConfig } from '/@/views/site/utils/index';
|
import { getSysConfig } from '/@/views/site/utils/index';
|
||||||
import { dateFormat } from '/@/utils/common/compUtils';
|
import { dateFormat } from '/@/utils/common/compUtils';
|
||||||
|
|
||||||
const queryParam = ref<any>({ startDate: getSysConfig().bxqkssj, endDate: '',score: '1', pj: '', pageSize: -1 });
|
const queryParam = ref<any>({ startDate: getSysConfig().bxqkssj, endDate: '', pageSize: 10 });
|
||||||
|
|
||||||
//进入就加载
|
//进入就加载
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -74,6 +74,11 @@ function onSearch(){
|
||||||
listRef.value.onSearch();
|
listRef.value.onSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeParam(pageNo){
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
onSearch();
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
#siteMain {
|
#siteMain {
|
||||||
|
|
Loading…
Reference in New Issue