index.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div>
  3. <basicLayout
  4. ref="basicLayout"
  5. :oldFormPath="{
  6. add:'HDrpManagement/BrandManage/modules',
  7. }"
  8. tableName="brandTable"
  9. idName="sa_brandid"
  10. :apiId="{query:20220922085103,del:20220922085203}"
  11. :options="options"
  12. >
  13. <div slot="custom">
  14. </div>
  15. <div slot="titleRight" style="display:flex;margin-left:10px">
  16. </div>
  17. <template v-slot:tbList="scope">
  18. <div v-if="scope.data.column.columnname === 'brandLoge'">
  19. <!-- <img width="70" height="70" style="margin-top:10px;border-radius:4px" :src="scope.data.column.data.attinfos[0]?scope.data.column.data.attinfos[0].url:''" alt=""> -->
  20. <previewImage v-if="scope.data.column.data.attinfos[0]" style="height:40px;width:40px;" :image="scope.data.column.data.attinfos[0]" :list="scope.data.column.data.attinfos" :deletebtn="false"></previewImage>
  21. </div>
  22. <div v-else>
  23. {{scope.data.column.data[[scope.data.column.columnname]]}}
  24. </div>
  25. </template>
  26. <template v-slot:tbOpreation="scope">
  27. <edit v-if="tool.checkAuth($route.name,'update')" :data="scope.data.data" @onSuccess="$refs.basicLayout.listData()" :type="'text'"></edit>
  28. <brand_del v-if="tool.checkAuth($route.name,'onDelete')" :data="scope.data.data" @onSuccess="$refs.basicLayout.listData()" :type="'text'"></brand_del>
  29. </template>
  30. </basicLayout>
  31. </div>
  32. </template>
  33. <script>
  34. import edit from './modules/edit'
  35. import brand_del from './modules/brand_del'
  36. import previewImage from '@/components/previewImage/index'
  37. export default {
  38. components:{
  39. edit,
  40. brand_del,
  41. previewImage
  42. },
  43. data () {
  44. return {
  45. options:[
  46. ],
  47. search: {}
  48. }
  49. },
  50. computed:{
  51. },
  52. methods:{
  53. }
  54. }
  55. </script>
  56. <style>
  57. </style>