Compare commits

..

No commits in common. "e9c2917c779ed21dd0df086c80507c7c9fe8a196" and "028c14a174e2e0e47d277a0f97b411c2aeddac14" have entirely different histories.

View File

@ -125,15 +125,13 @@ export default {
addButtonShow: '', addButtonShow: '',
planArr: [], // planArr: [], //
rules: { rules: {
name: [{ required: true, message: '请输入班组名称', trigger: 'blur' }],
startDay: [ startDay: [
{ required: true, message: '请选择排班开始时间', trigger: 'change' }, { required: true, message: '请选择排班开始时间', trigger: 'change' },
], ],
endDay: [ endDay: [
{ required: true, message: '请选择排班结束时间', trigger: 'change' }, { required: true, message: '请选择排班结束时间', trigger: 'change' },
], ],
planId:[
{ required: true, message: '请选择排班计划', trigger: 'change' },
]
}, },
}; };
}, },
@ -233,10 +231,6 @@ export default {
}; };
list.push(obj); list.push(obj);
}); });
if (list.length === 0) {
this.$modal.msgError('班组上班顺序不能为空');
return false;
}
this.form.list = list; this.form.list = list;
updateGroupRule({ ...this.form }).then((res) => { updateGroupRule({ ...this.form }).then((res) => {
this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
@ -252,10 +246,6 @@ export default {
}; };
list.push(obj); list.push(obj);
}); });
if (list.length === 0) {
this.$modal.msgError('班组上班顺序不能为空');
return false;
}
this.form.list = list; this.form.list = list;
createGroupRule({ ...this.form }).then((res) => { createGroupRule({ ...this.form }).then((res) => {
this.$modal.msgSuccess('操作成功'); this.$modal.msgSuccess('操作成功');
@ -278,8 +268,13 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
} }
.min-title::before { .min-title::before {
content: "*"; content: '';
color: #ff5454; display: inline-block;
margin-right: 4px; vertical-align: middle;
width: 6px;
height: 6px;
border-radius: 50%;
margin: auto 5px;
background-color: #0b58ff;
} }
</style> </style>