Browse Source

graph

master
gsd 6 months ago
parent
commit
d70ec950ec
  1. 6
      src/components/ActionDialogs/Tables/PlayersGraph.vue

6
src/components/ActionDialogs/Tables/PlayersGraph.vue

@ -29,7 +29,7 @@
<md-field style="margin: 0% 0%;">
<label style="font-family: tf2secondary">Выбрать количество дней</label>
<md-select @md-selected="onLoad" v-model="limit" :mdClass="'ssm'" >
<md-option v-for="days in [1, 7, 14, 21, 28]" :key="days" :value="days">{{days}} дней</md-option>
<md-option v-for="days in [1, 7, 14, 21, 30, 60, 90, 180]" :key="days" :value="days">{{days}} дней</md-option>
</md-select>
</md-field>
<md-button style="float: right" class="btn-default" v-on:click="showMe(false)">Закрыть</md-button>
@ -67,6 +67,10 @@ export default {
}
},
onLoad() {
if (this.request === 'api/stats/graph/peak/of/minutes' && this.limit > 30) {
this.limit = 30;
}
this.loading = true;
axios.get(`${this.request}?limit=${this.limit}&server_id=${this.srv}` + this.request_minutes + Random.getRndWebAppend()).then(
response => {

Loading…
Cancel
Save