| | |
| | | <el-main> |
| | | <el-tabs tab-position="top" v-model="activeName" type="card"> |
| | | <el-tab-pane label="按班次统计" name="shift"> |
| | | <Shift colname="产量" url="/api/blade-mdc/alarm/summary-shift-graph" ref="shift" |
| | | <Shift colname="产量" url="/api/mdc/alarm/summary-shift-graph" ref="shift" |
| | | v-if="activeName == 'shift'"> |
| | | </Shift> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="按时间周期统计" name="time"> |
| | | <Time url="/api/blade-mdc/alarm/summary-graph" ref="time" v-if="activeName == 'time'"> |
| | | <Time url="/api/mdc/alarm/summary-graph" ref="time" v-if="activeName == 'time'"> |
| | | </Time> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | methods: { |
| | | exportExcel(statisticalMethod) { |
| | | let { start, end } = this.$refs.export.format(this.time[0], this.time[1], statisticalMethod) |
| | | this.$HTTP.post(`/api/blade-mdc/alarm/export-alarm`, { |
| | | this.$HTTP.post(`/api/mdc/alarm/export-alarm`, { |
| | | startTime: start, |
| | | endTime: end, |
| | | enums: statisticalMethod, |