|
|
@ -15,10 +15,18 @@ |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" |
|
|
|
@click="dosearch">查询</el-button> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-refresh" |
|
|
|
@click="resetQuery">重置</el-button> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-search" |
|
|
|
@click="dosearch" |
|
|
|
>查询</el-button> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
icon="el-icon-refresh" |
|
|
|
@click="resetQuery" |
|
|
|
>重置</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -50,7 +58,7 @@ |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="小程序是否上架" align="center" width="140"> |
|
|
|
<el-table-column label="商品上架" align="center" width="140"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.isAppletGrounding" |
|
|
@ -66,9 +74,13 @@ |
|
|
|
<el-table-column label="商品图片" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-popover placement="left" trigger="click" width="300"> |
|
|
|
<img :src="scope.row.picUrl" width="100%" /> |
|
|
|
<img slot="reference" :src="scope.row.picUrl" :alt="scope.row.picUrl" |
|
|
|
style="max-height: 70px;max-width: 70px; padding: 5px" /> |
|
|
|
<img :src="scope.row.picUrl" width="100%"> |
|
|
|
<img |
|
|
|
slot="reference" |
|
|
|
:src="scope.row.picUrl" |
|
|
|
:alt="scope.row.picUrl" |
|
|
|
style="max-height: 70px;max-width: 70px; padding: 5px" |
|
|
|
> |
|
|
|
</el-popover> |
|
|
|
<!-- <span v-for="(item,index) in scope.row.picUrl" :key="index"> |
|
|
|
<el-popover placement="left" trigger="click" width="300"> |
|
|
@ -89,8 +101,14 @@ |
|
|
|
<div class="pages"> |
|
|
|
<div class="tit" /> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
|
|
|
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" /> |
|
|
|
<pagination |
|
|
|
v-show="dataList.length > 0" |
|
|
|
:total="queryParams.total" |
|
|
|
:page.sync="queryParams.current" |
|
|
|
:limit.sync="queryParams.size" |
|
|
|
class="pagination" |
|
|
|
@pagination="loadList" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -210,7 +228,7 @@ |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
name: '', |
|
|
|
name: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.loadList() |
|
|
@ -229,7 +247,6 @@ |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
}, |
|
|
|
toRelevancyInfo(row) { |
|
|
|
|
|
|
|
const tip = '请确认是否删除所选商品?' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|