scorpio %!s(int64=2) %!d(string=hai) anos
pai
achega
f40ff07796
Modificáronse 1 ficheiros con 5 adicións e 8 borrados
  1. 5 8
      src/views/home/component/params/params3.vue

+ 5 - 8
src/views/home/component/params/params3.vue

@@ -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)
           }