clay commit : 首页重做准备

This commit is contained in:
clay
2022-10-03 16:24:48 +08:00
parent ae08b72bc2
commit d059bf187a
7 changed files with 1059 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "organization"
}
</script>
<style scoped>
</style>

View File

@@ -103,7 +103,8 @@
<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"/>
<DireData :value="contextData" v-if="type === 3 && organizationType == '1'"/>
<Organization :value="contextData" v-if="type === 3 && organizationType == '2'"/>
<Details :value="detailsData" v-if="type == null"/>
</el-col>
</el-row>
@@ -138,7 +139,8 @@
<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"/>
<DireData :value="contextData" v-if="type === 3 && organizationType == '1'"/>
<Organization :value="contextData" v-if="type === 3 && organizationType == '2'"/>
<Details :value="detailsData" v-if="type == null"/>
</el-col>
</el-row>
@@ -157,6 +159,7 @@ import {getNode, crumbs, article} from "@/api";
import Introduction from './components/Introduction.vue'
import List from './components/list.vue'
import DireData from './components/dire_data.vue'
import Organization from './components/organization.vue'
import Details from './components/details.vue'
import FileList from './components/file_list.vue'
import {handleTree} from "@/utils/ebts";
@@ -176,6 +179,7 @@ export default {
width: document.documentElement.clientWidth > 992,
secondId: null,
navId: null,
organizationType:"",
navList: [],
showIndex: 0,
showSecond: true,
@@ -364,6 +368,11 @@ export default {
} else if (this.type == 1) {
this.contextData = res.data
} else if (this.type == 3) {
if (res.additional == ""){
this.organizationType = "1"
}else {
this.organizationType = res.additional
}
this.contextData = handleTree(res.data, "id", "pid", null, null)
console.log(this.contextData,"this.contextData")
}