This commit is contained in:
clay
2022-09-06 22:28:24 +08:00
parent 25e94c1117
commit 9d78b43963
7 changed files with 71 additions and 34 deletions

View File

@@ -100,10 +100,10 @@
</el-row>
<el-row>
<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"/>
<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>
</el-row>
@@ -135,10 +135,10 @@
</el-row>
<el-row>
<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"/>
<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>
</el-row>
@@ -335,12 +335,15 @@ export default {
this.contextData = null
this.bgImage = menu.link
let data = null
if (this.type == 2 || this.type == 4) {
if (this.type === 2 || this.type === 4) {
data = {
id: menu.encodeId,
pageNum: 1,
pageSize: 5
}
if (this.type === 4){
data.pageSize = 10
}
} else {
data = {
id: menu.encodeId,
@@ -349,7 +352,7 @@ export default {
getNode(data).then(res => {
console.log(res, "res值")
console.log(this.type);
if (this.type == 2 || this.type == 4) {
if (this.type === 2 || this.type === 4) {
this.contextData = {
data: res.rows,
total: res.total,