|
|
@ -69,26 +69,28 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleChange({ index }) { |
|
|
|
console.log('index',index) |
|
|
|
this.index = index; |
|
|
|
this.formConfig = tabConfigList[index].formConfig; |
|
|
|
}, |
|
|
|
handleSubmit(){ |
|
|
|
const formData = this.$refs.FormConfigRef?.formData; |
|
|
|
let stakeMark = formData.stakeMark; |
|
|
|
let endStakeMark = formData.endStakeMark; |
|
|
|
console.log('122', { |
|
|
|
eventType: Number(this.index) + 1, |
|
|
|
...formData, |
|
|
|
stakeMark: stakeMark.length > 0 ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '' |
|
|
|
eventType: Number(this.index) + 1, |
|
|
|
stakeMark: (stakeMark && stakeMark.length > 0 ) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '', |
|
|
|
endStakeMark: (endStakeMark && endStakeMark.length > 0 ) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : '', |
|
|
|
}) |
|
|
|
// return |
|
|
|
request({ |
|
|
|
url: `/dc/system/event`, |
|
|
|
method: "post", |
|
|
|
data: { |
|
|
|
eventType: Number(this.index) + 1, |
|
|
|
...formData, |
|
|
|
stakeMark: stakeMark.length > 0 ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '' |
|
|
|
eventType: Number(this.index) + 1, |
|
|
|
stakeMark: (stakeMark && stakeMark.length > 0 ) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '', |
|
|
|
endStakeMark: (endStakeMark && endStakeMark.length > 0 ) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : '', |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|