|
|
@@ -1,10 +1,16 @@
|
|
|
<template>
|
|
|
- <div class='flex flex-col full-height'>
|
|
|
+ <div class="flex flex-col full-height mt-20 wrapper">
|
|
|
<div class="full-height white-bg">
|
|
|
- <current :id="id" :data="fileData" :total="total" @reFiles="getFileList" @change='changePage'/>
|
|
|
+ <current
|
|
|
+ :id="id"
|
|
|
+ :data="fileData"
|
|
|
+ :total="total"
|
|
|
+ @reFiles="getFileList"
|
|
|
+ @change="changePage"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="full-height full-width white-bg mt-10">
|
|
|
- <historical :folderList="historyFolder" :total="total"/>
|
|
|
+ <historical :folderList="historyFolder" :total="total" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -12,6 +18,7 @@
|
|
|
<route>
|
|
|
{
|
|
|
name:'项目文件',
|
|
|
+meta :{ layout: 'empty' }
|
|
|
}
|
|
|
</route>
|
|
|
|
|
|
@@ -22,7 +29,7 @@ import historical from './component/historical.vue'
|
|
|
export default {
|
|
|
name: 'files',
|
|
|
components: { current, historical },
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
id: '',
|
|
|
fileData: '',
|
|
|
@@ -34,7 +41,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.id = this.$route.query.id
|
|
|
this.getFileList()
|
|
|
this.getFolderAll()
|
|
|
@@ -47,7 +54,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
- getFileList () {
|
|
|
+ getFileList() {
|
|
|
const data = { id: this.id, isHistory: 0 }
|
|
|
this.$api.project.fileList(Object.assign(data, this.page)).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
@@ -57,7 +64,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getFolderAll () {
|
|
|
+ getFolderAll() {
|
|
|
// fixme
|
|
|
this.$api.project.fileList({ isHistory: 1, id: this.id }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
@@ -70,7 +77,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- changePage (page) {
|
|
|
+ changePage(page) {
|
|
|
this.page.current = page
|
|
|
this.getFileList()
|
|
|
}
|
|
|
@@ -78,6 +85,4 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+<style scoped></style>
|