liuQiang пре 2 година
родитељ
комит
498aeac447

+ 4 - 1
src/views/biz/recent/index.vue

@@ -485,6 +485,9 @@ async function chooseSet(row, index, num) {
     fileTrees.value = true;
   }
   if (row.name === "打开文件所在位置") {
+    documents.getALLdocument(({parentId: clickRow.value.dirId - 0, spaceId: clickRow.value.spaceId - 0})).then((res)=>{
+      console.log('rowres',res);
+    })
     const addData = {
       path: "/myfile",
       row: toRaw(clickRow.value),
@@ -781,7 +784,7 @@ const getLeveldetailFn = async (data) => {
 };
 // 文件下载
 const downLoadfile = () => {
-  myfile.fileDown(clickRow.value.fileId).then((res) => {
+  myfile.fileDown(clickRow.value.docId).then((res) => {
     var reader = new FileReader();
     reader.onloadend = function (event) {
       //event 就是你要的返回内容

+ 1 - 1
src/views/department/MyFile.vue

@@ -1442,7 +1442,7 @@ export default {
             }
         }
         const downLoadfile = ()=>{
-            myfile.fileDown(clickRow.value.fileId).then(res=>{
+            myfile.fileDown(clickRow.value.docId).then(res=>{
                  var reader = new FileReader();
                 reader.onloadend = function(event){
                 //event 就是你要的返回内容

+ 2 - 2
src/views/department/components/FileEdit.vue

@@ -74,7 +74,7 @@ export default {
           option.value.isEdit = obj.isEdit;
           option.value.url = `${window.location.origin}${
             import.meta.env.VITE_APP_BASE_API
-          }/api/access/${obj.fileId}?uid=${uid}`;
+          }/api/access/${obj.docId}?uid=${uid}`;
           option.value.title = obj.fileName;
           option.value.key = obj.fileId;
           option.value.fileType = obj.fileType.replace(".", "");
@@ -90,7 +90,7 @@ export default {
         option.value.isEdit = false;
         option.value.url = `${window.location.origin}${
           import.meta.env.VITE_APP_BASE_API
-        }/api/access/${props.historycopyRow.fileId}?uid=${uid}`;
+        }/api/access/${props.historycopyRow.docId}?uid=${uid}`;
         option.value.title = props.copyRow.fileName;
         option.value.key = props.historycopyRow.fileId;
         option.value.fileType = props.copyRow.fileType.replace(".", "");

+ 1 - 1
src/views/myfile/MyFile.vue

@@ -1493,7 +1493,7 @@ export default {
         }
         // 文件下载
         const downLoadfile = ()=>{
-            myfile.fileDown(clickRow.value.fileId).then(res=>{
+            myfile.fileDown(clickRow.value.docId).then(res=>{
                  var reader = new FileReader();
                 reader.onloadend = function(event){
                 //event 就是你要的返回内容

+ 2 - 2
src/views/myfile/components/FileEdit.vue

@@ -75,7 +75,7 @@ export default {
           option.value.isEdit = obj.isEdit;
           option.value.url = `${window.location.origin}${
             import.meta.env.VITE_APP_BASE_API
-          }/api/access/${obj.fileId}?uid=${uid}`;
+          }/api/access/${obj.docId}?uid=${uid}`;
           //  console.log('option.value.url',option.value.url);
           option.value.title = obj.fileName;
           option.value.key = obj.fileId;
@@ -92,7 +92,7 @@ export default {
         option.value.isEdit = false;
         option.value.url = `${window.location.origin}${
           import.meta.env.VITE_APP_BASE_API
-        }/api/access/${props.historycopyRow.fileId}?uid=${uid}`;
+        }/api/access/${props.historycopyRow.docId}?uid=${uid}`;
         //  console.log('option.value.url2',option.value.url);
         option.value.title = props.copyRow.fileName;
         option.value.key = props.historycopyRow.fileId;

+ 1 - 1
src/views/publicment/MyFile.vue

@@ -1446,7 +1446,7 @@ export default {
         }
         // 文件下载
         const downLoadfile = ()=>{
-            myfile.fileDown(clickRow.value.fileId).then(res=>{
+            myfile.fileDown(clickRow.value.docId).then(res=>{
                  var reader = new FileReader();
                 reader.onloadend = function(event){
                 //event 就是你要的返回内容

+ 2 - 2
src/views/publicment/components/FileEdit.vue

@@ -74,7 +74,7 @@ export default {
           option.value.isEdit = obj.isEdit;
           option.value.url = `${window.location.origin}${
             import.meta.env.VITE_APP_BASE_API
-          }/api/access/${obj.fileId}?uid=${uid}`;
+          }/api/access/${obj.docId}?uid=${uid}`;
           option.value.title = obj.fileName;
           option.value.key = obj.fileId;
           option.value.fileType = obj.fileType.replace(".", "");
@@ -90,7 +90,7 @@ export default {
         option.value.isEdit = false;
         option.value.url = `${window.location.origin}${
           import.meta.env.VITE_APP_BASE_API
-        }/api/access/${props.historycopyRow.fileId}?uid=${uid}`;
+        }/api/access/${props.historycopyRow.docId}?uid=${uid}`;
         option.value.title = props.copyRow.fileName;
         option.value.key = props.historycopyRow.fileId;
         option.value.fileType = props.copyRow.fileType.replace(".", "");