diff --git a/src/pages/plan/knockGold/index.jsx b/src/pages/plan/knockGold/index.jsx index 66d6c064..851ed4b4 100644 --- a/src/pages/plan/knockGold/index.jsx +++ b/src/pages/plan/knockGold/index.jsx @@ -46,7 +46,7 @@ const receiveTypeList = [ { key: 'dey', text: '每天' } ] //预警百分比 -const earlyPerList = [70, 50, 30, 20] +const earlyPerList = ['70', '50', '30', '20'] const initArray = (targetNum) => { return Array.from({ length: targetNum }, (_, index) => index) } @@ -133,6 +133,7 @@ export default class addKnockGold extends Component { for (let key in this.props.data) { 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_number = this.props.data.receive_conf.num model.timer[0] = this.props.data.time_limit.receive_time.start_time