您好,目前在6.0版本没有直接集成这两个页面的地址;在1月份发布的6.1版本上我们会有这个功能
目前在6.0版本上可以通过这种方式实现,调用接口获取这两个页面里面的列表信息,然后咱们自己在前端页面上实现展示列表
获取收藏夹列表:
您可以F12从浏览器网络请求里面抓取到
- var myHeaders = new Headers();
- myHeaders.append("Content-Type", "application/json");
- var raw = JSON.stringify({
- "query": "query {tags(tagId: "f2e2a9b1-e5fe-4b0f-83f2-961d614902db") {documents(lng: "zh-CN", orderby: "-modified", limit: 101, offset: 0, disableHideInDocumentPortalFilter:false , filterbytype:"rdl,dbd,wbp,smdsc,dsc,dataset,rdlx-template,floorPlan,image/jpeg,image/bmp,image/gif,image/png,image/svg,font/ttf,font/otf,font/woff,font/woff2,font/svg,font/eot,font/webfont,theme,lr") { id, type, title, ext, modified, modified_by { name, email }, meta, hideInDocumentPortal, hideOnMobile, isResource, organizationId, organizationIdPath, thumbnail, description }}}"
- });
- var requestOptions = {
- method: 'POST',
- headers: myHeaders,
- body: raw,
- redirect: 'follow'
- };
- fetch("http://192.168.40.100:51980/api/graphql?token=20688171CC8F6F4306E62F86CE48CA24DD0DADA6A85C99FE3F5850994E706389", requestOptions)
- .then(response => response.text())
- .then(result => console.log(result))
- .catch(error => console.log('error', error));
复制代码
获取回收站列表:
同样您也可以从浏览器F12获取
- var myHeaders = new Headers();
- myHeaders.append("Content-Type", "application/json");
- var raw = JSON.stringify({
- "query": "query {documents(types: "rdl,dbd,wbp,smdsc,dsc,dataset,rdlx-template,floorPlan,image/jpeg,image/bmp,image/gif,image/png,image/svg,font/ttf,font/otf,font/woff,font/woff2,font/svg,font/eot,font/webfont,theme,lr,visual" lng: "zh-CN", orderby: "-modified", limit: 101, offset: 0, deleted: true) { id, type, title, ext, deleted, deleted_by { name }, created_by { id, name } }}"
- });
- var requestOptions = {
- method: 'POST',
- headers: myHeaders,
- body: raw,
- redirect: 'follow'
- };
- fetch("http://192.168.40.100:51980/api/graphql?token=20688171CC8F6F4306E62F86CE48CA24DD0DADA6A85C99FE3F5850994E706389", requestOptions)
- .then(response => response.text())
- .then(result => console.log(result))
- .catch(error => console.log('error', error));
复制代码
|