解决导出不全等问题
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
<search :searchForm="searchForm" :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" :visiable="visiable"/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
:loading="loading"
|
||||
:datasource="datasource"
|
||||
@@ -144,7 +143,7 @@ export default {
|
||||
const arr = [];
|
||||
const th = columns.map((item) => item.title);
|
||||
arr.push(th);
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = columns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<search :searchForm="searchForm" :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" :visiable="visiable"/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
:datasource="datasource"
|
||||
:columns="columns"
|
||||
@@ -61,6 +60,13 @@ export default {
|
||||
selection: [],
|
||||
// 表格列配置
|
||||
columns: [
|
||||
{
|
||||
key: 'index',
|
||||
dataIndex: 'index',
|
||||
width: 48,
|
||||
align: 'center',
|
||||
customRender: ({index}) => index + 1
|
||||
},
|
||||
{title: "监测时间", dataIndex: "monitorTime", sorter: true,},
|
||||
{title: "类别", dataIndex: "type", sorter: true,},
|
||||
{title: "点位名称", dataIndex: "pointName", sorter: true,},
|
||||
@@ -126,7 +132,7 @@ export default {
|
||||
const arr = [];
|
||||
const th = columns.map((item) => item.title);
|
||||
arr.push(th);
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = columns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<search :searchForm="searchForm" :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" :visiable="visiable"/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
:datasource="datasource"
|
||||
:columns="columns"
|
||||
@@ -61,6 +60,13 @@ export default {
|
||||
selection: [],
|
||||
// 表格列配置
|
||||
columns: [
|
||||
{
|
||||
key: 'index',
|
||||
dataIndex: 'index',
|
||||
width: 48,
|
||||
align: 'center',
|
||||
customRender: ({index}) => index + 1
|
||||
},
|
||||
{title: "监测时间", dataIndex: "monitorTime", sorter: true,},
|
||||
{title: "类别", dataIndex: "type", sorter: true,},
|
||||
{title: "点位名称", dataIndex: "pointName", sorter: true,},
|
||||
@@ -129,7 +135,7 @@ export default {
|
||||
const arr = [];
|
||||
const th = columns.map((item) => item.title);
|
||||
arr.push(th);
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = columns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<search :searchForm="searchForm" :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" :visiable="visiable"/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
:datasource="datasource"
|
||||
:columns="columns"
|
||||
@@ -187,6 +186,13 @@ export default {
|
||||
})
|
||||
}
|
||||
this.columns = [
|
||||
{
|
||||
key: 'index',
|
||||
dataIndex: 'index',
|
||||
width: 48,
|
||||
align: 'center',
|
||||
customRender: ({index}) => index + 1
|
||||
},
|
||||
{ title: "类别", dataIndex: "type", sorter: true },
|
||||
{ title: "点位名称", dataIndex: "pointName", sorter: true},
|
||||
...addCloumns
|
||||
@@ -237,7 +243,7 @@ export default {
|
||||
|
||||
arr.push(th1)
|
||||
arr.push(th2)
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = this.sColumns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
@@ -24,6 +24,13 @@ const innerFilterColumns = [
|
||||
]
|
||||
|
||||
const innerTableColumns = [
|
||||
{
|
||||
key: 'index',
|
||||
dataIndex: 'index',
|
||||
width: 48,
|
||||
align: 'center',
|
||||
customRender: ({index}) => index + 1
|
||||
},
|
||||
{title: "监测时间", dataIndex: "monitorTime", sorter: true,},
|
||||
{title: "断面名称", dataIndex: "pointName", sorter: true,},
|
||||
{title: "水温(℃)", dataIndex: "waterTemperature", sorter: true,},
|
||||
@@ -53,6 +60,13 @@ const innerTableColumns = [
|
||||
];
|
||||
|
||||
const averageTableColumns = [
|
||||
{
|
||||
key: 'index',
|
||||
dataIndex: 'index',
|
||||
width: 48,
|
||||
align: 'center',
|
||||
customRender: ({index}) => index + 1
|
||||
},
|
||||
{title: "监测时间", dataIndex: "monitorTime", sorter: true,},
|
||||
{title: "断面名称", dataIndex: "pointName", sorter: true,},
|
||||
{title: "水温(℃)", dataIndex: "waterTemperature", sorter: true,},
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<search :searchForm="searchForm" :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" :visiable="visiable"/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
row-key="lakeLibrarySpecialId"
|
||||
:datasource="datasource"
|
||||
@@ -157,7 +156,7 @@ export default {
|
||||
const arr = [];
|
||||
const th = columns.map((item) => item.title);
|
||||
arr.push(th);
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = columns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user