修改bug

This commit is contained in:
yangjun 2023-07-28 06:40:28 +08:00
parent fe08956f97
commit 33e6864358
4 changed files with 42 additions and 3 deletions

View File

@ -5,6 +5,11 @@ import { render } from '/@/utils/common/renderUtils';
import { log } from 'console';
//列表数据
export const columns: BasicColumn[] = [
{
title: '学期学年',
align: "center",
dataIndex: 'xqxn'
},
{
title: '姓名',
align: "center",
@ -147,6 +152,12 @@ export const columns: BasicColumn[] = [
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "学期学年",
field: 'xqxn',
component: 'Input',
colProps: {span: 6},
},
{
label: "姓名",
field: 'xm',

View File

@ -4,11 +4,17 @@
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
<a-col :lg="8">
<a-form-item label="学期学年">
<j-dict-select-tag placeholder="请选择学期学年" v-model:value="queryParam.xqxn" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="姓名">
<j-input placeholder="请输入姓名" v-model:value="queryParam.xm"></j-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="创建人">
<j-input placeholder="请输入创建人" v-model:value="queryParam.cjr"></j-input>
@ -221,7 +227,7 @@
fixed: 'right',
},
beforeFetch: (params) => {
params.column = '',params.order = '';//
params.column = 'skrq',params.order = 'desc';//
return Object.assign(params, queryParam.value);
},
},

View File

@ -3,7 +3,7 @@
<a-col :xs="{ span: 24 }" :sm="{ span: 24 }" :lg="{ span: 24 }" style="padding: 0 2px 0 0;">
<a-card style="min-height: 222px;">
<template #title>
<span style="font-size: 24px;font-weight: bold;">结果</span>
<span style="font-size: 24px;font-weight: bold;">结果</span>
</template>
<template #extra>
<!-- <RouterLink target='_blank' to="/site/tingKeZuJiMore">查看更多</RouterLink> -->

View File

@ -3,6 +3,9 @@
<!-- <a-list item-layout="horizontal" :data-source="list" :loading="loadingList" :grid="{ column: }"> -->
<template #renderItem="{ item }">
<a-list-item>
<div class="itemDate">
{{ item.skrq }} {{ formatTime(item.hhks) }}-{{ formatTime(item.hhjs) }}
</div>
<div style="border: 2px #eef1f2 solid;">
<div>
<div style="width: 100%;height: 20px;background-color: #1c84c6;"></div>
@ -166,7 +169,15 @@ function handlePageChange(record){
emit('changeParam',record);
// loadData();
}
/**
* 转换时间由0012转成00:12
* @param time 四个字符时分无分隔
*/
function formatTime(time: string) {
if(!time) return '';
let t_i_m_e = time.split('');
return [t_i_m_e[0],t_i_m_e[1],':',t_i_m_e[2],t_i_m_e[3]].join('');
}
function onSearch() {
init();
}
@ -214,4 +225,15 @@ defineExpose({
background-color: #1c84c6;font-weight: 600;border-radius: 5px;line-height: 23px;
}
.itemDate {
border-radius: 25px;
background: #cccccc8c;
width: 90%;
margin-bottom: 0.5rem;
text-align: center;
margin: 0 auto .5rem;
padding: 0.5rem;
font-weight: 700;
font-size: 16px;
}
</style>