2023年6月20日 新增评课足迹

This commit is contained in:
bai 2023-06-20 22:54:10 +08:00
parent 288f4f6041
commit 021ff80859
7 changed files with 58 additions and 21 deletions

View File

@ -81,8 +81,8 @@
{{ text }}
</template>
<template v-else>
{{ text }}
<!-- <a @click="openKetangView(record)">{{ text }}</a> -->
<!-- {{ text }} -->
<a @click="openKetangView(record)">{{ text }}</a>
</template>
</template>
<!--省市区字段回显插槽-->

View File

@ -74,7 +74,7 @@ function view(record){
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 } });
//

View File

@ -24,7 +24,7 @@
<a style="padding-right: 0.5rem;" @click="reloadPkzj()">刷新</a>
<RouterLink to="/site/pingKeZuJiMore">查看更多</RouterLink>
</template>
<listPkzjPage :queryParam="{ pageSize: 3 ,score:'1', ...pkzjParam }"/>
<listPkzjPage :queryParam="{ pageSize: 3 , ...pkzjParam }"/>
</a-card>
</a-col>
</a-row>

View File

@ -78,8 +78,9 @@ 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({
queryParam: { type: Object, default: () => ({}) },
@ -100,8 +101,10 @@ onMounted(() => {
watch(
() => props.queryParam,
(v) => {
init();
(v) => init(),
{
deep:true,
immediate:true,
}
);
@ -131,7 +134,7 @@ function txpjFun(item){
}else{
tingKeZuJiAddModal.value.view(item)
}
});
}
@ -146,15 +149,16 @@ function loadData(){
total.value = res.total;
current.value = res.current;
list.value = res.records
loadingList.value = false
loadingList.value = false
// props.queryParam.value = res.total;
});
}
function handlePageChange(record){
console.log(`🚀 ~ file: list.vue:150 ~ handlePageChange ~ record:`, record)
props.queryParam.pageNo=record
loadData();
// props.queryParam.pageNo=record
emit('changeParam',record);
// loadData();
}

View File

@ -1,6 +1,6 @@
<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">
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList">
<template #renderItem="{ item }">
<a-list-item>
<a-list-item-meta>
@ -39,6 +39,7 @@
</a-list-item>
</template>
</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"/>
<viewModalPage ref="viewModal"/>
<fwdtModalPage ref="fwdtModal"/>
@ -46,6 +47,7 @@
<script setup lang="ts">
import { ref, onMounted, watch } from 'vue';
import { TeamOutlined, FormOutlined } from '@ant-design/icons-vue';
import { Pagination } from 'ant-design-vue';
import { getUserId,getSysConfig } from '/@/views/site/utils/index';
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 { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
// list = '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId'
list = '/qa/kcEvaluation/queryPkZuJiList'
}
const tingKeZuJiAddModal = ref();
const viewModal = 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({
queryParam: { type: Object, default: () => ({}) },
flagPage: { type:Boolean,default:false}
});
@ -78,19 +89,32 @@ onMounted(() => {
watch(
() => props.queryParam,
(v) => {
init();
(v) => init(),
{
deep:true,
immediate:true,
}
);
function init() {
console.log('init');
listApi({ userid: getUserId(),pj:'1', tingketime: getSysConfig().bxqkssj, ...props.queryParam }).then(res => {
list.value = res ?? [];
console.log('init');
loadingList.value = true
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() {
init();
}

View File

@ -40,7 +40,7 @@
<a-divider class="divider"/>
<a-row>
<a-col :span="24">
<listPage ref="listRef" :queryParam="queryParam" flagPage/>
<listPage ref="listRef" :queryParam="queryParam" flagPage @change-param="changeParam"/>
</a-col>
</a-row>
</a-card>
@ -73,6 +73,10 @@ const listRef = ref();
function onSearch(){
listRef.value.onSearch();
}
function changeParam(pageNo){
queryParam.value.pageNo = pageNo;
onSearch();
}
</script>
<style lang="less" scoped>

View File

@ -40,7 +40,7 @@
<a-divider class="divider"/>
<a-row>
<a-col :span="24">
<listPkzjPage ref="listRef" :queryParam="queryParam"/>
<listPkzjPage ref="listRef" :queryParam="queryParam" flagPage @change-param="changeParam"/>
</a-col>
</a-row>
</a-card>
@ -60,7 +60,7 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectT
import { getSysConfig } from '/@/views/site/utils/index';
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(() => {
@ -74,6 +74,11 @@ function onSearch(){
listRef.value.onSearch();
}
function changeParam(pageNo){
queryParam.value.pageNo = pageNo;
onSearch();
}
</script>
<style lang="less" scoped>
#siteMain {