lzhe
2024-06-21 dd0cc539598b599240ac3d95a74170544ed5741c
src/views/home/widgets/components/mdcRunning.vue
@@ -10,7 +10,7 @@
   <el-card shadow="hover" header="设备运行时长排名" style="height: 100%;" class="running">
      <div class="running-icon">
         <el-icon><RefreshLeft /></el-icon>
         <el-icon @click="isSearch = true"><Filter /></el-icon>
         <el-icon @click="showSearch"><Filter /></el-icon>
      </div>
      <div class="no-list">设备运行时长{{timeLevel}}小时内前{{top}}名</div>
      <div :id="'running'" style="height:160px;"></div>
@@ -145,8 +145,14 @@
         }
      },
      methods: {
         showSearch() {
            this.search.timeLevel = this.timeLevel;
            this.search.top = this.top;
            this.isSearch = true;
         },
         serchSubmit() {
            this.apiResource = this.search;
            this.getRunData();
         },
         setCurrentKey(v) {
            if (this.firstWorkKey) return
@@ -213,6 +219,7 @@
         getRunData() {
            this.$HTTP.post(`/api/blade-visual/status/running-top`,this.apiResource).then(res=> {
               if(res.code == 200) {
                  this.isSearch = false;
                  var recordDom = document.getElementById('running');
                  if(res.data.categories.length == 0) return;
                  this.option.yAxis.data = res.data.categories;