页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagejs
firstline1
linenumberstrue
//直接弹框拿到指定oid对象附件属性,并弹窗
window.open("http://[服务器IP]:9090/dwf/v1/omf/classes/[实体类名]/objects/8572063499837340B8246FB37C596806[对象oid]/attributes/[附件属性名称]/bytes?attachment=true&0")
//不用弹框当前页面直接下载
const downloadFileA = document.createElement('a')
document.body.append(downloadFileA)
downloadFileA.href= "http://[服务器IP]:9090/dwf/v1/omf/classes/[实体类名称]/objects/8572063499837340B8246FB37C596806[对象oid]/attributes/[附件属性名称]/bytes?attachment=true&0"
downloadFileA.click()
document.body.removeChild(downloadFileA)
//多附件下载补充说明
1-多附件的话,http://192.168.1.81:6060/dwf/v1/files-download/{fdsafds}, 大括号中是文件ID。文件ID则需要从对象的多附件属性当中取出来
2-对象中对应多附件控件的那个属性中存储的内容的格式是这样的:[{"name":"大数据时代.txt","size":"106.085KB","file_id":"ff8081816cedab93016cedc61a70004f"}]

...