<template>
  <div id="adminBtn">
    <van-row>
      <van-col span="24" class="main">
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">我的消息</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="通知管理" @click="pathBtn('admin/message', 'notice')" is-link />
            <van-cell title="问题管理" @click="pathBtn('admin/message', 'question')" is-link />
            <!-- <van-cell title="咨询服务" @click="pathBtn('admin/message', 'service')" is-link /> -->
            <van-cell title="审核通知" @click="pathBtn('admin/message', 'examine')" is-link />
            <van-cell title="专利预警" @click="pathBtn('admin/message', 'warning')" is-link />
          </van-col>
        </van-col>
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">专利审核</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="专利申请" @click="pathBtn('admin/examine', 'patent')" is-link />
            <van-cell title="国知局反馈消息" @click="pathBtn('admin/examine', 'hairmess')" is-link />
            <van-cell title="国知局反馈消息(错误)" @click="pathBtn('admin/examine', 'hairmesserror')" is-link />
            <van-cell title="查新检索" @click="pathBtn('admin/examine', 'analysis')" is-link />
          </van-col>
        </van-col>
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">专利管理</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="专利信息" @click="pathBtn('admin/patent', 'info')" is-link />
            <van-cell title="专利信息批量处理" @click="pathBtn('admin/patent', 'distribute')" is-link />
            <van-cell title="价值评估" @click="pathBtn('admin/patent', 'assessment')" is-link />
            <van-cell title="专利交易" @click="pathBtn('admin/patent', 'trans')" is-link />
            <van-cell title="专利维权" @click="pathBtn('admin/patent', 'safeg')" is-link />
            <van-cell title="专利需求" @click="pathBtn('admin/patent', 'techol')" is-link />
          </van-col>
        </van-col>
      </van-col>
    </van-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'adminBtn',
  props: {},
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {
    pathBtn(type, path) {
      this.$router.push({ path: `/patent/${type}/${path}` });
    },
  },
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    .one_1 {
      .one_1action {
        /deep/.van-info {
          background-color: #409eff;
        }
        /deep/.van-goods-action-icon {
          padding: 8px 0;
        }
        i {
          font-size: 20px;
        }
      }
    }
    /deep/.van-divider {
      margin: 10px;
    }
  }
}
</style>
