mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
考试 字段校验,没传考试id
This commit is contained in:
@@ -30,7 +30,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<button class="xkbtn" @click="showDrawerSelFacet">
|
<button class="xkbtn" @click="showDrawerSelFacet">
|
||||||
|
<!--
|
||||||
{{ chooseCourse == null ? "选择" : chooseCourseName }}面授课
|
{{ chooseCourse == null ? "选择" : chooseCourseName }}面授课
|
||||||
|
</button> -->
|
||||||
|
|
||||||
|
{{ chooseCourse == null ? "选择" : "重选" }}面授课
|
||||||
</button>
|
</button>
|
||||||
<div v-if="chooseCourse">
|
<div v-if="chooseCourse">
|
||||||
<a-tag closable color="processing" @close="logC">
|
<a-tag closable color="processing" @close="logC">
|
||||||
|
|||||||
@@ -114,26 +114,20 @@
|
|||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown> -->
|
</a-dropdown> -->
|
||||||
<span style="margin-left: 10px">
|
|
||||||
<a-tag
|
<a-tag v-if="paperName != ''" closable color="processing" @close="delTag">
|
||||||
class="tag-style"
|
<span style="font-size:14px;line-height: 33px;">删除考试</span>
|
||||||
v-if="paperName != ''"
|
</a-tag>
|
||||||
:closable="true"
|
|
||||||
@close="delTag"
|
|
||||||
>{{ paperName }}</a-tag
|
|
||||||
>
|
|
||||||
<!-- <a-tag
|
|
||||||
class="tag-style"
|
|
||||||
v-for="item in choosedTestList"
|
|
||||||
:closable="true"
|
|
||||||
@close="closeTag(item.key)"
|
|
||||||
:key="item.key"
|
|
||||||
>{{ item.value }}</a-tag
|
|
||||||
> -->
|
|
||||||
</span>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="main_item">
|
<div class="main_item">
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-form-item has-feedback label="考试时间" name="choosedTime">
|
<a-form-item has-feedback label="考试时间" name="choosedTime">
|
||||||
@@ -721,9 +715,13 @@ export default {
|
|||||||
scoringModel: formState.scoringModel,
|
scoringModel: formState.scoringModel,
|
||||||
showAnalysis: formState.showAnalysis,
|
showAnalysis: formState.showAnalysis,
|
||||||
showAnswers: formState.showAnswers,
|
showAnswers: formState.showAnswers,
|
||||||
examinationTestId: state.id,
|
examinationTestId: state.paperId,
|
||||||
examinationTestName: state.testName,
|
examinationTestName: state.paperName,
|
||||||
};
|
};
|
||||||
|
if(!(state.paperId >0)){
|
||||||
|
message.destroy();
|
||||||
|
return message.error("请选择考试");
|
||||||
|
}
|
||||||
if (props.edit) {
|
if (props.edit) {
|
||||||
// 编辑任务
|
// 编辑任务
|
||||||
updateExamination(obj)
|
updateExamination(obj)
|
||||||
@@ -732,6 +730,7 @@ export default {
|
|||||||
closeDrawer();
|
closeDrawer();
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
message.destroy();
|
||||||
message.error(`编辑失败`);
|
message.error(`编辑失败`);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -742,6 +741,7 @@ export default {
|
|||||||
closeDrawer();
|
closeDrawer();
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
message.destroy();
|
||||||
message.error(`创建失败`);
|
message.error(`创建失败`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -852,6 +852,7 @@ export default {
|
|||||||
state.id = value.id;
|
state.id = value.id;
|
||||||
state.testName = value.testName;
|
state.testName = value.testName;
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
formState,
|
formState,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
@@ -876,6 +877,7 @@ export default {
|
|||||||
chooseTest,
|
chooseTest,
|
||||||
closeTag,
|
closeTag,
|
||||||
getData,
|
getData,
|
||||||
|
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
<div class="mii_ipt">
|
<div class="mii_ipt">
|
||||||
<div class="ipt_name">课程状态:</div>
|
<div class="ipt_name">课程状态:</div>
|
||||||
<div class="select fitems">
|
<div class="select fitems">
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
<div class="mi_btns">
|
<div class="mi_btns">
|
||||||
<div class="btn btn1" @click="search">
|
<div class="btn btn1" @click="search">
|
||||||
@@ -134,7 +136,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
//import { ApiFilled } from "@ant-design/icons-vue";
|
//import { ApiFilled } from "@ant-design/icons-vue";
|
||||||
import {reactive, toRefs, ref, computed} from "vue";
|
import {reactive, toRefs, computed} from "vue";
|
||||||
// import { planList } from "../../api/indexTaskadd";
|
// import { planList } from "../../api/indexTaskadd";
|
||||||
// import {detail} from "../../api/indexCourse";
|
// import {detail} from "../../api/indexCourse";
|
||||||
import {list} from "../../api/indexTaskadd";
|
import {list} from "../../api/indexTaskadd";
|
||||||
@@ -279,7 +281,7 @@ export default {
|
|||||||
//获取面授课列表
|
//获取面授课列表
|
||||||
const getClassList = (obj) => {
|
const getClassList = (obj) => {
|
||||||
let objn = obj || {
|
let objn = obj || {
|
||||||
auditStatus: state.auditStatus,
|
auditStatus:2,
|
||||||
name: state.name,
|
name: state.name,
|
||||||
pageNo: state.currentPage,
|
pageNo: state.currentPage,
|
||||||
pageSize: state.pageSize
|
pageSize: state.pageSize
|
||||||
@@ -314,7 +316,7 @@ export default {
|
|||||||
});
|
});
|
||||||
state.classTableData = array;
|
state.classTableData = array;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
const options1 = ref([
|
const options1 = ref([
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
@@ -328,11 +330,8 @@ export default {
|
|||||||
value: 2,
|
value: 2,
|
||||||
label: "已审核",
|
label: "已审核",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: -1,
|
]);*/
|
||||||
label: "审核未通过",
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
const handleChange = (value, option) => {
|
const handleChange = (value, option) => {
|
||||||
console.log("改变了", value, option);
|
console.log("改变了", value, option);
|
||||||
console.log(state.valueContent);
|
console.log(state.valueContent);
|
||||||
@@ -359,7 +358,7 @@ export default {
|
|||||||
// showDrawerSelFacet,
|
// showDrawerSelFacet,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
options1,
|
|
||||||
columns1,
|
columns1,
|
||||||
getClassData,
|
getClassData,
|
||||||
handleChange,
|
handleChange,
|
||||||
|
|||||||
@@ -15,11 +15,6 @@ module.exports = defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/manageApi": {
|
"/manageApi": {
|
||||||
target:"http://111.231.196.214:30001/",
|
target:"http://111.231.196.214:30001/",
|
||||||
<<<<<<< HEAD
|
|
||||||
//target: "http://localhost:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
|
|
||||||
=======
|
|
||||||
// target: "http://localhost:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
|
|
||||||
>>>>>>> 44e0ecf40abb960193bb4add3c7c2da6f54dd899
|
|
||||||
changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
// secure: false,
|
// secure: false,
|
||||||
// ws: false, //表示WebSocket协议
|
// ws: false, //表示WebSocket协议
|
||||||
|
|||||||
Reference in New Issue
Block a user