|
@@ -239,24 +239,23 @@ export default {
|
|
|
} else {
|
|
|
this.formTwo.trade_status = ''
|
|
|
}
|
|
|
- console.log(this.formTwo)
|
|
|
- // let data = JSON.parse(JSON.stringify(this.formTwo))
|
|
|
- // let approve_time = new Date(this.formTwo.approve_time)
|
|
|
- // data.approve_time = Date.parse(approve_time)
|
|
|
- // let end_time = new Date(this.formTwo.end_time)
|
|
|
- // data.end_time = Date.parse(end_time)
|
|
|
- // this.loadingStatus = true
|
|
|
- // API.importContract(data).then(
|
|
|
- // () => {
|
|
|
- // this.loadingStatus = false
|
|
|
- // this.msgSuccess('同步完成')
|
|
|
- // // this.resetForm('ruleFormTwo')
|
|
|
- // },
|
|
|
- // (err) => {
|
|
|
- // console.log('importContract: ' + err)
|
|
|
- // this.loadingStatus = false
|
|
|
- // }
|
|
|
- // )
|
|
|
+ let data = JSON.parse(JSON.stringify(this.formTwo))
|
|
|
+ let approve_time = new Date(this.formTwo.approve_time)
|
|
|
+ data.approve_time = Date.parse(approve_time)
|
|
|
+ let end_time = new Date(this.formTwo.end_time)
|
|
|
+ data.end_time = Date.parse(end_time)
|
|
|
+ this.loadingStatus = true
|
|
|
+ API.importContract(data).then(
|
|
|
+ () => {
|
|
|
+ this.loadingStatus = false
|
|
|
+ this.msgSuccess('同步完成')
|
|
|
+ // this.resetForm('ruleFormTwo')
|
|
|
+ },
|
|
|
+ (err) => {
|
|
|
+ console.log('importContract: ' + err)
|
|
|
+ this.loadingStatus = false
|
|
|
+ }
|
|
|
+ )
|
|
|
}
|
|
|
})
|
|
|
},
|