|
@@ -337,18 +337,18 @@ export default {
|
|
|
this.getAllClass()
|
|
this.getAllClass()
|
|
|
},
|
|
},
|
|
|
onLoad ({ ctx, app }) {
|
|
onLoad ({ ctx, app }) {
|
|
|
-
|
|
|
|
|
|
|
+ let showPage = 1
|
|
|
if (this.$route.query.classId) {
|
|
if (this.$route.query.classId) {
|
|
|
this.classId = Number(this.$route.query.classId)
|
|
this.classId = Number(this.$route.query.classId)
|
|
|
this.className = this.$route.query.className
|
|
this.className = this.$route.query.className
|
|
|
this.tabsData[0].text = this.className
|
|
this.tabsData[0].text = this.className
|
|
|
-
|
|
|
|
|
|
|
+ showPage = 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.app = app
|
|
this.app = app
|
|
|
|
|
|
|
|
let getItem = () => {
|
|
let getItem = () => {
|
|
|
- return this.$service.product.list({ classId: this.classId,showPage:1 })
|
|
|
|
|
|
|
+ return this.$service.product.list({ classId: this.classId,showPage })
|
|
|
}
|
|
}
|
|
|
ctx.service({
|
|
ctx.service({
|
|
|
page: getItem
|
|
page: getItem
|