diff --git a/src/api/home.js b/src/api/home.js
index 46f20c2..8bbec22 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -52,7 +52,7 @@ export function tdGroupRealTimeEnter(param) {
export function tsgTrends(param) {
return request({
url: '/library.pass/allFlowTrends',
- method: 'post',
+ method: 'get',
param,
})
}
diff --git a/src/views/WhView.vue b/src/views/WhView.vue
index 0446dd4..3209098 100644
--- a/src/views/WhView.vue
+++ b/src/views/WhView.vue
@@ -13,17 +13,17 @@
-
234,255
+
{{ tdjg }}
今日进馆人数
-
234,255
+
{{ tmjg }}
本月进馆人数
-
234,255
+
{{ tyjg }}
本年进馆人数
@@ -34,17 +34,17 @@
-
234,255
+
{{ gkbwg }}
博物馆
-
234,255
+
{{ gktsg }}
图书馆
-
234,255
+
{{ gkwhg }}
文化馆
@@ -316,10 +316,21 @@ export default {
name: 'TycView',
data() {
return {
+ //三馆人数概况
+ tdjg:0,
+ tmjg:0,
+ tyjg:0,
//
+ gkbwg:0,
+ gktsg:0,
+ gkwhg:0,
+
}
},
mounted() {
+ // 三馆人数
+ this.sgrsStat()
+
// 24h ins k line
this.cgsf_line()
//
@@ -330,6 +341,23 @@ export default {
this.getTsgInfoDatas()
},
methods: {
+ // 三馆人数概况
+ sgrsStat(){
+ // let guid="510|"
+ //
+ homeApi.tsgTrends().then(res=>{
+ const tdata = res.data.data;
+ this.tdjg = tdata.today.incount
+ this.tmjg = tdata.month.incount
+ this.tyjg = tdata.year.incount
+
+ //24小时的情况
+ const sgdata = tdata.hour24
+ this.gktsg = sgdata[0].incount
+ this.gkbwg = sgdata[1].incount
+ this.gkwhg = sgdata[2].incount
+ });
+ },
// 山峰图---24小时进馆人数趋势
cgsf_line() {
var chartDom = document.getElementById('gcins_charts');