liveroomList-opbar.vue 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <div class="icon-button">
  3. <el-button-group>
  4. <!--el-tooltip effect="dark" content="直播间内用户" placement="top" :enterable="false">
  5. <el-button type="success" size="small" disabled>
  6. <icon-svg name="user" /></el-button>
  7. </el-tooltip>
  8. <el-tooltip effect="dark" content="管理回放" placement="top" :enterable="false">
  9. <el-button type="warning" size="small" disabled>
  10. <icon-svg name="playback" /></el-button>
  11. </el-tooltip-->
  12. <el-tooltip effect="dark" content="商品库" placement="top" :enterable="false">
  13. <el-button type="primary" size="small" @click="navigateTo('liveroomProd')">
  14. <icon-svg name="product" /></el-button>
  15. </el-tooltip>
  16. <el-tooltip effect="dark" content="客户咨询" placement="top" :enterable="false">
  17. <el-button type="warning" size="small" @click='navigateTo("liveroomConsults")'>
  18. <icon-svg name="question" /></el-button>
  19. </el-tooltip>
  20. <el-tooltip effect="dark" content="商品跳转记录" placement="top" :enterable="false">
  21. <el-button type="info" size="small" @click='navigateTo("liveroomProductJumpRecord", { title: data.title })'>
  22. <icon-svg name="record" /></el-button>
  23. </el-tooltip>
  24. <el-tooltip effect="dark" content="观看统计" placement="top" :enterable="false">
  25. <el-button type="info" size="small" @click="navigateTo('liveroomStats')">
  26. <icon-svg name="chartline" /></el-button>
  27. </el-tooltip>
  28. <el-tooltip effect="dark" content="邀约码统计" placement="top" :enterable="false">
  29. <el-button type="info" size="small" disabled>
  30. <icon-svg name="share" /></el-button>
  31. </el-tooltip>
  32. <el-tooltip effect="dark" content="查看" placement="top" :enterable="false">
  33. <el-button type="success" size="small" @click="$emit('display-detail', { id, index })">
  34. <icon-svg name="eye" /></el-button>
  35. </el-tooltip>
  36. <el-tooltip effect="dark" content="修改" placement="top" :enterable="false">
  37. <el-button type="primary" size="small" @click="navigateTo('liveroomEdit')">
  38. <icon-svg name="pen" /></el-button>
  39. </el-tooltip>
  40. <el-tooltip effect="dark" content="删除" placement="top" :enterable="false">
  41. <el-button type="danger" size="small" @click="$emit('delete-room', { id, index })">
  42. <icon-svg name="trashcan" /></el-button>
  43. </el-tooltip>
  44. </el-button-group>
  45. </div>
  46. </template>
  47. <script lang="ts">
  48. import Vue from 'vue'
  49. export default Vue.extend({
  50. name: "operations",
  51. props: {
  52. id: {
  53. type: Number,
  54. required: true,
  55. },
  56. data: {
  57. type: Object,
  58. default: null,
  59. },
  60. index: {
  61. type: Number,
  62. default: 0,
  63. }
  64. },
  65. methods: {
  66. navigateTo(name: string, query?: Record<string, string>, params?: Record<string, string>) {
  67. this.$router.push({ name, params: { id: this.id.toString(), ...params }, query: query })
  68. }
  69. },
  70. })
  71. </script>