业务编写
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
// 获取实训结束的成员列表
|
||||
export const getMemberList = (data) => {
|
||||
return request({
|
||||
url: '/api/report/getReportDtos',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
@ -1 +1 @@
|
||||
<svg t="1688354357249" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8715" data-spm-anchor-id="a313x.7781069.0.i17" width="200" height="200"><path d="M446.275089 956.340017c-3.76679 0-7.633864-0.199545-11.533684-0.649799l-273.066189-30.800493c-55.399751-6.250354-98.800213-54.667064-98.800213-110.199845l0-685.533288c0-57.300031 47.89994-101.43318 106.732883-94.132914l273.066189 33.099862c54.999638 6.650467 98.066503 55.150064 98.066503 110.400413l0 682.667008C540.741601 914.540006 499.241418 956.340017 446.275089 956.340017zM157.208485 102.540398c-15.366989 0-26.066679 10.933003-26.066679 26.616194l0 685.533288c0 20.632923 17.499559 40.033785 38.20002 42.366923l273.066189 30.800493c17.10047 1.833765 30.066783-9.533121 30.066783-26.666336L472.474798 178.523953c0-20.61655-17.400299-40.133046-38.000476-42.632983L161.408133 102.791108C159.974481 102.623285 158.574598 102.540398 157.208485 102.540398z" fill="#ffffff" p-id="8716" data-spm-anchor-id="a313x.7781069.0.i18" class="selected"></path><path d="M616.474446 956.140473c-17.133216 0-31.933293-12.867052-33.900088-30.300097-2.099824-18.733667 11.366885-35.633568 30.099529-37.749766l273.066189-30.816866c20.700461-2.333138 38.20002-21.732977 38.20002-42.366923l0-685.533288c0-8.316409-3.000334-15.550161-8.400321-20.35049-5.566786-4.916986-13.267165-7.033184-21.86703-6.01704l-273.066189 33.099862c-18.699897 2.366907-35.732829-11.067057-38.000476-29.783327-2.266623-18.699897 11.067057-35.716456 29.7997-37.983079l273.066189-33.099862c27.566846-3.499707 55.232952 4.883217 75.333756 22.683628 20.233833 17.949814 31.400151 43.316551 31.400151 71.450309l0 685.533288c0 55.533804-43.400462 103.950514-98.800213 110.199845L620.339474 955.923532C619.041922 956.073958 617.741299 956.140473 616.474446 956.140473z" fill="#ffffff" p-id="8717" data-spm-anchor-id="a313x.7781069.0.i16" class="selected"></path></svg>
|
||||
<svg t="1691161359211" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2649" width="200" height="200"><path d="M175.726 934.787v-316.26c0-189.18 153.404-342.612 342.774-342.612s342.775 153.433 342.775 342.612v316.26h117.012c24.3 0 44 19.7 44 44s-19.7 44-44 44H44.747c-24.301 0-44-19.7-44-44s19.699-44 44-44h130.98z m367.588-520.804L374.237 692.332h135.221l-33.855 208.762L644.68 622.745H509.457l33.856-208.762h0.001z m259.29-305.76c15.875 9.237 21.299 29.622 12.156 45.488l-60.778 105.636-57.464-33.238 60.78-105.636c9.04-15.865 29.333-21.287 45.106-12.25h0.2zM518.4 30c19.892 0 35.966 14.962 35.966 33.539v119.693h-71.931V63.439C482.434 44.963 498.508 30 518.4 30h-0.001z m-284.003 78.223c15.773-9.138 36.065-3.716 45.208 12.05 0 0 0 0.1 0.1 0.1l60.78 105.636-57.465 33.237-60.78-105.636c-9.14-15.866-3.716-36.15 12.156-45.387h0.001zM26.44 316.985c9.041-15.867 29.334-21.39 45.208-12.252 0 0 0.1 0 0.1 0.101l105.283 61.052-33.152 57.638L38.595 362.37c-15.872-9.137-21.298-29.522-12.155-45.387z m984.12 0c9.143 15.864 3.717 36.249-12.155 45.486L893.12 423.423l-33.152-57.637 105.283-61.053c15.773-9.137 36.065-3.715 45.208 12.05 0 0.1 0.1 0.1 0.1 0.2v0.002z" fill="#FF473E" p-id="2650"></path></svg>
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1 @@
|
||||
<svg t="1691161812026" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5329" width="200" height="200"><path d="M512 0C227.555556 0 0 227.555556 0 512s227.555556 512 512 512 512-227.555556 512-512-227.555556-512-512-512z m45.511111 853.333333c-17.066667 11.377778-28.444444 17.066667-51.2 17.066667-17.066667 0-34.133333-5.688889-51.2-17.066667-17.066667-11.377778-22.755556-28.444444-22.755555-51.2s5.688889-34.133333 22.755555-51.2c11.377778-11.377778 28.444444-22.755556 51.2-22.755555s34.133333 5.688889 51.2 22.755555c11.377778 11.377778 22.755556 28.444444 22.755556 51.2s-11.377778 39.822222-22.755556 51.2z m176.355556-443.733333c-11.377778 22.755556-22.755556 39.822222-39.822223 51.2-17.066667 17.066667-39.822222 39.822222-79.644444 73.955556l-28.444444 28.444444c-5.688889 5.688889-11.377778 17.066667-17.066667 22.755556v17.066666c0 5.688889-5.688889 17.066667-5.688889 34.133334-5.688889 34.133333-22.755556 51.2-56.888889 51.2-17.066667 0-28.444444-5.688889-39.822222-17.066667-11.377778-11.377778-17.066667-28.444444-17.066667-45.511111 0-28.444444 5.688889-51.2 11.377778-68.266667 5.688889-17.066667 17.066667-34.133333 34.133333-51.2 11.377778-17.066667 34.133333-34.133333 56.888889-51.2 22.755556-17.066667 34.133333-28.444444 45.511111-39.822222s17.066667-17.066667 22.755556-28.444445c5.688889-11.377778 11.377778-22.755556 11.377778-34.133333 0-22.755556-11.377778-45.511111-28.444445-62.577778-17.066667-17.066667-45.511111-28.444444-73.955555-28.444444-45.511111-11.377778-73.955556 0-85.333334 17.066667-17.066667 17.066667-34.133333 45.511111-45.511111 79.644444-11.377778 34.133333-28.444444 51.2-62.577778 51.2-17.066667 0-34.133333-5.688889-45.511111-17.066667-11.377778-11.377778-17.066667-28.444444-17.066666-39.822222 0-28.444444 11.377778-62.577778 28.444444-91.022222s45.511111-56.888889 85.333333-79.644445c39.822222-22.755556 79.644444-28.444444 130.844445-28.444444 45.511111 0 85.333333 5.688889 119.466667 22.755556 34.133333 17.066667 62.577778 39.822222 79.644444 68.266666 22.755556 28.444444 34.133333 62.577778 34.133333 96.711111 0 28.444444-5.688889 51.2-17.066666 68.266667z" fill="#1296db" p-id="5330"></path></svg>
|
After Width: | Height: | Size: 2.2 KiB |
@ -0,0 +1 @@
|
||||
<svg t="1691372698423" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4227" width="200" height="200"><path d="M772.245854 83.918049v860.16H80.920976V83.918049h691.324878m19.980487-79.921951H60.940488C27.87278 3.996098 0.999024 30.869854 0.999024 63.937561v900.120976c0 33.067707 26.873756 59.941463 59.941464 59.941463h731.285853c33.067707 0 59.941463-26.873756 59.941464-59.941463V63.937561c0-33.067707-26.873756-59.941463-59.941464-59.941463z" fill="" p-id="4228"></path><path d="M943.079024 221.783415v722.294634h-90.911219V221.783415h90.911219m19.980488-79.921952H832.187317c-33.067707 0-59.941463 26.873756-59.941463 59.941464v822.197073h190.813658c33.067707 0 59.941463-26.873756 59.941464-59.941463V201.802927c0-33.067707-26.873756-59.941463-59.941464-59.941464zM357.650732 223.781463v136.866342H220.78439V223.781463h136.866342m19.980488-79.921951H200.803902c-33.067707 0-59.941463 26.873756-59.941463 59.941464v176.827317c0 33.067707 26.873756 59.941463 59.941463 59.941463h176.827318c33.067707 0 59.941463-26.873756 59.941463-59.941463V203.800976c0-33.067707-26.873756-59.941463-59.941463-59.941464zM612.401951 222.782439h-98.903414c-22.078439 0-39.960976-17.882537-39.960976-39.960976s17.882537-39.960976 39.960976-39.960975h98.903414c22.078439 0 39.960976 17.882537 39.960976 39.960975s-17.882537 39.960976-39.960976 39.960976zM672.343415 439.570732H513.498537c-22.078439 0-39.960976-17.882537-39.960976-39.960976s17.882537-39.960976 39.960976-39.960976h158.844878c22.078439 0 39.960976 17.882537 39.960975 39.960976s-17.882537 39.960976-39.960975 39.960976zM542.470244 331.176585h-28.971707c-22.078439 0-39.960976-17.882537-39.960976-39.960975s17.882537-39.960976 39.960976-39.960976h28.971707c22.078439 0 39.960976 17.882537 39.960976 39.960976s-17.882537 39.960976-39.960976 39.960975zM208.296585 689.326829c-37.163707 0-67.434146-30.270439-67.434146-67.434146s30.270439-67.434146 67.434146-67.434146 67.434146 30.270439 67.434147 67.434146-30.270439 67.434146-67.434147 67.434146z m0-79.921951c-6.893268 0-12.487805 5.594537-12.487805 12.487805s5.594537 12.487805 12.487805 12.487805 12.487805-5.594537 12.487805-12.487805-5.594537-12.487805-12.487805-12.487805zM208.296585 884.136585c-37.163707 0-67.434146-30.270439-67.434146-67.434146s30.270439-67.434146 67.434146-67.434146 67.434146 30.270439 67.434147 67.434146-30.270439 67.434146-67.434147 67.434146z m0-79.921951c-6.893268 0-12.487805 5.594537-12.487805 12.487805s5.594537 12.487805 12.487805 12.487805 12.487805-5.594537 12.487805-12.487805-5.594537-12.487805-12.487805-12.487805zM671.34439 661.354146H386.622439c-22.078439 0-39.960976-17.882537-39.960976-39.960975s17.882537-39.960976 39.960976-39.960976h284.721951c22.078439 0 39.960976 17.882537 39.960976 39.960976s-17.882537 39.960976-39.960976 39.960975zM671.34439 859.160976H386.622439c-22.078439 0-39.960976-17.882537-39.960976-39.960976s17.882537-39.960976 39.960976-39.960976h284.721951c22.078439 0 39.960976 17.882537 39.960976 39.960976s-17.882537 39.960976-39.960976 39.960976z" fill="" p-id="4229"></path></svg>
|
After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,130 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form ref="ruleForm" :inline="true" label-width="100px" class="el-form-lable" cell-style="{ display: flex;}" :model="queryParams">
|
||||
<div>
|
||||
<el-form-item>
|
||||
<el-input v-model="queryParams.keyWord" placeholder="实训任务名称" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="gitlist">查询</el-button>
|
||||
</el-form-item></div>
|
||||
<div>
|
||||
</div>
|
||||
</el-form>
|
||||
<!-- -->
|
||||
<el-table :data="tableData" style="width:100%">
|
||||
<el-table-column prop="trainingName" label="实训任务名称" align="center" width="200" />
|
||||
<el-table-column prop="startTime" label="实训开始时间" align="center" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{ parseTime(scope.row.startTime, "{y}-{m}-{d} {h}:{i}:{s}")}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="endTime" label="实训结束时间" align="center" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{ parseTime(scope.row.endTime, "{y}-{m}-{d} {h}:{i}:{s}")}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="fileName" label="实验报告文档" align="center" >
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #1890ff; cursor: pointer; " @click="load(scope.row.reportID)"> {{ scope.row.fileName !== null ? scope.row.fileName : '--'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reportScore" label="实训报告成绩" align="center" />
|
||||
<el-table-column label="操作" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" @click="down(scope.row)">查看</el-button>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total"
|
||||
:page.sync="queryParams.index"
|
||||
:limit.sync="queryParams.size"
|
||||
@pagination="gitlist" />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import{getroleId} from '@/utils/auth.js'
|
||||
import * as report from '@/api/report.js'
|
||||
import {getToken,getusername ,getschoolId} from '@/utils/auth.js'
|
||||
|
||||
export default {
|
||||
name: '',
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
|
||||
total: 0,
|
||||
queryParams:{
|
||||
studentNumber: getusername(),//学号
|
||||
schoolId:getschoolId(),//学校id
|
||||
keyWord:'',//关键字
|
||||
index:1,
|
||||
size:10 ,
|
||||
|
||||
},
|
||||
planParams:{
|
||||
name:'',
|
||||
file:null
|
||||
},
|
||||
tableData: null ,
|
||||
rulesform:{
|
||||
name: [
|
||||
{ required: true, message: '请输入资源名称', trigger: 'blur' }
|
||||
],
|
||||
},
|
||||
uploadProgress: 0
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
|
||||
this.gitlist()
|
||||
},
|
||||
methods: {
|
||||
gitlist(){
|
||||
report.getMemberList(this.queryParams).then(res=>{
|
||||
if(res.code !== 200) return
|
||||
this.tableData = res.data.list
|
||||
this.total = res?.data.total
|
||||
})
|
||||
},
|
||||
// 下载
|
||||
down(data){
|
||||
console.log(data,'data');
|
||||
this.$tab.openPage("实验报告", `/student/trainingReport/repost?reportID=${data.reportID}`);
|
||||
},
|
||||
load(id){
|
||||
console.log(id,'id');
|
||||
window.open(`http://118.31.7.2:8801/api/report/download?id=${id}&TOKEN=${getToken()}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
.app-container {
|
||||
.el-form-lable {
|
||||
.el-input {
|
||||
width: calc(100vw / 3);
|
||||
}
|
||||
::v-deep.el-input__inner{
|
||||
background: #EAEAEA !important;
|
||||
}
|
||||
}
|
||||
.el-form{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.el-dialog__body{
|
||||
.el-form{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.el-button--medium{
|
||||
margin-left: 78px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|