zhuzhuanzhuan
2023-08-10 9b3e7c3c47dc27e531a7b954aa2b3ba500c84b78
src/views/mdc/base/modules/deviceManager/DeviceList.vue
@@ -244,7 +244,11 @@
            }
            //update-end---author:zhangyafei    Date:20201118  for:适配不分页的数据列表------------
          }else{
            this.$message.warning(res.message)
            // this.$message.warning(res.message)
            this.$notification.warning({
              message:'消息',
              description:res.message
            });
          }
        }).finally(() => {
          this.loading = false
@@ -256,7 +260,11 @@
          return
        }
        if (this.selectedRowKeys.length <= 0) {
          this.$message.warning('请选择一条记录!');
          // this.$message.warning('请选择一条记录!');
          this.$notification.warning({
            message:'消息',
            description:"请选择一条记录"
          });
          return;
        } else {
          var ids = "";
@@ -273,12 +281,20 @@
                if (res.success) {
                  //重新计算分页问题
                  that.reCalculatePage(that.selectedRowKeys.length)
                  that.$message.success(res.message);
                  // that.$message.success(res.message);
                  that.$notification.warning({
                    message:'消息',
                    description:res.message
                  });
                  that.loadData();
                  that.onClearSelected();
                  that.$emit('delectTree','')
                } else {
                  that.$message.warning(res.message);
                  // that.$message.warning(res.message);
                  that.$notification.warning({
                    message:'消息',
                    description:res.message
                  });
                }
              }).finally(() => {
                that.loading = false;
@@ -322,21 +338,32 @@
          // console.log(this.node);
          if(this.node.entity.equipmentId != null){
            // alert('不可在此层级下增加设备')
            this.$message.warning('不可在此层级下增加设备!')
            // this.$message.warning('不可在此层级下增加设备!')
            this.$notification.warning({
              message:'消息',
              description:"不可在此层级下增加设备!"
            });
          }else{
            this.$refs.modalForm.add(this.node)
            this.$refs.modalForm.title = '新增设备'
            this.$refs.modalForm.disableSubmit = false
          }
        } else {
          this.$message.warning('请选择所属层级!')
          // this.$message.warning('请选择所属层级!')
          this.$notification.warning({
            message:'消息',
            description:'请选择所属层级!'
          });
        }
      },
      handleAddTier() {
        if (this.node && JSON.stringify(this.node) != '{}') {
          if(this.node.entity.equipmentId != null){
            // alert('不可在此层级下增加层级')
            this.$message.warning('不可在此层级下增加层级!')
            this.$notification.warning({
              message:'消息',
              description:"不可在此层级下增加设备!"
            });
          }else{
            this.$refs.tierModalForm.add(this.node)
            this.$refs.tierModalForm.title = '新增层级'