|
|
|
@ -2,21 +2,30 @@ |
|
|
|
|
<div> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
|
<div class="per_title" @click="goback()"> |
|
|
|
|
<div class="per_title" |
|
|
|
|
@click="goback()"> |
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
|
<span class="per_back">返回</span> |
|
|
|
|
<span class="per_school">修改分数</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="success" round class="mag" @click="saveAdd('form')">预览</el-button> |
|
|
|
|
<el-button type="primary" round class="mag" @click="saveAdd('form')">发布成绩</el-button> |
|
|
|
|
<el-button type="success" |
|
|
|
|
round |
|
|
|
|
class="mag" |
|
|
|
|
@click="saveAdd('form')">预览</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
round |
|
|
|
|
class="mag" |
|
|
|
|
@click="saveAdd('form')">发布成绩</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<h6 style="text-align: center;font-size: 20px">实验成绩报告</h6> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
@ -24,159 +33,239 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<el-table :data="infoData" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column prop="projectName" label="实验名称" align="center"> |
|
|
|
|
<el-table :data="infoData" |
|
|
|
|
class="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center"> |
|
|
|
|
<el-table-column prop="projectName" |
|
|
|
|
label="实验名称" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="period" label="实验学时" align="center"> |
|
|
|
|
<el-table-column prop="period" |
|
|
|
|
label="实验学时" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center"> |
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
label="学生姓名" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="number" label="学生学号" align="center"> |
|
|
|
|
<el-table-column prop="number" |
|
|
|
|
label="学生学号" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="class" label="学生班级" align="center"> |
|
|
|
|
<el-table-column prop="class" |
|
|
|
|
label="学生班级" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="content" label="实验内容" align="center"> |
|
|
|
|
<el-table-column prop="content" |
|
|
|
|
label="实验内容" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="desc" label="实验数据与结果分析" align="center"> |
|
|
|
|
<el-table-column prop="desc" |
|
|
|
|
label="实验数据与结果分析" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="result" label="实验结论" align="center"> |
|
|
|
|
<el-table-column prop="result" |
|
|
|
|
label="实验结论" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="experience" label="实验与心得体会" align="center"> |
|
|
|
|
<el-table-column prop="experience" |
|
|
|
|
label="实验与心得体会" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="total" label="总分" align="center"> |
|
|
|
|
<el-table-column prop="total" |
|
|
|
|
label="总分" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">一、实验项目名称</p> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="form.projectName" type="textarea" :disabled="true" rows="5"></el-input> |
|
|
|
|
<el-input v-model="form.projectName" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="true" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">二、实验目的</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="form.experimentGoal" type="textarea" :disabled="true" rows="5"></el-input> |
|
|
|
|
<el-input v-model="form.experimentGoal" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="true" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">三、实验原理</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="form.principle" type="textarea" :disabled="true" rows="5"></el-input> |
|
|
|
|
<el-input v-model="form.principle" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="true" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">四、实验内容</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="form.content" type="textarea" :disabled="true" rows="5"></el-input> |
|
|
|
|
<el-input v-model="form.content" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="true" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">五、实验步骤</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="form.step" type="textarea" :disabled="true" rows="5"></el-input> |
|
|
|
|
<el-input v-model="form.step" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="true" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">六、实验数据</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="expData" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<el-table :data="expData" |
|
|
|
|
class="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center"> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="100" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="module" label="模块" align="center"> |
|
|
|
|
<el-table-column prop="module" |
|
|
|
|
label="模块" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="judgmentPointsName" label="考核点" align="center"> |
|
|
|
|
<el-table-column prop="judgmentPointsName" |
|
|
|
|
label="考核点" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="userAnswer" label="学生答案" align="center"> |
|
|
|
|
<el-table-column prop="userAnswer" |
|
|
|
|
label="学生答案" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="answer" label="参考答案" align="center"> |
|
|
|
|
<el-table-column prop="answer" |
|
|
|
|
label="参考答案" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="codeScore" label="得分" align="center"> |
|
|
|
|
<el-table-column prop="codeScore" |
|
|
|
|
label="得分" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">七、实验结论</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input type="textarea" v-model="form.conclusion" rows="5"></el-input> |
|
|
|
|
<div class="flex-between" style="margin-top: 10px"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
v-model="form.conclusion" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
<div class="flex-between" |
|
|
|
|
style="margin-top: 10px"> |
|
|
|
|
<span>教师评分</span> |
|
|
|
|
<div> |
|
|
|
|
<el-input style="display: inline-block;width: auto;" placeholder="请输入"></el-input> |
|
|
|
|
<el-input style="display: inline-block;width: auto;" |
|
|
|
|
placeholder="请输入"></el-input> |
|
|
|
|
(10分) |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">八、总结及心得体会</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input type="textarea" v-model="form.summarize" rows="5"></el-input> |
|
|
|
|
<div class="flex-between" style="margin-top: 10px"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
v-model="form.summarize" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
<div class="flex-between" |
|
|
|
|
style="margin-top: 10px"> |
|
|
|
|
<span>教师评分</span> |
|
|
|
|
<div> |
|
|
|
|
<el-input style="display: inline-block;width: auto;" placeholder="请输入"></el-input> |
|
|
|
|
<el-input style="display: inline-block;width: auto;" |
|
|
|
|
placeholder="请输入"></el-input> |
|
|
|
|
(10分) |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="meta-title-wrap"> |
|
|
|
|
<p class="meta-title">九、对本实验过程及方法、手段的改进建议</p> |
|
|
|
|
<span>得分:50/60</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input type="textarea" rows="5" v-model="form.improvement"></el-input> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
rows="5" |
|
|
|
|
v-model="form.improvement"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div class="flex-between mgb20"> |
|
|
|
|
<span>老师寄语</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input type="textarea" rows="5"></el-input> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
rows="5"></el-input> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<p class="mgb20">教师签名</p> |
|
|
|
|
<div class="mgb20"> |
|
|
|
|
<el-radio v-model="autograph" label="1">不使用</el-radio> |
|
|
|
|
<el-radio v-model="autograph" label="2">已有签名</el-radio> |
|
|
|
|
<el-radio v-model="autograph" label="3">重新上传</el-radio> |
|
|
|
|
<el-radio v-model="autograph" |
|
|
|
|
label="1">不使用</el-radio> |
|
|
|
|
<el-radio v-model="autograph" |
|
|
|
|
label="2">已有签名</el-radio> |
|
|
|
|
<el-radio v-model="autograph" |
|
|
|
|
label="3">重新上传</el-radio> |
|
|
|
|
</div> |
|
|
|
|
<el-row v-if="autograph != 1"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-select class="sign-select" v-model="signId" placeholder="请选择签名" size="mini" v-show="autograph == 2"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in signList" |
|
|
|
|
<el-select class="sign-select" |
|
|
|
|
v-model="signId" |
|
|
|
|
placeholder="请选择签名" |
|
|
|
|
size="mini" |
|
|
|
|
v-show="autograph == 2"> |
|
|
|
|
<el-option v-for="item in signList" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.signatureName" |
|
|
|
|
:value="item.id" |
|
|
|
|
> |
|
|
|
|
:value="item.id"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-upload |
|
|
|
|
:data="{userId: userId}" |
|
|
|
|
<el-upload :data="{userId: userId}" |
|
|
|
|
:limit="1" |
|
|
|
|
:action="api.uploadSignature" |
|
|
|
|
list-type="picture-card" |
|
|
|
@ -195,7 +284,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
userId: this.$store.state.userLoginId, |
|
|
|
|
id: this.$route.query.id, |
|
|
|
@ -222,12 +311,12 @@ export default { |
|
|
|
|
signId: "" |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
mounted () { |
|
|
|
|
this.getData(); |
|
|
|
|
this.getSgin(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getData() { |
|
|
|
|
getData () { |
|
|
|
|
let data = { |
|
|
|
|
// reportId: this.id |
|
|
|
|
reportId: 97 |
|
|
|
@ -248,7 +337,7 @@ export default { |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getSgin() { |
|
|
|
|
getSgin () { |
|
|
|
|
let data = { |
|
|
|
|
userId: this.userId |
|
|
|
|
}; |
|
|
|
@ -257,10 +346,10 @@ export default { |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleRemove(file, fileList) { |
|
|
|
|
handleRemove (file, fileList) { |
|
|
|
|
console.log(file, fileList); |
|
|
|
|
}, |
|
|
|
|
saveAdd() { |
|
|
|
|
saveAdd () { |
|
|
|
|
let data = { |
|
|
|
|
systemId: this.configId, |
|
|
|
|
systemName: this.form.systemName, |
|
|
|
@ -281,7 +370,7 @@ export default { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
SpanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
|
|
SpanMethod ({ row, column, rowIndex, columnIndex }) { |
|
|
|
|
if (rowIndex % 2 === 0) { |
|
|
|
|
if (columnIndex === 6) { |
|
|
|
|
if (!row.Intranet) { |
|
|
|
@ -293,15 +382,15 @@ export default { |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
editMsg() { |
|
|
|
|
editMsg () { |
|
|
|
|
this.isEdit = true; |
|
|
|
|
}, |
|
|
|
|
handleExceed(files, fileList) { |
|
|
|
|
handleExceed (files, fileList) { |
|
|
|
|
util.warningMsg( |
|
|
|
|
`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!` |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
uploadSuccess(res, file) { |
|
|
|
|
uploadSuccess (res, file) { |
|
|
|
|
if (res.status == 200) { |
|
|
|
|
util.successMsg("上传成功"); |
|
|
|
|
this.getSgin(); |
|
|
|
@ -309,9 +398,10 @@ export default { |
|
|
|
|
$message.error(res.message); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
goback() { |
|
|
|
|
goback () { |
|
|
|
|
this.$confirm("确定返回?未更新的信息将不会保存。", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
type: "warning", |
|
|
|
|
closeOnClickModal: false |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.$router.back(); |
|
|
|
|