|
|
|
@ -105,8 +105,19 @@ |
|
|
|
|
<p>实验目标</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="goal"> |
|
|
|
|
<div class="ql-editor" |
|
|
|
|
v-html="experimentTarget"></div> |
|
|
|
|
<div v-if="pd.experimentTargetType == 0 || !pd.experimentTargetType" |
|
|
|
|
class="ql-editor" |
|
|
|
|
v-html="pd.experimentTarget"></div> |
|
|
|
|
|
|
|
|
|
<mavon-editor v-else |
|
|
|
|
class="md" |
|
|
|
|
v-model="pd.experimentTarget" |
|
|
|
|
defaultOpen="preview" |
|
|
|
|
:ishljs="true" |
|
|
|
|
:subfield="false" |
|
|
|
|
:editable="false" |
|
|
|
|
:toolbarsFlag="false" |
|
|
|
|
:boxShadowStyle="none" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="aside-footer"> |
|
|
|
@ -168,8 +179,19 @@ |
|
|
|
|
type="card"> |
|
|
|
|
<el-tab-pane label="项目背景" |
|
|
|
|
name="first"> |
|
|
|
|
<div class="ql-editor" |
|
|
|
|
v-html="experimentDescription"></div> |
|
|
|
|
<div v-if="pd.experimentDescriptionType == 0 || !pd.experimentDescriptionType" |
|
|
|
|
class="ql-editor" |
|
|
|
|
v-html="pd.experimentDescription"></div> |
|
|
|
|
|
|
|
|
|
<mavon-editor v-else |
|
|
|
|
class="md" |
|
|
|
|
v-model="pd.experimentDescription" |
|
|
|
|
defaultOpen="preview" |
|
|
|
|
:ishljs="true" |
|
|
|
|
:subfield="false" |
|
|
|
|
:editable="false" |
|
|
|
|
:toolbarsFlag="false" |
|
|
|
|
:boxShadowStyle="none" /> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="实验要求" |
|
|
|
|
name="second"> |
|
|
|
@ -182,16 +204,38 @@ |
|
|
|
|
<div class="break-all des" |
|
|
|
|
v-html="item.name"></div> |
|
|
|
|
</template> |
|
|
|
|
<div class="ql-editor" |
|
|
|
|
<div v-if="item.experimentalRequirementsType == 0 || !item.experimentalRequirementsType" |
|
|
|
|
class="ql-editor" |
|
|
|
|
v-html="item.experimentalRequirements"></div> |
|
|
|
|
|
|
|
|
|
<mavon-editor v-else |
|
|
|
|
class="md" |
|
|
|
|
v-model="item.experimentalRequirements" |
|
|
|
|
defaultOpen="preview" |
|
|
|
|
:ishljs="true" |
|
|
|
|
:subfield="false" |
|
|
|
|
:editable="false" |
|
|
|
|
:toolbarsFlag="false" |
|
|
|
|
:boxShadowStyle="none" /> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
</el-collapse> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="实验提示" |
|
|
|
|
name="third" |
|
|
|
|
v-if="hintOpen"> |
|
|
|
|
<div class="ql-editor" |
|
|
|
|
v-html="experimentHint"></div> |
|
|
|
|
<div v-if="pd.experimentHintType == 0 || !pd.experimentHintType" |
|
|
|
|
class="ql-editor" |
|
|
|
|
v-html="pd.experimentHint"></div> |
|
|
|
|
|
|
|
|
|
<mavon-editor v-else |
|
|
|
|
class="md" |
|
|
|
|
v-model="pd.experimentHint" |
|
|
|
|
defaultOpen="preview" |
|
|
|
|
:ishljs="true" |
|
|
|
|
:subfield="false" |
|
|
|
|
:editable="false" |
|
|
|
|
:toolbarsFlag="false" |
|
|
|
|
:boxShadowStyle="none" /> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</el-main> |
|
|
|
@ -199,7 +243,8 @@ |
|
|
|
|
</el-container> |
|
|
|
|
|
|
|
|
|
<div :class="['toggle-panel', {active: pannelVisible}]" |
|
|
|
|
id="toggle"> |
|
|
|
|
id="toggle" |
|
|
|
|
@click="togglePannel"> |
|
|
|
|
<!-- <div @click="togglePannel"> --> |
|
|
|
|
<div> |
|
|
|
|
<img :src="require(`@/assets/images/system/${$themeId}/left.png`)" |
|
|
|
@ -265,6 +310,8 @@ import "codemirror/addon/fold/xml-fold.js"; |
|
|
|
|
// 编辑的主题文件 |
|
|
|
|
import "codemirror/theme/monokai.css"; |
|
|
|
|
import "codemirror/theme/base16-light.css"; |
|
|
|
|
import { mavonEditor } from 'mavon-editor' |
|
|
|
|
import 'mavon-editor/dist/css/index.css' |
|
|
|
|
export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
@ -298,6 +345,7 @@ export default { |
|
|
|
|
minutes: 0, // 分钟数 |
|
|
|
|
hour: 0, // 小时数 |
|
|
|
|
projectList: [], // 项目列表 |
|
|
|
|
pd: {}, |
|
|
|
|
experimentTarget: '', //实验目标 |
|
|
|
|
experimentDescription: '', //案例描述 |
|
|
|
|
experimentHint: '', //实验提示 |
|
|
|
@ -345,7 +393,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
|
codemirror, |
|
|
|
|
quill |
|
|
|
|
quill, |
|
|
|
|
mavonEditor |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
// 2:竞赛,1:考核,0:练习 |
|
|
|
@ -378,7 +427,7 @@ export default { |
|
|
|
|
}, 1000) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.drag() |
|
|
|
|
// this.drag() |
|
|
|
|
this.tableHeight = window.innerHeight - 360 |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -415,7 +464,6 @@ export default { |
|
|
|
|
}).then(res => { |
|
|
|
|
const points = res.projectJudgmentVos |
|
|
|
|
const project = res.projectManage |
|
|
|
|
const mg = res.projectManage |
|
|
|
|
const curReq = [] |
|
|
|
|
// 跳转银行 |
|
|
|
|
if (project.systemId == 11) { |
|
|
|
@ -433,6 +481,7 @@ export default { |
|
|
|
|
e.retResult = '' // 返回结果(1为正确 0为错误) |
|
|
|
|
curReq.push(e.judgmentId) |
|
|
|
|
}) |
|
|
|
|
// 考核/竞赛 |
|
|
|
|
if (this.projectPermissions) { |
|
|
|
|
this.projectList = [{ |
|
|
|
|
projectId, |
|
|
|
@ -453,10 +502,11 @@ export default { |
|
|
|
|
if (points.length) this.reportTab = reportPoints[0].judgmentId + '' |
|
|
|
|
this.taskList = this.isSubmit ? this.$store.state.taskList : points // 实验任务 |
|
|
|
|
this.judgmentId = points[0].judgmentId // 默认取第一个判分点 |
|
|
|
|
this.pd = project |
|
|
|
|
this.experimentTarget = project.experimentTarget |
|
|
|
|
this.experimentDescription = project.experimentDescription |
|
|
|
|
this.experimentHint = project.experimentHint |
|
|
|
|
this.hintOpen = mg.founder ? !mg.hintOpen : !mg.hintOpenBySchool // 0显示,1不显示,系统跟老师的禁用字段不一样 |
|
|
|
|
this.hintOpen = project.founder ? !project.hintOpenBySchool : !project.hintOpen // 0显示,1不显示,系统跟老师的禁用字段不一样 |
|
|
|
|
this.$emit('tell', projectId, systemId, this.points) |
|
|
|
|
const isPrac = this.projectPermissions == 0 // 是否是练习 |
|
|
|
|
this.text = isPrac ? '已用' : '剩余' |
|
|
|
@ -816,7 +866,7 @@ export default { |
|
|
|
|
assessmentId: this.assessmentId ? this.assessmentId : '', |
|
|
|
|
totalScore: 100, // 判分点总分固定为100 |
|
|
|
|
systemId: this.curSystemId, |
|
|
|
|
purpose: this.experimentTarget, // 实验目的 |
|
|
|
|
purpose: this.pd.experimentTarget, // 实验目的 |
|
|
|
|
attributesReqList, |
|
|
|
|
competitionId: this.competitionId, |
|
|
|
|
stageId: this.stageId, |
|
|
|
@ -849,7 +899,7 @@ export default { |
|
|
|
|
this.$store.commit('setTaskList', taskList) |
|
|
|
|
this.editReport(reportId) |
|
|
|
|
// 如果是竞赛,并且勾选了公布成绩详情的选项,则弹框提示 |
|
|
|
|
this.competitionId && this.resultsDetails == 0 && this.$alert('提交成功,成绩将在' + this.resultAnnouncementTime + '小时后发布,请去参赛信息模块查看', '提示', { |
|
|
|
|
this.competitionId && this.resultsDetails == 0 && this.$alert(`提交成功${this.resultAnnouncementTime != 0 ? ',成绩将在' + this.resultAnnouncementTime + '小时后发布,请去参赛信息模块查看' : ''}`, '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
callback: action => { |
|
|
|
|
this.$parent.back() |
|
|
|
@ -901,7 +951,7 @@ export default { |
|
|
|
|
// document.querySelector('#toggle').onmousedown = null |
|
|
|
|
// document.querySelector('#toggle').onmousedown = togglePannel |
|
|
|
|
// } else { |
|
|
|
|
this.drag() |
|
|
|
|
// this.drag() |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
// 倒计时 |
|
|
|
@ -1268,4 +1318,8 @@ export default { |
|
|
|
|
color: #c6daff; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
/deep/.v-note-wrapper { |
|
|
|
|
min-height: 0; |
|
|
|
|
height: auto; |
|
|
|
|
} |
|
|
|
|
</style> |