mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
feat:案例和测评接口(测试)新增内部考试选则考卷抽屉
This commit is contained in:
@@ -92,6 +92,7 @@
|
||||
style="width: 100px; margin-left: 35px"
|
||||
class="outer"
|
||||
@click.prevent
|
||||
@click="selectTest()"
|
||||
>
|
||||
选择试卷
|
||||
<DownOutlined />
|
||||
@@ -304,6 +305,8 @@
|
||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="addLoading" tip="添加中..." />
|
||||
</div>
|
||||
<!-- 选择考试抽屉 -->
|
||||
<s-test v-model:STvisible="STvisible"/>
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
@@ -314,14 +317,16 @@ import {
|
||||
queryExaminationDetailById,
|
||||
updateExamination,
|
||||
} from "@/api/indexExam";
|
||||
import STest from "./SelectTest.vue"
|
||||
import { ProjectEditTask, RouterEditTask } from "@/api/indexTask";
|
||||
|
||||
import dayjs from "dayjs";
|
||||
|
||||
export default {
|
||||
name: "AddTest",
|
||||
// components: {
|
||||
// },
|
||||
components: {
|
||||
STest,
|
||||
},
|
||||
props: {
|
||||
addtestVisible: {
|
||||
type: Boolean,
|
||||
@@ -399,6 +404,7 @@ export default {
|
||||
const state = reactive({
|
||||
addLoading: false,
|
||||
isOuter: 1, // 是否为外部考试
|
||||
STvisible:false, //选择试卷抽屉
|
||||
choosedTestList: [
|
||||
{
|
||||
value: "提高核心竞争力",
|
||||
@@ -577,6 +583,11 @@ export default {
|
||||
queryTest();
|
||||
}
|
||||
};
|
||||
|
||||
const selectTest = ()=> {
|
||||
state.STvisible = true
|
||||
}
|
||||
|
||||
const queryTest = () => {
|
||||
state.addLoading = true;
|
||||
queryExaminationDetailById({ examinationId: props.EditTestId })
|
||||
@@ -741,6 +752,7 @@ export default {
|
||||
formState,
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
selectTest,
|
||||
cloradio1,
|
||||
cloradio2,
|
||||
cloradio3,
|
||||
|
||||
Reference in New Issue
Block a user