| | |
| | | } |
| | | //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 |
| | |
| | | return |
| | | } |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | this.$message.warning('请选择一条记录!'); |
| | | // this.$message.warning('请选择一条记录!'); |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"请选择一条记录" |
| | | }); |
| | | return; |
| | | } else { |
| | | var ids = ""; |
| | |
| | | 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; |
| | |
| | | // 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 = '新增层级' |