|
|
@ -1,113 +1,168 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<!-- 实验报告 --> |
|
|
|
<!-- 实验报告 --> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="wrap"> |
|
|
|
<breadcrumb data="返回实验/我的数据"></breadcrumb> |
|
|
|
<breadcrumb data="返回实验/实验报告"></breadcrumb> |
|
|
|
<div class="content" :class="{loading}" id="pdfDom"> |
|
|
|
<div class="content" |
|
|
|
<div style="text-align: right" v-if="!loading"> |
|
|
|
:class="{loading}" |
|
|
|
<el-button size="mini" @click="editReport"> |
|
|
|
id="pdfDom"> |
|
|
|
|
|
|
|
<div style="text-align: right" |
|
|
|
|
|
|
|
v-if="!loading"> |
|
|
|
|
|
|
|
<el-button size="mini" |
|
|
|
|
|
|
|
@click="editReport"> |
|
|
|
{{ editing ? "保存" : "编辑" }} |
|
|
|
{{ editing ? "保存" : "编辑" }} |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="exportPage">导出报告</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
@click="exportPage">导出报告</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<h6 class="r-title">标准实验报告</h6> |
|
|
|
<h6 class="r-title">标准实验报告</h6> |
|
|
|
<div class="info"> |
|
|
|
<div class="info"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<img src="@/assets/img/report1.png" alt=""> |
|
|
|
<img src="@/assets/img/report1.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
基本信息 |
|
|
|
基本信息 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<ul :class="['info-list', {edit: editing}]"> |
|
|
|
<ul :class="['info-list', {edit: editing}]"> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>学生姓名:</label> |
|
|
|
<label>学生姓名:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.userName" disabled></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.userName" |
|
|
|
|
|
|
|
disabled></el-input> |
|
|
|
<span v-else>{{ infoData.userName }}</span> |
|
|
|
<span v-else>{{ infoData.userName }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>学生学号:</label> |
|
|
|
<label>学生学号:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.workNumber" disabled></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.workNumber" |
|
|
|
|
|
|
|
disabled></el-input> |
|
|
|
<span v-else>{{ infoData.workNumber }}</span> |
|
|
|
<span v-else>{{ infoData.workNumber }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>实验时间:</label> |
|
|
|
<label>实验时间:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.submitTime" disabled></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.submitTime" |
|
|
|
|
|
|
|
disabled></el-input> |
|
|
|
<span v-else>{{ infoData.submitTime }}</span> |
|
|
|
<span v-else>{{ infoData.submitTime }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>实验成绩:</label> |
|
|
|
<label>实验成绩:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.score" disabled></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
<div v-else class="score-wrap"> |
|
|
|
v-model="infoData.score" |
|
|
|
|
|
|
|
disabled></el-input> |
|
|
|
|
|
|
|
<div v-else |
|
|
|
|
|
|
|
class="score-wrap"> |
|
|
|
<em>{{ infoData.score }}</em> |
|
|
|
<em>{{ infoData.score }}</em> |
|
|
|
<img src="@/assets/img/point.png" alt=""> |
|
|
|
<img src="@/assets/img/point.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>学生班级:</label> |
|
|
|
<label>学生班级:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.className"></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.className"></el-input> |
|
|
|
<span v-else>{{ infoData.className }}</span> |
|
|
|
<span v-else>{{ infoData.className }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>指导老师:</label> |
|
|
|
<label>指导老师:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.instructor"></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.instructor"></el-input> |
|
|
|
<span v-else>{{ infoData.instructor }}</span> |
|
|
|
<span v-else>{{ infoData.instructor }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>实验学时:</label> |
|
|
|
<label>实验学时:</label> |
|
|
|
<el-input v-if="editing" v-model="infoData.period"></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
|
|
|
|
v-model="infoData.period"></el-input> |
|
|
|
<span v-else>{{ infoData.period }}</span> |
|
|
|
<span v-else>{{ infoData.period }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div class="m-b-20"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<img src="@/assets/img/report2.png" alt=""> |
|
|
|
<img src="@/assets/img/report2.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
实验项目名称 |
|
|
|
实验项目名称 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<el-input v-if="editing" v-model="infoData.projectName" type="textarea"></el-input> |
|
|
|
<el-input v-if="editing" |
|
|
|
<div v-else class="pre-wrap" v-html="infoData.projectName"></div> |
|
|
|
v-model="infoData.projectName" |
|
|
|
|
|
|
|
type="textarea"></el-input> |
|
|
|
|
|
|
|
<div v-else |
|
|
|
|
|
|
|
class="pre-wrap" |
|
|
|
|
|
|
|
v-html="infoData.projectName"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="m-b-20"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<img src="@/assets/img/report3.png" alt=""> |
|
|
|
<img src="@/assets/img/report3.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
实验目的 |
|
|
|
实验目的 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<quill v-if="editing" :border="true" v-model="infoData.purpose" :height="150" /> |
|
|
|
<quill v-if="editing" |
|
|
|
<div v-else :class="['pre-wrap', {edit: editing}]" v-html="infoData.purpose"></div> |
|
|
|
:border="true" |
|
|
|
|
|
|
|
v-model="infoData.purpose" |
|
|
|
|
|
|
|
:height="150" /> |
|
|
|
|
|
|
|
<div v-else |
|
|
|
|
|
|
|
:class="['pre-wrap', {edit: editing}]" |
|
|
|
|
|
|
|
v-html="infoData.purpose"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="m-b-20"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<img src="@/assets/img/report4.png" alt=""> |
|
|
|
<img src="@/assets/img/report4.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
实验数据 |
|
|
|
实验数据 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<el-table :data="expData" class="table" border stripe header-align="center"> |
|
|
|
<el-table :data="expData" |
|
|
|
<el-table-column type="index" label="序号" align="center" width="60"> |
|
|
|
class="table" |
|
|
|
|
|
|
|
border |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center"> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="60"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="judgmentName" label="判分点" width="270" align="center"></el-table-column> |
|
|
|
<el-table-column prop="judgmentName" |
|
|
|
<el-table-column v-if='project' prop="judgmentName" label="考核点" align="center" width="150"> |
|
|
|
label="判分点" |
|
|
|
|
|
|
|
width="200" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column v-if='project' |
|
|
|
|
|
|
|
prop="judgmentName" |
|
|
|
|
|
|
|
label="考核点" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" |
|
|
|
|
|
|
|
:key="index"> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<span>{{index+1}}. </span>{{item.name}} |
|
|
|
<span>{{index+1}}. </span>{{item.name}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ruleAnswer" label="参考答案" style='word-wrap: break-word'> |
|
|
|
<el-table-column prop="ruleAnswer" |
|
|
|
|
|
|
|
label="参考答案" |
|
|
|
|
|
|
|
width="280" |
|
|
|
|
|
|
|
style='word-wrap: break-word'> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if='scope.row.lcRuleRecords'> |
|
|
|
<div v-if='scope.row.lcRuleRecords'> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" |
|
|
|
|
|
|
|
:key="index"> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<span>{{index+1}}. </span>{{item.ruleAnswer}} |
|
|
|
<span>{{index+1}}. </span>{{item.ruleAnswer}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else v-html="scope.row.referenceAnswer"></div> |
|
|
|
<div v-else |
|
|
|
|
|
|
|
v-html="scope.row.referenceAnswer"></div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="userAnswer" label="学生答案"> |
|
|
|
<el-table-column prop="userAnswer" |
|
|
|
|
|
|
|
width="280" |
|
|
|
|
|
|
|
label="学生答案"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if='scope.row.lcRuleRecords'> |
|
|
|
<div v-if='scope.row.lcRuleRecords'> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" |
|
|
|
|
|
|
|
:key="index"> |
|
|
|
<span v-if='item.userAnswer'> |
|
|
|
<span v-if='item.userAnswer'> |
|
|
|
<span>{{index+1}}. </span>{{item.userAnswer}} |
|
|
|
<span>{{index+1}}. </span>{{item.userAnswer}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -116,23 +171,42 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else v-html='scope.row.answer' style='white-space: pre-wrap'></div> |
|
|
|
<div v-else |
|
|
|
|
|
|
|
v-html='scope.row.answer' |
|
|
|
|
|
|
|
style='white-space: pre-wrap'></div> |
|
|
|
<template v-if="scope.row.runThePictureList"> |
|
|
|
<template v-if="scope.row.runThePictureList"> |
|
|
|
<img v-for="(img, i) in scope.row.runThePictureList" :key="i" width="200" class="result-pic" :src="img" alt=""> |
|
|
|
<img v-for="(img, i) in scope.row.runThePictureList" |
|
|
|
|
|
|
|
:key="i" |
|
|
|
|
|
|
|
width="200" |
|
|
|
|
|
|
|
class="result-pic" |
|
|
|
|
|
|
|
:src="img" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="quesScore" label="分值" width="80" align="center"></el-table-column> |
|
|
|
<el-table-column prop="quesScore" |
|
|
|
<el-table-column prop="score" label="得分" width="80" align="center"></el-table-column> |
|
|
|
label="分值" |
|
|
|
|
|
|
|
width="80" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="score" |
|
|
|
|
|
|
|
label="得分" |
|
|
|
|
|
|
|
width="80" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="m-b-20"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<h6 class="l-title"> |
|
|
|
<img src="@/assets/img/report5.png" alt=""> |
|
|
|
<img src="@/assets/img/report5.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
实验总结与体会 |
|
|
|
实验总结与体会 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<quill v-show="editing" :border="true" v-model="infoData.summarize" :height="150" /> |
|
|
|
<quill v-show="editing" |
|
|
|
<div v-show="!editing" class="pre-wrap" v-html="infoData.summarize"></div> |
|
|
|
:border="true" |
|
|
|
|
|
|
|
v-model="infoData.summarize" |
|
|
|
|
|
|
|
:height="150" /> |
|
|
|
|
|
|
|
<div v-show="!editing" |
|
|
|
|
|
|
|
class="pre-wrap" |
|
|
|
|
|
|
|
v-html="infoData.summarize"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -144,9 +218,9 @@ import { Loading } from "element-ui"; |
|
|
|
import util from '@/libs/util' |
|
|
|
import util from '@/libs/util' |
|
|
|
import breadcrumb from '@/components/breadcrumb' |
|
|
|
import breadcrumb from '@/components/breadcrumb' |
|
|
|
import quill from "@/components/quill"; |
|
|
|
import quill from "@/components/quill"; |
|
|
|
import {reportDetail,exportBankExperimentReport,updateReport} from "@/api/http.js"; |
|
|
|
import { reportDetail, exportBankExperimentReport, updateReport } from "@/api/http.js"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
reportId: this.$route.query.reportId, |
|
|
|
reportId: this.$route.query.reportId, |
|
|
|
title: "实验报告", |
|
|
|
title: "实验报告", |
|
|
@ -156,7 +230,7 @@ export default { |
|
|
|
editing: false, |
|
|
|
editing: false, |
|
|
|
loadIns: null, |
|
|
|
loadIns: null, |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
project:false, |
|
|
|
project: false, |
|
|
|
userScores: [] |
|
|
|
userScores: [] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -164,17 +238,14 @@ export default { |
|
|
|
breadcrumb, |
|
|
|
breadcrumb, |
|
|
|
quill |
|
|
|
quill |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getData() { // 查询详情 |
|
|
|
getData () { // 查询详情 |
|
|
|
const { reportId } = this |
|
|
|
const { reportId } = this |
|
|
|
reportDetail({ |
|
|
|
reportDetail(reportId).then(({ data }) => { |
|
|
|
reportId |
|
|
|
const { report, userScores } = data |
|
|
|
}).then((data)=>{ |
|
|
|
|
|
|
|
console.log(33, data) |
|
|
|
|
|
|
|
// this.$get(`${this.api.reportDetail}?reportId=${reportId}`).then(({ report, userScores }) => { |
|
|
|
|
|
|
|
this.form = report |
|
|
|
this.form = report |
|
|
|
const form = this.form |
|
|
|
const form = this.form |
|
|
|
this.infoData = { |
|
|
|
this.infoData = { |
|
|
@ -192,24 +263,22 @@ export default { |
|
|
|
purpose: form.purpose, |
|
|
|
purpose: form.purpose, |
|
|
|
summarize: form.summarize |
|
|
|
summarize: form.summarize |
|
|
|
} |
|
|
|
} |
|
|
|
// const data = report.data |
|
|
|
const expData = report.data |
|
|
|
// this.userScores = userScores |
|
|
|
this.userScores = userScores |
|
|
|
// // 如果没有data,则添加,否则,直接使用 |
|
|
|
// 如果没有data,则添加,否则,直接使用 |
|
|
|
// if (!data) { |
|
|
|
if (!expData) { |
|
|
|
// this.handleList(userScores) |
|
|
|
this.handleList(userScores) |
|
|
|
// this.$post(this.api.editExperimentalData, { |
|
|
|
this.$post(this.api.editExperimentalData, { |
|
|
|
// reportId, |
|
|
|
reportId, |
|
|
|
// data: JSON.stringify(userScores) |
|
|
|
data: JSON.stringify(userScores) |
|
|
|
// }).then(res => {}).catch(err => {}) |
|
|
|
}).then(res => { }).catch(err => { }) |
|
|
|
// } else { |
|
|
|
} else { |
|
|
|
// this.handleList(userScores.find(e => e.lcRuleRecords) ? userScores : JSON.parse(data)) |
|
|
|
this.handleList(userScores) |
|
|
|
// } |
|
|
|
} |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 处理实验数据 |
|
|
|
// 处理实验数据 |
|
|
|
handleList(list) { |
|
|
|
handleList (list) { |
|
|
|
this.project = list.find(e => e.lcRuleRecords) // 银行系统才有lcRuleRecords |
|
|
|
|
|
|
|
if (this.project) { |
|
|
|
|
|
|
|
list.map(e => { |
|
|
|
list.map(e => { |
|
|
|
e.assessmentPoint = '' |
|
|
|
e.assessmentPoint = '' |
|
|
|
e.referenceAnswer = '' |
|
|
|
e.referenceAnswer = '' |
|
|
@ -220,10 +289,9 @@ export default { |
|
|
|
e.answer += `${i + 1}.${n.userAnswer}` |
|
|
|
e.answer += `${i + 1}.${n.userAnswer}` |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.expData = list |
|
|
|
this.expData = list |
|
|
|
}, |
|
|
|
}, |
|
|
|
exportPage() { |
|
|
|
exportPage () { |
|
|
|
const form = Object.assign(this.form, this.infoData) |
|
|
|
const form = Object.assign(this.form, this.infoData) |
|
|
|
const list = JSON.parse(JSON.stringify(this.expData)) |
|
|
|
const list = JSON.parse(JSON.stringify(this.expData)) |
|
|
|
list.map((e, i) => { |
|
|
|
list.map((e, i) => { |
|
|
@ -242,24 +310,24 @@ export default { |
|
|
|
this.loadIns = Loading.service({ |
|
|
|
this.loadIns = Loading.service({ |
|
|
|
background: "#fff" |
|
|
|
background: "#fff" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$post(this.project ? this.api.exportBankExperimentReport : this.api.exportLabReport, { |
|
|
|
exportBankExperimentReport({ |
|
|
|
...form, |
|
|
|
...form, |
|
|
|
experimentalData: list |
|
|
|
experimentalData: list |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.loadIns.close(); |
|
|
|
this.loadIns.close(); |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
util.downloadFileDirect(`实验报告.docx`,new Blob([res])) |
|
|
|
util.downloadFileDirect(`实验报告.docx`, new Blob([res.data])) |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
|
this.loadIns.close(); |
|
|
|
this.loadIns.close(); |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
editReport() { // 编辑实验报告 |
|
|
|
editReport () { // 编辑实验报告 |
|
|
|
if (this.editing) { |
|
|
|
if (this.editing) { |
|
|
|
this.$post(`${this.api.updateReport}`, this.infoData).then(res => { |
|
|
|
updateReport(this.infoData).then(res => { |
|
|
|
this.editing = false; |
|
|
|
this.editing = false; |
|
|
|
this.$message.success('修改成功') |
|
|
|
this.$message.success('修改成功') |
|
|
|
}).catch(err => {}); |
|
|
|
}).catch(err => { }); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.editing = true; |
|
|
|
this.editing = true; |
|
|
|
} |
|
|
|
} |
|
|
@ -275,22 +343,24 @@ export default { |
|
|
|
.wrap { |
|
|
|
.wrap { |
|
|
|
padding: 12px 300px 20px; |
|
|
|
padding: 12px 300px 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
code, kbd, samp{ |
|
|
|
code, |
|
|
|
font-family: 'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif; |
|
|
|
kbd, |
|
|
|
|
|
|
|
samp { |
|
|
|
|
|
|
|
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif; |
|
|
|
word-wrap: break-word; |
|
|
|
word-wrap: break-word; |
|
|
|
white-space: pre-wrap; |
|
|
|
white-space: pre-wrap; |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/ pre{ |
|
|
|
/deep/ pre { |
|
|
|
white-space: pre-wrap; /* css-3 */ |
|
|
|
white-space: pre-wrap; /* css-3 */ |
|
|
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ |
|
|
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ |
|
|
|
white-space: pre-wrap; /* Opera 4-6 */ |
|
|
|
white-space: pre-wrap; /* Opera 4-6 */ |
|
|
|
white-space: -o-pre-wrap; /* Opera 7 */ |
|
|
|
white-space: -o-pre-wrap; /* Opera 7 */ |
|
|
|
word-wrap: break-word; /* Internet Explorer 5.5+ */ |
|
|
|
word-wrap: break-word; /* Internet Explorer 5.5+ */ |
|
|
|
word-break:break-all; |
|
|
|
word-break: break-all; |
|
|
|
overflow:hidden; |
|
|
|
overflow: hidden; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
font-weight:400; |
|
|
|
font-weight: 400; |
|
|
|
font-family:'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif |
|
|
|
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif; |
|
|
|
} |
|
|
|
} |
|
|
|
.content { |
|
|
|
.content { |
|
|
|
padding: 16px 0; |
|
|
|
padding: 16px 0; |
|
|
@ -306,17 +376,17 @@ code, kbd, samp{ |
|
|
|
} |
|
|
|
} |
|
|
|
.info { |
|
|
|
.info { |
|
|
|
padding: 20px 16px; |
|
|
|
padding: 20px 16px; |
|
|
|
border: 1px solid #E1E6F2; |
|
|
|
border: 1px solid #e1e6f2; |
|
|
|
} |
|
|
|
} |
|
|
|
.l-title{ |
|
|
|
.l-title { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
padding: 5px 8px; |
|
|
|
padding: 5px 8px; |
|
|
|
margin-bottom: 12px; |
|
|
|
margin-bottom: 12px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
background-color: #F7F9FC; |
|
|
|
background-color: #f7f9fc; |
|
|
|
img{ |
|
|
|
img { |
|
|
|
margin-right: 5px; |
|
|
|
margin-right: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -343,7 +413,7 @@ code, kbd, samp{ |
|
|
|
span { |
|
|
|
span { |
|
|
|
min-width: 150px; |
|
|
|
min-width: 150px; |
|
|
|
padding: 0 10px 3px; |
|
|
|
padding: 0 10px 3px; |
|
|
|
border-bottom: 1px solid #E1E6F2; |
|
|
|
border-bottom: 1px solid #e1e6f2; |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/.el-input { |
|
|
|
/deep/.el-input { |
|
|
|
width: 174px; |
|
|
|
width: 174px; |
|
|
@ -352,7 +422,7 @@ code, kbd, samp{ |
|
|
|
.score-wrap { |
|
|
|
.score-wrap { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
min-width: 150px; |
|
|
|
min-width: 150px; |
|
|
|
border-bottom: 1px solid #E1E6F2; |
|
|
|
border-bottom: 1px solid #e1e6f2; |
|
|
|
em { |
|
|
|
em { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: -12px; |
|
|
|
top: -12px; |
|
|
@ -360,7 +430,7 @@ code, kbd, samp{ |
|
|
|
font-family: din; |
|
|
|
font-family: din; |
|
|
|
font-size: 30px; |
|
|
|
font-size: 30px; |
|
|
|
font-weight: 600; |
|
|
|
font-weight: 600; |
|
|
|
color: #0B1D30; |
|
|
|
color: #0b1d30; |
|
|
|
} |
|
|
|
} |
|
|
|
img { |
|
|
|
img { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
@ -368,16 +438,17 @@ code, kbd, samp{ |
|
|
|
left: 0; |
|
|
|
left: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/.el-textarea .el-textarea__inner, .pre-wrap { |
|
|
|
/deep/.el-textarea .el-textarea__inner, |
|
|
|
|
|
|
|
.pre-wrap { |
|
|
|
min-height: 72px; |
|
|
|
min-height: 72px; |
|
|
|
padding: 10px 16px; |
|
|
|
padding: 10px 16px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
&.edit { |
|
|
|
&.edit { |
|
|
|
color: #ABB3C6; |
|
|
|
color: #abb3c6; |
|
|
|
border: 1px solid #CACFDB; |
|
|
|
border: 1px solid #cacfdb; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
background-color: #F6F7F9; |
|
|
|
background-color: #f6f7f9; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/ .table th { |
|
|
|
/deep/ .table th { |
|
|
@ -388,6 +459,18 @@ code, kbd, samp{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/deep/ .el-table { |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
.el-table__header-wrapper table, |
|
|
|
|
|
|
|
.el-table__body-wrapper table { |
|
|
|
|
|
|
|
width: 100% !important; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.el-table__body, |
|
|
|
|
|
|
|
.el-table__footer, |
|
|
|
|
|
|
|
.el-table__header { |
|
|
|
|
|
|
|
table-layout: auto; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
.result-pic { |
|
|
|
.result-pic { |
|
|
|
margin: 10px 0; |
|
|
|
margin: 10px 0; |
|
|
|
} |
|
|
|
} |
|
|
|