|
|
@ -27,9 +27,9 @@ |
|
|
|
<div class="count_wrap"> |
|
|
|
<div class="count_wrap"> |
|
|
|
<div class="count_title">访问统计</div> |
|
|
|
<div class="count_title">访问统计</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="count_current">当前访问: 87</div> |
|
|
|
<div class="count_current">当前访问: {{proAccessNum.currentNum}}</div> |
|
|
|
<div class="count_history">历史访问: 468427</div> |
|
|
|
<div class="count_history">历史访问: {{proAccessNum.historyNUm}}</div> |
|
|
|
<div class="count_people">实验人数: 1059</div> |
|
|
|
<div class="count_people">实验人数: {{proAccessNum.testNum}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -40,6 +40,11 @@ import { Loading } from 'element-ui' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
proAccessNum:{ |
|
|
|
|
|
|
|
currentNum:'', |
|
|
|
|
|
|
|
historyNum:'', |
|
|
|
|
|
|
|
testNum:'' |
|
|
|
|
|
|
|
}, |
|
|
|
userId: '', |
|
|
|
userId: '', |
|
|
|
studentId: '', |
|
|
|
studentId: '', |
|
|
|
schoolId: '', |
|
|
|
schoolId: '', |
|
|
@ -48,9 +53,16 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
mounted(){ |
|
|
|
|
|
|
|
this.accessNum() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
methods:{ |
|
|
|
|
|
|
|
accessNum(){ |
|
|
|
|
|
|
|
this.$get(this.api.getAccessNum).then(res =>{ |
|
|
|
|
|
|
|
this.proAccessNum.currentNum = res.currentNum, |
|
|
|
|
|
|
|
this.proAccessNum.historyNUm = res.historyNUm, |
|
|
|
|
|
|
|
this.proAccessNum.testNum = res.experimentNum |
|
|
|
|
|
|
|
}).catch(err=>{}) |
|
|
|
|
|
|
|
}, |
|
|
|
toClient(){ |
|
|
|
toClient(){ |
|
|
|
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'http://122.9.154.146/kdclient/#/clientLogin' |
|
|
|
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'http://122.9.154.146/kdclient/#/clientLogin' |
|
|
|
}, |
|
|
|
}, |
|
|
|