|
@@ -96,8 +96,8 @@
|
|
<!-- 页码 -->
|
|
<!-- 页码 -->
|
|
<pagination
|
|
<pagination
|
|
:total="total"
|
|
:total="total"
|
|
- :page-sizes="[100]"
|
|
|
|
- :page-size="100"
|
|
|
|
|
|
+ :page-sizes="[10, 20, 30, 100]"
|
|
|
|
+ :page-size="20"
|
|
:page.sync="listQuery.pageNum"
|
|
:page.sync="listQuery.pageNum"
|
|
:limit.sync="listQuery.pageSize"
|
|
:limit.sync="listQuery.pageSize"
|
|
@pagination="getCustomerShopList"
|
|
@pagination="getCustomerShopList"
|
|
@@ -121,7 +121,7 @@
|
|
<el-dialog title="上传LOGO" :visible.sync="logoFormVisible" width="500px">
|
|
<el-dialog title="上传LOGO" :visible.sync="logoFormVisible" width="500px">
|
|
<el-form ref="logoForm" :model="logoForm" :rules="rules" label-position="right">
|
|
<el-form ref="logoForm" :model="logoForm" :rules="rules" label-position="right">
|
|
<el-form-item prop="logo" label="logo">
|
|
<el-form-item prop="logo" label="logo">
|
|
- <div class="form-el-upload" style="width: 148px; height: 148px">
|
|
|
|
|
|
+ <div class="form-el-upload" style="width: 126px; height: 126px">
|
|
<el-upload
|
|
<el-upload
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
:action="actionUrl"
|
|
:action="actionUrl"
|
|
@@ -130,18 +130,18 @@
|
|
:on-success="handleSuccess"
|
|
:on-success="handleSuccess"
|
|
:before-upload="beforeUpload"
|
|
:before-upload="beforeUpload"
|
|
>
|
|
>
|
|
- <div v-loading="loadImgLoading" class="avatar" style="width: 148px; height: 148px; display: block">
|
|
|
|
|
|
+ <div v-loading="loadImgLoading" class="avatar" style="width: 126px; height: 126px; display: block">
|
|
<img
|
|
<img
|
|
v-if="logoForm.logo"
|
|
v-if="logoForm.logo"
|
|
:src="logoForm.logo"
|
|
:src="logoForm.logo"
|
|
- style="width: 148px; height: 148px; display: block"
|
|
|
|
|
|
+ style="width: 126px; height: 126px; display: block"
|
|
@error="reloadImage"
|
|
@error="reloadImage"
|
|
@load="loadSucess"
|
|
@load="loadSucess"
|
|
/>
|
|
/>
|
|
<i
|
|
<i
|
|
v-else
|
|
v-else
|
|
class="el-icon-plus avatar-uploader-icon"
|
|
class="el-icon-plus avatar-uploader-icon"
|
|
- style="width: 148px; height: 148px; line-height: 148px"
|
|
|
|
|
|
+ style="width: 126px; height: 126px; line-height: 126px"
|
|
></i>
|
|
></i>
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
@@ -288,6 +288,7 @@ export default {
|
|
await uploadShopLogo(params)
|
|
await uploadShopLogo(params)
|
|
this.logoFormVisible = false
|
|
this.logoFormVisible = false
|
|
this.$message.success('操作成功')
|
|
this.$message.success('操作成功')
|
|
|
|
+ this.$refs['logoForm'].clearValidate()
|
|
this.getList()
|
|
this.getList()
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error)
|
|
console.log(error)
|