区域导入导出
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="">
|
||||
<a-form :model="where" :rules="whereRules" :labelCol="{ offset: 1 }">
|
||||
<a-row>
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<!-- <a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<a-form-item label="统计模块:">
|
||||
<a-select
|
||||
:options="groupModelOptions"
|
||||
@@ -11,7 +11,7 @@
|
||||
>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<a-form-item label="时间细度:">
|
||||
<a-select
|
||||
@@ -169,6 +169,7 @@ export default {
|
||||
reportTimeScope: [],
|
||||
valueType: ["index_Leq"],
|
||||
timeRange: [],
|
||||
regionLevel: "市级"
|
||||
},
|
||||
timeRange: [],
|
||||
whereRules,
|
||||
@@ -223,7 +224,12 @@ export default {
|
||||
/* 重置搜索 */
|
||||
reset() {
|
||||
this.where = {
|
||||
model: "place",
|
||||
groupModel: "area",
|
||||
groupTimeLength: "monitor_year",
|
||||
reportTimeScope: [],
|
||||
valueType: ["index_Leq"],
|
||||
timeRange: [],
|
||||
regionLevel: "市级"
|
||||
};
|
||||
this.this.timeScope = [];
|
||||
this.reload();
|
||||
@@ -261,123 +267,149 @@ export default {
|
||||
|
||||
this.hisYears.forEach((item) => {
|
||||
if (
|
||||
(!this.where.timeRange[0] ||
|
||||
this.where.timeRange[0] <= item) &&
|
||||
(!this.where.timeRange[1] ||
|
||||
this.where.timeRange[1] >= item)
|
||||
(!this.where.timeRange[0] || this.where.timeRange[0] <= item) &&
|
||||
(!this.where.timeRange[1] || this.where.timeRange[1] >= item)
|
||||
) {
|
||||
if (this.where.groupTimeLength == "quarter") {
|
||||
columns.push({
|
||||
title: item + "年第一季度Leq",
|
||||
dataIndex: item + "1" + "Leq",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度Leq",
|
||||
dataIndex: item + "2" + "Leq",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度Leq",
|
||||
dataIndex: item + "3" + "Leq",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度Leq",
|
||||
dataIndex: item + "4" + "Leq",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度SD",
|
||||
dataIndex: item + "1" + "Sd",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度SD",
|
||||
dataIndex: item + "2" + "Sd",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度SD",
|
||||
dataIndex: item + "3" + "Sd",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度SD",
|
||||
dataIndex: item + "4" + "Sd",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度L10",
|
||||
dataIndex: item + "1" + "L10",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度L10",
|
||||
dataIndex: item + "2" + "L10",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度L10",
|
||||
dataIndex: item + "3" + "L10",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度L10",
|
||||
dataIndex: item + "4" + "L10",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度L50",
|
||||
dataIndex: item + "1" + "L50",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度L50",
|
||||
dataIndex: item + "2" + "L50",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度L50",
|
||||
dataIndex: item + "3" + "L50",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度L50",
|
||||
dataIndex: item + "4" + "L50",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度L90",
|
||||
dataIndex: item + "1" + "L90",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度L90",
|
||||
dataIndex: item + "2" + "L90",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度L90",
|
||||
dataIndex: item + "3" + "L90",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度L90",
|
||||
dataIndex: item + "4" + "L90",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度Lmin",
|
||||
dataIndex: item + "1" + "Lmin",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度Lmin",
|
||||
dataIndex: item + "2" + "Lmin",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度Lmin",
|
||||
dataIndex: item + "3" + "Lmin",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度Lmin",
|
||||
dataIndex: item + "4" + "Lmin",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第一季度Lmax",
|
||||
dataIndex: item + "1" + "Lmax",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第二季度Lmax",
|
||||
dataIndex: item + "2" + "Lmax",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第三季度Lmax",
|
||||
dataIndex: item + "3" + "Lmax",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
columns.push({
|
||||
title: item + "年第四季度Lmax",
|
||||
dataIndex: item + "4" + "Lmax",
|
||||
customRender: ({ text }) =>text? Number(text).toFixed(1):"",
|
||||
});
|
||||
} else {
|
||||
if (this.where.valueType.includes("index_Leq")) {
|
||||
@@ -385,7 +417,7 @@ export default {
|
||||
title: item + "年Leq",
|
||||
dataIndex: item + "Leq",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -395,7 +427,7 @@ export default {
|
||||
title: item + "年SD",
|
||||
dataIndex: item + "Sd",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -405,7 +437,7 @@ export default {
|
||||
title: item + "年L10",
|
||||
dataIndex: item + "L10",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -416,7 +448,7 @@ export default {
|
||||
title: item + "年L50",
|
||||
dataIndex: item + "L50",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -426,7 +458,7 @@ export default {
|
||||
title: item + "年L90",
|
||||
dataIndex: item + "L90",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -436,7 +468,7 @@ export default {
|
||||
title: item + "年Lmin",
|
||||
dataIndex: item + "Lmin",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
@@ -446,7 +478,7 @@ export default {
|
||||
title: item + "年Lmax",
|
||||
dataIndex: item + "Lmax",
|
||||
customRender: ({ text }) => {
|
||||
const val = text ? Number(text).toFixed(2) : "";
|
||||
const val = text ? Number(text).toFixed(1) : "";
|
||||
return val;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user