refactor(auth): 增加锌线系统token管理功能 feat(api): 添加锌线停机记录、生产报表和设备快照API feat(views): 实现锌线实时监控、生产统计和停机统计页面 feat(components): 开发锌线生产报表、停机统计和班组绩效组件 feat(utils): 新增锌线专用请求工具zinc1Request chore(vue.config): 配置锌线API代理
56 lines
1.3 KiB
Vue
56 lines
1.3 KiB
Vue
<template>
|
|
<div>
|
|
<el-tabs v-model="activeTab" type="card">
|
|
<el-tab-pane label="实时监控" name="1">
|
|
|
|
</el-tab-pane>
|
|
<el-tab-pane label="生产统计" name="2">
|
|
|
|
</el-tab-pane>
|
|
<el-tab-pane label="停机统计" name="3">
|
|
|
|
</el-tab-pane>
|
|
<el-tab-pane label="班组绩效" name="4">
|
|
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
|
|
<div>
|
|
<div v-if="activeTab === '1'">
|
|
<realTimeMonitor></realTimeMonitor>
|
|
</div>
|
|
<div v-if="activeTab === '2'">
|
|
<productStatistic></productStatistic>
|
|
</div>
|
|
<div v-if="activeTab === '3'">
|
|
<shutdownStatistic></shutdownStatistic>
|
|
</div>
|
|
<div v-if="activeTab === '4'">
|
|
<TeamPerformance></TeamPerformance>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import TeamPerformance from './components/team-performance.vue'
|
|
import ShutdownStatistic from './components/shutdown-statistic.vue';
|
|
import ProductStatistic from './components/product-statistic.vue';
|
|
import RealTimeMonitor from './components/real-time-monitoring.vue';
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
activeTab: '1'
|
|
}
|
|
},
|
|
components: {
|
|
TeamPerformance,
|
|
ShutdownStatistic,
|
|
ProductStatistic,
|
|
RealTimeMonitor
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style></style> |