| | |
| | | </el-form> |
| | | <!-- 导出按钮 --> |
| | | <div v-hasPermi="['system:monitor:export']"> |
| | | <el-button style="margin-right: 10px" slot="reference" type="primary" size="mini" @click="handleExport" plain >导出</el-button> |
| | | <el-popover |
| | | placement="left" |
| | | width="300px" |
| | | trigger="click"> |
| | | <span style="font-weight: bold;font-size: 16px">导出</span> |
| | | <span style="font-weight: bold;font-size: 16px">导出报表</span> |
| | | <el-form ref="exportForm" :model="exportForm" :rules="exportRules" label-width="100px"> |
| | | <el-form-item label="考核时间" prop="month" required> |
| | | <el-date-picker |
| | |
| | | <!-- </div>--> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-button type="primary" size="small" style="width: 100%" @click="handleExport">导出</el-button> |
| | | <el-button type="primary" size="small" style="width: 100%" @click="handleFormExport">导出</el-button> |
| | | </el-form> |
| | | <el-button slot="reference" type="primary" size="mini" plain>导出</el-button> |
| | | <el-button slot="reference" type="primary" size="mini" plain>导出报表</el-button> |
| | | </el-popover> |
| | | </div> |
| | | </el-col> |
| | |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('system/monitor/export', { |
| | | ...this.queryParams |
| | | }, `monitor_${new Date().getTime()}.xlsx`) |
| | | }, |
| | | handleFormExport() { |
| | | this.$refs["exportForm"].validate(valid => { |
| | | if (valid) { |
| | | if (this.exportForm.dataType === 0) { |