Commit 5aced701 by wangr

Merge remote-tracking branch 'origin/20210819' into wangrui

parents 26710eae 059c602d
......@@ -3,7 +3,7 @@
<div class="survey-content">
<div class="item" v-for="(g, l) in survey" :key="l">
<count-to :endVal="g.value" />
<p>{{g.name}}</p>
<p>{{g.key}}</p>
</div>
</div>
<div class="china-map-warp">
......@@ -34,14 +34,15 @@ export default {
TitleLine,
ChinaMap
},
props: {
centerData: {
default: {},
type: Object
}
},
data () {
return {
survey: [
{ name: '学员数', value: 31721 },
{ name: '班级数', value: 105 },
{ name: '二级协会数', value: 15 }
],
survey: [],
chinaMapConfig: {
base: {},
seriesData: []
......@@ -53,9 +54,15 @@ export default {
mounted () {
this.getInitChinaMap()
this.initSurvey()
},
methods: {
initSurvey () {
if (this.centerData && this.centerData.survey && this.centerData.survey.list) {
this.survey = this.centerData.survey.list || []
}
},
getInitChinaMap () {
let series = []
let maps = [['南通', this.chinaDatas]]
......
......@@ -71,6 +71,7 @@ export default {
}
// 中间数据
this.centerData = {
survey: data.p11 || {} // 中间概况数据
}
// 右侧数据
this.rightData = {
......
......@@ -4,12 +4,12 @@
;(function () {
// 接口请求域名
window.domain = {
stg: 'http://192.168.0.121:9000/', // 测试环境域名
prd: 'http://192.168.0.121:9000/' // 生产环境域名
stg: 'http://192.168.0.121:9000', // 测试环境域名
prd: '' // 生产环境域名 http://192.168.0.121:9000/
}
// 接口请求路径
window.apis = {
managePlatform: 'api/page1info'
managePlatform: '/api/page1info'
}
})()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment