Przeglądaj źródła

文件访问404,证据docx文件不允许编辑

hanchaobo 2 lat temu
rodzic
commit
315aee6d78
2 zmienionych plików z 9 dodań i 7 usunięć
  1. 5
    3
      src/views/room.vue
  2. 4
    4
      vue.config.js

+ 5
- 3
src/views/room.vue Wyświetl plik

299
       filedata3: {
299
       filedata3: {
300
         annexType: 7,
300
         annexType: 7,
301
         officeFlag: 0,
301
         officeFlag: 0,
302
+        isMediaBook:1,
302
         caseId: null,
303
         caseId: null,
303
       },
304
       },
304
       fileList3: [],
305
       fileList3: [],
433
       this.$refs.upload3.clearFiles();
434
       this.$refs.upload3.clearFiles();
434
       this.selectByIdFn(this.caseId);
435
       this.selectByIdFn(this.caseId);
435
     },
436
     },
436
-    preview(item, flag) {
437
+    preview(item, type) {
437
       if (item.onlyOfficeFileId) {
438
       if (item.onlyOfficeFileId) {
439
+        debugger
438
         // this.$router.push({
440
         // this.$router.push({
439
         //   path: "/onlyoffice",
441
         //   path: "/onlyoffice",
440
         //   query: { id: item.onlyOfficeFileId, flag: flag },
442
         //   query: { id: item.onlyOfficeFileId, flag: flag },
441
         // });
443
         // });
442
         let flag = 1;
444
         let flag = 1;
443
-        if (this.editFlag) {
445
+        if (this.editFlag && type != 0) {
444
           flag = 1;
446
           flag = 1;
445
         } else {
447
         } else {
446
           flag = 0;
448
           flag = 0;
453
           "_black"
455
           "_black"
454
         );
456
         );
455
       } else {
457
       } else {
456
-        window.open(window.location.origin + item.annexPath, "_black");
458
+        window.open(window.location.origin + '/tiaojie' + item.annexPath, "_black");
457
       }
459
       }
458
     },
460
     },
459
     // 点击提交修改后的内容
461
     // 点击提交修改后的内容

+ 4
- 4
vue.config.js Wyświetl plik

5
     proxy: {
5
     proxy: {
6
       '/tiaojie': {
6
       '/tiaojie': {
7
         // target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
7
         // target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
8
-        target: 'http://172.16.1.26:6001',
8
+        target: 'http://121.40.189.20:6001',
9
         changeOrigin: true, // 是否改变Origin头信息
9
         changeOrigin: true, // 是否改变Origin头信息
10
         secure : false,
10
         secure : false,
11
         pathRewrite: {
11
         pathRewrite: {
12
           '^/tiaojie': '' // 将/api前缀重写为空字符串
12
           '^/tiaojie': '' // 将/api前缀重写为空字符串
13
         },
13
         },
14
       },
14
       },
15
-      '/tiaojiez': {
16
-        target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
17
-        // target: 'http://172.16.1.4:7001',
15
+      '/tiaojieprod': {
16
+        // target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
17
+        target: 'http://121.40.189.20:7001',
18
         changeOrigin: true, // 是否改变Origin头信息
18
         changeOrigin: true, // 是否改变Origin头信息
19
         secure : false,
19
         secure : false,
20
         pathRewrite: {
20
         pathRewrite: {