| | |
| | | // } |
| | | //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 |
| | |
| | | const that = this |
| | | // 触发表单验证 |
| | | this.form.validateFields((err, values) => { |
| | | console.log(values); |
| | | if (!err) { |
| | | // debugger |
| | | that.confirmLoading = true |
| | |
| | | let startTimeOne = startTime.replace(/:/g,''); |
| | | let endTimeOne = endTime.replace(/:/g,''); |
| | | if(startTimeOne>endTimeOne){ |
| | | that.$message.warning("非跨天班次结束时间不能小于等于开始时间!") |
| | | that.$message.success("保存失败") |
| | | // that.$message.warning("非跨天班次结束时间不能小于等于开始时间!") |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"非跨天班次结束时间不能小于等于开始时间!" |
| | | }); |
| | | // that.$message.success("保存失败") |
| | | that.$notification.error({ |
| | | message:'消息', |
| | | description:"保存失败!" |
| | | }); |
| | | that.close() |
| | | }else{ |
| | | formData.shiftSubStatus = 1 |
| | |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("保存成功") |
| | | // that.$message.success("保存成功") |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"保存成功" |
| | | }); |
| | | 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 |
| | |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("保存成功") |
| | | // that.$message.success |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"保存成功" |
| | | }); |
| | | 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 |