<template>
  <div class="brand-detail">
    <div class="saga-toolbar-box">

    <div class="saga-toolbar-main">
      <span style="float: right;">
        <el-button type="primary" @click="handProduct">添加产品</el-button>
      </span>
    </div>
    </div>
    <sagaBrandDetail @systemCode="systemCode"/>
  </div>
</template>

<script>
  import sagaBrandDetail from "@/components/brand/detail/sagaBrandDetail";

  export default {
    name: "index",
    components: {sagaBrandDetail},
    data() {
      return {
        ProdCode: ''
      }
    },
    created() {
    },
    methods: {
      systemCode(ProdCode) {
        this.ProdCode = ProdCode
      },
      handProduct() {
        //跳转添加产品的路由
        let param = {}
        //设备 require 编码code  品牌 require brandID
        param.ProdCode = this.ProdCode
        param.BrandID = this.$route.query.BrandID
        param.Brand = this.$route.query
        this.$router.push({name: 'supplement', params: param})
      },
    }
  }
</script>

<style scoped lang="less">
  .saga-toolbar-box {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.5);
    z-index: 11;

    .saga-toolbar-main {
      width: 1200px;
      height: 100%;
      margin: auto;
      padding-top: 20px;

    }
  }
</style>
