mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
选择考试加校验
This commit is contained in:
@@ -197,7 +197,7 @@
|
|||||||
<div class="signbox"></div>
|
<div class="signbox"></div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<button class="xkbtn" @click="showAssessment">选择评估</button>
|
<button class="xkbtn" @click="showAssessment">选择评估</button>
|
||||||
<div v-if="(assessmentId !== '0')">
|
<div v-if="(assessmentId > 0)">
|
||||||
<a-tag closable @close="removePG" color="processing">
|
<a-tag closable @close="removePG" color="processing">
|
||||||
<span style="font-size: 14px; line-height: 33px"
|
<span style="font-size: 14px; line-height: 33px"
|
||||||
>删除评估</span
|
>删除评估</span
|
||||||
@@ -591,10 +591,11 @@ export default {
|
|||||||
};
|
};
|
||||||
const showAssessment = () => {
|
const showAssessment = () => {
|
||||||
state.assessmentVisible = true;
|
state.assessmentVisible = true;
|
||||||
console.log("hshs======", state.assessmentVisible);
|
|
||||||
};
|
};
|
||||||
//创建直播
|
//创建直播
|
||||||
const updateLiveBroadcast = () => {
|
const updateLiveBroadcast = () => {
|
||||||
|
console.log("hshs======", state.memberValue);
|
||||||
if (!state.inputV1) {
|
if (!state.inputV1) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
return message.warning("请输入直播名称");
|
return message.warning("请输入直播名称");
|
||||||
@@ -607,6 +608,14 @@ export default {
|
|||||||
message.destroy();
|
message.destroy();
|
||||||
return message.warning("请输入直播时长");
|
return message.warning("请输入直播时长");
|
||||||
}
|
}
|
||||||
|
if (state.memberValue.value=="") {
|
||||||
|
message.destroy();
|
||||||
|
return message.warning("请选择授课教师");
|
||||||
|
}
|
||||||
|
if (!state.imageUrl) {
|
||||||
|
message.destroy();
|
||||||
|
return message.warning("请上传封面");
|
||||||
|
}
|
||||||
const regular = /^[+]{0,1}(\d+)$/;
|
const regular = /^[+]{0,1}(\d+)$/;
|
||||||
if (!regular.test(state.inputV2)) {
|
if (!regular.test(state.inputV2)) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
|
|||||||
@@ -516,6 +516,7 @@ export default {
|
|||||||
return Promise.reject("请选择时间");
|
return Promise.reject("请选择时间");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let checkExaminationDuration = async (_rule, value) => {
|
let checkExaminationDuration = async (_rule, value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return Promise.reject("请输入考试时长");
|
return Promise.reject("请输入考试时长");
|
||||||
|
|||||||
Reference in New Issue
Block a user