diff --git a/src/views/publicService/docCenter/components/rightTable.vue b/src/views/publicService/docCenter/components/rightTable.vue
index 355e9d1..f32232f 100644
--- a/src/views/publicService/docCenter/components/rightTable.vue
+++ b/src/views/publicService/docCenter/components/rightTable.vue
@@ -67,6 +67,12 @@
@selection-change="handleSelectionChange"
style="width: 100%"
>
+
@@ -260,7 +266,7 @@
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
- @pagination="getList"
+ @pagination="getTableList"
/>
@@ -429,7 +435,7 @@ export default {
icon: 'el-icon-download',
type: 'info',
click: this.handleBatchDownload,
- acthType: [0, '4'],
+ acthType: [0, '2', '4'],
authType: [],
// component: 'DownloadTags',
},
@@ -457,7 +463,7 @@ export default {
{
label: '下载',
click: this.handleBatchDownload_1,
- acthType: ['1', null, '4'],
+ acthType: ['2', null, '4'],
authType: [],
},
{
@@ -613,14 +619,14 @@ export default {
},
// 获取列表数据
- getList() {
- this.loading = true
- // 模拟API调用
- setTimeout(() => {
- this.total = 50 // 模拟总数
- this.loading = false
- }, 500)
- },
+ // getList() {
+ // this.loading = true
+ // // 模拟API调用
+ // setTimeout(() => {
+ // this.total = 50 // 模拟总数
+ // this.loading = false
+ // }, 500)
+ // },
// 选择变化
handleSelectionChange(selection) {
@@ -755,6 +761,22 @@ export default {
return
}
+ if (this.acthType == 2 || this.authType == 'otherShare') {
+ // 判断选择的文件中 有没有auth 为1的 为1时仅可查看 不能下载
+ const hasAuth1 = this.selectedRows.some((row) => row.auth == 1)
+ // 如果有多个则把多个的序号拼接起来
+ const auth1Indexes = this.selectedRows
+ .filter((row) => row.auth == 1)
+ .map((row, index) => index + 1)
+ if (hasAuth1) {
+ this.$modal.msgWarning(
+ `序号为${auth1Indexes.join(
+ ',',
+ )}的共享文件或文档仅可查看,不能下载`,
+ )
+ return
+ }
+ }
// 将选中的文件转换为下载组件需要的格式
this.selectedFilesForDownload = this.selectedRows.map((row) => ({
id: row.id,