2023年8月12日 修复问题
This commit is contained in:
parent
272b368132
commit
5fd519297f
|
@ -79,12 +79,16 @@ export function useListPage(options: ListPageOptions) {
|
||||||
//如果参数不为空,则整合到一起
|
//如果参数不为空,则整合到一起
|
||||||
//update-begin-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
|
//update-begin-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
|
||||||
if (params) {
|
if (params) {
|
||||||
Object.keys(params).map((k) => {
|
if(typeof params == 'function'){
|
||||||
let temp = (params as object)[k];
|
paramsForm = { ...paramsForm, ...params()}
|
||||||
if (temp) {
|
}else{
|
||||||
paramsForm[k] = unref(temp);
|
Object.keys(params).map((k) => {
|
||||||
}
|
let temp = (params as object)[k];
|
||||||
});
|
if (temp) {
|
||||||
|
paramsForm[k] = unref(temp);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//update-end-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
|
//update-end-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
|
||||||
if (selectedRowKeys.value && selectedRowKeys.value.length > 0) {
|
if (selectedRowKeys.value && selectedRowKeys.value.length > 0) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'zt'
|
dataIndex: 'zt'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '每学期应听课次数',
|
title: '本学期应听课次数',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'ytkcs'
|
dataIndex: 'ytkcs'
|
||||||
},
|
},
|
||||||
|
@ -45,7 +45,7 @@ export const columns: BasicColumn[] = [
|
||||||
// dataIndex: 'yskcs'
|
// dataIndex: 'yskcs'
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
title: '每学期听课次数',
|
title: '本学期已听课次数',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'tkxttj'
|
dataIndex: 'tkxttj'
|
||||||
},
|
},
|
||||||
|
|
|
@ -136,6 +136,7 @@
|
||||||
exportConfig: {
|
exportConfig: {
|
||||||
name: "人员信息",
|
name: "人员信息",
|
||||||
url: getExportUrl,
|
url: getExportUrl,
|
||||||
|
params: () => Object.assign({},queryParam.value)
|
||||||
},
|
},
|
||||||
importConfig: {
|
importConfig: {
|
||||||
url: getImportUrl,
|
url: getImportUrl,
|
||||||
|
@ -290,8 +291,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
valueFormat="YYYY-MM-DD"
|
valueFormat="YYYY-MM-DD"
|
||||||
:placeholder="'请选择开始时间'"
|
:placeholder="'请选择开始时间'"
|
||||||
v-model:value="queryParam.startTime"
|
v-model:value="queryParam.startTime"
|
||||||
|
style="width:100%;"
|
||||||
></a-date-picker>
|
></a-date-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
valueFormat="YYYY-MM-DD"
|
valueFormat="YYYY-MM-DD"
|
||||||
:placeholder="'请选择结束时间'"
|
:placeholder="'请选择结束时间'"
|
||||||
v-model:value="queryParam.endTime"
|
v-model:value="queryParam.endTime"
|
||||||
|
style="width:100%;"
|
||||||
></a-date-picker>
|
></a-date-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -211,7 +211,8 @@ watch(() => xqDictTag.value?.dictOptions,(d) => {
|
||||||
|
|
||||||
function loadData(pageNo?){
|
function loadData(pageNo?){
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let params = { pageNo: 0, pageSize: 10, findByBeiTkkdwmc: true, findGh: getUserId() };
|
queryParam.value = {...queryParam.value, findByBeiTkkdwmc: !roleList.value.filter(x => x.roleCode == 'admin' ).length, findGh: getUserId() }
|
||||||
|
let params = { pageNo: 0, pageSize: 10 };
|
||||||
params.pageNo = ipagination.value.current;
|
params.pageNo = ipagination.value.current;
|
||||||
params.pageSize = ipagination.value.pageSize;
|
params.pageSize = ipagination.value.pageSize;
|
||||||
if(pageNo === 1){
|
if(pageNo === 1){
|
||||||
|
|
|
@ -213,7 +213,8 @@ watch(() => xqDictTag.value?.dictOptions,(d) => {
|
||||||
|
|
||||||
function loadData(pageNo?){
|
function loadData(pageNo?){
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let params = { pageNo: 0, pageSize: 10, findByPkdwmc: !roleList.value.filter(x => x.roleCode == 'admin' ).length, findGh: getUserId() };
|
queryParam.value = {...queryParam.value, findByPkdwmc: !roleList.value.filter(x => x.roleCode == 'admin' ).length, findGh: getUserId() }
|
||||||
|
let params = { pageNo: 0, pageSize: 10 };
|
||||||
params.pageNo = ipagination.value.current;
|
params.pageNo = ipagination.value.current;
|
||||||
params.pageSize = ipagination.value.pageSize;
|
params.pageSize = ipagination.value.pageSize;
|
||||||
if(pageNo === 1){
|
if(pageNo === 1){
|
||||||
|
|
|
@ -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" :loading="loadingList" style="height: 105px;">
|
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList" style="min-height: 105px;">
|
||||||
<template #renderItem="{ item }">
|
<template #renderItem="{ item }">
|
||||||
<a-list-item>
|
<a-list-item>
|
||||||
<a-list-item-meta>
|
<a-list-item-meta>
|
||||||
|
|
|
@ -1,45 +1,50 @@
|
||||||
<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" :loading="loadingList" style="height: 105px;" >
|
<div>
|
||||||
<template #renderItem="{ item }">
|
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList" style="min-height: 105px;" >
|
||||||
<a-list-item>
|
<template #renderItem="{ item }">
|
||||||
<a-list-item-meta>
|
<a-list-item>
|
||||||
<template #title>
|
<a-list-item-meta>
|
||||||
<div class="wenZiJiaCu fs1d1r">
|
<template #title>
|
||||||
评价了 {{ item.kkdw }} {{item.skjs}} 主讲的 《{{ item.kcmc }}》
|
<div class="wenZiJiaCu fs1d1r">
|
||||||
</div>
|
评价了 {{ item.kkdw }} {{item.skjs}} 主讲的 《{{ item.kcmc }}》
|
||||||
</template>
|
</div>
|
||||||
<template #description>
|
</template>
|
||||||
<!-- -{{ item }}- -->
|
<template #description>
|
||||||
<div class="wenZiJiaCu">
|
<!-- -{{ item }}- -->
|
||||||
<span v-if="item.score" class="hand" style="color: #337ab7;" @click="viewModal.view(item)">已评分:{{ item.score }}分</span>
|
<div class="wenZiJiaCu">
|
||||||
|
<span v-if="item.score" class="hand" style="color: #337ab7;" @click="viewModal.view(item)">已评分:{{ item.score }}分</span>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #avatar>
|
||||||
|
<div class="wenZiJuZhong dateAndTime">
|
||||||
|
<!-- <TeamOutlined/> -->
|
||||||
|
<i class="fas fa-users" />
|
||||||
|
<div>{{ item.shijian }}</div>
|
||||||
|
<div style="color: #1ab394;">{{ item.tkrq }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</a-list-item-meta>
|
||||||
|
</a-list-item>
|
||||||
|
</template>
|
||||||
|
</a-list>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a-pagination v-model="current" :total="total" show-less-items @change="handlePageChange" v-if="props.flagPage" style="text-align: right;" :hideOnSinglePage="true"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template #avatar>
|
|
||||||
<div class="wenZiJuZhong dateAndTime">
|
|
||||||
<!-- <TeamOutlined/> -->
|
|
||||||
<i class="fas fa-users" />
|
|
||||||
<div>{{ item.shijian }}</div>
|
|
||||||
<div style="color: #1ab394;">{{ item.tkrq }}</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</a-list-item-meta>
|
|
||||||
</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"/>
|
<addModalPage ref="tingKeZuJiAddModal"/>
|
||||||
<viewModalPage ref="viewModal"/>
|
<viewModalPage ref="viewModal"/>
|
||||||
<fwdtModalPage ref="fwdtModal"/>
|
<fwdtModalPage ref="fwdtModal"/>
|
||||||
|
|
|
@ -65,6 +65,13 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
target: 'es2015',
|
target: 'es2015',
|
||||||
cssTarget: 'chrome80',
|
cssTarget: 'chrome80',
|
||||||
outDir: OUTPUT_DIR,
|
outDir: OUTPUT_DIR,
|
||||||
|
//多页面入口,减少等待
|
||||||
|
// rollupOptions: {
|
||||||
|
// input: {
|
||||||
|
// '/': resolve(__dirname, '/site.html'),
|
||||||
|
// admin: resolve(__dirname, '/index.html')
|
||||||
|
// },
|
||||||
|
// },
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
compress: {
|
compress: {
|
||||||
keep_infinity: true,
|
keep_infinity: true,
|
||||||
|
|
Loading…
Reference in New Issue