|
@@ -0,0 +1,241 @@
|
|
|
+<template>
|
|
|
+ <el-dialog title="英语口语" :visible.sync="EnglishVoiceDialog" :append-to-body="true" width="100%"
|
|
|
+ :before-close="handleClose" class="dialog_diy">
|
|
|
+ <div class="ev_box">
|
|
|
+ <div class="ev_info_box">
|
|
|
+ <div class="title">设置英语口语信息</div>
|
|
|
+ <div class="ev_info_input_box">
|
|
|
+ <div class="box">
|
|
|
+ <span class="title bi">标题</span>
|
|
|
+ <el-input v-model="title" placeholder="请输入标题" class="input"/>
|
|
|
+ </div>
|
|
|
+ <div class="box">
|
|
|
+ <span class="title">说明</span>
|
|
|
+ <el-input v-model="detail" placeholder="请输入对该问题的描述" class="input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="ev_info_box">
|
|
|
+ <div class="title">设置英语口语题目</div>
|
|
|
+ <div class="ev_create_box">
|
|
|
+ <div class="left">
|
|
|
+ <div class="title">题目类型选择</div>
|
|
|
+ <check :checkJson="checkJson" @setJson="setJson"></check>
|
|
|
+ </div>
|
|
|
+ <div class="center">
|
|
|
+ <div class="title">评测题目</div>
|
|
|
+ <order :checkJson="checkJson" @setJson="setJson" :editType="2"></order>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <div class="title">评测大纲</div>
|
|
|
+ <order :checkJson="checkJson" @setJson="setJson" :editType="1"></order>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="confirm()">确 认</el-button>
|
|
|
+ <el-button @click="close()">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import order from './component/order'
|
|
|
+import check from './component/check'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ check,
|
|
|
+ order
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ EnglishVoiceDialog: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
+ oid: {
|
|
|
+ type: String
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ checkJson: [],
|
|
|
+ title:'',
|
|
|
+ detail:'',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleClose(done) {
|
|
|
+ this.close();
|
|
|
+ done();
|
|
|
+ },
|
|
|
+ close() {
|
|
|
+ this.$emit("update:EnglishVoiceDialog", false);
|
|
|
+ },
|
|
|
+ confirm() {
|
|
|
+ this.close();
|
|
|
+ },
|
|
|
+ setJson(val){
|
|
|
+ debugger
|
|
|
+ this.checkJson = val;
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.dialog_diy>>>.el-dialog {
|
|
|
+ height: 100%;
|
|
|
+ margin: 0vh auto !important;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__header {
|
|
|
+ background: #454545 !important;
|
|
|
+ padding: 15px 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__body {
|
|
|
+ height: calc(100% - 124px);
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0px;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__title {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__headerbtn {
|
|
|
+ top: 19px;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.dialog_diy>>>.el-dialog__body,
|
|
|
+.dialog_diy>>>.el-dialog__footer {
|
|
|
+ background: rgb(rgb(240, 242, 245));
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_box{
|
|
|
+ width: calc(100% - 20px);
|
|
|
+ height: calc(100% - 20px);
|
|
|
+ overflow: auto;
|
|
|
+ background: #fff;
|
|
|
+ margin: 10px auto;
|
|
|
+ border-radius: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_info_box{
|
|
|
+
|
|
|
+}
|
|
|
+.ev_info_box + .ev_info_box{
|
|
|
+ margin-top: 14px;
|
|
|
+}
|
|
|
+.ev_info_box > .title {
|
|
|
+ padding: 15px 0 15px 0;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 0 0 0 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ line-height: 20px;
|
|
|
+ color: #000;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_info_box > .title::before {
|
|
|
+ content: '';
|
|
|
+ display: block;
|
|
|
+ width: 3px;
|
|
|
+ height: 20px;
|
|
|
+ background: #0061FF;
|
|
|
+ border-radius: 3px;
|
|
|
+ margin: 0 5px 0 0;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_info_input_box{
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 20px;
|
|
|
+}
|
|
|
+.ev_info_input_box > .box{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.ev_info_input_box > .box + .box{
|
|
|
+ margin-top: 12px;
|
|
|
+}
|
|
|
+.ev_info_input_box > .box > .title{
|
|
|
+ min-width: fit-content;
|
|
|
+ font-size: 14px;
|
|
|
+ margin:0 10px;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.ev_info_input_box > .box > .title.bi::before{
|
|
|
+ content: '*';
|
|
|
+ color: rgb(238, 62, 62);
|
|
|
+ display: block;
|
|
|
+ font-size: 18px;
|
|
|
+ position: absolute;
|
|
|
+ left: -10px;
|
|
|
+}
|
|
|
+.ev_info_input_box > .box > .input{
|
|
|
+ width: 100%;
|
|
|
+ max-width: 750px;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_create_box{
|
|
|
+ width: 100%;
|
|
|
+ width: calc(100% - 40px);
|
|
|
+ border-radius: 5px;
|
|
|
+ border: 1px solid #E7E7E7;
|
|
|
+ margin: 0 auto 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ min-height: 500px;
|
|
|
+}
|
|
|
+.ev_create_box > .left{
|
|
|
+ width: 250px;
|
|
|
+ border-right: 1px solid #e7e7e7;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 16px;
|
|
|
+}
|
|
|
+.ev_create_box > .center{
|
|
|
+ width: calc(100% - 500px);
|
|
|
+}
|
|
|
+.ev_create_box > .right{
|
|
|
+ width: 250px;
|
|
|
+ border-left: 1px solid #e7e7e7;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.ev_create_box > .left > .title{
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #000;
|
|
|
+ text-align: center;
|
|
|
+ margin: 20px 0;
|
|
|
+}
|
|
|
+.ev_create_box > .center > .title{
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #000;
|
|
|
+ text-align: center;
|
|
|
+ margin: 16px 0;
|
|
|
+}
|
|
|
+.ev_create_box > .right > .title{
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #000;
|
|
|
+ text-align: center;
|
|
|
+ margin: 20px 0;
|
|
|
+}
|
|
|
+</style>
|