Jelajahi Sumber

大屏组件-图表增加Y轴最小值配置

qianming 6 bulan lalu
induk
melakukan
6a04e7d5c7
28 mengubah file dengan 233 tambahan dan 64 penghapusan
  1. 16 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-double-yaxis-chart.js
  2. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-stack-more-show.js
  3. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-stack.js
  4. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-barchart.js
  5. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-gradient-barchart.js
  6. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-bar-line-single-chart.js
  7. 16 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-bar-line-stack.js
  8. 16 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-barlinechart.js
  9. 16 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-more-bar-line.js
  10. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/heatmap/widget-heatmap.js
  11. 16 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-line-compare.js
  12. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-line-stack.js
  13. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-linechart.js
  14. 8 0
      report-ui/src/views/bigscreenDesigner/designer/tools/configure/scatterCharts/widget-scatter.js
  15. 6 4
      report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarDoubleYaxisChart.vue
  16. 1 0
      report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarStackChart.vue
  17. 5 4
      report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarStackMoreShowChart.vue
  18. 8 7
      report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarchart.vue
  19. 5 4
      report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetGradientColorBarchart.vue
  20. 7 6
      report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarLineSingleChart.vue
  21. 7 5
      report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarLineStackChart.vue
  22. 7 6
      report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarlinechart.vue
  23. 8 7
      report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetMoreBarLineChart.vue
  24. 2 1
      report-ui/src/views/bigscreenDesigner/designer/widget/heatmap/widgetHeatmap.vue
  25. 9 7
      report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue
  26. 1 0
      report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue
  27. 6 5
      report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue
  28. 9 8
      report-ui/src/views/bigscreenDesigner/designer/widget/scatter/widgetScatter.vue

+ 16 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-double-yaxis-chart.js

@@ -593,6 +593,14 @@ export const widgetBarDoubleYaxis = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最小值',
+              name: 'minYLeft',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',
@@ -865,6 +873,14 @@ export const widgetBarDoubleYaxis = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYRight',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-stack-more-show.js

@@ -605,6 +605,14 @@ export const widgetBarStackMoreShow = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-bar-stack.js

@@ -621,6 +621,14 @@ export const widgetBarStack = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-barchart.js

@@ -621,6 +621,14 @@ export const widgetBarchart = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最小值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barCharts/widget-gradient-barchart.js

@@ -609,6 +609,14 @@ export const widgetGradientBarchart = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最小值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-bar-line-single-chart.js

@@ -666,6 +666,14 @@ export const widgetBarLineSingle = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 16 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-bar-line-stack.js

@@ -674,6 +674,14 @@ export const widgetBarLineStack = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYLeft',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',
@@ -946,6 +954,14 @@ export const widgetBarLineStack = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYRight',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 16 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-barlinechart.js

@@ -658,6 +658,14 @@ export const widgetBarlinechart = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYLeft',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',
@@ -930,6 +938,14 @@ export const widgetBarlinechart = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYRight',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 16 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/barlineCharts/widget-more-bar-line.js

@@ -678,6 +678,14 @@ export const widgetMoreBarLine = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYLeft',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',
@@ -950,6 +958,14 @@ export const widgetMoreBarLine = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYRight',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/heatmap/widget-heatmap.js

@@ -516,6 +516,14 @@ export const widgetHeatmap = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 16 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-line-compare.js

@@ -484,6 +484,14 @@ export const widgetLineCompare = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYTop',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',
@@ -727,6 +735,14 @@ export const widgetLineCompare = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minYBottom',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-line-stack.js

@@ -568,6 +568,14 @@ export const widgetLineStack = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/lineCharts/widget-linechart.js

@@ -560,6 +560,14 @@ export const widgetLinechart = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-select',
               label: '数值位置',

+ 8 - 0
report-ui/src/views/bigscreenDesigner/designer/tools/configure/scatterCharts/widget-scatter.js

@@ -381,6 +381,14 @@ export const widgetScatter = {
               placeholder: '',
               value: '',
             },
