| | |
| | | :picker-options="pickerOptions" |
| | | end-placeholder="结束日期" |
| | | style="margin-left: 1rem" |
| | | > |
| | | </el-date-picker> |
| | | /> |
| | | |
| | | <el-button type="primary" @click="toExcel()" style="margin-left: 20px" |
| | | >导出</el-button |
| | | <el-button |
| | | type="primary" |
| | | style="margin-left: 20px" |
| | | @click="toExcel()" |
| | | > |
| | | <el-button @click="exportMon">查询</el-button> |
| | | 导出 |
| | | </el-button> |
| | | <el-button @click="exportMon"> |
| | | 查询 |
| | | </el-button> |
| | | </div> |
| | | <el-table :data="dateList" id="exportTab" style="margin-top: 20px" border max-height="800"> |
| | | <el-table |
| | | id="exportTab" |
| | | :data="dateList" |
| | | style="margin-top: 20px" |
| | | border |
| | | max-height="800" |
| | | > |
| | | <el-table-column |
| | | v-for="item in columnList" |
| | | :key="item" |
| | | :prop="item" |
| | | :label="item" |
| | | width="180px" |
| | | :key="item" |
| | | > |
| | | </el-table-column> |
| | | /> |
| | | </el-table> |
| | | </div> |
| | | </template> |
| | |
| | | label: this.defaultData[i].name, |
| | | }) |
| | | this.options[i].children = [] |
| | | if (this.defaultData[i].devices) { |
| | | for (let j = 0; j < this.defaultData[i].devices.length; j++) { |
| | | this.options[i].children.push({ |
| | | value: [ |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log(error) |