chenrui  2 年之前
父節點
當前提交
35fa94f067

+ 27 - 0
src/views/statisticalanalysis/cargoperiod/index.vue

@@ -249,6 +249,33 @@ export default {
           this.tableLister.forEach((item, index) => {
           this.tableLister.forEach((item, index) => {
             item.indexs = index + 1;
             item.indexs = index + 1;
           });
           });
+          for (let i = 0; i < this.tableLister.length; i++) {
+            this.tableLister[i].alltxt =
+              this.tableLister[i].t0 +
+              this.tableLister[i].t1 +
+              this.tableLister[i].t2 +
+              this.tableLister[i].t3 +
+              this.tableLister[i].t4 +
+              this.tableLister[i].t5 +
+              this.tableLister[i].t6 +
+              this.tableLister[i].t7 +
+              this.tableLister[i].t8 +
+              this.tableLister[i].t9 +
+              this.tableLister[i].t10 +
+              this.tableLister[i].t11 +
+              this.tableLister[i].t12 +
+              this.tableLister[i].t13 +
+              this.tableLister[i].t14 +
+              this.tableLister[i].t15 +
+              this.tableLister[i].t16 +
+              this.tableLister[i].t17 +
+              this.tableLister[i].t18 +
+              this.tableLister[i].t19 +
+              this.tableLister[i].t20 +
+              this.tableLister[i].t21 +
+              this.tableLister[i].t22 +
+              this.tableLister[i].t23;
+          }
           for (let index = 0; index < returnData.listValues.length; index++) {
           for (let index = 0; index < returnData.listValues.length; index++) {
             this.echartsData.list[index] = new Array(
             this.echartsData.list[index] = new Array(
               returnData.listValues[index].t0,
               returnData.listValues[index].t0,

+ 7 - 0
src/views/statisticalanalysis/components/echart/tableforms.vue

@@ -911,6 +911,13 @@
             :align="tableColumnProperty.align"
             :align="tableColumnProperty.align"
           >
           >
           </el-table-column>
           </el-table-column>
+          <el-table-column
+            prop="alltxt"
+            label="总和"
+            :show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
+            :align="tableColumnProperty.align"
+          >
+          </el-table-column>
           <el-table-column
           <el-table-column
             prop="t0"
             prop="t0"
             label="t0"
             label="t0"