| | |
| | | formData.isUse = formData.isUse == true || formData.isUse == undefined ? "1" : "2" |
| | | putAction(this.url.add, formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | // that.$message.success(res.message) |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | // that.$message.warning(res.message) |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |