FINALLY SAVES!
This commit is contained in:
parent
f7f65ea148
commit
13f95a24d7
|
@ -83,7 +83,7 @@
|
|||
"autoprefixer": "^9.5.1",
|
||||
"babel-core": "7.0.0-bridge.0",
|
||||
"babel-eslint": "10.0.1",
|
||||
"babel-jest": "23.6.0",
|
||||
"babel-jest": "^25.0.0",
|
||||
"chalk": "2.4.2",
|
||||
"chokidar": "2.1.5",
|
||||
"connect": "3.6.6",
|
||||
|
|
|
@ -14,11 +14,18 @@ export function createActiveSymbol(data) {
|
|||
const dto = {
|
||||
'type': data.type,
|
||||
'start_date': data.start_date,
|
||||
'symbol': data.symbol
|
||||
'symbol': data.symbol,
|
||||
'platform': 'OLFUK',
|
||||
'allow_retroactive_date': false
|
||||
// 'type': 'SETTLE',
|
||||
// 'start_date': '2019-10-20T13:53:32.216Z',
|
||||
// 'symbol': 'GAS'
|
||||
}
|
||||
if (data.allow_retroactive_data) dto.allow_retroactive_data = data.allow_retroactive_data
|
||||
if (data.platform) dto.platform = data.platform
|
||||
|
||||
console.log((`${apiUrl}/symbol/future/active`))
|
||||
|
||||
return axios.put(`${apiUrl}/symbol/future/active`, dto)
|
||||
}
|
||||
|
||||
|
|
|
@ -60,8 +60,7 @@ import { createActiveSymbol } from '@/api/active-symbol'
|
|||
const defaultForm = {
|
||||
type: '',
|
||||
symbol: '',
|
||||
start_date: ''
|
||||
|
||||
start_date: '',
|
||||
}
|
||||
|
||||
export default {
|
||||
|
@ -126,8 +125,7 @@ export default {
|
|||
this.$refs.postForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
console.log("1:",this.postForm)
|
||||
console.log("2:",this.loading)
|
||||
|
||||
|
||||
|
||||
// Save the account
|
||||
|
|
Loading…
Reference in New Issue