11
This commit is contained in:
@@ -75,12 +75,8 @@ export default {
|
|||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: {
|
default: {
|
||||||
data: [{
|
//生命周期初始化问题
|
||||||
content: "",
|
data: []
|
||||||
title: "",
|
|
||||||
publishTime: "2022-01-15 17:02:13",
|
|
||||||
imgurl: "http://sistfile.hchyun.cn/2022/01/15/b0904e59-25d4-433e-bd0f-e23940d6267d.png",
|
|
||||||
}]
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -124,7 +120,10 @@ export default {
|
|||||||
this.type = this.$route.query && this.$route.query.type
|
this.type = this.$route.query && this.$route.query.type
|
||||||
if (this.type != null&&this.type!=0){
|
if (this.type != null&&this.type!=0){
|
||||||
data.id = this.value.secondId
|
data.id = this.value.secondId
|
||||||
|
}else {
|
||||||
|
console.log(this.value);
|
||||||
}
|
}
|
||||||
|
console.log(data);
|
||||||
getNode(data).then(res => {
|
getNode(data).then(res => {
|
||||||
this.value.data = res.rows
|
this.value.data = res.rows
|
||||||
this.value.total = res.total
|
this.value.total = res.total
|
||||||
|
|||||||
@@ -359,12 +359,13 @@ export default {
|
|||||||
}
|
}
|
||||||
getNode(data).then(res => {
|
getNode(data).then(res => {
|
||||||
console.log(res, "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 = {
|
this.contextData = {
|
||||||
data: res.rows,
|
data: res.rows,
|
||||||
total: res.total,
|
total: res.total,
|
||||||
pageNum: data.pageNum,
|
pageNum: data.pageNum,
|
||||||
navId: this.navId,
|
navId: menu.encodeId,
|
||||||
secondId: this.secondId,
|
secondId: this.secondId,
|
||||||
}
|
}
|
||||||
} else if (this.type == 1) {
|
} else if (this.type == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user