Merge branch 'master' into weijian

This commit is contained in:
nowcastsystem 2019-10-15 17:34:54 -05:00 committed by GitHub
commit 2d85a25c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 21 deletions

View File

@ -84,7 +84,7 @@ export default [
// plot prediction graph
{
url: '/testpredict',
url: '/testpppredict',
type: 'get',
response: _ => {
return {

View File

@ -29,7 +29,7 @@ export function sendAnalyzeRequest(token) {
return request({
url: '/testpredict',
method: 'get',
// baseURL: 'http://localhost:8010',
baseURL: 'http://localhost:8010',
// authorization: token,
// params: { token }
})

View File

@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 5000 // request timeout
timeout: 5000000 // request timeout
})
// request interceptor

View File

@ -558,28 +558,16 @@ export default {
var token = response['token']
var para = response['future']
var future = response['future']
var past = response['past']
var past_predict = response['past_predict']
// if the response from the server indicating that it's running the analysis, then redirect to a loading view
if (token == 'success') {
// this.$router.push({ name: "plot" })
this.$router.push({ name: "plotTest", params: {
past: {
yAxisData: [100, 120, 161, 134, 105, 160, 165, 190,200,250],
xAxisData: ['2019-7-13', '2019-7-14', '2019-7-15', '2019-7-16', '2019-7-17', '2019-7-18', '2019-7-19', '2019-7-20','2019-7-21','2019-7-22'] ,
label: 'Past',
colorPicked: '#999997',
twoLines: true,
yAxisData2: [100, 140, 161, 134, 105, 160, 165, 190,200,250],
label2: 'Past2',
colorPicked2: '#999997'
},
future: {
yAxisData: [260, 230, 270, 285, 295, 300, 310,330],
xAxisData: ['2019-8-13', '2019-8-14', '2019-8-15', '2019-8-16', '2019-8-17', '2019-8-18', '2019-8-19', '2019-8-20'] ,
label: 'Future',
colorPicked: '#519e19'
}
past,
future
}})
}
})

View File

@ -187,6 +187,7 @@ export default {
animationDuration: 2800,
animationEasing: 'cubicInOut'
}
]
})

View File

@ -83,7 +83,8 @@ export default {
data() {
const validateUsername = (rule, value, callback) => {
if (!validUsername(value)) {
callback(new Error('Please enter the correct user name'))
callback()
// callback(new Error('Please enter the correct user name'))
} else {
callback()
}

View File

@ -76,6 +76,21 @@ export default {
default: '#999997'
}
},
past_predict: {
xAxisData: {
default: [120, 82, 91, 154, 162, 140, 145,230]
},
yAxisData: {
default: ['a', 'x', 'c', 'd', 'e', 'f', 'g', 'h']
},
label: {
default: 'Future'
},
colorPicked: {
default: '#999997'
}
},
future: {
xAxisData: {
default: [120, 82, 91, 154, 162, 140, 145,230]