| | |
| | | let dataStart = stertDate.replace(/:/g,''); |
| | | if(this.editStart != startOne){ |
| | | if(startOne < dataStart) { |
| | | that.$message.warning("开始时间不能小于当前时间") |
| | | // that.$message.warning("开始时间不能小于当前时间") |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"开始时间不能小于当前时间" |
| | | }); |
| | | that.confirmLoading = false |
| | | }else{ |
| | | if(startOne>=endOne){ |
| | | that.$message.warning("结束时间不能小于开始时间"); |
| | | // that.$message.warning("结束时间不能小于开始时间"); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"结束时间不能小于当前时间" |
| | | }); |
| | | // console.log(this.model) |
| | | // this.endTime = '' |
| | | that.confirmLoading = false |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.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 |
| | |
| | | } |
| | | }else{ |
| | | if(startOne>=endOne){ |
| | | that.$message.warning("结束时间不能小于开始时间"); |
| | | // that.$message.warning("结束时间不能小于开始时间"); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"结束时间不能小于开始时间" |
| | | }); |
| | | // console.log(this.model) |
| | | // this.endTime = '' |
| | | that.confirmLoading = false |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.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 |