|
|
@@ -85,15 +85,12 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<div class='mr-5 flex flex-center '>
|
|
|
- <div v-for='(item,index) in 12' :key='item' class='title'>
|
|
|
+ <div v-for='(item,index) in 11' :key='item' class='title'>
|
|
|
<div v-if='index === 0'>
|
|
|
- 一季度合计
|
|
|
- </div>
|
|
|
- <div v-else-if='index === 1'>
|
|
|
1-2月
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- {{item}}月
|
|
|
+ {{item + 1}}月
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -266,14 +263,14 @@ export default {
|
|
|
item.months = this.form.month_investment_amount.find(sub => sub.year === year).monthlyData
|
|
|
}
|
|
|
this.current = Object.assign({}, item)
|
|
|
- for (let i = 1; i <= 12; i++) {
|
|
|
+ for (let i = 1; i <= 11; i++) {
|
|
|
const index = this.current.months.findIndex(sub => sub.month === i.toString())
|
|
|
- if (index === -1 && this.current.months.length < 12) {
|
|
|
+ if (index === -1 && this.current.months.length < 11) {
|
|
|
const ele = { month: i.toString(), data: '', year: '' }
|
|
|
this.current.months.push(ele)
|
|
|
}
|
|
|
const planIndex = this.current.planMonths.findIndex(sub => sub.month === i.toString())
|
|
|
- if (planIndex === -1 && this.current.planMonths.length < 12) {
|
|
|
+ if (planIndex === -1 && this.current.planMonths.length < 11) {
|
|
|
const sub = { month: i.toString(), data: '', year: '' }
|
|
|
this.current.planMonths.push(sub)
|
|
|
}
|