21
21
<div class =" filter-container__ctrl" >
22
22
<el-button
23
23
class =" filter-item"
24
- style =" margin-left : 10px ; "
24
+ style =" margin-left : 10px "
25
25
type =" primary"
26
26
plain
27
27
icon =" el-icon-edit"
51
51
<el-table-column label =" 图片" align =" center" >
52
52
<template slot-scope="{ row }">
53
53
<el-popover placement =" right" width =" 230" trigger =" hover" >
54
- <img :src =" row.pic" style =" width : 200px ; " />
55
- <img :src =" row.pic" slot =" reference" style =" width : 40px ; " />
54
+ <img :src =" row.pic" style =" width : 200px " />
55
+ <img :src =" row.pic" slot =" reference" style =" width : 40px " />
56
56
</el-popover >
57
57
</template >
58
58
</el-table-column >
@@ -192,13 +192,13 @@ export default {
192
192
// 列表
193
193
getList () {
194
194
this .listLoading = true
195
- fetchList (this .listQuery ).then (res => {
195
+ fetchList (this .listQuery ).then (( res ) => {
196
196
const { data = [], total = 0 } = res
197
- this .list = data .map (v => {
197
+ this .list = data .map (( v ) => {
198
198
let pic = v .pic
199
199
200
200
if (pic) {
201
- v .pic = baseHost + pic .replace (' public/' , ' / ' )
201
+ v .pic = baseHost + pic .replace (' public/' , ' ' )
202
202
}
203
203
204
204
return v
@@ -210,7 +210,7 @@ export default {
210
210
211
211
// 分类列表
212
212
getCategory () {
213
- fetchCategoryList ().then (res => {
213
+ fetchCategoryList ().then (( res ) => {
214
214
const { data = [] } = res
215
215
216
216
let listObject = listToObject (data)
@@ -236,7 +236,7 @@ export default {
236
236
handleDelete (row ) {
237
237
let ids = []
238
238
if (Array .isArray (row)) {
239
- ids = row .map (v => v .id )
239
+ ids = row .map (( v ) => v .id )
240
240
} else {
241
241
ids .push (row .id )
242
242
}
0 commit comments