|
@@ -136,7 +136,7 @@ export default {
|
|
|
},
|
|
|
...mapGetters({
|
|
|
activeApp:"activeApp",
|
|
|
- listData:'listData'
|
|
|
+ svlistData:'svlistData'
|
|
|
})
|
|
|
},
|
|
|
components:{
|
|
@@ -188,13 +188,14 @@ export default {
|
|
|
next () {
|
|
|
let nowId = this.$route.query.id
|
|
|
let changeId = ''
|
|
|
- if ((this.idx + 1) == this.listData.length) return this.$message({
|
|
|
+ console.log( this.svlistData.listData)
|
|
|
+ if ((this.idx + 1) == this.svlistData.listData.length) return this.$message({
|
|
|
message:"已经是当前页最后一条了!",
|
|
|
type:'warning'
|
|
|
})
|
|
|
- this.listData.forEach((e,index)=>{
|
|
|
+ this.svlistData.listData.forEach((e,index)=>{
|
|
|
if (e[this.idname] == nowId) {
|
|
|
- changeId = this.listData[index + 1][this.idname]
|
|
|
+ changeId = this.svlistData.listData[index + 1][this.idname]
|
|
|
this.idx = index + 1
|
|
|
}
|
|
|
})
|
|
@@ -209,9 +210,9 @@ export default {
|
|
|
message:"当前是第一条",
|
|
|
type:'warning'
|
|
|
})
|
|
|
- this.listData.forEach((e,index)=>{
|
|
|
+ this.svlistData.listData.forEach((e,index)=>{
|
|
|
if (e[this.idname] == nowId) {
|
|
|
- changeId = this.listData[index - 1][this.idname]
|
|
|
+ changeId = this.svlistData.listData[index - 1][this.idname]
|
|
|
this.idx = index - 1
|
|
|
}
|
|
|
})
|