| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-sysPictureBase-sysPictureBase}"> |
| | | <zt-table-wraper query-url="/sysPictureBase/SysPictureBase/page" delete-url="/sysPictureBase/SysPictureBase/" |
| | | <zt-table-wraper query-url="/sysPictureBase/page" delete-url="/sysPictureBase/" |
| | | v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | |
| | | <el-table-column prop="name" label="图片名称"/> |
| | | <el-table-column label="图片" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-image v-if="row.accessoryMap" :src="getPath(row)" style="height: 50px;width: 50px"></el-image> |
| | | <el-image v-if="row.id" :src="url+row.id" style="height: 50px;width: 50px"></el-image> |
| | | </template > |
| | | </el-table-column> |
| | | <el-table-column prop="contentType" label="检索关键字"/> |
| | |
| | | |
| | | <script> |
| | | import AddOrUpdate from './SysPictureBase-AddOrUpdate' |
| | | import Cookies from 'js-cookie' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | dataForm: { |
| | | contentType: '', |
| | | systemMark: '', |
| | |
| | | components: { |
| | | AddOrUpdate |
| | | }, |
| | | methods: { |
| | | getPath(row) { |
| | | if (row.accessoryMap){ |
| | | for (let key in row.accessoryMap) { |
| | | return key |
| | | } |
| | | } |
| | | mounted() { |
| | | }, |
| | | indexFormat(index) { |
| | | return index += 1 |
| | | }, |
| | | } |
| | | methods: {} |
| | | } |
| | | </script> |