浏览代码

设备监控弹窗条件判断修改

wy 1 年之前
父节点
当前提交
519361243e
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/equipment-monitoring/index.vue

+ 4 - 2
src/views/equipment-monitoring/index.vue

@@ -445,8 +445,10 @@ export default {
         powerNum: this.fromData.powerNum,
         powerType: this.setType,
       };
-      console.log(data, "data");
-      if (data.gunNo == "" || data.powerNum == "" || data.powerNum == "") {
+      if(data.powerType == 0){
+        data.powerNum = undefined
+      }
+      if (data.gunNo == "" || data.powerType == "" || data.powerType&&data.powerNum == "") {
         this.$message({
           type: "warning",
           message: "请填写完整!",