clay fix : 关闭一系列bug

This commit is contained in:
clay
2022-10-04 17:17:55 +08:00
parent 698adad066
commit 65e7a1ad86
7 changed files with 122 additions and 82 deletions

View File

@@ -22,7 +22,7 @@
</el-col>
<el-col v-if="$i18n.locale === 'cn'" v-show="width" :md="6" :lg="6" :xl="4">
<div class="left_lab" ref="lab">
<div class="lab">
<div class="lab" v-if="navList">
<div v-for="(nav,index) in navList" class="lab_div">
<div v-if="index === showIndex" class="lab_list lab_select" @click="navClick(nav,index)">
<div class="lab_img">
@@ -87,7 +87,7 @@
<!--<router-link to="">-->
<span v-if="$i18n.locale === 'cn'">{{ crumbs.one.title }}</span>
<span v-if="$i18n.locale === 'en'">{{ crumbs.one.englishTitle }}</span>
<!--</router-link>-->
<!--</router-link>-->
</span>
<span> > </span>
<span style="color: #1956BC;">
@@ -99,8 +99,8 @@
</el-row>
<el-row>
<el-col>
<Introduction :value="contextData" v-if="type === 1"/>
<List :value="contextData" v-if="type === 2"/>
<Introduction :introduction="contextData" v-if="type === 1"/>
<List :list="contextData" v-if="type === 2"/>
<FileList :value="contextData" v-if="type === 4"/>
<DireData :value="contextData" v-if="type === 3 && organizationType == '1'"/>
<Organization :value="contextData" v-if="type === 3 && organizationType == '2'"/>
@@ -118,7 +118,7 @@
<el-row>
<el-col>
<div class="tab">
<router-link to="/" >{{ $t('message.home') }}</router-link>
<router-link to="/">{{ $t('message.home') }}</router-link>
<span> > </span>
<span style="color: #1956BC;">
<!--<router-link to="">-->
@@ -138,8 +138,8 @@
</el-row>
<el-row>
<el-col>
<Introduction :value="contextData" v-if="type === 1"/>
<List :value="contextData" v-if="type === 2"/>
<Introduction :introduction="contextData" v-if="type === 1"/>
<List :list="contextData" v-if="type === 2"/>
<FileList :value="contextData" v-if="type === 4"/>
<DireData :value="contextData" v-if="type === 3 && organizationType == '1'"/>
<Organization :value="contextData" v-if="type === 3 && organizationType == '2'"/>
@@ -181,7 +181,7 @@ export default {
width: document.documentElement.clientWidth > 992,
secondId: null,
navId: null,
organizationType:"",
organizationType: "",
navList: [],
showIndex: 0,
showSecond: true,
@@ -220,9 +220,9 @@ export default {
this.getContent(info.second)
}
return
}else {
console.log(this.navId,"this.navId")
if (undefined == this.navId ){
} else {
console.log(this.navId, "this.navId")
if (undefined == this.navId) {
this.showIndex = 0
this.getNodes()
}
@@ -355,7 +355,7 @@ export default {
pageNum: 1,
pageSize: 5
}
if (this.type === 4){
if (this.type === 4) {
data.pageSize = 10
}
} else {
@@ -366,9 +366,9 @@ export default {
getNode(data).then(res => {
console.log(res, "res值")
console.log(this.type);
if (null == res.data){
if (null == res.data && null == res.rows) {
this.contextData = null
console.log("将值设为null",this.contextData)
console.log("将值设为null", this.contextData)
this.type = 0
return
}
@@ -384,20 +384,19 @@ export default {
} else if (this.type == 1) {
this.contextData = res.data
} else if (this.type == 3) {
if (res.additional == ""){
if (res.additional == "") {
this.organizationType = "1"
}else {
console.log(this.organizationType,"this.organizationType")
} else {
console.log(this.organizationType, "this.organizationType")
this.organizationType = res.additional
}
this.contextData = handleTree(res.data, "id", "pid", null, null)
console.log(this.contextData,"this.contextData")
console.log(this.contextData, "this.contextData")
}
})
},
/**
* 菜单点击,路由切换
* @param nav
@@ -468,7 +467,8 @@ export default {
.lab_div {
border-bottom: 0.1rem solid #94BCFF !important;
margin-left: 1rem;
//margin-left: 1rem;
width: 100%;
}
.lab_div:last-child {
@@ -479,7 +479,7 @@ export default {
.lab_list {
cursor: pointer;
text-align: center;
width: 19rem;
//width: 19rem;
height: 8rem;
clear: left;
line-height: 8rem;
@@ -490,7 +490,7 @@ export default {
width: 1.4rem;
height: 1.4rem;
display: none;
margin-left: 3rem;
margin-left: 1rem;
img {
width: 100%;
@@ -500,7 +500,7 @@ export default {
.lab_title {
color: #1956BC;
float: left;
margin-left: 5rem;
margin-left: 3rem;
}
}