2023年8月12日 修复问题

This commit is contained in:
bai 2023-08-12 00:28:42 +08:00
parent 272b368132
commit 5fd519297f
9 changed files with 71 additions and 52 deletions

View File

@ -79,6 +79,9 @@ export function useListPage(options: ListPageOptions) {
//如果参数不为空,则整合到一起
//update-begin-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
if (params) {
if(typeof params == 'function'){
paramsForm = { ...paramsForm, ...params()}
}else{
Object.keys(params).map((k) => {
let temp = (params as object)[k];
if (temp) {
@ -86,6 +89,7 @@ export function useListPage(options: ListPageOptions) {
}
});
}
}
//update-end-author:taoyan date:20220507 for: erp代码生成 子表 导出动态设置mainId
if (selectedRowKeys.value && selectedRowKeys.value.length > 0) {
paramsForm['selections'] = selectedRowKeys.value.join(',');

View File

@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'zt'
},
{
title: '学期应听课次数',
title: '学期应听课次数',
align: "center",
dataIndex: 'ytkcs'
},
@ -45,7 +45,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'yskcs'
// },
{
title: '每学期听课次数',
title: '本学期已听课次数',
align: "center",
dataIndex: 'tkxttj'
},

View File

@ -136,6 +136,7 @@
exportConfig: {
name: "人员信息",
url: getExportUrl,
params: () => Object.assign({},queryParam.value)
},
importConfig: {
url: getImportUrl,
@ -290,8 +291,6 @@
}
</script>
<style lang="less" scoped>

View File

@ -32,6 +32,7 @@
valueFormat="YYYY-MM-DD"
:placeholder="'请选择开始时间'"
v-model:value="queryParam.startTime"
style="width:100%;"
></a-date-picker>
</a-form-item>
</a-col>
@ -42,6 +43,7 @@
valueFormat="YYYY-MM-DD"
:placeholder="'请选择结束时间'"
v-model:value="queryParam.endTime"
style="width:100%;"
></a-date-picker>
</a-form-item>
</a-col>

View File

@ -211,7 +211,8 @@ watch(() => xqDictTag.value?.dictOptions,(d) => {
function loadData(pageNo?){
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.pageSize = ipagination.value.pageSize;
if(pageNo === 1){

View File

@ -213,7 +213,8 @@ watch(() => xqDictTag.value?.dictOptions,(d) => {
function loadData(pageNo?){
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.pageSize = ipagination.value.pageSize;
if(pageNo === 1){

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" :loading="loadingList" style="height: 105px;">
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList" style="min-height: 105px;">
<template #renderItem="{ item }">
<a-list-item>
<a-list-item-meta>

View File

@ -1,6 +1,7 @@
<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" :loading="loadingList" style="height: 105px;" >
<div>
<a-list item-layout="horizontal" :data-source="list" :loading="loadingList" style="min-height: 105px;" >
<template #renderItem="{ item }">
<a-list-item>
<a-list-item-meta>
@ -39,7 +40,11 @@
</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>
<addModalPage ref="tingKeZuJiAddModal"/>
<viewModalPage ref="viewModal"/>
<fwdtModalPage ref="fwdtModal"/>

View File

@ -65,6 +65,13 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
target: 'es2015',
cssTarget: 'chrome80',
outDir: OUTPUT_DIR,
//多页面入口,减少等待
// rollupOptions: {
// input: {
// '/': resolve(__dirname, '/site.html'),
// admin: resolve(__dirname, '/index.html')
// },
// },
terserOptions: {
compress: {
keep_infinity: true,