no message

Former-commit-id: 313b095dffa946b4a4dfffde241353bce31d8cef
Former-commit-id: 049f9d83d669be0ec8267004227e773eb38b96ac
Former-commit-id: 508d4dbe3860eb5e339c116253bb2ff14b01ae3b
This commit is contained in:
李杨
2018-01-28 23:52:37 +08:00
parent 555585b332
commit 3d2201a431
7 changed files with 44 additions and 28 deletions

View File

@@ -34,17 +34,19 @@ export default {
}
},
mounted () {
setTimeout(() => {
this.syncData()
},
methods: {
// 请求图表数据
syncData () {
const api = [
'/api/chart/G2Line1'
{url: '/api/chart/G2Line', data: {code: 1}}
]
this.$axios.all(api.map(e => this.$axios.get(e)))
this.$axios.all(api.map(e => this.$axios.post(e.url, e.data)))
.then(this.$axios.spread((G2Line1) => {
this.G2Line1 = G2Line1
}))
}, 300)
},
methods: {
},
// 改变尺寸
resizeHandler (name) {
this.$nextTick(() => {