浏览代码

参数格式修改

sunyadv 5 年之前
父节点
当前提交
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) {
                 this.operateDialogVisible = true;
                 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;
             },
 

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

@@ -441,7 +441,7 @@
             openEnable(index) {
                 this.operateDialogVisible = true;
                 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;
             },