<template>
<div class="hotWord height100">
<div class="title">企业热词</div>
<div class="line"></div>
<keywords :message="keywords" :idstr="'keywords'" class="keywords heightCut42"></keywords>
</div>
</template>
<script>
import keywords from './mainPageEcharts/keywords' // 公司营收统计
import * as API_BASIC from '@/api/sys.basic.js'
export default {
components: { keywords },
data () {
return {
keywords: []
}
},
mounted () {
this.GET_Keywords()
},
methods: {
GET_Keywords () {
API_BASIC.GetBasicList().then(res => {
const keyword = res.data.org[0].hotwords.split(',')
keyword.forEach(element => {
const value = Math.ceil(Math.random() * 5) + 10
this.keywords.push({ name: element, value: value })
})
})
}
}
}
</script>
-
乐宝呗666 authored09f1cabc