-
-

+
+
+
+
+
+
+
+
+
+
+
+

+
+
+ {{ nav.title }}
+
-
- {{ nav.title }}
-
-
-
-
-

-
-
- {{ nav.title }}
+
+
+

+
+
+ {{ nav.title }}
+
-
-
-
-
-
-
- 首页
- >
- {{ crumbs.one.title }}
- >
- {{ crumbs.two.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 首页
- >
- {{ crumbs.one.title }}
- >
- {{ crumbs.two.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 首页
+ >
+ {{ crumbs.one.title }}
+ >
+ {{ crumbs.two.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 首页
+ >
+ {{ crumbs.one.title }}
+ >
+ {{ crumbs.two.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -107,6 +110,7 @@ import Introduction from './components/Introduction.vue'
import List from './components/list.vue'
import DireData from './components/dire_data.vue'
import Details from './components/details.vue'
+import FileList from './components/file_list.vue'
import {handleTree} from "@/utils/ebts";
import {getParentNode} from "@/utils/sist";
@@ -116,7 +120,8 @@ export default {
Introduction,
List,
DireData,
- Details
+ Details,
+ FileList
},
data() {
return {
@@ -128,7 +133,7 @@ export default {
showSecond: true,
contextData: {},
type: 2,
- bgImage: null, crumbs: {
+ bgImage: null, crumbs: {
"two": {
"title": "学院领导",
},
@@ -146,11 +151,11 @@ export default {
let id = this.$route.params && this.$route.params.secondId
this.type = this.$route.query && this.$route.query.type
console.log("触发了 $route")
- if (this.type==3||this.type==1||this.type==2){
+ if (this.type == 3 || this.type == 1 || this.type == 2) {
this.secondId = id
this.showSecond = false
let info = getParentNode(this.secondId);
- console.log("获取到info",info)
+ console.log("获取到info", info)
if (arcId != undefined) {
console.log("getContext")
this.getContext(arcId)
@@ -201,12 +206,12 @@ export default {
})
},
getNav() {
- if (this.type==3||this.type==1||this.type==2){
+ if (this.type == 3 || this.type == 1 || this.type == 2) {
console.log("进入二级")
this.showSecond = false
- let info =null
+ let info = null
info = getParentNode(this.secondId);
- if (info == null){
+ if (info == null) {
location.reload();
}
let arcId = null
@@ -225,7 +230,7 @@ export default {
this.getNodes()
},
- getNodes(){
+ getNodes() {
this.navList = []
getNode({id: this.secondId}).then(res => {
this.navList = res.data
@@ -253,16 +258,13 @@ export default {
}
})
},
-
-
-
getContent(menu) {
- console.log("getContent内部,menu:",menu)
+ console.log("getContent内部,menu:", menu)
this.type = menu.type
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,
@@ -274,8 +276,8 @@ export default {
}
}
getNode(data).then(res => {
- console.log(res,"res值")
- if (this.type == 2) {
+ console.log(res, "res值")
+ if (this.type == 2 || this.type == 4) {
this.contextData = {
data: res.rows,
total: res.total,
@@ -303,6 +305,14 @@ export default {