+            {
+              type: 'el-input-text',
+              label: '最大值',
+              name: 'minY',
+              required: false,
+              placeholder: '',
+              value: '',
+            },
             {
               type: 'el-input-text',
               label: '坐标名',

+ 6 - 4
report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarDoubleYaxisChart.vue

@@ -240,6 +240,7 @@ export default {
       const yAxis = [
         {
           max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
+          min: optionsSetup.minYLeft !== "" ? optionsSetup.minYLeft : null,
           type: "value",
           scale: optionsSetup.scaleYLeft,
           // 均分
@@ -297,6 +298,7 @@ export default {
         },
         {
           max: optionsSetup.maxYRight !== "" ? optionsSetup.maxYRight : null,
+          min: optionsSetup.minYRight !== "" ? optionsSetup.minYRight : null,
           type: "value",
           scale: optionsSetup.scaleYRight,
           // 均分
@@ -360,7 +362,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const series = this.options.series;
       for (const key in series) {
-        if (series[key].type == "bar") {
+        if (series[key].type === "bar") {
           series[key].barGap = optionsSetup.barGap + "%";
           series[key].label = {
             show: optionsSetup.isShow,
@@ -452,7 +454,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -497,7 +499,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },
@@ -578,7 +580,7 @@ export default {
       const legendName = [];
       let k = 0;
       for (const i in val.series) {
-        if (val.series[i].type == "bar") {
+        if (val.series[i].type === "bar") {
           series[k]['data'] = val.series[i].data;
           k++
           legendName.push(val.series[i].name);

+ 1 - 0
report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarStackChart.vue

@@ -199,6 +199,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分

+ 5 - 4
report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarStackMoreShowChart.vue

@@ -202,6 +202,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分
@@ -322,7 +323,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -339,7 +340,7 @@ export default {
     getStackStyle() {
       const optionsSetup = this.optionsSetup;
       let style = "";
-      if (optionsSetup.stackStyle == "upDown") {
+      if (optionsSetup.stackStyle === "upDown") {
         style = "total";
       }
       return style;
@@ -366,7 +367,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData, optionsSetup)
         : this.dynamicDataFn(
           optionsData.dynamicData,
@@ -393,7 +394,7 @@ export default {
         const name = names[i]
         for (let j = 0; j < axisList.length; j++) {
           const date = axisList[j]
-          const find = val.find((item) => item.axis == date && item.name == name)
+          const find = val.find((item) => item.axis === date && item.name === name)
           if (find) {
             list.push({data: find.data, plan: find.plan, real: find.real})
           } else {

+ 8 - 7
report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetBarchart.vue

@@ -215,6 +215,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分
@@ -335,7 +336,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -352,7 +353,7 @@ export default {
     getStackStyle() {
       const optionsSetup = this.optionsSetup;
       let style = "";
-      if (optionsSetup.stackStyle == "upDown") {
+      if (optionsSetup.stackStyle === "upDown") {
         style = "total";
       }
       return style;
@@ -377,7 +378,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.refreshTime);
     },
@@ -400,7 +401,7 @@ export default {
       const legendName = [];
       legendName.push("bar");
       for (const i in series) {
-        if (series[i].type == "bar") {
+        if (series[i].type === "bar") {
           series[i].type = "bar";
           series[i].barGap = optionsSetup.barGap + "%";
           series[i].barWidth = optionsSetup.maxWidth;
@@ -417,7 +418,7 @@ export default {
             fontFamily: optionsSetup.fontFamily,
           };
           // 获取颜色样式
-          if (optionsSetup.colorStyle == 'same') {
+          if (optionsSetup.colorStyle === 'same') {
             series[i].itemStyle = {
               normal: {
                 color: arrColor[i],
@@ -525,7 +526,7 @@ export default {
       for (const i in val.series) {
         legendName.push(val.series[i].name);
         const obj = {};
-        if (val.series[i].type == "bar") {
+        if (val.series[i].type === "bar") {
           obj.type = "bar";
           obj.barGap = optionsSetup.barGap + "%";
           obj.stack = this.getStackStyle();
@@ -543,7 +544,7 @@ export default {
             fontFamily: optionsSetup.fontFamily,
           };
           // 获取颜色样式
-          if (optionsSetup.colorStyle == 'same') {
+          if (optionsSetup.colorStyle === 'same') {
             obj.itemStyle = {
               normal: {
                 color: arrColor[i],

+ 5 - 4
report-ui/src/views/bigscreenDesigner/designer/widget/bar/widgetGradientColorBarchart.vue

@@ -281,6 +281,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分
@@ -343,7 +344,7 @@ export default {
     setOptionsTop() {
       const optionsSetup = this.optionsSetup;
       const series = this.options.series;
-      if (series[0].type == "bar") {
+      if (series[0].type === "bar") {
         series[0].barGap = optionsSetup.barGap + "%";
         series[0].barMinHeight = optionsSetup.minHeight;
         series[0].label = {
@@ -465,7 +466,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.refreshTime);
     },
@@ -520,7 +521,7 @@ export default {
           this.options.xAxis.axisLabel = axisLabel;
         }
       }
-      if (series[0].type == "bar") {
+      if (series[0].type === "bar") {
         series[0].data = data;
       }
     },
@@ -589,7 +590,7 @@ export default {
         }
       }
       const series = this.options.series;
-      if (series[0].type == "bar") {
+      if (series[0].type === "bar") {
         series[0].data = val.series[0].data;
       }
     },

+ 7 - 6
report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarLineSingleChart.vue

@@ -226,6 +226,7 @@ export default {
       const yAxis = [
         {
           max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+          min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
           type: "value",
           scale: optionsSetup.scaleY,
           // 均分
@@ -345,7 +346,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -378,7 +379,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },
@@ -406,7 +407,7 @@ export default {
       this.options.xAxis.data = axis;
       // series
       for (const i in series) {
-        if (series[i].type == "bar") {
+        if (series[i].type === "bar") {
           series[i].name = legendName[i];
           series[i].type = "bar";
           series[i].barGap = optionsSetup.barGap + "%";
@@ -441,7 +442,7 @@ export default {
               barBorderRadius: optionsSetup.radius,
             },
           };
-        } else if (series[i].type == "line") {
+        } else if (series[i].type === "line") {
           series[i].name = legendName[i];
           series[i].type = "line";
           series[i].data = line;
@@ -537,7 +538,7 @@ export default {
       for (const i in val.series) {
         legendName.push(val.series[i].name);
         const obj = {};
-        if (val.series[i].type == "bar") {
+        if (val.series[i].type === "bar") {
           obj.name = val.series[i].name;
           obj.type = "bar";
           obj.barGap = optionsSetup.barGap + "%";
@@ -573,7 +574,7 @@ export default {
           };
           obj.data = val.series[i].data;
           series.push(obj);
-        } else if (val.series[i].type == "line") {
+        } else if (val.series[i].type === "line") {
           obj.name = val.series[i].name;
           obj.type = "line";
           obj.symbol = optionsSetup.symbol;

+ 7 - 5
report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarLineStackChart.vue

@@ -237,6 +237,7 @@ export default {
       const yAxis = [
         {
           max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
+          min: optionsSetup.minYLeft !== "" ? optionsSetup.minYLeft : null,
           type: "value",
           scale: optionsSetup.scaleYLeft,
           // 均分
@@ -294,6 +295,7 @@ export default {
         },
         {
           max: optionsSetup.maxYRight !== "" ? optionsSetup.maxYRight : null,
+          min: optionsSetup.minYRight !== "" ? optionsSetup.minYRight : null,
           type: "value",
           scale: optionsSetup.scaleYRight,
           // 均分
@@ -414,7 +416,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -431,7 +433,7 @@ export default {
     getStackStyle() {
       const optionsSetup = this.optionsSetup;
       let style = "";
-      if (optionsSetup.stackStyle == "upDown") {
+      if (optionsSetup.stackStyle === "upDown") {
         style = "total";
       }
       return style;
@@ -458,7 +460,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData, optionsSetup)
         : this.dynamicDataFn(
           optionsData.dynamicData,
@@ -478,7 +480,7 @@ export default {
       const typeData = new Array(xAxisList.length).fill(0);
       for (const i in xAxisList) {
         for (const j in data) {
-          if (data[j].name == yAxis && data[j].axis == xAxisList[i]) {
+          if (data[j].name === yAxis && data[j].axis === xAxisList[i]) {
             typeData[i] = data[j][type];
           }
         }
@@ -784,7 +786,7 @@ export default {
     getDynamicSeriesData(legend, series, type) {
       let data = [];
       for (const i in series) {
-        if (series[i].name == legend && series[i].type == type) {
+        if (series[i].name === legend && series[i].type === type) {
           data = series[i].data;
         }
       }

+ 7 - 6
report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetBarlinechart.vue

@@ -244,6 +244,7 @@ export default {
       const yAxis = [
         {
           max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
+          min: optionsSetup.minYLeft !== "" ? optionsSetup.minYLeft : null,
           type: "value",
           scale: optionsSetup.scaleYLeft,
           // 均分
@@ -364,7 +365,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const series = this.options.series;
       for (const key in series) {
-        if (series[key].type == "line") {
+        if (series[key].type === "line") {
           series[key].symbol = optionsSetup.symbol;
           series[key].showSymbol = optionsSetup.markPoint;
           series[key].symbolSize = optionsSetup.pointSize;
@@ -402,7 +403,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const series = this.options.series;
       for (const key in series) {
-        if (series[key].type == "bar") {
+        if (series[key].type === "bar") {
           series[key].label = {
             show: optionsSetup.isShowBar,
             position: optionsSetup.fontPositionBar,
@@ -493,7 +494,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -538,7 +539,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },
@@ -556,7 +557,7 @@ export default {
       this.options.xAxis.data = axis;
       // series
       for (const i in series) {
-        if (series[i].type == "bar") {
+        if (series[i].type === "bar") {
           series[i].data = bar;
         } else {
           series[i].data = line;
@@ -622,7 +623,7 @@ export default {
       const legendName = [];
       for (const i in series) {
         for (const j in val.series) {
-          if (series[i].type == val.series[j].type) {
+          if (series[i].type === val.series[j].type) {
             series[i].data = val.series[j].data;
             legendName.push(val.series[j].name);
           }

+ 8 - 7
report-ui/src/views/bigscreenDesigner/designer/widget/barline/widgetMoreBarLineChart.vue

@@ -305,6 +305,7 @@ export default {
       const yAxis = [
         {
           max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
+          min: optionsSetup.minYLeft !== "" ? optionsSetup.minYLeft : null,
           type: "value",
           scale: optionsSetup.scaleYLeft,
           // 均分
@@ -481,7 +482,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -498,7 +499,7 @@ export default {
     getStackStyle() {
       const optionsSetup = this.optionsSetup;
       let style = "";
-      if (optionsSetup.stackStyle == "upDown") {
+      if (optionsSetup.stackStyle === "upDown") {
         style = "total";
       }
       return style;
@@ -523,7 +524,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },
@@ -554,7 +555,7 @@ export default {
       this.options.xAxis.data = axis;
       // series
       for (const i in series) {
-        if (series[i].type == "bar") {
+        if (series[i].type === "bar") {
           series[i].name = legendName[i];
           series[i].type = "bar";
           series[i].barGap = optionsSetup.barGap + "%";
@@ -585,7 +586,7 @@ export default {
           series[i].barWidth = optionsSetup.maxWidth;
           series[i].itemStyle.normal["barBorderRadius"] = optionsSetup.radius;
           series[i].itemStyle.normal["color"] = arrColor[i];
-        } else if (series[i].type == "line") {
+        } else if (series[i].type === "line") {
           series[i].name = legendName[i];
           series[i].type = "line";
           series[i].yAxisIndex = 1;
@@ -690,7 +691,7 @@ export default {
       for (const i in val.series) {
         legendName.push(val.series[i].name);
         const obj = {};
-        if (val.series[i].type == "bar") {
+        if (val.series[i].type === "bar") {
           obj.name = val.series[i].name;
           obj.type = val.series[i].type;
           obj.barGap = optionsSetup.barGap + "%";
@@ -727,7 +728,7 @@ export default {
           };
           obj.data = val.series[i].data;
           series.push(obj);
-        } else if (val.series[i].type == "line") {
+        } else if (val.series[i].type === "line") {
           obj.name = val.series[i].name;
           obj.type = val.series[i].type;
           obj.yAxisIndex = 1;

+ 2 - 1
report-ui/src/views/bigscreenDesigner/designer/widget/heatmap/widgetHeatmap.vue

@@ -249,6 +249,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "category",
         scale: optionsSetup.scale,
         // 均分
@@ -408,7 +409,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },

+ 9 - 7
report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue

@@ -406,6 +406,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxYTop !== "" ? optionsSetup.maxYTop : null,
+        min: optionsSetup.minYTop !== "" ? optionsSetup.minYTop : null,
         gridIndex: 0,
         splitNumber: optionsSetup.splitNumberYTop,
         show: optionsSetup.isShowYTop,
@@ -468,6 +469,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxYBottom !== "" ? optionsSetup.maxYBottom : null,
+        min: optionsSetup.minYBottom !== "" ? optionsSetup.minYBottom : null,
         gridIndex: 1,
         splitNumber: optionsSetup.splitNumberYBottom,
         show: optionsSetup.isShowYBottom,
@@ -545,7 +547,7 @@ export default {
         }
       }
       // 数值
-      if (series[0].type == "line") {
+      if (series[0].type === "line") {
         series[0].label = {
           position: "top",
           distance: optionsSetup.fontDistance,
@@ -574,7 +576,7 @@ export default {
     setOptionsTooltip() {
       const optionsSetup = this.optionsSetup;
       let tooltip = {};
-      if (optionsSetup.tipsType == "line") {
+      if (optionsSetup.tipsType === "line") {
         tooltip = {
           show: optionsSetup.tipsShow,
           trigger: "axis",
@@ -655,7 +657,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -711,7 +713,7 @@ export default {
         });
       }
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData, optionsSetup)
         : this.dynamicDataFn(
           optionsData.dynamicData,
@@ -744,8 +746,8 @@ export default {
         const data = new Array(xAxisList.length).fill(0);
         for (const j in xAxisList) {
           for (const k in val) {
-            if (val[k].name == yAxisList[i]) {
-              if (val[k].axis == xAxisList[j]) {
+            if (val[k].name === yAxisList[i]) {
+              if (val[k].axis === xAxisList[j]) {
                 data[j] = val[k].data;
               }
             }
@@ -788,7 +790,7 @@ export default {
       const legendName = [];
       this.options.xAxis[0]["data"] = val.xAxis;
       this.options.xAxis[1]["data"] = val.xAxis;
-      if (val.series[0].type == "line") {
+      if (val.series[0].type === "line") {
         this.options.series[0]["name"] = val.series[0].name;
         this.options.series[0]["data"] = val.series[0].data;
         this.options.series[1]["name"] = val.series[1].name;

+ 1 - 0
report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue

@@ -202,6 +202,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分

+ 6 - 5
report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue

@@ -11,7 +11,7 @@ import {
 } from "@/views/bigscreenDesigner/designer/linkageLogic";
 
 export default {
-  name: "WidgetLinechart",
+  name: "WidgetLineChart",
   components: {},
   props: {
     value: Object,
@@ -215,6 +215,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分
@@ -335,7 +336,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -366,7 +367,7 @@ export default {
           }
         });
       }
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
     },
@@ -391,7 +392,7 @@ export default {
       this.options.xAxis.data = axis;
       // series
       for (const i in series) {
-        if (series[i].type == "line") {
+        if (series[i].type === "line") {
           series[i].symbol = optionsSetup.symbol;
           series[i].showSymbol = optionsSetup.markPoint;
           series[i].symbolSize = optionsSetup.pointSize;
@@ -492,7 +493,7 @@ export default {
       for (const i in val.series) {
         legendName.push(val.series[i].name);
         const obj = {};
-        if (val.series[i].type == 'line') {
+        if (val.series[i].type === 'line') {
           obj.type = 'line';
           obj.symbol = optionsSetup.symbol;
           obj.showSymbol = optionsSetup.markPoint;

+ 9 - 8
report-ui/src/views/bigscreenDesigner/designer/widget/scatter/widgetScatter.vue

@@ -193,6 +193,7 @@ export default {
       const optionsSetup = this.optionsSetup;
       const yAxis = {
         max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
+        min: optionsSetup.minY !== "" ? optionsSetup.minY : null,
         type: "value",
         scale: optionsSetup.scale,
         // 均分
@@ -296,7 +297,7 @@ export default {
       const series = this.options.series;
       const legendName = optionsSetup.legendName;
       // 图例没有手动写则显示原值,写了则显示新值
-      if (null == legendName || legendName == "") {
+      if (null == legendName || legendName === "") {
         for (let i = 0; i < name.length; i++) {
           series[i].name = name[i];
         }
@@ -330,7 +331,7 @@ export default {
       }
         // this.options.series =  optionsData.series
       // 联动接收者逻辑结束
-      optionsData.dataType == "staticData"
+      optionsData.dataType === "staticData"
         ? this.staticDataFn(optionsData.staticData)
         : this.dynamicDataFn(optionsData.refreshTime);
     },
@@ -353,7 +354,7 @@ export default {
       const legendName = [];
       legendName.push("scatter");
       for (const i in series) {
-        if (series[i].type == "scatter") {
+        if (series[i].type === "scatter") {
           series[i].type = "scatter";
           series[i].symbol = optionsSetup.symbol;
           series[i].symbolSize = optionsSetup.pointSize;
@@ -362,14 +363,14 @@ export default {
             position: optionsSetup.fontPosition,
             distance: optionsSetup.fontDistance,
             fontSize: optionsSetup.fontSize,
-            color: optionsSetup.dataColor == '' ? "inherit" : optionsSetup.dataColor,
+            color: optionsSetup.dataColor === '' ? "inherit" : optionsSetup.dataColor,
             fontWeight: optionsSetup.fontWeight,
             formatter: !!optionsSetup.percentSign ? '{c}%' : '{c}',
             fontStyle: optionsSetup.fontStyle,
             fontFamily: optionsSetup.fontFamily,
           };
           // 获取颜色样式
-          if (optionsSetup.colorStyle == 'same') {
+          if (optionsSetup.colorStyle === 'same') {
             series[i].itemStyle = {
               normal: {
                 color: arrColor[i],
@@ -462,7 +463,7 @@ export default {
       for (const i in val.series) {
         legendName.push(val.series[i].name);
         const obj = {};
-        if (val.series[i].type == "scatter") {
+        if (val.series[i].type === "scatter") {
           obj.type = "scatter";
           obj.symbol = optionsSetup.symbol;
           obj.symbolSize = optionsSetup.pointSize;
@@ -471,14 +472,14 @@ export default {
             position: optionsSetup.fontPosition,
             distance: optionsSetup.fontDistance,
             fontSize: optionsSetup.fontSize,
-            color: optionsSetup.dataColor == '' ? "inherit" : optionsSetup.dataColor,
+            color: optionsSetup.dataColor === '' ? "inherit" : optionsSetup.dataColor,
             fontWeight: optionsSetup.fontWeight,
             formatter: !!optionsSetup.percentSign ? '{c}%' : '{c}',
             fontStyle: optionsSetup.fontStyle,
             fontFamily: optionsSetup.fontFamily,
           };
           // 获取颜色样式
-          if (optionsSetup.colorStyle == 'same') {
+          if (optionsSetup.colorStyle === 'same') {
             obj.itemStyle = {
               normal: {
                 color: arrColor[i],