|
@@ -110,7 +110,7 @@
|
|
class="sTable"
|
|
class="sTable"
|
|
ref="table"
|
|
ref="table"
|
|
size="default"
|
|
size="default"
|
|
- :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onChange, onSelect: onSelectChange, onSelectAll: onSelectAllChange }"
|
|
|
|
|
|
+ :row-selection=" showSelect ?{ selectedRowKeys: selectedRowKeys, onChange: onChange, onSelect: onSelectChange, onSelectAll: onSelectAllChange }:null"
|
|
:rowKey="(record) => record.id"
|
|
:rowKey="(record) => record.id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
@@ -267,6 +267,10 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
hasSelected () {
|
|
hasSelected () {
|
|
return this.selectedRowKeys.length > 0
|
|
return this.selectedRowKeys.length > 0
|
|
|
|
+ },
|
|
|
|
+ // 是否显示table选择框
|
|
|
|
+ showSelect () {
|
|
|
|
+ return this.$hasPermissions('B_productInfo_batchAudit') || this.$hasPermissions('B_productInfo_batchLaunch') || this.$hasPermissions('B_productInfo_batchDownline')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|