| | |
| | | <template> |
| | | <div class="p-events-none m-t-2"> |
| | | <el-row justify="center"> |
| | | <SearchBar search-time="" @search="fetchHistroyData"></SearchBar> |
| | | <SearchBar |
| | | :search-time="searchTime" |
| | | @search="fetchHistroyData" |
| | | ></SearchBar> |
| | | </el-row> |
| | | <el-row class="m-t-2"> |
| | | <FactorRadio |
| | |
| | | :factor="factorDatas.factor[factorType]" |
| | | ></FactorLegend> |
| | | </el-row> |
| | | <TrendAnalysis :factor-datas="factorDatas"></TrendAnalysis> |
| | | <TrendAnalysis |
| | | class="trend-analysis" |
| | | :factor-datas="factorDatas" |
| | | ></TrendAnalysis> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | // this.factorType = factorType; |
| | | // this.factorName = factorName; |
| | | this.factorDatas.refreshHeight(this.factorType); |
| | | // this.refreshLegend(this.factorDatas); |
| | | // this.mapMaker.setFactorType(factorType); |
| | | // if (!this.mapMaker.runStatus()) { |
| | | |
| | |
| | | deviceCode, |
| | | startTime, |
| | | endTime, |
| | | type, |
| | | page, |
| | | perPage: pageSize |
| | | }) |
| | |
| | | }) |
| | | .then((res) => { |
| | | if (res.data.length > 0) { |
| | | const s = new Date(res.data[0].time); |
| | | const e = new Date(res.data[res.data.length - 1].time); |
| | | const s = new Date(res.data[0].time.replace(' ', 'T')); |
| | | const e = new Date( |
| | | res.data[res.data.length - 1].time.replace(' ', 'T') |
| | | ); |
| | | this.searchTime = [s, e]; |
| | | } |
| | | this.onFetchData(TYPE0, res.data); |
| | |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .p-events-auto { |
| | | /* background-color: antiquewhite; */ |
| | | /* padding-top: 1px; */ |
| | | .trend-analysis { |
| | | position: absolute; |
| | | left: 0; |
| | | bottom: 2px; |
| | | } |
| | | </style> |