|
|
@@ -9,7 +9,7 @@
|
|
|
<div
|
|
|
v-if="header.label === '操作'"
|
|
|
class="padding-top padding-bottom"
|
|
|
- style="width: 280px"
|
|
|
+ style="width: 315px"
|
|
|
>
|
|
|
{{ header.label }}
|
|
|
</div>
|
|
|
@@ -45,27 +45,39 @@
|
|
|
<div
|
|
|
v-if="prop.label === '操作'"
|
|
|
class="nowrap menu flex flex-center"
|
|
|
- style="width: 280px"
|
|
|
>
|
|
|
- <preview :info="row" v-if="row.type === 1" ref="preview" />
|
|
|
- <archives
|
|
|
- v-if="row.type === 2 && row.parentId === '0'"
|
|
|
- :folder-id="row.id"
|
|
|
- :row="row"
|
|
|
- @refresh="refresh"
|
|
|
- />
|
|
|
- <move
|
|
|
- v-if="row.type === 1 && row.fileStatus !== 1"
|
|
|
- :project-id="row.projectId"
|
|
|
- :file-id="row.id"
|
|
|
- @on-success="refresh"
|
|
|
- />
|
|
|
- <slot name="menu" :row="row"></slot>
|
|
|
- <defile
|
|
|
- :row="row"
|
|
|
- @row-del="refresh"
|
|
|
- v-if="row.isAccess === 2 && row.fileStatus !== 1"
|
|
|
- />
|
|
|
+ <div
|
|
|
+ v-if="[1, 2].includes(row.isAccess)"
|
|
|
+ class="flex flex-center"
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ <preview :info="row" v-if="row.type === 1" ref="preview" />
|
|
|
+ </div>
|
|
|
+ <div v-if="row.isAccess === 2" class="flex flex-center">
|
|
|
+ <div v-if="row.type === 2 && row.parentId === '0'">
|
|
|
+ <archives
|
|
|
+ :folder-id="row.id"
|
|
|
+ :row="row"
|
|
|
+ @refresh="refresh"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <move
|
|
|
+ v-if="row.type === 1 && row.fileStatus !== 1"
|
|
|
+ :project-id="row.projectId"
|
|
|
+ :file-id="row.id"
|
|
|
+ @on-success="refresh"
|
|
|
+ />
|
|
|
+ <slot name="menu" :row="row"></slot>
|
|
|
+ <defile
|
|
|
+ :row="row"
|
|
|
+ @row-del="refresh"
|
|
|
+ v-if="row.isAccess === 2 && row.fileStatus !== 1"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <apply :row="row" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div
|
|
|
v-else
|
|
|
@@ -110,13 +122,15 @@ import move from '@/views/resource/component/move.vue'
|
|
|
import archives from '@/views/resource/component/archives.vue'
|
|
|
import preview from '@/views/resource/component/preview.vue'
|
|
|
import defile from '@/views/resource/component/defile.vue'
|
|
|
+import apply from '@/views/resource/component/apply.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
row1,
|
|
|
move,
|
|
|
archives,
|
|
|
preview,
|
|
|
- defile
|
|
|
+ defile,
|
|
|
+ apply
|
|
|
},
|
|
|
props: {
|
|
|
page: {
|
|
|
@@ -208,6 +222,10 @@ export default {
|
|
|
this.$emit('refresh')
|
|
|
},
|
|
|
rowClick(row) {
|
|
|
+ if (row.isAccess === 3) {
|
|
|
+ this.$message.error('暂无权限')
|
|
|
+ return
|
|
|
+ }
|
|
|
// filePicker 文件选择
|
|
|
if (this.selectedList.length === this.max) {
|
|
|
this.$message.error('可选择文件数量最大为' + this.max)
|