index.vue 3.44 KB
<template>
  <div class="activity">
    <GLTabs v-model="activeName"
            :tabPaneList="tabPaneList"
            @tab-click="handleClick"></GLTabs>
    <components :is="tabName"></components>
  </div>
</template>
<script>
// import * as dayjs from 'dayjs'
// import url from '@/assets/empty.png'
// import { dateFormat } from '../../utils/index'
import OfflineAccount from "./components/offlineAccountList.vue"
import OnlineAccount from "./components/onlineAccountList.vue"
export default {
  components: {
    OfflineAccount,
    OnlineAccount
  },
  data() {
    return {
      activeName: "offline",
      tabPaneList: [
        {
          label: "线下对账",
          name: "offline"
        },
        {
          label: "线上分账",
          name: "online"
        }
      ],
      tabName: "offlineAccount"
    }
  },
  mounted() {

  },
  computed: {

  },
  watch: {

  },
  methods: {

    handleClick() {
      let arr = {
        offline: "offlineAccount",
        online: "onlineAccount"
      }
      this.tabName = arr[this.activeName]
      console.log('this.tabName', this.tabName);

    },

  }
}
</script>
<style scoped lang="scss">
.activity {
  /deep/ {
    .el-select .el-tag {
      max-width: 60% !important;
    }
    .el-form-item__content {
      overflow: inherit !important;
    }
  }
  .container {
    margin-top: 16px;
    .title {
      height: 32px;
      line-height: 32px;
      margin-bottom: 10px;
      .title-text {
        font-weight: 600;
        font-size: 16px;
        color: #333333;
        margin-left: 4px;
      }
    }
  }
  .empty-btn {
    position: absolute;
    right: -40px;
    top: 0px;
    font-size: 14px;
    color: #5850ff;
  }
  .config-pannel {
    background: #f9f9f9;
    width: 520px;
    height: 168px;
    display: flex;
    .config-item {
      padding: 26px 20px;
    }
    .clear-btn {
      cursor: pointer;
      background: #f1f1f1;
      width: 40px;
      height: 100%;
      line-height: 20px;
      font-size: 14px;
      color: #666666;
      padding: 60px 13px;
      box-sizing: border-box;
    }
  }
  .input-tag-wrapper {
    position: relative;
    font-size: 14px;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #666;
    display: inline-block;
    outline: none;
    padding: 5px;
    max-height: 68px;
    overflow: auto;
    flex-wrap: wrap;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 450px;
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 14px;
    i {
      color: #75acff;
      margin-right: 3px;
      font-size: 14px;
    }
    /deep/ .el-tag {
      background-color: #fff !important;
      margin-bottom: 4px;
    }
  }
  .select-wrap {
    .common {
      margin: 4px 0;
      height: 40px !important;
      overflow: hidden;
      /deep/ .el-input {
        height: 40px !important;
        line-height: 40px !important;
      }
      /deep/ .el-input__suffix {
        height: 40px !important;
        margin-top: -4px;
        .is-reverse {
          transform: rotate(180deg);
        }
      }
    }
  }
}
.search-groomname {
  width: 252px;
  margin: 12px 16px 0;
  /deep/.el-input {
    width: 252px;
  }
}
.filter-tree {
  padding: 0 16px;
}
.empty {
  padding: 10px 0;
  margin: 0;
  text-align: center;
  color: #999;
  font-size: 13px;
}
.placeholder {
  font-size: 14px;
  color: #c0c6ce;
  line-height: 20px;
}
</style>