|
@@ -3,11 +3,11 @@
|
|
<div class="l_type_box" v-loading="isLoading">
|
|
<div class="l_type_box" v-loading="isLoading">
|
|
<div class="header">
|
|
<div class="header">
|
|
<img style="width: 35px;margin-right: 10px;" src="../../../assets/knowledge.png" alt="">
|
|
<img style="width: 35px;margin-right: 10px;" src="../../../assets/knowledge.png" alt="">
|
|
- <span class="title">我的知识库</span>
|
|
|
|
|
|
+ <span class="title">我的知识库{{ lang.test }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="nav">
|
|
<div class="nav">
|
|
-
|
|
|
|
|
|
+
|
|
<div class="nav_b" v-for="(item, index) in typeArray" :key="index">
|
|
<div class="nav_b" v-for="(item, index) in typeArray" :key="index">
|
|
<div class="nav_box" style="display: flex;justify-content: space-between;"
|
|
<div class="nav_box" style="display: flex;justify-content: space-between;"
|
|
:class="{ open: item.open, active2: pid.split('/')[0] == item.id }"
|
|
:class="{ open: item.open, active2: pid.split('/')[0] == item.id }"
|
|
@@ -52,8 +52,8 @@
|
|
|
|
|
|
|
|
|
|
<folder :userid="userid" :typeArray="typeArray" :pid="pid" @checkType="checkType" v-show="pid.split('/').length == 1 && (barNam ==0 || barNam == 2)" ref="folder"></folder>
|
|
<folder :userid="userid" :typeArray="typeArray" :pid="pid" @checkType="checkType" v-show="pid.split('/').length == 1 && (barNam ==0 || barNam == 2)" ref="folder"></folder>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<fileBox :userid="userid" :typeArray="typeArray" :pid="pid" :type='type' ref="fileBox" v-show="pid.split('/').length == 1 && moFolderid && barNam ==1" :moFolderid="moFolderid" :myFolderArray="myFolderArray">
|
|
<fileBox :userid="userid" :typeArray="typeArray" :pid="pid" :type='type' ref="fileBox" v-show="pid.split('/').length == 1 && moFolderid && barNam ==1" :moFolderid="moFolderid" :myFolderArray="myFolderArray">
|
|
</fileBox>
|
|
</fileBox>
|
|
|
|
|
|
@@ -113,7 +113,7 @@ export default {
|
|
const _pid = this.pid.split('/');
|
|
const _pid = this.pid.split('/');
|
|
let array = [];
|
|
let array = [];
|
|
let index = this.typeArray.findIndex(item => item.id === _pid[0]);
|
|
let index = this.typeArray.findIndex(item => item.id === _pid[0]);
|
|
-
|
|
|
|
|
|
+
|
|
if (index !== -1) {
|
|
if (index !== -1) {
|
|
array.push({ name: this.typeArray[index].name, id: this.typeArray[index].id });
|
|
array.push({ name: this.typeArray[index].name, id: this.typeArray[index].id });
|
|
}
|
|
}
|
|
@@ -125,7 +125,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
console.log(array);
|
|
console.log(array);
|
|
-
|
|
|
|
|
|
+
|
|
return array;
|
|
return array;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -208,7 +208,7 @@ export default {
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
},
|
|
},
|
|
checkType2(is, pid) {
|
|
checkType2(is, pid) {
|
|
- if(!is){
|
|
|
|
|
|
+ if(!is){
|
|
this.folderid = ""
|
|
this.folderid = ""
|
|
this.checkType(pid)
|
|
this.checkType(pid)
|
|
}
|
|
}
|