资料中心下载

This commit is contained in:
zyn
2023-04-24 16:04:15 +08:00
parent 1fbe764c33
commit ff5a750abd
2 changed files with 22 additions and 4 deletions
@@ -37,6 +37,13 @@
class="icon-download"
v-btn-permission="'85f32cb652c38e39c84e4507cc2955c2'"
/>
<i
v-if="isTemplate"
title="下载"
@click="downloadFile(item.id)"
class="icon-download"
v-btn-permission="'85f32cb652c38e39c84e4507cc295555'"
/>
<!-- <i-->
<!-- title="下载带水印"-->
<!-- @click="downloadFileByWater(item.id,item.name)"-->
@@ -59,7 +66,8 @@ export default {
return {
detailInfoForm: {},
detailInfoId: '',
fileList: []
fileList: [],
isTemplate: false
}
},
methods: {
@@ -130,11 +138,17 @@ export default {
}, e => {
});
},
verifyTemplate(){
const id = this.$route.query.treeId
this.$http._getData('/fileMaterialCenter/zlTree/getMoBan',{ id }).then(res => {
this.isTemplate = res.data
})
}
},
created() {
this.detailInfoId = this.$route.query.id
console.log('13', this.$route.query.id)
this.verifyTemplate()
},
mounted() {
let fileId
@@ -492,7 +492,8 @@ export default {
]
},
productModal: false,
productTitle: ''
productTitle: '',
treeId: '',
}
},
methods: {
@@ -601,6 +602,7 @@ export default {
}
if(list1.length > 0){
this.treeList = list1
this.treeId = this.treeList[0].id
}
},
treeClick(treeNode,a,b) {
@@ -610,6 +612,7 @@ export default {
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
this.attributeEO.treeName = treeNode.name
this.searchInfo()
this.treeId = treeNode.id
},
selectTreeClick(treeNode) {
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
@@ -780,7 +783,8 @@ export default {
this.$router.push({
name: "dataCenterDetail",
query: {
id: row.id
id: row.id,
treeId: this.treeId
}
});
},