三会一课

This commit is contained in:
liuye
2023-11-08 14:09:18 +08:00
parent 3ac80e3bbb
commit 5718b5bfa2

View File

@@ -495,12 +495,9 @@ export default {
//保存提交表单验证 //保存提交表单验证
confirm(status) { confirm(status) {
console.log(444)
if (status == '1') { if (status == '1') {
console.log(222)
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
console.log(333)
this.addUpdate(status); this.addUpdate(status);
} }
}) })
@@ -521,7 +518,6 @@ export default {
//新增 //新增
addUpdate(status) { addUpdate(status) {
console.log(123)
let hasHost = false; let hasHost = false;
this.form.participantList.map(e => { this.form.participantList.map(e => {
if (e.isHost) { if (e.isHost) {
@@ -533,7 +529,6 @@ export default {
} }
}) })
console.log(hasHost)
if (!hasHost && status == '1') { if (!hasHost && status == '1') {
return this.$message.error("请选择主持人"); return this.$message.error("请选择主持人");
} }