| | |
| | | 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://localhost:80/familymodel/zfDevice" |
| | | // this.$tab.closePage({ path: "/familymodel/zfDevice" }) |
| | | |
| | | |
| | | //this.$tab.closePage({ path: "/familymodel/zfDevice" }) |
| | | |
| | | |
| | | // |
| | | // localtion.reload() |
| | | //alert(25) |
| | | // window.location.url="https://localhost:80/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("修改失败"); |