| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/401_images/401.gif" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 147px; height: 147px" |
| | | fit="cover"> |
| | |
| | | this.btn = false; |
| | | this.isShow=false |
| | | } |
| | | |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | |
| | | if (this.formData.id != undefined) { |
| | | updateEquipment(this.formData).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | console.log(this.$route) |
| | | |
| | | this.$tab.closePage({ path: "/familymodel/zfDevice" }) |
| | | // this.$store.dispatch("tagsView/delView",{ path: "/familymodel/zfDevice" }); //关闭当前页 |
| | | //this.$store.dispatch('tagsView/addView', { title:"ZfDevice",path: "/familymodel/zfDevice" }) |
| | | //this.$store.dispatch('tagsView/addIframeView', { title:"ZfDevice",ZfDevicepath: "/familymodel/zfDevice" }) |
| | | // this.$tab.refreshPage({ path: "/familymodel/zfDevice" }); |
| | | this.$router.replace({ path: "/familymodel/zfDevice?cache=true" }); |
| | | // this.$router.push("/familymodel/zfDevice"); |
| | | window.location.url="https://www.bendudu.com/familymodel/zfDevice" |
| | | |
| | | // this.open = false; |
| | | if(this.formData.status==1) |
| | | this.formData.status = '是' |
| | | else |
| | | this.formData.status = '否' |
| | | this.btn=false |
| | | this.$router.replace({ title:"ZfDevice",path: "/familymodel/zfDevice"}); |
| | | // 在下一个事件循环中刷新页面 |
| | | this.$nextTick(() => { |
| | | window.location.reload(); |
| | | }); |
| | | //this.$router.push("/familymodel/zfDevice"); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |