index.vue 1.64 KB
<template>
  <div>
    <h2>前端开发文档</h2>
    <a-list :grid="{ gutter: 16, column: 4 }" :data-source="docData">
      <a-list-item slot="renderItem" slot-scope="item">
        <a :href="item.doc_url" target="_blank" rel="noopener noreferrer">
          <a-card :title="item.doc_title">
            <p>{{ item.doc_description }}</p>
            <!-- <p v-for="(i, idx) in item.content" :key="i">{{idx + 1}}. {{i}}</p> -->
          </a-card>
        </a>
      </a-list-item>
    </a-list>
    <div class="icon-anticons" @click="add">
      <a-icon type="plus-circle" theme="filled" />
    </div>
  </div>
</template>
<script>
const data = [
  {
    title: "广联赛讯Vue模板及组件",
    content: "vue模板介绍与使用",
    url: "http://192.168.3.171:8080/#/installNode"
  },
  {
    title: "glsx-vue-common使用文档",
    content: "介绍使用方法;内置方法介绍",
    url: "http://192.168.3.171:8089/"
  },
  {
    title: "easy mock 地址",
    content: "通用配置",
    url: "https://oss-config.test.glsx.com.cn"
  },
  {
    title: "公司git仓库",
    content: "公司git仓库地址(使用svn账号)",
    url: "http://192.168.3.233:8090"
  },
  {
    title: "上线发版OPS",
    content: "公司上线发版地址",
    url: "http://192.168.3.233:8888/login"
  }
];
export default {
  name: "Developers",
  data() {
    return {
      docData: data
    };
  },
  mounted() {
    this.getList()
  },
  methods: {
    getList() {
      this.api.documentation.getList().then(res => {
        console.log(res)
        this.docData = res
      })
    },
    add() {
      this.to('DocAdd')
    }
  },
};
</script>
<style>

</style>