Explorar el Código

生产日报 - y轴多个坐标对比展示时,对比指标上限调整为最多6个

wangggziwen hace 1 año
padre
commit
d4cb52b6ba
Se han modificado 1 ficheros con 2 adiciones y 10 borrados
  1. 2 10
      ui/src/views/production/daily/index.vue

+ 2 - 10
ui/src/views/production/daily/index.vue

@@ -2852,6 +2852,7 @@
         <el-form-item label="对比指标" prop="chemicalChosen">
           <el-select
             multiple
+            multiple-limit="5"
             v-model="chemicalChosen"
             @change="handleAddChemicals"
             filterable
@@ -4123,19 +4124,10 @@ export default {
     /** 处理趋势图对话框对比指标change事件 */
     handleAddChemicals() {
       if (this.chemicalChosen != null && this.chemicalChosen != "") { // 选中对比指标
-        // this.analysisQueryParams.fieldName = this.chemicalChosen;
-        // for (let i = 0; i < this.chemicalsOptions.length; i++) {
-        //   if (this.chemicalsOptions[i].dictValue == this.chemicalChosen) {
-        //     this.fieldNameTitle2 = this.chemicalsOptions[i].dictLabel;
-        //   }
-        // }
-        // this.disposeChart();
-        // this.valueList2 = [];
         let endDate = new Date(this.analysisQueryParams.endDate);
         let startDate = new Date(this.analysisQueryParams.startDate);
         this.analysisQueryParams.endDate = endDate.getFullYear() + "-" + Number(endDate.getMonth() + 1) + "-" + endDate.getDate();
         this.analysisQueryParams.startDate = startDate.getFullYear() + "-" + Number(startDate.getMonth() + 1) + "-" + startDate.getDate();
-        // this.draw2();
         this.disposeChart();
         this.drawN();
       } else {  // 清空对比指标
@@ -4525,7 +4517,7 @@ export default {
         },
         grid: {
           x: '5%',
-          x2: '25%'
+          x2: '30%'
         },
         xAxis: {
           data: this.dateList,