|
|
@ -1,13 +1,17 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-card shadow="hover" class="m-b-20 head-card"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20 head-card"> |
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<el-page-header @back="$router.back()" content="成绩管理"></el-page-header> |
|
|
|
<el-page-header @back="$router.back()" |
|
|
|
|
|
|
|
content="成绩管理"></el-page-header> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card v-if="method != 2" shadow="hover" class="m-b-20"> |
|
|
|
<el-card v-if="method != 2" |
|
|
|
|
|
|
|
shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
<div class="stat"> |
|
|
|
<div class="stat"> |
|
|
|
<div class="nums"> |
|
|
|
<div class="nums"> |
|
|
|
<div class="item"> |
|
|
|
<div class="item"> |
|
|
@ -19,66 +23,204 @@ |
|
|
|
<p class="val">{{ avgScore }}</p> |
|
|
|
<p class="val">{{ avgScore }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chart" id="chart"></div> |
|
|
|
<div class="chart" |
|
|
|
|
|
|
|
id="chart"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" |
|
|
|
|
|
|
|
class="m-b-20"> |
|
|
|
|
|
|
|
<div v-if="showFile" |
|
|
|
|
|
|
|
class="tabs m-b-20"> |
|
|
|
|
|
|
|
<a class="item" |
|
|
|
|
|
|
|
v-for="(item, i) in tabs" |
|
|
|
|
|
|
|
:key="i" |
|
|
|
|
|
|
|
:class="{active: i === active}" |
|
|
|
|
|
|
|
@click="tabChange(i)">{{ item }}</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input |
|
|
|
<el-input size="small" |
|
|
|
size="small" |
|
|
|
|
|
|
|
placeholder="请输入学校/学生姓名" |
|
|
|
placeholder="请输入学校/学生姓名" |
|
|
|
prefix-icon="el-icon-search" |
|
|
|
prefix-icon="el-icon-search" |
|
|
|
v-model="keyword" clearable |
|
|
|
v-model="keyword" |
|
|
|
style="width: 300px" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
style="width: 300px"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-if="!active"> |
|
|
|
<el-button v-if="method == 2" type="primary" @click="batchImport">上传成绩</el-button> |
|
|
|
<el-button v-if="method == 2" |
|
|
|
<el-button type="primary" @click="delAllData">批量删除</el-button> |
|
|
|
type="primary" |
|
|
|
<el-button type="primary" @click="exportData">导出</el-button> |
|
|
|
@click="batchImport">上传成绩</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
@click="delAllData">批量删除</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
@click="exportData">导出</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else> |
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
@click="exportData1">批量导出</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="list" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="reportId"> |
|
|
|
</div> |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
<template v-if="!active"> |
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"> |
|
|
|
<el-table :data="list" |
|
|
|
|
|
|
|
class="table" |
|
|
|
|
|
|
|
:key="1" |
|
|
|
|
|
|
|
ref="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center" |
|
|
|
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
|
|
|
row-key="reportId"> |
|
|
|
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="60" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="schoolName" label="学校" min-width="150" align="center"></el-table-column> |
|
|
|
<el-table-column prop="schoolName" |
|
|
|
<el-table-column v-if="competitionType" prop="teamName" label="团队名称" min-width="100" align="center"></el-table-column> |
|
|
|
label="学校" |
|
|
|
<el-table-column prop="userName" label="学生姓名" min-width="100" align="center"></el-table-column> |
|
|
|
min-width="150" |
|
|
|
<el-table-column prop="workNumber" label="学号" min-width="100" align="center"></el-table-column> |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="score" label="分数" width="90" align="center"></el-table-column> |
|
|
|
<el-table-column v-if="competitionType" |
|
|
|
<el-table-column prop="timeSum" label="耗时" width="90" align="center"> |
|
|
|
prop="teamName" |
|
|
|
|
|
|
|
label="团队名称" |
|
|
|
|
|
|
|
min-width="100" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
|
|
|
label="学生姓名" |
|
|
|
|
|
|
|
min-width="100" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
|
|
|
label="学号" |
|
|
|
|
|
|
|
min-width="100" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="score" |
|
|
|
|
|
|
|
label="分数" |
|
|
|
|
|
|
|
width="90" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
|
|
|
label="耗时" |
|
|
|
|
|
|
|
width="90" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.timeSum }}min |
|
|
|
{{ scope.row.timeSum }}min |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="submitTime" label="提交时间" min-width="150" align="center"> |
|
|
|
<el-table-column prop="submitTime" |
|
|
|
|
|
|
|
label="提交时间" |
|
|
|
|
|
|
|
min-width="150" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="160"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.reportId" |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div class="pagination"> |
|
|
|
|
|
|
|
<el-pagination background |
|
|
|
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
|
|
|
:total="total" |
|
|
|
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
|
|
|
:current-page="page"> |
|
|
|
|
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<el-table :data="list1" |
|
|
|
|
|
|
|
class="table" |
|
|
|
|
|
|
|
:key="2" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center" |
|
|
|
|
|
|
|
@selection-change="handleSelectionChange1" |
|
|
|
|
|
|
|
row-key="reportId"> |
|
|
|
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="60" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
{{ scope.$index + (page1 - 1) * pageSize + 1 }} |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="schoolName" |
|
|
|
|
|
|
|
label="学校" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column v-if="competitionType" |
|
|
|
|
|
|
|
prop="teamName" |
|
|
|
|
|
|
|
label="团队名称" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
|
|
|
label="学生姓名" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
|
|
|
label="学号" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="fileName" |
|
|
|
|
|
|
|
label="文件名" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="fileSize" |
|
|
|
|
|
|
|
label="文件大小" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="fileFormat" |
|
|
|
|
|
|
|
label="文件类型" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="fileFormat" |
|
|
|
|
|
|
|
label="文件格式" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="createTime" |
|
|
|
|
|
|
|
label="提交时间" |
|
|
|
|
|
|
|
width="150" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="160"> |
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="160"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.reportId" type="text" @click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
<el-button v-if="!isCompress(scope.row.fileFormat)" |
|
|
|
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> |
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="preview(scope.row)">预览文件</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
|
|
|
|
@click="exportFile(scope.row)">导出文件</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="page"> |
|
|
|
<el-pagination background |
|
|
|
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
|
|
|
:total="total1" |
|
|
|
|
|
|
|
@current-change="handleCurrentChange1" |
|
|
|
|
|
|
|
:current-page="page1"> |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="批量导入" :visible.sync="importVisible" width="24%" :close-on-click-modal="false"> |
|
|
|
<el-dialog title="批量导入" |
|
|
|
|
|
|
|
:visible.sync="importVisible" |
|
|
|
|
|
|
|
width="24%" |
|
|
|
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
<div style="text-align: center"> |
|
|
|
<div style="text-align: center"> |
|
|
|
<div style="margin-bottom: 10px;"> |
|
|
|
<div style="margin-bottom: 10px;"> |
|
|
|
<el-button type="primary" @click="download">模板下载<i class="el-icon-download el-icon--right"></i></el-button> |
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
@click="download">模板下载<i class="el-icon-download el-icon--right"></i></el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-upload |
|
|
|
<el-upload ref="importStaff" |
|
|
|
ref="importStaff" |
|
|
|
|
|
|
|
name="file" |
|
|
|
name="file" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
:on-remove="handleRemove" |
|
|
|
:on-remove="handleRemove" |
|
|
@ -94,15 +236,21 @@ |
|
|
|
competitionId: this.id, |
|
|
|
competitionId: this.id, |
|
|
|
stageId: this.stageId, |
|
|
|
stageId: this.stageId, |
|
|
|
systemId: 0 |
|
|
|
systemId: 0 |
|
|
|
}" |
|
|
|
}"> |
|
|
|
> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button> |
|
|
|
class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button> |
|
|
|
</el-upload> |
|
|
|
</el-upload> |
|
|
|
<el-link v-if="uploadFaild" type="primary" @click="showFaild">部分数据导入失败,查看失败原因</el-link> |
|
|
|
<el-link v-if="uploadFaild" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="showFaild">部分数据导入失败,查看失败原因</el-link> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<span slot="footer" |
|
|
|
<el-button size="small" @click="importVisible = false">取 消</el-button> |
|
|
|
class="dialog-footer"> |
|
|
|
<el-button size="small" type="primary" @click="uploadSure">确 定</el-button> |
|
|
|
<el-button size="small" |
|
|
|
|
|
|
|
@click="importVisible = false">取 消</el-button> |
|
|
|
|
|
|
|
<el-button size="small" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="uploadSure">确 定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -120,6 +268,8 @@ export default { |
|
|
|
stageId: +this.$route.query.stageId, |
|
|
|
stageId: +this.$route.query.stageId, |
|
|
|
method: +this.$route.query.method, |
|
|
|
method: +this.$route.query.method, |
|
|
|
competitionType: +this.$route.query.competitionType, |
|
|
|
competitionType: +this.$route.query.competitionType, |
|
|
|
|
|
|
|
showFile: this.$route.query.showFile === 'true', |
|
|
|
|
|
|
|
isCompress: util.isCompress, |
|
|
|
keyword: "", |
|
|
|
keyword: "", |
|
|
|
searchTimer: null, |
|
|
|
searchTimer: null, |
|
|
|
list: [], |
|
|
|
list: [], |
|
|
@ -127,6 +277,12 @@ export default { |
|
|
|
page: 1, |
|
|
|
page: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
total: 0, |
|
|
|
total: 0, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list1: [], |
|
|
|
|
|
|
|
multipleSelection1: [], |
|
|
|
|
|
|
|
page1: 1, |
|
|
|
|
|
|
|
total1: 0, |
|
|
|
|
|
|
|
|
|
|
|
totalNumber: 0, // 总人数 |
|
|
|
totalNumber: 0, // 总人数 |
|
|
|
avgScore: 0, // 平均分 |
|
|
|
avgScore: 0, // 平均分 |
|
|
|
importVisible: false, |
|
|
|
importVisible: false, |
|
|
@ -136,7 +292,9 @@ export default { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
token: sessionStorage.getItem("token") |
|
|
|
token: sessionStorage.getItem("token") |
|
|
|
}, |
|
|
|
}, |
|
|
|
statData: {} |
|
|
|
statData: {}, |
|
|
|
|
|
|
|
tabs: ['成绩列表', '文件列表'], |
|
|
|
|
|
|
|
active: 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
@ -152,6 +310,19 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getData () { |
|
|
|
getData () { |
|
|
|
|
|
|
|
// 文件列表 |
|
|
|
|
|
|
|
if (this.active) { |
|
|
|
|
|
|
|
this.$post(this.api.cCompetitionStageFileList, { |
|
|
|
|
|
|
|
pageNum: this.page1, |
|
|
|
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
|
|
|
competitionId: this.id, |
|
|
|
|
|
|
|
stageId: this.stageId, |
|
|
|
|
|
|
|
keyWord: this.keyword, |
|
|
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
|
|
this.list1 = data.records |
|
|
|
|
|
|
|
this.total1 = data.total |
|
|
|
|
|
|
|
}).catch(res => { }) |
|
|
|
|
|
|
|
} else { // 成绩列表 |
|
|
|
this.$post(this.api.stageGradeManagementList, { |
|
|
|
this.$post(this.api.stageGradeManagementList, { |
|
|
|
pageNum: this.page, |
|
|
|
pageNum: this.page, |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageSize: this.pageSize, |
|
|
@ -167,6 +338,7 @@ export default { |
|
|
|
this.totalNumber = data.totalNumber |
|
|
|
this.totalNumber = data.totalNumber |
|
|
|
this.getChart() |
|
|
|
this.getChart() |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
initData () { |
|
|
|
initData () { |
|
|
|
this.page = 1 |
|
|
|
this.page = 1 |
|
|
@ -190,6 +362,28 @@ export default { |
|
|
|
util.downloadFileDirect(`赛事成绩.xls`, new Blob([res.data])) |
|
|
|
util.downloadFileDirect(`赛事成绩.xls`, new Blob([res.data])) |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 导出(有勾选:就导勾选中的;没有勾选:就导全部) |
|
|
|
|
|
|
|
exportData1 () { |
|
|
|
|
|
|
|
// 有勾选,就带上勾选的id |
|
|
|
|
|
|
|
let ids |
|
|
|
|
|
|
|
if (this.multipleSelection1.length) { |
|
|
|
|
|
|
|
ids = this.multipleSelection1.map(e => e.id) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const data = { |
|
|
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
|
|
pageSize: 1000, |
|
|
|
|
|
|
|
competitionId: this.id, |
|
|
|
|
|
|
|
stageId: this.stageId, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ids) data.ids = ids |
|
|
|
|
|
|
|
axios.post(this.api.derive, data, { |
|
|
|
|
|
|
|
headers: this.headers, |
|
|
|
|
|
|
|
responseType: 'blob' |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
console.log("🚀 ~ file: matchArchList.vue:378 ~ exportData1 ~ res:", res) |
|
|
|
|
|
|
|
util.downloadFileDirect(`批量导出.zip`, new Blob([res.data])) |
|
|
|
|
|
|
|
}).catch(res => { }) |
|
|
|
|
|
|
|
}, |
|
|
|
handleDelete (row) { // 删除 |
|
|
|
handleDelete (row) { // 删除 |
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
@ -238,6 +432,14 @@ export default { |
|
|
|
this.page = val; |
|
|
|
this.page = val; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleSelectionChange1 (val) { // 多选 |
|
|
|
|
|
|
|
this.multipleSelection1 = val; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleCurrentChange1 (val) { // 切换分页 |
|
|
|
|
|
|
|
this.page1 = val; |
|
|
|
|
|
|
|
this.getData(); |
|
|
|
|
|
|
|
}, |
|
|
|
getChart () { // 初始化折线图 |
|
|
|
getChart () { // 初始化折线图 |
|
|
|
const data = [] |
|
|
|
const data = [] |
|
|
|
const { statData } = this |
|
|
|
const { statData } = this |
|
|
@ -322,13 +524,25 @@ export default { |
|
|
|
uploadSure () { |
|
|
|
uploadSure () { |
|
|
|
this.importVisible = false |
|
|
|
this.importVisible = false |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// tab回调 |
|
|
|
|
|
|
|
tabChange (i) { |
|
|
|
|
|
|
|
this.active = i |
|
|
|
|
|
|
|
this.getData() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 预览附件 |
|
|
|
|
|
|
|
preview (item) { |
|
|
|
|
|
|
|
window.open((util.isDoc(item.fileFormat) ? 'https://view.officeapps.live.com/op/view.aspx?src=' : '') + item.filePath) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 导出文件 |
|
|
|
|
|
|
|
exportFile (item) { |
|
|
|
|
|
|
|
util.downloadFile(item.userName + '-' + item.fileName, item.filePath) |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .head-card { |
|
|
|
/deep/ .head-card { |
|
|
|
.el-card__body { |
|
|
|
.el-card__body { |
|
|
|
padding-bottom: 0px; |
|
|
|
padding-bottom: 0px; |
|
|
|