
<template>
  <div>
    <basicLayout 
      ref="basicLayout" 
      :oldFormPath="{
        add:'HDrpManagement/BrandManage/modules',
      }"
      tableName="brandTable" 
      idName="sa_brandid" 
      :apiId="{query:20220922085103,del:20220922085203}" 
      :options="options"
    >
      <div slot="custom">
      </div>
      <div slot="titleRight" style="display:flex;margin-left:10px">
      </div>
      <template v-slot:tbList="scope">
        <div v-if="scope.data.column.columnname === 'brandLoge'">
          <!-- <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=""> -->
          <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>
        </div>
        <div v-else>
          {{scope.data.column.data[[scope.data.column.columnname]]}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
        <edit v-if="tool.checkAuth($route.name,'update')" :data="scope.data.data" @onSuccess="$refs.basicLayout.listData()"  :type="'text'"></edit>
        <brand_del v-if="tool.checkAuth($route.name,'onDelete')" :data="scope.data.data" @onSuccess="$refs.basicLayout.listData()"  :type="'text'"></brand_del>
      </template>
    </basicLayout>
  </div>
</template>

<script>
import edit from './modules/edit'
import brand_del from './modules/brand_del'
import previewImage from '@/components/previewImage/index'

export default {
  components:{
    edit,
    brand_del,
    previewImage
  },
  data () {
    return {
      options:[
      ],
      search: {}
      
    }
  },
  computed:{
  },
  methods:{
  }
}

</script>
<style>
</style>