Commit 812c9196 authored by 徐俊's avatar 徐俊

xujun

parent c59a2896
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-model-item prop="totalFunding"> <a-form-model-item prop="totalFunding">
<a-input-number v-model="formData.totalFunding" :min="0" :step="0.01" style="width: 100px" /> <a-input-number v-model="formData.totalFunding" @change="totalFundingChange" :min="0" :step="0.01" style="width: 100px" />
<span> 单位:万元</span> <span> 单位:万元</span>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -480,7 +480,7 @@ ...@@ -480,7 +480,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-model-item prop="govFunding"> <a-form-model-item prop="govFunding">
<a-input-number v-model="formData.govFunding" :min="0" :step="0.01" style="width: 100px" /> <a-input-number v-model="formData.govFunding" @change="govFundingChange" :min="0" :step="0.01" style="width: 100px" />
<span> 单位:万元</span> <span> 单位:万元</span>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -860,6 +860,12 @@ export default { ...@@ -860,6 +860,12 @@ export default {
let projDeadline = moment(this.formData.startDate).format('YYYY-MM-DD') + "至" + moment(this.formData.endDate).format('YYYY-MM-DD') let projDeadline = moment(this.formData.startDate).format('YYYY-MM-DD') + "至" + moment(this.formData.endDate).format('YYYY-MM-DD')
this.formData.projectKPI.projDeadline = projDeadline this.formData.projectKPI.projDeadline = projDeadline
} }
},
totalFundingChange() {
this.formData.projectKPI.totalBudget = this.formData.totalFunding
},
govFundingChange() {
this.formData.projectKPI.applyFunds = this.formData.govFunding
} }
}, },
watch: { watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment