feige
2023-12-07 ad5eea58d5ac15dd08ff51658d717984d098f81e
ruoyi-ui/src/views/device/equipmentInfo.vue
@@ -190,7 +190,10 @@
    return {
      cdi:"家庭设备信息",
      udi:"家庭设备修改",
      fot:[".jpg",".jif"],
    // 数据范围选项
    fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
      '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
      fileList:[
      ],
      fileListOther:[
@@ -271,11 +274,11 @@
      this.btn= jd
      this.dsb = !jd
      this.isShow=true
      document.title = "修改家庭设备详细信息";
    //  document.title = "修改家庭设备详细信息";
      this.$route.meta.title = "修改家庭设备详细信息";//列表的名称
    }
    else{
      document.title = "家庭设备详细信息";
    //  document.title = "家庭设备详细信息";
      this.$route.meta.title = "家庭设备详细信息";//列表的名称
      this.btn = false;
      this.isShow=false
@@ -444,6 +447,20 @@
          _this.fileListOther.push({name:response.data.fileName, url:response.data.url})
        }
        let ul = _this.fileList.map(function (elem){
            return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
          }).join(",")
          let uls = _this.fileListOther.map(function (elem){
            return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
          }).join(",")
          _this.formData.url = ul+","+uls
          console.log(_this.formData.url)
        //  alert(87)
          updateEquipment(_this.formData).then(response => {
            this.$modal.msgSuccess("图片上传成功");
            // this.open = false;
          });
      })
    }