三会一课
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-card>
|
<ai-card>
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form :model="form" label-width="100px" ref="basicForm" :rules="fromRules" size="small">
|
<el-form :model="form" label-width="100px" ref="form" :rules="fromRules" size="small">
|
||||||
<ai-title title="基本信息" isShowBottomBorder/>
|
<ai-title title="基本信息" isShowBottomBorder/>
|
||||||
<el-form-item label="会议分类:" prop="meetingClassification">
|
<el-form-item label="会议分类:" prop="meetingClassification">
|
||||||
<el-checkbox-group v-model="form.meetingClassification">
|
<el-checkbox-group v-model="form.meetingClassification">
|
||||||
@@ -322,6 +322,7 @@ export default {
|
|||||||
// } else {
|
// } else {
|
||||||
// callback(new Error('开始时间要大于当前时间'));
|
// callback(new Error('开始时间要大于当前时间'));
|
||||||
// }
|
// }
|
||||||
|
callback()
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('请填写开始时间'));
|
callback(new Error('请填写开始时间'));
|
||||||
}
|
}
|
||||||
@@ -494,12 +495,15 @@ export default {
|
|||||||
|
|
||||||
//保存提交表单验证
|
//保存提交表单验证
|
||||||
confirm(status) {
|
confirm(status) {
|
||||||
|
console.log(444)
|
||||||
if (status == '1') {
|
if (status == '1') {
|
||||||
this.$refs.basicForm.validate(validate => {
|
console.log(222)
|
||||||
if (validate) {
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
console.log(333)
|
||||||
this.addUpdate(status);
|
this.addUpdate(status);
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
} else if (status == '0') {
|
} else if (status == '0') {
|
||||||
if (this.form.meetingAgenda == "") {
|
if (this.form.meetingAgenda == "") {
|
||||||
return this.$message.error("请填写会议名称");
|
return this.$message.error("请填写会议名称");
|
||||||
@@ -517,6 +521,7 @@ 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) {
|
||||||
@@ -528,6 +533,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log(hasHost)
|
||||||
if (!hasHost && status == '1') {
|
if (!hasHost && status == '1') {
|
||||||
return this.$message.error("请选择主持人");
|
return this.$message.error("请选择主持人");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user