mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2025-12-26 07:16:27 +08:00
优化显示
This commit is contained in:
parent
f4f346f786
commit
77fb768ef1
BIN
src/assets/img/def.png
Normal file
BIN
src/assets/img/def.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@ -24,7 +24,10 @@
|
||||
|
||||
<template slot-scope="scope"
|
||||
slot="imgUrl">
|
||||
<img :src="resourcesUrl + scope.row.imgUrl"
|
||||
<img v-if="scope.row.imgUrl" :src="scope.row.imgUrl"
|
||||
width="100"
|
||||
height="100" />
|
||||
<img v-else src="~@/assets/img/def.png"
|
||||
width="100"
|
||||
height="100" />
|
||||
</template>
|
||||
@ -94,6 +97,9 @@ export default {
|
||||
)
|
||||
)
|
||||
}).then(({ data }) => {
|
||||
data.records.forEach(item => {
|
||||
item.imgUrl = item.imgUrl ? this.resourcesUrl + item.imgUrl : ''
|
||||
})
|
||||
this.dataList = data.records
|
||||
this.page.total = data.total
|
||||
this.dataListLoading = false
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
align="center"
|
||||
label="排序号">
|
||||
</el-table-column>
|
||||
<el-table-column fixed="right"
|
||||
<el-table-column
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="操作">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user