feige
2025-11-25 1eb1522eb39f58603155302f072e2ead3045d2ef
ruoyi-ui/src/views/device/equipmentInfo.vue
@@ -2,7 +2,7 @@
  <div class="app-container" id="printable-content">
    <div class="form-header mt">
      <h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;">
        <span>家庭设备详情</span>
        <span>设备详情</span>
        <div   style="display: flex; align-items: center;">
          <el-button size="mini" type="text"  @click="checkNote"  v-hasPermi="['person:information:memo']">
            <div class="form" ><el-icon  style="padding-right:110px;"></el-icon>
@@ -146,7 +146,7 @@
          ></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">
@@ -310,15 +310,14 @@
      this.dsb = !jd
      this.isShow=true
    //  document.title = "修改家庭设备详细信息";
      this.$route.meta.title = "修改家庭设备详细信息";//列表的名称
      this.$route.meta.title = "修改设备详细信息";//列表的名称
    }
    else{
    //  document.title = "家庭设备详细信息";
      this.$route.meta.title = "家庭设备详细信息";//列表的名称
      this.$route.meta.title = "家庭详细信息";//列表的名称
      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.$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("修改失败");