Commit 9c0a9f4c authored by zhengke's avatar zhengke

修改

parent 8aa53f76
......@@ -5,7 +5,7 @@
<div class="text-h6">选择学员</div>
</q-card-section>
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col row wrap q-ml-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="research" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学员名称"
@clear="research" maxlength="20" />
......@@ -20,7 +20,7 @@
</div>
</div>
</div>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-card-section class="q-pt-none scroll" style="max-height: 50vh">
<el-tree :data="dataList" show-checkbox node-key="GuestId" ref="classStuTree" highlight-current
:props="defaultProps">
</el-tree>
......@@ -73,11 +73,9 @@
//关闭弹窗
closeSaveForm() {
this.$emit('close')
this.persistent = false
},
//确认选择
sureQuestionBank() {
this.persistent = false;
var tempArray = [];
var checkArray = this.$refs.classStuTree.getCheckedNodes();
if (checkArray && checkArray.length > 0) {
......
......@@ -66,6 +66,7 @@
margin-bottom: 12px;
position: relative;
font-size: 12px;
cursor: pointer;
}
.selectClass span i {
......@@ -86,17 +87,24 @@
display: block;
margin:0 0 15px 28px;
}
#paper_Publish{
padding-left:60px!important;
}
#paper_Publish .edui-editor {
z-index: 99 !important;
}
</style>
<template>
<div class="page-body">
<div style="margin:5px 0 10px 0">发布考试</div>
<div class="page-body" id="paper_Publish">
<div style="margin:5px 0 10px 0;font-size:20px;">发布考试</div>
<div class="setCt">
<span class="papPub_Left f1">发放对象</span>
<div class="f1" style="margin-top:5px;">
<q-btn color="accent" size="sm" @click="showClassStu" class="q-mr-md" label="选择学员"  /><br />
<div class="selectClass" v-if="postMsg.StudentList&&postMsg.StudentList.length>0">
<span v-for="(item,index) in postMsg.StudentList" :key="index" style="padding-left:5px;">{{item.GuestName}} <i
class="iconfont icon-shanchu1"></i>
class="iconfont icon-shanchu1" @click="delStudentName(index)"></i>
</span>
</div>
</div>
......@@ -104,7 +112,7 @@
<div class="setCt">
<span class="papPub_Left f1">发放时间</span>
<div class="f1">
<q-input filled v-model="postMsg.ExamStartTime" mask="####-##-## ##:##:##" label="开始时间" ref="StartTime"
<q-input filled v-model="postMsg.ExamStartTime" style="width:308px;" mask="####-##-## ##:##:##" label="开始时间" ref="StartTime"
:rules="[val => !!val || '请选择开始时间']">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -123,7 +131,7 @@
<div class="setCt">
<span class="papPub_Left f1">结束时间</span>
<div class="f1">
<q-input filled v-model="postMsg.ExamEndTime" mask="####-##-## ##:##:##" label="结束时间" ref="ExamEndTime"
<q-input filled v-model="postMsg.ExamEndTime" style="width:308px;" mask="####-##-## ##:##:##" label="结束时间" ref="ExamEndTime"
:rules="[val => !!val || '请选择结束时间']">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
......@@ -142,7 +150,7 @@
<div class="setCt">
<span class="papPub_Left f1">考试限时</span>
<div class="f1">
<q-input filled bottom-slots maxlength="10" v-model="postMsg.ExamTimes" label="考试限时"
<q-input filled bottom-slots maxlength="10" style="width:308px;" v-model="postMsg.ExamTimes" label="考试限时"
:dense="false">
<template v-slot:append>
<span style="font-size:12px;">分钟</span>
......@@ -153,7 +161,7 @@
<div class="setCt">
<span class="papPub_Left f1">限时提交</span>
<div class="f1">
<q-input filled bottom-slots maxlength="10" v-model="postMsg.SubmitTimes" label="限时提交"
<q-input filled bottom-slots maxlength="10" style="width:308px;" v-model="postMsg.SubmitTimes" label="限时提交"
:dense="false">
<template v-slot:append>
<span style="font-size:12px;">分钟内不允许提交</span>
......@@ -202,7 +210,7 @@
</div>
<div class="setCt">
<span class="papPub_Left f1">考试须知</span>
<UeEditor v-model="postMsg.ExamNotice" :config="config" style="margin:30px 0 0 110px" ref="UE_Title"></UeEditor>
<UeEditor v-model="postMsg.ExamNotice" :config="config" style="margin:30px 0 0 110px;z-index:1;width:1026px" ref="UE_Title"></UeEditor>
</div>
<div style="margin:20px 0">高级设置</div>
<div class="setCt">
......@@ -289,6 +297,10 @@
},
methods: {
//删除发放对象
delStudentName(index){
this.postMsg.StudentList.splice(index,1);
},
getExamInfo() {
queryExamPublish({
Id: this.postMsg.Id
......@@ -346,6 +358,7 @@
});
})
}
this.isShowClassStu = false;
},
//发布考试
setPublishExam() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment