sunyadv 5 лет назад
Родитель
Сommit
caa78e4560
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      ys_int/src/views/base/allocation.vue
  2. 1 1
      ys_vue/src/views/base/allocation.vue

+ 1 - 1
ys_int/src/views/base/allocation.vue

@@ -470,7 +470,7 @@
             openEnable(index) {
             openEnable(index) {
                 this.operateDialogVisible = true;
                 this.operateDialogVisible = true;
                 this.issuedVal.alarmBattery = this.allocations[this.activeIndex].alarmBattery;
                 this.issuedVal.alarmBattery = this.allocations[this.activeIndex].alarmBattery;
-                this.issuedVal.alarmDegree = this.allocations[this.activeIndex].alarmDegree;
+                this.issuedVal.alarmDegree = parseInt(this.allocations[this.activeIndex].alarmDegree);
                 this.activeIndex = index;
                 this.activeIndex = index;
             },
             },
 
 

+ 1 - 1
ys_vue/src/views/base/allocation.vue

@@ -441,7 +441,7 @@
             openEnable(index) {
             openEnable(index) {
                 this.operateDialogVisible = true;
                 this.operateDialogVisible = true;
                 this.issuedVal.alarmBattery = this.allocations[this.activeIndex].alarmBattery;
                 this.issuedVal.alarmBattery = this.allocations[this.activeIndex].alarmBattery;
-                this.issuedVal.alarmDegree = this.allocations[this.activeIndex].alarmDegree;
+                this.issuedVal.alarmDegree = parseInt(this.allocations[this.activeIndex].alarmDegree);
                 this.activeIndex = index;
                 this.activeIndex = index;
             },
             },