| | |
| | | // 结束时间 |
| | | endTime: '' |
| | | }, |
| | | // 搜索框传递上来的设备编号 |
| | | tempMnCode :'', |
| | | // 返回的数据 |
| | | tableData: [], |
| | | // 表格数据 |
| | |
| | | |
| | | // 查询数据 |
| | | handleSubmit() { |
| | | // if (this.isExceedOneMonth(this.form.beginTime, this.form.endTime)) { |
| | | // alert('时间跨度不能超过一个月'); |
| | | // return; |
| | | // } |
| | | |
| | | this.loading = true; |
| | | this.queryButton = true |
| | | let params = {}; |
| | |
| | | if (this.scenarioType.length != 0) { |
| | | params['scenarioType'] = this.scenarioType.join(); |
| | | } |
| | | |
| | | this.$http.get('/dust/history1', { params: params }).then((response) => { |
| | | // 保存返回的 |
| | | this.tableData = response.data.data.rows; |
| | |
| | | <el-form-item> |
| | | <AreaAndmonitorType></AreaAndmonitorType> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <InputSearch isNeedDefaultSite="1" @submit-value="(n) => (form.name = n)"> |
| | | <InputSearch isNeedDefaultSite="1" @submit-value="(n) => (form.name = n) "> |
| | | </InputSearch> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | |
| | | <el-col> |
| | | <el-form-item> |
| | | <TimeShortCuts @submit-time="giveTime"></TimeShortCuts> |
| | | <TimeShortCuts time-type="week" @submit-time="giveTime"></TimeShortCuts> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | |
| | | </div> |
| | | <div class="button-and-export"> |
| | | <el-form-item> |
| | | <!-- <el-button |
| | | type="primary" |
| | | @click="handleSubmit" |
| | | style="margin-left: 10px" |
| | | ><el-icon style="margin-right: 6px;font-size: 1.2em;"><i-ep-Search/></el-icon>查询</el-button |
| | | > |
| | | <el-button type="success" @click="exportDom" round><el-icon style="margin-right: 6px;margin-bottom:2px;font-size: 1.2em;"><i-ep-Download ></i-ep-Download></el-icon>导出数据</el-button> --> |
| | | <ButtonClick style="margin-right: 12px;" content="搜索" type="primary" :loading="queryButton" @do-search="handleSubmit"></ButtonClick> |
| | | <ButtonExportExcel content="导出数据" type="success" :loading="exportButton" @do-export="exportDom"></ButtonExportExcel> |
| | | </el-form-item> |