<template>
  <div class="routerWapper">
    <!-- {{$cookie.get('token')}} -->
    <!-- {{systemList}} -->
    <a-card title="选择登录系统" style="margin: 20px; padding: 20px; height: 100%; border: 2px dashed lightgrey">
      <a-card-grid v-for="(item, index) in systemList" :key="index" style="width:25%;text-align:center; height: 80px; cursor: pointer" @click="loadPage(item)">
        {{item.name}}
      </a-card-grid>
    </a-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      systemList: [
        {
          name: '业务联动平台',
          url: 'http://kw-linkage.omniview.pro',
          token: ''
        },
        { 
          name: '数据可视化系统 V1.0',
          url: 'https://962121.fgj.sh.gov.cn/wyweb/mngplat/jsp/fxftDirectAccess.jsp?username=18679837182&password=111111a',
          token: ''
        },
        { 
          name: '物联网传输协议智能转换平台 V1.0',
          url: 'https://kewei.omniview.pro/web/#/layout/dashboard',
          token: ''
        },
        { 
          name: '知识图谱规则引擎软件 V1.0',
          url: 'http://kw-atlas.omniview.pro/demo?token='+this.$cookie.get('token'),
          token: ''
        }
      ]
    }
  },
  methods: {
    loadPage(webInfo) {
      window.open(webInfo.url)
    }
  },
}
</script>