feige
2024-04-17 39c0ad120acd120b62cb69dc92b6fe63e8edf902
修改了备忘录图片
1个文件已修改
34 ■■■■■ 已修改文件
ruoyi-ui/src/views/note/memo.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/note/memo.vue
@@ -421,8 +421,40 @@
      this.formDat.id = row.id;
      this.formDat.happenTime = row.happenTime;
      this.formDat.content = row.content;
      this.formDat.url = row.url
      this.open = true;
      console.log(this.formDat)
      //console.log(this.formDat)
      let paths = this.formDat.url.split(",");
      //      alert( this.formDat.url)
      let _this = this
      _this.fileList = []
      _this.fileListOther = []
      for(let i = 0; i < paths.length; i++)
      {
        if(paths[i]!="") {
            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})
              }
            else {
              // alert(paths[i])
             // alert()
              let nms = paths[i].split("\/")
              let nm = nms[nms.length - 1]
              if(paths[i][0]=="/")
              _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
                else
                _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
            }
          }
      }
      },
    // 取消按钮