修复 立减金回显预警值不显示问题

This commit is contained in:
wangsongsole 2022-06-06 10:30:09 +08:00
parent c6540c2655
commit 7b4daedba2
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ const receiveTypeList = [
{ key: 'dey', text: '每天' } { key: 'dey', text: '每天' }
] ]
// //
const earlyPerList = [70, 50, 30, 20] const earlyPerList = ['70', '50', '30', '20']
const initArray = (targetNum) => { const initArray = (targetNum) => {
return Array.from({ length: targetNum }, (_, index) => index) return Array.from({ length: targetNum }, (_, index) => index)
} }
@ -133,6 +133,7 @@ export default class addKnockGold extends Component {
for (let key in this.props.data) { for (let key in this.props.data) {
model[key] = this.props.data[key] model[key] = this.props.data[key]
} }
model.early_per = this.props.data.early_per.map((item) => String(item))
model.receive_type = this.props.data.receive_conf.type model.receive_type = this.props.data.receive_conf.type
model.receive_number = this.props.data.receive_conf.num model.receive_number = this.props.data.receive_conf.num
model.timer[0] = this.props.data.time_limit.receive_time.start_time model.timer[0] = this.props.data.time_limit.receive_time.start_time