|
@@ -325,7 +325,7 @@
|
|
</a-space>
|
|
</a-space>
|
|
</a>
|
|
</a>
|
|
<template v-if="currentType == 'container'">
|
|
<template v-if="currentType == 'container'">
|
|
- <searchFileOrFolder/>
|
|
|
|
|
|
+ <searchFileOrFolder @SearchFile="SearchFile"/>
|
|
</template>
|
|
</template>
|
|
<div v-if="show == 'transverse'">
|
|
<div v-if="show == 'transverse'">
|
|
<a-table
|
|
<a-table
|
|
@@ -1379,7 +1379,6 @@ export default {
|
|
folderId: null,
|
|
folderId: null,
|
|
folderObj: {},
|
|
folderObj: {},
|
|
folderList: [],
|
|
folderList: [],
|
|
- order_by: 'desc',
|
|
|
|
searchVisible: false,
|
|
searchVisible: false,
|
|
searchName: null,
|
|
searchName: null,
|
|
searchColumns: [
|
|
searchColumns: [
|
|
@@ -1762,6 +1761,8 @@ export default {
|
|
folderNamingRuleForm: {
|
|
folderNamingRuleForm: {
|
|
naming_rule_id: undefined,
|
|
naming_rule_id: undefined,
|
|
},
|
|
},
|
|
|
|
+ //容器筛选
|
|
|
|
+ filterParams:null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -2407,7 +2408,8 @@ export default {
|
|
const params = {
|
|
const params = {
|
|
object_type: obj.type,
|
|
object_type: obj.type,
|
|
object_id: obj.id,
|
|
object_id: obj.id,
|
|
- order_by: this.order_by,
|
|
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
page: 1,
|
|
page: 1,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
}
|
|
}
|
|
@@ -2495,7 +2497,8 @@ export default {
|
|
if (obj.isEnd === undefined || obj.isEnd === true) {
|
|
if (obj.isEnd === undefined || obj.isEnd === true) {
|
|
const params = {
|
|
const params = {
|
|
id: obj.id,
|
|
id: obj.id,
|
|
- order_by: this.order_by,
|
|
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
page: 1,
|
|
page: 1,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
}
|
|
}
|
|
@@ -3111,7 +3114,8 @@ export default {
|
|
const params = {
|
|
const params = {
|
|
object_type: this.containerObj.type,
|
|
object_type: this.containerObj.type,
|
|
object_id: this.containerObj.id,
|
|
object_id: this.containerObj.id,
|
|
- order_by: this.order_by,
|
|
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
page: 1,
|
|
page: 1,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
}
|
|
}
|
|
@@ -3768,7 +3772,8 @@ export default {
|
|
} else if (this.rightTitleId === 'Folders And Files') {
|
|
} else if (this.rightTitleId === 'Folders And Files') {
|
|
const params = {
|
|
const params = {
|
|
id: this.folderObj.id,
|
|
id: this.folderObj.id,
|
|
- order_by: this.order_by,
|
|
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
page: current,
|
|
page: current,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
}
|
|
}
|
|
@@ -3778,13 +3783,17 @@ export default {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
})
|
|
})
|
|
} else if (this.rightTitleId === 'Container') {
|
|
} else if (this.rightTitleId === 'Container') {
|
|
- const params = {
|
|
|
|
|
|
+ let params = {
|
|
object_type: this.containerObj.type,
|
|
object_type: this.containerObj.type,
|
|
object_id: this.containerObj.id,
|
|
object_id: this.containerObj.id,
|
|
- order_by: this.order_by,
|
|
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
page: current,
|
|
page: current,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
}
|
|
}
|
|
|
|
+ if(this.filterParams){
|
|
|
|
+ params = {...params,...this.filterParams}
|
|
|
|
+ }
|
|
docContainerFolderOpen(params).then((res) => {
|
|
docContainerFolderOpen(params).then((res) => {
|
|
this.docTable = [...res.data.folders, ...res.data.files]
|
|
this.docTable = [...res.data.folders, ...res.data.files]
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
@@ -3884,6 +3893,29 @@ export default {
|
|
this.approvalFileList = [...this.approvalFileList, file]
|
|
this.approvalFileList = [...this.approvalFileList, file]
|
|
return false
|
|
return false
|
|
},
|
|
},
|
|
|
|
+ //容器筛选
|
|
|
|
+ SearchFile(filterParams){
|
|
|
|
+ this.filterParams = filterParams
|
|
|
|
+ this.current = 1
|
|
|
|
+ let params = {
|
|
|
|
+ object_type: 'container',
|
|
|
|
+ object_id: this.containerObj.id,
|
|
|
|
+ order_by_column: 'updated_at',
|
|
|
|
+ order_by_direction: 'desc',
|
|
|
|
+ page: 1,
|
|
|
|
+ page_size: 10,
|
|
|
|
+ }
|
|
|
|
+ params = {...params,...filterParams}
|
|
|
|
+ docContainerFolderOpen(params).then((res) => {
|
|
|
|
+ this.docTable = []
|
|
|
|
+ this.folderList = res.data.folders
|
|
|
|
+ this.docTable = [...res.data.folders, ...res.data.files]
|
|
|
|
+ this.folder_parent_id = res.data.folder_parent_id
|
|
|
|
+ this.folder_parent_name = res.data.folder_parent_name
|
|
|
|
+ this.total = res.data.total
|
|
|
|
+ this.parseObj = res.object
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|