“liting 6 gadi atpakaļ
vecāks
revīzija
54133bb9ea
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      js/component/account/demand/demandForm.jsx

+ 2 - 2
js/component/account/demand/demandForm.jsx

@@ -252,7 +252,7 @@ const DemandDetailForm = Form.create()(React.createClass({
 						crowdCost:values.crowdCost,
 						keyword: this.state.tags ? this.state.tags.join(",") : [],
 						keywords: this.state.tags,
-						budgetCost:values.budgetCost,
+						budgetCost:values.budgetCost?values.budgetCost:0,
 						urgentDays:this.state.isUrgent?values.urgentDays:0,
 						urgentMoney:this.state.isUrgent?values.urgentMoney:0,
 						auditStatus:index,
@@ -395,7 +395,7 @@ const DemandDetailForm = Form.create()(React.createClass({
 							<FormItem className="half-item" {...formItemLayout} label="人才酬劳">
 							{getFieldDecorator('budgetCost', {
 								rules: [ { required: false } ],
-								initialValue: theData.budgetCost
+								initialValue: theData.budgetCost?theData.budgetCost:undefined
 							})(<InputNumber min={0} max={999999} step={0.01} placeholder="输入酬劳."/>)}
 							<span style={{ marginLeft: '5px' }}>万元</span>
 						</FormItem>:''}