Преглед на файлове

show: this.source.length > 8 ? true : false,

王通 преди 2 години
родител
ревизия
68d5851d16
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/views/datacenter.vue

+ 3 - 3
src/views/datacenter.vue

@@ -229,7 +229,7 @@ export default {
         },
         },
         dataZoom: [
         dataZoom: [
           {
           {
-            show: true,
+            show: this.source.length > 8 ? true : false,
             type: "slider",
             type: "slider",
             yAxisIndex: 0,
             yAxisIndex: 0,
             left: 0,
             left: 0,
@@ -345,9 +345,9 @@ export default {
             "icon",
             "icon",
             icon
             icon
           );
           );
-          
+
           that.$set(that.resourcesList[index], "bg", getIconBg(icon));
           that.$set(that.resourcesList[index], "bg", getIconBg(icon));
-          
+
           // if(index < 5){
           // if(index < 5){
           //   // that.fireControlViewPoint(data.type, 'undefined');
           //   // that.fireControlViewPoint(data.type, 'undefined');
           //   that.indentleftSetMarkers(data.type, '所有');
           //   that.indentleftSetMarkers(data.type, '所有');