This commit is contained in:
clay
2022-01-21 17:44:37 +08:00
parent d6374440d2
commit 2c4b597942
26 changed files with 777 additions and 138 deletions

View File

@@ -34,6 +34,7 @@
<el-col>
<Introduction :value="contextData" v-if="type == 1"/>
<List :value="contextData" v-if="type == 2"/>
<FileList :value="contextData" v-if="type == 4"/>
<DireData :value="contextData" v-if="type == 3"/>
<Details :value="detailsData" v-if="type == null"/>
</el-col>
@@ -54,6 +55,7 @@ import Introduction from '@/views/content/components/Introduction.vue'
import List from '@/views/content/components/list.vue'
import DireData from '@/views/content/components/dire_data.vue'
import Details from '@/views/content/components/details.vue'
import FileList from '@/views/content/components/file_list.vue'
import {handleTree} from "@/utils/ebts";
import {getParentNode} from "@/utils/sist";
@@ -64,6 +66,7 @@ export default {
List,
DireData,
Details,
FileList
},
data() {
return {
@@ -163,7 +166,7 @@ export default {
this.contextData = null
this.bgImage = menu.link
let data = null
if (this.type == 2) {
if (this.type == 2||this.type == 4) {
data = {
id: menu.encodeId,
pageNum: 1,
@@ -175,7 +178,7 @@ export default {
}
}
getNode(data).then(res => {
if (this.type == 2) {
if (this.type == 2||this.type == 4) {
this.contextData = {
data: res.rows,
total: res.total,