mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
前端bug处理
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 25 KiB |
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user