From 0a03169b9b9758a926dec35735e989f52e4d217f Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期一, 25 九月 2023 17:46:46 +0800 Subject: [PATCH] 维修休班管理页面按照新需求优化功能 1、编辑机床维修时间的日期选择器选择时间时取消秒针选择以及将分钟选择步距调整为5分钟 2、点击左侧树组件中的具体设备名称后点击新增按钮时可将树组件选择的设备反填到设备组选项中(个人优化将已选择的设备组反选在选择设备弹窗中的多选框中) 3、编辑机床维修时间的日期选择器的可选时间修改为最早可以选到当日前一天,目前为最早选到当日 --- src/views/mdc/base/ProductionManager.vue | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/ProductionManager.vue b/src/views/mdc/base/ProductionManager.vue index df6690b..c1ea8b7 100644 --- a/src/views/mdc/base/ProductionManager.vue +++ b/src/views/mdc/base/ProductionManager.vue @@ -293,7 +293,11 @@ batchDel: function () { console.log(this.checkedKeys) if (this.checkedKeys.length <= 0) { - this.$message.warning('璇烽�夋嫨涓�鏉¤褰曪紒') + // this.$message.warning('璇烽�夋嫨涓�鏉¤褰曪紒') + this.$notification.warning({ + message:'娑堟伅', + description:"璇烽�夋嫨涓�鏉¤褰�" + }); } else { var ids = '' for (var a = 0; a < this.checkedKeys.length; a++) { @@ -306,11 +310,19 @@ onOk: function () { deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => { if (res.success) { - that.$message.success(res.message) + // that.$message.success(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); that.loadTree() that.onClearSelected() } else { - that.$message.warning(res.message) + // that.$message.warning(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }) } @@ -328,7 +340,11 @@ that.departTree.push(temp) } } else { - that.$message.warning(res.message) + // that.$message.warning(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }) } else { @@ -400,16 +416,28 @@ this.$refs.form.validate(valid => { if (valid) { if (!this.currSelected.id) { - this.$message.warning('璇风偣鍑婚�夋嫨瑕佷慨鏀硅溅闂�!') + // this.$message.warning('璇风偣鍑婚�夋嫨瑕佷慨鏀硅溅闂�!') + this.$notification.warning({ + message:'娑堟伅', + description:'璇风偣鍑婚�夋嫨瑕佷慨鏀硅溅闂�!' + }); return } httpAction(this.url.edit, this.currSelected, 'put').then((res) => { if (res.success) { - this.$message.success('淇濆瓨鎴愬姛!') + // this.$message.success('淇濆瓨鎴愬姛!') + this.$notification.warning({ + message:'娑堟伅', + description:"淇濆瓨鎴愬姛" + }); this.loadTree() } else { - this.$message.error(res.message) + // this.$message.error(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }) } -- Gitblit v1.9.3