<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>
    <waterQuota v-if="activeName == '1'"></waterQuota>
    <electricityQuota v-if="activeName == '2'"></electricityQuota>
  </basic-container>
</template>
<script>
import waterQuota from "./components/waterQuota.vue";
import electricityQuota from "./components/electricityQuota.vue";
export default {
  components: {
    waterQuota,
    electricityQuota,
  },
  data() {
    return {
      activeName: "1",
    };
  },
};
</script>
