index.vue 777 Bytes
Newer Older
fukai committed
1
<template>
2 3 4 5 6 7 8
  <section id="business_container">
    <transition name="fade-transform" mode="out-in">
      <keep-alive :include="cachedViews">
        <router-view :key="key" />
      </keep-alive>
    </transition>
  </section>
fukai committed
9 10 11 12
</template>

<script>
export default {
潘际乾 committed
13
  name: "Business",
14 15 16 17 18 19 20 21 22 23 24 25
  created: () => {
    console.log("进入业务交易界面");
  },
  computed: {
    cachedViews() {
      return this.$store.state.TagsView.cachedViews;
    },
    key() {
      return this.$route.path;
    },
  },
};
fukai committed
26 27 28
</script>

<style>
29 30
#business_container {
  /* height: 100%; */
潘际乾 committed
31 32
  padding: 5px 15px;
  /* width: 100%; */
潘际乾 committed
33
  flex: 1;
34
}
潘际乾 committed
35 36 37 38 39 40 41 42
#business_container .eibs-tab {
  padding: 0 15px;
}
#business_container .eibs-tab::after {
  content: "";
  display: block;
  clear: both;
}
fukai committed
43
</style>