feige
2024-11-17 0dab8829a661e27ee8b61ffe44fc9d82570741b8
ruoyi-ui/src/views/device/equipmentInfo.vue
@@ -318,7 +318,6 @@
      this.btn = false;
      this.isShow=false
    }
    let _this = this
    if (id) {
      this.loading = true;
@@ -441,12 +440,29 @@
          if (this.formData.id != undefined) {
            updateEquipment(this.formData).then(response => {
              this.$modal.msgSuccess("修改成功");
           console.log(this.$route)
            //  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("修改失败");