wangning 5 лет назад
Родитель
Сommit
d1534dccdd
1 измененных файлов с 3 добавлено и 13 удалено
  1. 3 13
      ghs/src/components/module/item-list-layer.vue

+ 3 - 13
ghs/src/components/module/item-list-layer.vue

@@ -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();
     }
     }
   }
   }
 };
 };