|
|
|
@ -62,27 +62,34 @@
|
|
|
|
|
<template v-for="(item,index) in option.column"> |
|
|
|
|
|
|
|
|
|
<!-- table字段 --> |
|
|
|
|
<el-table-column v-if="item.hide!==true && item.prop !='brandIcon'" |
|
|
|
|
<el-table-column v-if="item.hide!==true " |
|
|
|
|
:prop="item.prop" |
|
|
|
|
:label="item.label" |
|
|
|
|
:width="item.width" |
|
|
|
|
:key="index" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="item.hide!==true && item.prop =='brandIcon'" |
|
|
|
|
:prop="item.prop" |
|
|
|
|
:label="item.label" |
|
|
|
|
:width="item.width" |
|
|
|
|
:key="index" align="center"> |
|
|
|
|
<el-image |
|
|
|
|
style="width: 40px; height: 40px;border-radius: 20px" |
|
|
|
|
:src="item.label" |
|
|
|
|
:zoom-rate="1.2" |
|
|
|
|
:initial-index="4" |
|
|
|
|
fit="cover" |
|
|
|
|
/> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<template #default="{row,$index}" v-if="item.hide!==true && item.prop =='brandIcon'"> |
|
|
|
|
<!-- {{$index}}--> |
|
|
|
|
<div class="demo-image__preview"> |
|
|
|
|
<el-image v-if="row.brandIcon !== undefined" |
|
|
|
|
lazy |
|
|
|
|
style="width: 140px; height: 45px;" |
|
|
|
|
:src="row.brandIcon" |
|
|
|
|
:preview-src-list="srcList" |
|
|
|
|
:initial-index="$index" |
|
|
|
|
fit="cover" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column v-if="item.hide!==true && item.prop =='brandIcon'"--> |
|
|
|
|
<!-- :prop="item.prop"--> |
|
|
|
|
<!-- :label="item.label"--> |
|
|
|
|
<!-- :width="item.width"--> |
|
|
|
|
<!-- :key="index" align="center">--> |
|
|
|
|
<!-- --> |
|
|
|
|
<!-- --> |
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
</template> |
|
|
|
|
<!-- 操作栏模块 --> |
|
|
|
|
<el-table-column prop="menu" label="操作" :width="300" align="center"> |
|
|
|
@ -184,6 +191,7 @@ export default {
|
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
height: 0, |
|
|
|
|
srcList : [], |
|
|
|
|
dataShi:'', //时间 |
|
|
|
|
// 主键 |
|
|
|
|
basicBrandId: '', |
|
|
|
@ -463,10 +471,12 @@ export default {
|
|
|
|
|
this.query.postSetTime = this.dataShi[1]; |
|
|
|
|
} |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
console.log("res.data.data",res.data.data.records); |
|
|
|
|
// console.log("res.data.data",res.data.data.records); |
|
|
|
|
this.srcList = []; |
|
|
|
|
res.data.data.records.forEach( i => { |
|
|
|
|
let a = getFile(i.brandIcon); |
|
|
|
|
console.log("QQQQQQQQQQQ",a); |
|
|
|
|
this.srcList.push(i.brandIcon); |
|
|
|
|
// let a = getFile(i.brandIcon); |
|
|
|
|
console.log("QQQQQQQQQQQ",i.brandIcon); |
|
|
|
|
}) |
|
|
|
|
const data = res.data.data; |
|
|
|
|
this.page.total = data.total; |
|
|
|
|