<template>
    <basic-container>
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="用水目标" name="1"></el-tab-pane>
            <el-tab-pane label="用电目标" name="2"></el-tab-pane>
        </el-tabs>
        <waterTarget v-if="activeName == '1'"></waterTarget>
        <electricityTarget v-if="activeName == '2'"></electricityTarget>
    </basic-container>
</template>
<script>
import waterTarget from './components/waterTarget.vue'
import electricityTarget from './components/electricityTarget.vue'
export default {
    components: {
        waterTarget,
        electricityTarget
    },
    data() {
        return {
            activeName: '1',
        }
    }
}
</script>