资料中心下载

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" class="icon-download"
v-btn-permission="'85f32cb652c38e39c84e4507cc2955c2'" v-btn-permission="'85f32cb652c38e39c84e4507cc2955c2'"
/> />
<i
v-if="isTemplate"
title="下载"
@click="downloadFile(item.id)"
class="icon-download"
v-btn-permission="'85f32cb652c38e39c84e4507cc295555'"
/>
<!-- <i--> <!-- <i-->
<!-- title="下载带水印"--> <!-- title="下载带水印"-->
<!-- @click="downloadFileByWater(item.id,item.name)"--> <!-- @click="downloadFileByWater(item.id,item.name)"-->
@@ -59,7 +66,8 @@ export default {
return { return {
detailInfoForm: {}, detailInfoForm: {},
detailInfoId: '', detailInfoId: '',
fileList: [] fileList: [],
isTemplate: false
} }
}, },
methods: { methods: {
@@ -130,11 +138,17 @@ export default {
}, e => { }, e => {
}); });
}, },
verifyTemplate(){
const id = this.$route.query.treeId
this.$http._getData('/fileMaterialCenter/zlTree/getMoBan',{ id }).then(res => {
this.isTemplate = res.data
})
}
}, },
created() { created() {
this.detailInfoId = this.$route.query.id this.detailInfoId = this.$route.query.id
console.log('13', this.$route.query.id) console.log('13', this.$route.query.id)
this.verifyTemplate()
}, },
mounted() { mounted() {
let fileId let fileId
@@ -492,7 +492,8 @@ export default {
] ]
}, },
productModal: false, productModal: false,
productTitle: '' productTitle: '',
treeId: '',
} }
}, },
methods: { methods: {
@@ -601,6 +602,7 @@ export default {
} }
if(list1.length > 0){ if(list1.length > 0){
this.treeList = list1 this.treeList = list1
this.treeId = this.treeList[0].id
} }
}, },
treeClick(treeNode,a,b) { treeClick(treeNode,a,b) {
@@ -610,6 +612,7 @@ export default {
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
this.attributeEO.treeName = treeNode.name this.attributeEO.treeName = treeNode.name
this.searchInfo() this.searchInfo()
this.treeId = treeNode.id
}, },
selectTreeClick(treeNode) { selectTreeClick(treeNode) {
this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id
@@ -780,7 +783,8 @@ export default {
this.$router.push({ this.$router.push({
name: "dataCenterDetail", name: "dataCenterDetail",
query: { query: {
id: row.id id: row.id,
treeId: this.treeId
} }
}); });
}, },