<template>
  <div class="platformTagLib-wrap common-wrap">
    <nav-crumb :navpath="navpath"></nav-crumb>
    <div class="right-content">
      <div class="right-box">
        <!-- <div class="platformTagLib-wrap__opt common-wrap__opt">
          <el-input
            class="w-184"
            placeholder="请输入标签"
            prefix-icon="el-icon-search"
            v-model="platformTagSearch"
            @keyup.enter.native="searchEnterFun">
          </el-input>
          <el-button type="primary" @click="toAddMyTagLib" class="fr">添加至我的标签库</el-button>
        </div>

        <div class="platformTagLib-wrap__libFields common-libFields flex" >
          <template v-for="(item,pindex) in libDatas">
            <div class="platformTagLib-wrap__lib__cell common-lib__cell flex-1" :key="pindex">
              <div class="platformTagLib-wrap__cell__head border-box common-lib__cell__head">
                <a :href="'#/platformTagList?test='+item.id" class="block"><i :class="['iconfont','common-lib__cell__icon',item.icon]"></i><span class="platformTagLib-wrap__cell__name common-lib__cell__name">{{item.name}}</span><span class="common-lib__icon__right fr"><i class="el-icon-arrow-right"></i></span>
                </a>
              </div>
              <div class="platformTagLib-wrap__cell__body border-box common-lib__cell__body">
                <template v-for="(itemTwo,cindex) in item.children">
                  <div class="platformTagLib-wrap__cell__fieldRow border-box common-lib__cell__fieldRow" :key="cindex">
                    <div class="platformTagLib-wrap__cell__fieldChild inline-block common-lib__cell__fieldChild">    <a :href="'#/platformTagList?test='+itemTwo.id" class="inline-block common-lib__cell__name">{{itemTwo.name}}</a>
                        <i class="el-icon-arrow-right"></i>
                    </div>
                    <div class="platformTagLib-wrap__cell__fieldLastChild inline-block common-lib__cell__fieldLastChild">
                      <template v-for="(itemThree,lindex) in itemTwo.children">
                        <a :href="'#/platformTagList?test='+itemThree.id" class="platformTagLib-wrap__cell__fieldName inline-block common-lib__cell__fieldName">{{itemThree.name}}</a>
                      </template>

                    </div>
                  </div>
                </template>
              </div>
              <div class="platformTagLib-wrap__cell__radio common-lib__cell__radio">
                <el-radio v-model="libRadio" :label="item.id" name=""> </el-radio>
              </div>
            </div>
          </template>
        </div> -->
        <tag-lib :tagCategory="tagCategory"></tag-lib>

      </div>
    </div>
    <vue-gic-footer></vue-gic-footer>
  </div>
</template>
<script>
  import navCrumb from '@/components/nav/nav.vue';
  import tagLib from '@/components/tagLib.vue';
  import { getRequest, postRequest, postJson, postForm } from '@/api/api';
  export default {
      name: "platformTagLib",
      data() {
        return {
          // 面包屑参数
          navpath: [
            {
              name: '首页',
              path: ''
            },
            {
              name: '会员标签',
              path: ''
            }
          ],

          tagCategory: 'platformTagList', // 当前标签类别
        }
      },
      methods: {
        /**
         *
         */


      },
      mounted() {

      },
      components: {
        navCrumb,
        tagLib
      }
    }
</script>
<style lang="scss" scoped>
  .platformTagLib-wrap {

    &__opt {

    }

    &__libFields {

    }

    &__lib__cell {

    }

    &__cell {

      &__head {

      }

      &__name {

      }
      &__icon {

      }

      &__body {

      }

      &__fieldRow {

      }

      &__fieldChild {


      }

      &__fieldLastChild {

      }

      &__fieldName {

      }

      &__radio {

      }
    }


  }

</style>
