clay commit : 一些小bug调整完毕
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</el-row>
|
||||
<el-row v-for="(chile,index) in dire.children" :key="index">
|
||||
<el-col class="name" :offset="1" :span="23">
|
||||
{{ chile.name }}<span v-if="chile.children.length>1">({{chile.children.length}}人)</span>
|
||||
{{ chile.name }}
|
||||
</el-col>
|
||||
<el-col class="text" :offset="1" :span="23">
|
||||
<div v-for="(item,index) in chile.children" :key="index" @click="linkClick(item)">
|
||||
|
||||
@@ -208,6 +208,7 @@ export default {
|
||||
watch: {
|
||||
$route(to, from) {
|
||||
console.log("我被触发了")
|
||||
this.showIndex = 0
|
||||
let arcId = this.$route.params && this.$route.query.id
|
||||
this.navId = this.$route.params && this.$route.params.navId;
|
||||
let id = this.$route.params && this.$route.params.secondId
|
||||
@@ -229,7 +230,6 @@ export default {
|
||||
} else {
|
||||
console.log(this.navId, "this.navId")
|
||||
if (undefined == this.navId) {
|
||||
this.showIndex = 0
|
||||
this.getNodes()
|
||||
}
|
||||
}
|
||||
@@ -249,6 +249,7 @@ export default {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.navList = []
|
||||
this.secondId = id
|
||||
this.getNav()
|
||||
}
|
||||
@@ -256,6 +257,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
setLanguage(this)
|
||||
this.showIndex = 0
|
||||
this.secondId = this.$route.params && this.$route.params.secondId;
|
||||
this.navId = this.$route.params && this.$route.params.navId;
|
||||
this.type = this.$route.query && this.$route.query.type
|
||||
@@ -350,7 +352,9 @@ export default {
|
||||
// })
|
||||
let res = await getNode({id: this.secondId})
|
||||
// todo 延时异步问题
|
||||
setTimeout(() => {
|
||||
this.$refs.lab.style.height = res.data.length * 8 + 10 + 'rem'
|
||||
}, 100);
|
||||
this.navList = res.data
|
||||
// if (!this.navList){
|
||||
// return
|
||||
|
||||
Reference in New Issue
Block a user