Browse Source

fix tipstype bug

haojianlong 5 years ago
parent
commit
b3f868c6c1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/point/dynamicdata/index.vue

+ 4 - 2
src/views/point/dynamicdata/index.vue

@@ -91,8 +91,7 @@ export default {
           if (res.Content.length) {
             for (let i = 0; i < res.Content.length; i++) {
               if (res.Content[i].Type == "最后一次执行时间") {
-                this.lastUpdateTime = res.Content[i].Content.substr(0,res.Content[i].Content.lastIndexOf('.'));
-                this.tipsType = 1;
+                this.lastUpdateTime = res.Content[i].Content.substr(0, res.Content[i].Content.lastIndexOf('.'));
               }
               if (res.Content[i].Type == "原始点位增删") {
                 this.tipsType = 2;
@@ -105,6 +104,9 @@ export default {
                 this.ruleDialogShow = true;
               }
             }
+            if (res.Content.length < 2) {
+              this.tipsType = 1;
+            }
           }
         }
       });