feat:案例和测评接口(测试)新增内部考试选则考卷抽屉

This commit is contained in:
Ggysh-7
2022-11-18 13:00:15 +08:00
parent ec7c437c17
commit 987d683e06
7 changed files with 558 additions and 169 deletions

View File

@@ -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,