| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <template>
- <div>
- <basicLayout
- ref="basicLayout"
- :oldFormPath="{
- add:'bgj/ServiceMaterialClass/modules',
- }"
- tableName="brandTable"
- idName="sa_brandid"
- :apiId="{query:20220922085104,del:20220922085203}"
- :options="options"
- >
- <div slot="custom">
- </div>
- <div slot="titleRight" style="display:flex;margin-left:10px">
- <add v-if="tool.checkAuth($route.name,'create')" @onSuccess="$refs.basicLayout.listData()"></add>
- </div>
- <template v-slot:tbList="scope">
- <div v-if="scope.data.column.columnname === 'brandLoge'">
- <previewImage v-if="scope.data.column.data.attinfos && 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>
- {{$t(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/delete'
- import add from './modules/add'
- import previewImage from '@/components/previewImage/index'
- export default {
- components:{
- edit,
- brand_del,
- add,
- previewImage
- },
- data () {
- return {
- options:[
- ],
- search: {}
- }
- },
- computed:{
- },
- methods:{
- }
- }
- </script>
- <style>
- </style>
|