This commit is contained in:
kf_wuhao 2021-01-21 14:22:36 +08:00
parent ef595f1e90
commit feb977e3e4

View File

@ -30,24 +30,21 @@
</el-time-picker>
<el-button icon="el-icon-search" circle @click="seach()"></el-button>
</el-row>
<el-row>
<h1>user</h1>
<el-row v-html="userTable">
</el-row>
</el-row>
<el-row>
<h1>paylist</h1>
<el-row v-html="paylistTable">
</el-row>
</el-row>
<el-row>
<h1>event</h1>
<el-row v-html="eventTable">
<el-row v-html="userTable">
</el-row>
</el-row>
<el-row v-html="paylistTable">
</el-row>
<el-row v-html="eventTable">
</el-row>
</div>
</body>
<!-- import Vue before Element -->
@ -56,7 +53,7 @@
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
const curTime = new Date();
new Vue({
el: '#app',
@ -82,7 +79,8 @@
}],
loading: false,
game: '',
date: [new Date(), new Date()],
cdate: new Date(),
date: [new Date(curTime.setMinutes(curTime.getMinutes() - 10)), new Date()],
userTable: '',
paylistTable: '',
eventTable: '',
@ -96,9 +94,9 @@
var et = Date.parse(this.date[1]) / 1000;
axios.get('http://10.0.0.107:5000/' + game, {params: {'st': st, 'et': et}})
.then(response => {
this.userTable = response.data['user'];
this.paylistTable = response.data['paylist'];
this.eventTable = response.data['event'];
this.userTable = '<h1>user</h1>' + response.data['user'];
this.paylistTable = '<h1>paylist</h1>' + response.data['paylist'];
this.eventTable = '<h1>event</h1>' + response.data['event'];
this.loading = false;
})
.catch(error => {