index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div>
  3. <div class="container normal-panel normal-margin flex">
  4. <distribution v-if="tool.checkAuth($route.name,'distribution')" @onSuccess="onSuccess"></distribution>
  5. <exportBtn :params="params" v-if="tool.checkAuth($route.name,'export')"></exportBtn>
  6. </div>
  7. <list ref="list">
  8. <template v-slot:detail="scope">
  9. <el-button class="inline-16" size="small" type="text" @click="$router.push({path:'/clueDetail',query:{id:scope.data.data.sat_orderclueid}})">详 情</el-button>
  10. </template>
  11. <template v-slot:edit="scope">
  12. <edit v-if="tool.checkAuth($route.name,'update')" :data="scope.data.data" type="text" @onSuccess="onSuccess"></edit>
  13. </template>
  14. <template v-slot:recall="scope">
  15. <recall v-if="tool.checkAuth($route.name,'recall')" :data="scope.data.data" @onSuccess="onSuccess"></recall>
  16. </template>
  17. <template v-slot:del="scope">
  18. <on-del v-if="tool.checkAuth($route.name,'delete')" :data="scope.data.data" @onSuccess="onSuccess"></on-del>
  19. </template>
  20. </list>
  21. </div>
  22. </template>
  23. <script>
  24. import distribution from './modules/distribution.vue'
  25. import list from './modules/list.vue'
  26. import recall from './modules/recall.vue'
  27. import onDel from './modules/del.vue'
  28. import edit from './modules/edit.vue'
  29. import exportBtn from './modules/exportBtn'
  30. import { log } from '@antv/g2plot/lib/utils'
  31. export default {
  32. data() {
  33. return {
  34. params:''
  35. }
  36. },
  37. components:{
  38. distribution,
  39. list,
  40. edit,
  41. recall,
  42. onDel,
  43. exportBtn
  44. },
  45. methods:{
  46. onSuccess () {
  47. this.$refs['list'].listData()
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped>
  53. .flex {
  54. display: flex;
  55. }
  56. </style>