index copy.vue 452 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <div>
  3. <list ref="list">
  4. <template v-slot:edit="scope">
  5. <edit :data="scope.data" @onSuccess="onSuccess"></edit>
  6. </template>
  7. </list>
  8. </div>
  9. </template>
  10. <script>
  11. import list from './modules/list.vue'
  12. import edit from './modules/edit.vue'
  13. export default {
  14. components:{
  15. list,
  16. edit
  17. },
  18. methods:{
  19. onSuccess () {
  20. this.$refs['list'].query_coderuleList()
  21. }
  22. }
  23. }
  24. </script>
  25. <style>
  26. </style>