web 模块table表格样式调整

This commit is contained in:
renpy 2023-08-22 18:34:41 +08:00
parent e7e540f6e9
commit 3ce128affc
23 changed files with 98 additions and 75 deletions

View File

@ -93,11 +93,7 @@ export default {
border-bottom: 1px solid rgba(12, 235, 201, 0.3); border-bottom: 1px solid rgba(12, 235, 201, 0.3);
margin-bottom: 18px; margin-bottom: 18px;
background-color: rgba(12, 235, 201, 0.05); background-color: rgba(12, 235, 201, 0.05);
position: absolute;
top: 0;
left: 0;
width: calc(100% - 20px);
margin-left: 20px;
&-item { &-item {
margin-bottom: 10px; margin-bottom: 10px;
} }

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -18,6 +18,7 @@
:loading="loading" :loading="loading"
:canSelect="false" :canSelect="false"
@change="handleTableChange" @change="handleTableChange"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}
@ -31,6 +32,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },
@ -68,11 +70,13 @@ const columns = [
title: 'AVG.REL.HUMIDITY', title: 'AVG.REL.HUMIDITY',
align: 'left', align: 'left',
dataIndex: 'aveHumidity', dataIndex: 'aveHumidity',
width:200
}, },
{ {
title: 'AVG.BAR.READING', title: 'AVG.BAR.READING',
align: 'left', align: 'left',
dataIndex: 'avePressure', dataIndex: 'avePressure',
width:200
}, },
{ {
title: 'AVG.TEMP.', title: 'AVG.TEMP.',
@ -83,6 +87,7 @@ const columns = [
title: 'AVG.WIND.DIRECTION', title: 'AVG.WIND.DIRECTION',
align: 'left', align: 'left',
dataIndex: 'aveWindDir', dataIndex: 'aveWindDir',
width:220
}, },
{ {
title: 'AVG.WIND.SPEED', title: 'AVG.WIND.SPEED',

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -1,5 +1,7 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card v-if="!isDetail" :bordered="false" style="margin-left: 20px">
<!-- <search-form :items="formItems" v-model="queryParam" @search="searchQuery"> -->
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,8 +10,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card v-if="!isDetail" :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<!-- <search-form :items="formItems" v-model="queryParam" @search="searchQuery"> -->
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -20,6 +20,7 @@
@change="handleTableChange" @change="handleTableChange"
@detail="handleDetail" @detail="handleDetail"
:selectedRowKeys.sync="selectedRowKeys" :selectedRowKeys.sync="selectedRowKeys"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}
@ -34,6 +35,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -12,6 +12,7 @@ const columns = [
{ {
title: 'NO', title: 'NO',
align: 'left', align: 'left',
width:80,
scopedSlots: { scopedSlots: {
customRender: 'index', customRender: 'index',
}, },

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -18,6 +18,7 @@
:loading="loading" :loading="loading"
:canSelect="false" :canSelect="false"
@change="handleTableChange" @change="handleTableChange"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -18,6 +18,7 @@
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
@detail="handleDetail" @detail="handleDetail"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -18,6 +18,7 @@
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
@detail="handleDetail" @detail="handleDetail"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;"> <div style="height: 100%;">
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card v-if="!isFileDetail" :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -18,6 +18,7 @@
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
@detail="handleDetail" @detail="handleDetail"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}

View File

@ -1,5 +1,6 @@
<template> <template>
<div style="height: 100%;position: relative;overflow: hidden;"> <div style="height: 100%;">
<a-card v-if="!isDetail" :bordered="false" style="margin-left: 20px">
<search-form :items="formItems" v-model="queryParam" @search="searchQueryData"> <search-form :items="formItems" v-model="queryParam" @search="searchQueryData">
<a-space style="float: right" class="btn-group" slot="additional"> <a-space style="float: right" class="btn-group" slot="additional">
<a-button @click="handleExcel" type="primary"> <a-button @click="handleExcel" type="primary">
@ -8,7 +9,6 @@
</a-button> </a-button>
</a-space> </a-space>
</search-form> </search-form>
<a-card v-if="!isDetail" :bordered="false" style="margin-left: 20px;margin-top: 72px;height: calc(100% - 72px);overflow: auto;">
<custom-table <custom-table
size="middle" size="middle"
rowKey="sampleId" rowKey="sampleId"
@ -19,6 +19,7 @@
@change="handleTableChange" @change="handleTableChange"
@detail="handleDetail" @detail="handleDetail"
:selectedRowKeys.sync="selectedRowKeys" :selectedRowKeys.sync="selectedRowKeys"
:scroll="{ y: 'calc(100vh - 306px)' }"
> >
<template slot="index" slot-scope="{ index }"> <template slot="index" slot-scope="{ index }">
{{ index + 1 }} {{ index + 1 }}