|
@@ -11,6 +11,7 @@
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
:default-time="['00:00:00', '23:45:00']" popper-class="cpp-popper"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="场站名称">
|
|
@@ -46,16 +47,16 @@
|
|
|
:data="tableData.slice((currentPage-1) * pageSize,currentPage * pageSize)">
|
|
|
<vxe-table-column field="stationCode" title="场站名称" :formatter="stationCodeFormat" width="200px"
|
|
|
fixed="left"></vxe-table-column>
|
|
|
- <vxe-table-column field="time" title="时间" width="180px" fixed="left"></vxe-table-column>
|
|
|
- <vxe-table-column field="globalR" title="总辐射(W/㎡)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="directR" title="直接辐射(W/㎡)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="diffuseR" title="散射辐射(W/㎡)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="airT" title="温度(℃)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="rh" title="湿度(%)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="p" title="气压(kPa)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="cellT" title="电池板温度(℃)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="ws" title="风速(m/s)" width="180px"></vxe-table-column>
|
|
|
- <vxe-table-column field="wd" title="风向(°)" width="180px"></vxe-table-column>
|
|
|
+ <vxe-table-column field="time" title="时间" width="150px" fixed="left"></vxe-table-column>
|
|
|
+ <vxe-table-column field="globalR" title="总辐射(W/㎡)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="directR" title="直接辐射(W/㎡)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="diffuseR" title="散射辐射(W/㎡)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="airT" title="温度(℃)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="rh" title="湿度(%)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="p" title="气压(kPa)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="cellT" title="电池板温度(℃)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="ws" title="风速(m/s)" ></vxe-table-column>
|
|
|
+ <vxe-table-column field="wd" title="风向(°)" ></vxe-table-column>
|
|
|
</vxe-table>
|
|
|
<vxe-pager
|
|
|
perfect
|
|
@@ -102,6 +103,25 @@ export default {
|
|
|
loading: false,
|
|
|
modId: '',//备用id
|
|
|
lineColor: '#3b3b3b',
|
|
|
+ pickerMinDate: null,
|
|
|
+ pickerMaxDate: null,
|
|
|
+ day30: 30 * 24 * 3600 * 1000,
|
|
|
+ // 日期使用
|
|
|
+ pickerOptions: {
|
|
|
+ onPick: ({ maxDate, minDate }) => {
|
|
|
+ if (minDate && this.pickerMinDate) {
|
|
|
+ this.pickerMinDate = null;
|
|
|
+ } else if (minDate) {
|
|
|
+ this.pickerMinDate = minDate.getTime();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ disabledDate: (time) => {
|
|
|
+ if (this.pickerMinDate) {
|
|
|
+ return (time.getTime() > (this.pickerMinDate + this.day30)) || (time.getTime() < (this.pickerMinDate - this.day30));
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created() {
|