Преглед изворни кода

解决了花材列表添加按钮不请求的问题

yangming пре 5 година
родитељ
комит
ac023487cf
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7 2
      ghs/src/components/module/item-list-layer.vue

+ 7 - 2
ghs/src/components/module/item-list-layer.vue

@@ -145,14 +145,18 @@ export default {
       //分类列表
       //分类列表
       itemClassList: [],
       itemClassList: [],
       sonClassId: 0,
       sonClassId: 0,
-      sonClassName: ''
+      sonClassName: '',
+      newApp: ''
     };
     };
   },
   },
   computed: {
   computed: {
   },
   },
   watch: {
   watch: {
-    show () {
+    show (val) {
       this.selDialog = this.show;
       this.selDialog = this.show;
+      if(val) {
+        this.newApp.refresh()
+      }
     }
     }
   },
   },
   created () { },
   created () { },
@@ -199,6 +203,7 @@ export default {
 
 
       this.sonClassId = this.classId
       this.sonClassId = this.classId
       this.sonClassName = this.className
       this.sonClassName = this.className
+      this.newApp = app
 
 
       //分类列表
       //分类列表
       this.getAllClass()
       this.getAllClass()