|
|
@@ -26,7 +26,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
import {
|
|
|
State,
|
|
|
AssetTypeInfo,
|
|
|
@@ -57,7 +56,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['isOperator', 'isGroupAdmin']),
|
|
|
schema () {
|
|
|
return {
|
|
|
list: this.getAssetsByQuery,
|
|
|
@@ -67,10 +65,10 @@ export default {
|
|
|
'selection-change': this.onSelectionChange
|
|
|
},
|
|
|
buttons: [
|
|
|
- this.isOperator && { type: 'add', label: '上传', on: this.onUpload },
|
|
|
- this.isOperator && { type: 'add', label: `新增${AssetTypeInfo[AssetType.STREAMING_MEDIA]}`, on: this.addStreamingMedia },
|
|
|
+ { type: 'add', label: '上传', on: this.onUpload },
|
|
|
+ { type: 'add', label: `新增${AssetTypeInfo[AssetType.STREAMING_MEDIA]}`, on: this.addStreamingMedia },
|
|
|
{ type: 'del', on: this.onBatchDel }
|
|
|
- ].filter(Boolean),
|
|
|
+ ],
|
|
|
filters: [
|
|
|
{ key: 'tag', type: 'select', placeholder: '类型', options: [
|
|
|
{ value: AssetTag.AD, label: AssetTagInfo[AssetTag.AD] },
|
|
|
@@ -117,7 +115,7 @@ export default {
|
|
|
{ type: 'invoke', render: [
|
|
|
{ label: '查看', allow: ({ file }) => !!file, on: this.onView },
|
|
|
{ label: '删除', allow: this.canDel, on: this.onDel }
|
|
|
- ].filter(Boolean), width: 100 }
|
|
|
+ ], width: 100 }
|
|
|
]
|
|
|
}
|
|
|
}
|