index.vue 1.5 KB
Newer Older
1
<template>
2
  <!-- <d2-container type="card"> -->
3
  <el-card class="box-card mains">
4
    <el-tabs class="ztabs" v-model="cache.nowMenu" @tab-click="ztabsClick">
5 6 7 8 9 10 11 12 13 14
      <el-tab-pane label="柜组任务" name="taskBar">
        <task-bar />
      </el-tab-pane>
      <el-tab-pane label="集团任务" name="taskCom">
        <task-com />
      </el-tab-pane>
      <el-tab-pane label="任务统计" name="taskCount">
        <task-count />
      </el-tab-pane>
    </el-tabs>
15
  </el-card>
16 17 18
</template>

<script>
19 20 21
import TaskBar from "../bar/index";
import TaskCom from "../com/index";
import TaskCount from "../count/index";
Z's avatar
Z committed
22
// import { ApiTestGet, ApiTestPost } from "@/api/task/main";
23 24 25 26 27 28 29

export default {
  components: {
    TaskBar,
    TaskCom,
    TaskCount
  },
30
  data() {
31 32
    return {
      cache: {
33
        nowMenu: "taskBar"
34
      }
35
    };
36
  },
Z's avatar
Z committed
37 38 39 40 41 42 43 44 45
  created() {
    let postData = {
      brief: "停车券兑换",
      orderNo: "12345678",
      point: "123.321",
      procType: 46,
      updateType: "dec",
      vipId: 1
    };
46 47 48
    // ApiTestPost(postData).then(res => {
    //   log("--->Api: Post: res =", res);
    // });
Z's avatar
Z committed
49
  },
50 51
  methods:{
    ztabsClick(){},
52
  }
53
};
54 55 56
</script>

<style lang="scss" scoped>
57
.mains {
58 59
  /*border: 1px solid red;*/
  height: calc((100vh - 140px) * 1.0);
60
  min-width: 1280px;
61 62 63 64 65 66

  margin: 10px 20px 10px 10px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
67
}
68

69
.ztabs {
70 71 72 73 74
  /*border: 2px solid darkviolet;*/

  height: calc((100vh - 180px) * 1.0);

  width: 100%;
75
}
76
</style>