【修改bug】修改下载按钮显示

This commit is contained in:
zhoulingpo
2023-04-27 14:23:28 +08:00
parent 7158488920
commit 9d9cef24b7
+2 -2
View File
@@ -172,7 +172,7 @@
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right"> <vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="text" @click="previewRow(row)">预览</el-button> <el-button type="text" @click="previewRow(row)">预览</el-button>
<el-button type="text" v-if="isAdmin || row.power == 2 " @click="downloadRow(row)">下载</el-button> <el-button type="text" v-if="isAdmin || row.power == 2 || !row.power " @click="downloadRow(row)">下载</el-button>
</template> </template>
</vxe-column> </vxe-column>
@@ -328,7 +328,7 @@ export default {
this.$router.push({ this.$router.push({
path: '/permission/launch', path: '/permission/launch',
query: {id: 'AEHJB8YNJ3', ids: this.checkIds.toString()} query: {id: 'AEHJB8YNJ3', isBegin: 1}
}) })
}, },
init() { init() {