12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!--
- * @Description:
- * @Date: 2021-05-08 08:40:55
- * @LastEditTime: 2021-05-10 08:31:59
- * @FilePath: \WEB\maintenanceManagement\src\views\performanceManage\performanceStatistics\performanceStatistics.vue
- -->
- <template>
- <div class="main">
- <div class="tabs">
- <div :class="[{ active: currentView == 'kpiStatistics' }, 'tabItem']" @click="changeItem('kpiStatistics')">绩效统计</div>
- <div class="border"></div>
- <div :class="[{ active: currentView == 'kpiAnalysis' }, 'tabItem']" @click="changeItem('kpiAnalysis')">绩效分析</div>
- </div>
- <component :is="currentView"></component>
- </div>
- </template>
- <script>
- import kpiAnalysis from './components/kpiAnalysis';
- import kpiStatistics from './components/kpiStatistics';
- export default {
- components: {
- kpiAnalysis,
- kpiStatistics
- },
- data() {
- return {
- currentView: 'kpiStatistics'
- };
- },
- methods: {
- changeItem(item) {
- this.currentView = item;
- }
- },
- created() {}
- };
- </script>
- <style lang="scss" scoped>
- .tabs {
- width: 100%;
- height: 60px;
- background: #ffffff;
- padding: 20px;
- box-sizing: border-box;
- display: flex;
- margin-bottom: 20px;
- .tabItem {
- cursor: pointer;
- color: #a6abb6;
- }
- .active {
- color: #2787f1;
- }
- .border {
- width: 1px;
- height: 10px;
- background: #a6abb6;
- opacity: 1;
- margin: 6px 20px;
- }
- }
- </style>
|