feige
2024-11-16 2697e109da871cb81936965c16c47c97635ecfb6
ruoyi-ui/src/views/device/equipmentInfo.vue
@@ -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">
@@ -318,7 +318,6 @@
      this.btn = false;
      this.isShow=false
    }
    let _this = this
    if (id) {
      this.loading = true;
@@ -337,12 +336,26 @@
              let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
          //   alert(pth)
              if (_this.fot.includes(pth) === true)
             {
                if(paths[i][0]=="/")
                _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
               else
                  _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
               }
             // {
             //    if(paths[i][0]=="/")
           //      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
             //   else
             //      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
             //   }
            {
              if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){
                if(paths[i][0]=="/")
                      _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false})
                else
                   _this.fileList.push({name:paths[i],url: paths[i],res:false})
              }else{
                if(paths[i][0]=="/")
                      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
                else
                   _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
              }
              }
              else {
                // alert(paths[i])
              // alert()
@@ -427,6 +440,15 @@
          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 = '是'