diff --git a/src/pages/Data/Chart.vue b/src/pages/Data/Chart.vue index 113c697..8e56719 100644 --- a/src/pages/Data/Chart.vue +++ b/src/pages/Data/Chart.vue @@ -127,12 +127,22 @@ export default { }, 1000); this.loading = true; }, - + initPage(){ + var compId = this.$route.params.compId + var compInfo ={ + compId + } + this.$api.getChartCount(compInfo).then((res)=>{ + if (res.status == 0) { + this.apply_total_num = res.data.applyCount + this.submit_total_num = res.data.submitCount + } + }) + } }, mounted(){ - this.apply_total_num = 666; - this.submit_total_num = 777; + this.initPage() this.chart_title = "地方分赛区"; this.makeEcharts(); diff --git a/src/pages/Guide/Guide.vue b/src/pages/Guide/Guide.vue index 448e93f..4497eac 100644 --- a/src/pages/Guide/Guide.vue +++ b/src/pages/Guide/Guide.vue @@ -1,14 +1,14 @@ + + + \ No newline at end of file diff --git a/src/utils/http/interface.js b/src/utils/http/interface.js index ccff432..2abc743 100644 --- a/src/utils/http/interface.js +++ b/src/utils/http/interface.js @@ -90,6 +90,18 @@ export const homeContentUpdate = data => { }) }; + +export const guideContentUpdate = data => { + return axios({ + headers:{ + "Authorization": localStorage.getItem("systemToken") + }, + url: '/guide/updateContentByCompId', + method: 'post', + data + }) +}; + export const getAllComp = () => { return axios({ headers:{ @@ -136,6 +148,19 @@ export const updateData = (type,data) => { }) }; +export const getChartCount = (data) => { + return axios({ + + url: '/comp/getChartCount', + method: 'post', + data + }) +}; + + + + + // 默认全部倒出 // 根据需要进行 export default { @@ -151,5 +176,7 @@ export default { getAllComp, initComp, getCompById, - updateData + updateData, + getChartCount, + guideContentUpdate } \ No newline at end of file