【修改】修改下载参数

This commit is contained in:
zhoulingpo
2023-05-08 10:45:10 +08:00
parent fdde20bb1c
commit 45f4373b10
3 changed files with 65 additions and 7 deletions
+32 -1
View File
@@ -7,6 +7,10 @@
</div>
<div class="desc">
<el-row>
<el-col :span="24" class="desc-item">
<label>上传人</label>
<div>{{ row.createUserName }}</div>
</el-col>
<el-col :span="24" class="desc-item">
<label>关键词</label>
<div>{{ getKeyContent(row.keyContent) }}</div>
@@ -19,6 +23,14 @@
<label>所属部门</label>
<div>{{ row.department || '-' }}</div>
</el-col>
<el-col :span="24" class="desc-item">
<label>报告涉密等级</label>
<div>{{ row.confidentialLevel || '-' }}</div>
</el-col>
<el-col :span="24" class="desc-item">
<label>标签</label>
<div>{{ row.labelList || '-' }}</div>
</el-col>
</el-row>
</div>
<div class="report-download">
@@ -28,6 +40,14 @@
<div class="preview-box" v-watermark="{ text: watermarkText }">
<div class="preview-content" v-html="content"></div>
</div>
<div class="report-jug">
<div class="report-jug-left">
报告满意度:<el-rate allow-half :max="10" v-model="value1" @click="saveScore"></el-rate>
</div>
</div>
<div>
</div>
</div>
</template>
@@ -39,6 +59,7 @@ export default {
name: 'ReportDetail',
data () {
return {
value1:'',
watermarkText: '', // 水印
content: '',
row: {}
@@ -81,10 +102,13 @@ export default {
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
this.$api.report.reportDownload({ fileId: row.fileId }).then(res => {
this.$api.report.reportDownload({ fileId: row.fileId,repostId:row.id }).then(res => {
downloadFile(res)
})
// })
},
saveScore(){
}
},
created () {
@@ -179,6 +203,13 @@ export default {
}
}
.report-jug{
display: flex;
.report-jug-left{
display: flex;
padding-left: 10px;
}
}
}
</style>
+32 -5
View File
@@ -97,8 +97,16 @@
</el-row>
</div>
<el-row class="tag-btn">
<el-button @click="permissionApp">权限申请</el-button>
<el-button @click="permissionApp">权限申请</el-button>
<div class="tag-right">
<el-button @click="">时间</el-button>
<el-button @click="">点击量</el-button>
<el-button @click="">下载量</el-button>
</div>
</el-row>
<div class="table">
<el-row>
<el-col :span="4" class="treeList ">
@@ -172,16 +180,30 @@
<!-- </div>-->
</template>
</vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="摘要"></vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="报告年份"></vxe-column>
<vxe-column show-overflow show-header-overflow field="keyContent" title="关键字">
<template #default="{ row }">
{{ getKeyContent(row.keyContent) }}
<vxe-column show-overflow show-header-overflow field="year" title="报告评级">
<template #default="{row}">
<el-rate
v-model="value"
disabled
show-score
text-color="#ff9900"
score-template="{value}">
</el-rate>
</template>
</vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="点赞数"></vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="点击率"></vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="下载量"></vxe-column>
<vxe-column show-overflow show-header-overflow field="year" title="上传人"></vxe-column>
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
<template #default="{ row }">
<el-button type="text" @click="previewRow(row)">预览</el-button>
<el-button type="text" v-if="isAdmin || row.power == 2 || !row.power " @click="downloadRow(row)">下载</el-button>
<el-button type="text" v-if="" @click="permissionApp(row)">申请权限</el-button>
</template>
</vxe-column>
@@ -229,6 +251,7 @@ export default {
name: 'ReportList',
data() {
return {
value:3.7,
watermarkText: '', // 水印
fullscreen: false,
q: {
@@ -459,7 +482,7 @@ export default {
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
this.$api.report.reportDownload({fileId: row.fileId}).then(res => {
this.$api.report.reportDownload({fileId: row.fileId,repostId:row.id}).then(res => {
downloadFile(res)
})
// })
@@ -528,7 +551,11 @@ export default {
}
.tag-btn {
padding: 18px 13px 11px;
.tag-right{
float: right;
}
}
.tag-search {
+1 -1
View File
@@ -964,7 +964,7 @@ export default {
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
this.$api.report.reportDownload({ fileId: row.fileId }).then(res => {
this.$api.report.reportDownload({ fileId: row.fileId,repostId:row.id }).then(res => {
downloadFile(res);
})
// })