前端bug处理

This commit is contained in:
kerwincui
2022-06-07 14:23:57 +08:00
parent d8e35ebfc3
commit 54dc335b02
3 changed files with 10 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -61,8 +61,8 @@
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-image style="width:100%;height:100px;border:1px solid #ccc;border-radius:5px;" lazy :preview-src-list="[baseUrl+item.imgUrl]" :src="baseUrl+item.imgUrl" fit="cover" v-if="item.imgUrl!=null && item.imgUrl!=''"></el-image> <el-image style="width:100%;height:100px;border-radius:5px;" lazy :preview-src-list="[baseUrl+item.imgUrl]" :src="baseUrl+item.imgUrl" fit="cover" v-if="item.imgUrl!=null && item.imgUrl!=''"></el-image>
<el-image style="width:100%;height:100px;border:1px solid #ccc;border-radius:5px;" :preview-src-list="[require('@/assets/images/product.jpg')]" :src="require('@/assets/images/product.jpg')" fit="cover" v-else></el-image> <el-image style="width:100%;height:100px;border-radius:5px;" :preview-src-list="[require('@/assets/images/product.jpg')]" :src="require('@/assets/images/product.jpg')" fit="cover" v-else></el-image>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>

View File

@@ -304,7 +304,13 @@ export default {
// 授权码状态修改 // 授权码状态修改
changeIsAuthorize() { changeIsAuthorize() {
let text = this.form.isAuthorize == "1" ? "启用" : "停用"; let text = this.form.isAuthorize == "1" ? "启用" : "停用";
this.$modal.confirm('确认要' + text + '授权码吗?').then(function () {}).catch(() => { this.$modal.confirm('确认要' + text + '授权码吗?').then(() => {
if (this.form.productId != null && this.form.productId != 0) {
updateProduct(this.form).then(response => {
this.$modal.alertSuccess("授权码已" + text);
});
}
}).catch(() => {
this.form.isAuthorize = 0; this.form.isAuthorize = 0;
}); });
} }