|
@@ -148,9 +148,6 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
show (val) {
|
|
show (val) {
|
|
|
this.selDialog = this.show;
|
|
this.selDialog = this.show;
|
|
|
- if(val) {
|
|
|
|
|
- this.newApp.refresh()
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
@@ -198,19 +195,12 @@ export default {
|
|
|
|
|
|
|
|
this.sonClassId = this.classId
|
|
this.sonClassId = this.classId
|
|
|
this.sonClassName = this.className
|
|
this.sonClassName = this.className
|
|
|
- this.newApp = app
|
|
|
|
|
|
|
+ this.app = app
|
|
|
|
|
|
|
|
//分类列表
|
|
//分类列表
|
|
|
this.getAllClass()
|
|
this.getAllClass()
|
|
|
|
|
|
|
|
- this.app = app;
|
|
|
|
|
-
|
|
|
|
|
- let getItemList = () => {
|
|
|
|
|
- return this.$service.ptItem.list();
|
|
|
|
|
- };
|
|
|
|
|
- ctx.service({
|
|
|
|
|
- page: getItemList
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ ctx.service(this.$service.ptItem)
|
|
|
.set('table', {
|
|
.set('table', {
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -295,7 +285,7 @@ export default {
|
|
|
render(list);
|
|
render(list);
|
|
|
})
|
|
})
|
|
|
.done();
|
|
.done();
|
|
|
- app.refresh({ type: this.tabIndex });
|
|
|
|
|
|
|
+ app.refresh();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|