From 84dbd8d5b28f84a032e77db1b5285a840b8760c7 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 3 Jan 2025 14:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=8F=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/schedulingRuleConfigAdd.vue | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue b/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue index c8050a45..7120db2a 100644 --- a/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue +++ b/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue @@ -125,13 +125,15 @@ export default { addButtonShow: '', planArr: [], //排班计划数组 rules: { - name: [{ required: true, message: '请输入班组名称', trigger: 'blur' }], startDay: [ { required: true, message: '请选择排班开始时间', trigger: 'change' }, ], endDay: [ { required: true, message: '请选择排班结束时间', trigger: 'change' }, ], + planId:[ + { required: true, message: '请选择排班计划', trigger: 'change' }, + ] }, }; }, @@ -231,6 +233,10 @@ export default { }; list.push(obj); }); + if (list.length === 0) { + this.$modal.msgError('班组上班顺序不能为空'); + return false; + } this.form.list = list; updateGroupRule({ ...this.form }).then((res) => { this.$modal.msgSuccess('操作成功'); @@ -246,6 +252,10 @@ export default { }; list.push(obj); }); + if (list.length === 0) { + this.$modal.msgError('班组上班顺序不能为空'); + return false; + } this.form.list = list; createGroupRule({ ...this.form }).then((res) => { this.$modal.msgSuccess('操作成功'); @@ -268,13 +278,8 @@ export default { margin-bottom: 5px; } .min-title::before { - content: ''; - display: inline-block; - vertical-align: middle; - width: 6px; - height: 6px; - border-radius: 50%; - margin: auto 5px; - background-color: #0b58ff; + content: "*"; + color: #ff5454; + margin-right: 4px; } -- 2.45.2