修改专湖表头

This commit is contained in:
庞东林
2021-12-20 15:36:49 +08:00
parent feedbe3031
commit 73cf7c384c
2 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ const averageTableColumns = [
// customRender: ({index}) => index + 1 // customRender: ({index}) => index + 1
// }, // },
{title: "监测时间", dataIndex: "monitorTime", sorter: true,}, {title: "监测时间", dataIndex: "monitorTime", sorter: true,},
{title: "断面名称", dataIndex: "pointName", sorter: true,}, {title: "断面名称", dataIndex: "sectionName", sorter: true,},
{title: "水温(℃)", dataIndex: "waterTemperature", sorter: true,}, {title: "水温(℃)", dataIndex: "waterTemperature", sorter: true,},
{title: "pH值", dataIndex: "ph", sorter: true,}, {title: "pH值", dataIndex: "ph", sorter: true,},
{title: "透明度cm", dataIndex: "transparency", sorter: true,}, {title: "透明度cm", dataIndex: "transparency", sorter: true,},

View File

@@ -26,7 +26,7 @@ import XLSX from "xlsx";
import {getLakeDropdown, specialOriginalData} from "@/api/ecology/new-lake"; import {getLakeDropdown, specialOriginalData} from "@/api/ecology/new-lake";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
import Search from './search.vue'; import Search from './search.vue';
import {innerTableColumns} from "./raw-colums" import {specialTableColumns} from "./raw-colums"
export default { export default {
name: 'inner-raw', name: 'inner-raw',
components: { components: {
@@ -60,7 +60,7 @@ export default {
datasource:[], datasource:[],
selection: [], selection: [],
// 表格列配置 // 表格列配置
columns: innerTableColumns, columns: specialTableColumns,
palceOptions: [], palceOptions: [],
areaOptions: [], areaOptions: [],
regionLevelOptions: [], regionLevelOptions: [],
@@ -102,7 +102,7 @@ export default {
if(!Array.isArray(keys)){return} if(!Array.isArray(keys)){return}
let newCloumns = [...innerTableColumns] let newCloumns = [...specialTableColumns]
let filterIndex = []; let filterIndex = [];
newCloumns.forEach((item,index)=>{ newCloumns.forEach((item,index)=>{