openf12
yujialong 1 year ago
parent 1639b4ed04
commit a0f387f1f6
  1. 36
      src/components/TestPanel.vue

@ -106,12 +106,15 @@
</div> </div>
<div class="goal"> <div class="goal">
<div v-if="pd.experimentTargetType == 0 || !pd.experimentTargetType" <div v-if="pd.experimentTargetType == 0 || !pd.experimentTargetType"
class="ql-editor" class="ql-snow">
<div class="ql-editor"
v-html="pd.experimentTarget"></div> v-html="pd.experimentTarget"></div>
</div>
<mavon-editor v-else <mavon-editor v-else
class="md" class="md"
v-model="pd.experimentTarget" v-model="pd.experimentTarget"
defaultOpen="preview"
:ishljs="true" :ishljs="true"
:subfield="false" :subfield="false"
:editable="false" :editable="false"
@ -179,13 +182,15 @@
<el-tab-pane label="项目背景" <el-tab-pane label="项目背景"
name="first"> name="first">
<div v-if="pd.experimentDescriptionType == 0 || !pd.experimentDescriptionType" <div v-if="pd.experimentDescriptionType == 0 || !pd.experimentDescriptionType"
class="ql-editor" class="ql-snow">
<div class="ql-editor"
v-html="pd.experimentDescription"></div> v-html="pd.experimentDescription"></div>
</div>
<mavon-editor v-else <mavon-editor v-else
class="md" class="md"
v-model="pd.experimentDescription" v-model="pd.experimentDescription"
:ishljs="true" defaultOpen="preview"
:subfield="false" :subfield="false"
:editable="false" :editable="false"
:toolbarsFlag="false" :toolbarsFlag="false"
@ -203,12 +208,15 @@
v-html="item.name"></div> v-html="item.name"></div>
</template> </template>
<div v-if="item.experimentalRequirementsType == 0 || !item.experimentalRequirementsType" <div v-if="item.experimentalRequirementsType == 0 || !item.experimentalRequirementsType"
class="ql-editor" class="ql-snow">
<div class="ql-editor"
v-html="item.experimentalRequirements"></div> v-html="item.experimentalRequirements"></div>
</div>
<mavon-editor v-else <mavon-editor v-else
class="md" class="md"
v-model="item.experimentalRequirements" v-model="item.experimentalRequirements"
defaultOpen="preview"
:ishljs="true" :ishljs="true"
:subfield="false" :subfield="false"
:editable="false" :editable="false"
@ -221,12 +229,15 @@
name="third" name="third"
v-if="hintOpen"> v-if="hintOpen">
<div v-if="pd.experimentHintType == 0 || !pd.experimentHintType" <div v-if="pd.experimentHintType == 0 || !pd.experimentHintType"
class="ql-editor" class="ql-snow">
<div class="ql-editor"
v-html="pd.experimentHint"></div> v-html="pd.experimentHint"></div>
</div>
<mavon-editor v-else <mavon-editor v-else
class="md" class="md"
v-model="pd.experimentHint" v-model="pd.experimentHint"
defaultOpen="preview"
:ishljs="true" :ishljs="true"
:subfield="false" :subfield="false"
:editable="false" :editable="false"
@ -777,8 +788,15 @@ export default {
const { taskList } = this const { taskList } = this
const pointList = this.$parent.workbench const pointList = this.$parent.workbench
let msg = '此操作将视为结束考试,是否继续?' let msg = '此操作将视为结束考试,是否继续?'
if (!isVscode && pointList.find(e => !e.codeId && e.code)) msg = '有代码没有运行,该代码将不得分,确定提交?' if (!isVscode) {
if (isVscode && !taskList.find(e => e.code || e.codeResult)) msg = '实验报告未填写,实验成绩为零,是否确认提交?' //
if (pointList.find(e => !e.codeId && e.code)) msg = '有代码没有运行,该代码将不得分,确定提交?'
//
if (pointList.find(e => !e.codeId && !e.code)) msg = '任务未完成,是否直接提交?'
} else {
if (!taskList.find(e => e.code || e.codeResult)) msg = '实验报告未填写,实验成绩为零,是否确认提交?'
}
this.$confirm(msg, '提示', { this.$confirm(msg, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -1060,7 +1078,6 @@ export default {
padding: 0; padding: 0;
font-size: 16px; font-size: 16px;
margin: 0px 20px 10px 10px; margin: 0px 20px 10px 10px;
white-space: pre-wrap;
overflow: hidden; overflow: hidden;
} }
.panel-header { .panel-header {
@ -1112,6 +1129,9 @@ export default {
max-width: 100%; max-width: 100%;
} }
} }
/deep/.ql-editor {
font-size: 13px;
}
/deep/.el-collapse-item__wrap { /deep/.el-collapse-item__wrap {
border-bottom: none; border-bottom: none;
} }

Loading…
Cancel
Save