diff --git a/vue/src/assets/images/product.jpg b/vue/src/assets/images/product.jpg index 77ceea1f..c12e46e6 100644 Binary files a/vue/src/assets/images/product.jpg and b/vue/src/assets/images/product.jpg differ diff --git a/vue/src/views/iot/product/index.vue b/vue/src/views/iot/product/index.vue index ffd23965..37a5c6f1 100644 --- a/vue/src/views/iot/product/index.vue +++ b/vue/src/views/iot/product/index.vue @@ -61,8 +61,8 @@
- - + +
diff --git a/vue/src/views/iot/product/product-edit.vue b/vue/src/views/iot/product/product-edit.vue index c5eb1f5f..d03bc179 100644 --- a/vue/src/views/iot/product/product-edit.vue +++ b/vue/src/views/iot/product/product-edit.vue @@ -7,7 +7,7 @@ - + @@ -304,7 +304,13 @@ export default { // 授权码状态修改 changeIsAuthorize() { 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; }); }