mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
添加面授任务
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: row">
|
||||
<button
|
||||
style="width: 100px"
|
||||
@@ -77,7 +78,7 @@
|
||||
</div>
|
||||
<div class="main_item">
|
||||
<div class="btnbox">
|
||||
<a-form-item has-feedback label="选择试卷" name="choosedTest">
|
||||
<a-form-item has-feedback label="选择考试" name="choosedTest">
|
||||
<a-button
|
||||
type="primary"
|
||||
style="width: 100px; margin-left: 35px"
|
||||
@@ -85,7 +86,7 @@
|
||||
@click.prevent
|
||||
@click="selectTest()"
|
||||
>
|
||||
选择试卷
|
||||
选择考试
|
||||
</a-button>
|
||||
<!-- <a-dropdown>
|
||||
<a-button
|
||||
@@ -385,7 +386,7 @@ export default {
|
||||
examinationName: "",
|
||||
examinationDuration: "",
|
||||
examinationLimit: "",
|
||||
passLine: 60,
|
||||
passLine:null,
|
||||
examinationEndTime: "",
|
||||
examinationExplain: "",
|
||||
questionArrangement: 1,
|
||||
@@ -432,11 +433,12 @@ export default {
|
||||
return Promise.reject("请输入考试说明");
|
||||
}
|
||||
};
|
||||
/*
|
||||
let checkChoosedTest = async (_rule, value) => {
|
||||
if (!value) {
|
||||
return Promise.reject("请选择考试");
|
||||
}
|
||||
};
|
||||
};*/
|
||||
let checkChoosedTime = async (_rule, value) => {
|
||||
if (!value.length) {
|
||||
return Promise.reject("请选择时间");
|
||||
@@ -467,11 +469,7 @@ export default {
|
||||
return Promise.reject("请输入作业名称");
|
||||
}
|
||||
};
|
||||
let checkPassLine = async (_rule, value) => {
|
||||
if (!value) {
|
||||
return Promise.reject("请输入及格线");
|
||||
}
|
||||
};
|
||||
|
||||
let checkQuestionArrangement = async (_rule, value) => {
|
||||
if (!value) {
|
||||
return Promise.reject("请输入作业名称");
|
||||
@@ -491,13 +489,14 @@ export default {
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
/*
|
||||
choosedTest: [
|
||||
{
|
||||
required: true,
|
||||
validator: checkChoosedTest,
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
],*/
|
||||
choosedTime: [
|
||||
{
|
||||
required: true,
|
||||
@@ -537,13 +536,7 @@ export default {
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
passLine: [
|
||||
{
|
||||
required: true,
|
||||
validator: checkPassLine,
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
|
||||
questionArrangement: [
|
||||
{
|
||||
validator: checkQuestionArrangement,
|
||||
@@ -598,7 +591,7 @@ export default {
|
||||
};
|
||||
|
||||
const queryTest = () => {
|
||||
state.addLoading = true;
|
||||
// state.addLoading = true;
|
||||
queryExaminationDetailById({ examinationId: props.EditTestId })
|
||||
.then((res) => {
|
||||
formState.examinationName = res.data.data.examinationName;
|
||||
@@ -631,7 +624,7 @@ export default {
|
||||
});
|
||||
};
|
||||
const updateTest = () => {
|
||||
state.addLoading = true;
|
||||
//state.addLoading = true;
|
||||
let obj = {
|
||||
examinationDuration: formState.examinationDuration,
|
||||
examinationEndTime: dayjs(formState.choosedTime[1]).format(
|
||||
@@ -642,7 +635,7 @@ export default {
|
||||
examinationLimit: formState.examinationLimit,
|
||||
examinationName: formState.examinationName,
|
||||
examinationPaperId: 0,
|
||||
examinationPaperName: formState.choosedTest,
|
||||
// examinationPaperName: formState.choosedTest,
|
||||
examinationStartTime: dayjs(formState.choosedTime[0]).format(
|
||||
"YYYY-MM-DD"
|
||||
),
|
||||
@@ -877,7 +870,7 @@ export default {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
background: #388be1;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-right: 8px;
|
||||
@@ -924,7 +917,7 @@ export default {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
background: #388be1;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-right: 16px 8px 32px 0;
|
||||
|
||||
Reference in New Issue
Block a user