| | |
| | | <el-form-item label="品牌名称" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入品牌名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-select v-model="searchForm.type" clearable placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in typeList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <!-- <el-button type="primary" :loading="isWorking.export" v-permissions="['business:brand:exportExcel']" @click="exportExcel">导出</el-button> --> |
| | |
| | | stripe |
| | | border |
| | | :header-cell-style="rowStyle" |
| | | :cell-style="rowStyle" |
| | | > |
| | | :cell-style="rowStyle"> |
| | | <el-table-column prop="name" label="品牌名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="imgurl" label="图标" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-image |
| | | v-if="row.imgurl" |
| | | style="width: 70px; height: 70px" |
| | | :src="row.prefixUrl + row.imgurl" |
| | | :preview-src-list="[row.prefixUrl + row.imgurl]" |
| | | :src="row.imgfullurl" |
| | | :preview-src-list="[row.imgfullurl]" |
| | | fit="cover"></el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="categoryName" label="类型" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type == 0">自定义</span> |
| | | <span v-else>系统</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="sortnum" label="排序码(升序)" min-width="100px"></el-table-column> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="edit(row)" icon="el-icon-edit" v-permissions="['business:brand:update']">编辑</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:brand:delete']">删除</el-button> |
| | | <template v-if="row.type == 0"> |
| | | <el-button type="text" @click="edit(row)" icon="el-icon-edit" v-permissions="['business:brand:update']">编辑</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:brand:delete']">删除</el-button> |
| | | </template> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | return { |
| | | // 搜索 |
| | | searchForm: { |
| | | name: '' |
| | | } |
| | | name: '', |
| | | type: '' |
| | | }, |
| | | typeList: [ |
| | | { name: '自定义', id: 0 }, |
| | | { name: '系统', id: 1 } |
| | | ] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | name: row.name, |
| | | sortnum: row.sortnum, |
| | | imgurl: row.imgurl, |
| | | fileList: row.imgurl ? [ {url: row.prefixUrl + row.imgurl} ] : [] |
| | | fileList: row.imgfullurl ? [ {url: row.imgfullurl} ] : [] |
| | | } |
| | | this.$refs.operaBrandWindow.open('编辑品牌', obj) |
| | | } |