修复 立减金编辑回显时 个别字段因返回数据不统一 导致不不显示问题,进行统一转换处理

This commit is contained in:
wangsongsole 2022-06-06 11:04:53 +08:00
parent ea5ad236f2
commit 86646c63e7
1 changed files with 6 additions and 3 deletions

View File

@ -35,8 +35,8 @@ const getTimeList = [
{ key: '2', text: '自定义时间' }
]
const cardTypeList = [
{ key: 1, text: '借记卡' },
{ key: 2, text: '信用卡' }
{ key: '1', text: '借记卡' },
{ key: '2', text: '信用卡' }
]
const receiveTypeList = [
@ -134,7 +134,10 @@ export default class addKnockGold extends Component {
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.channel = String(this.props.data.channel)
model.natural_limit = String(this.props.data.natural_limit)
model.brush_limit = String(this.props.data.brush_limit)
model.card_type = this.props.data.card_type.map((item) => String(item))
model.receive_number = this.props.data.receive_conf.num
model.timer[0] = this.props.data.time_limit.receive_time.start_time
model.timer[1] = this.props.data.time_limit.receive_time.end_time