Sfoglia il codice sorgente

Merge branch 'hcb' of SH-Arbitrate/Arbitrate-FrontendH5 into master

hanchaobo 2 anni fa
parent
commit
1f0508a49c
2 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  1. 5
    3
      src/views/room.vue
  2. 4
    4
      vue.config.js

+ 5
- 3
src/views/room.vue Vedi File

@@ -299,6 +299,7 @@ export default {
299 299
       filedata3: {
300 300
         annexType: 7,
301 301
         officeFlag: 0,
302
+        isMediaBook:1,
302 303
         caseId: null,
303 304
       },
304 305
       fileList3: [],
@@ -433,14 +434,15 @@ export default {
433 434
       this.$refs.upload3.clearFiles();
434 435
       this.selectByIdFn(this.caseId);
435 436
     },
436
-    preview(item, flag) {
437
+    preview(item, type) {
437 438
       if (item.onlyOfficeFileId) {
439
+        debugger
438 440
         // this.$router.push({
439 441
         //   path: "/onlyoffice",
440 442
         //   query: { id: item.onlyOfficeFileId, flag: flag },
441 443
         // });
442 444
         let flag = 1;
443
-        if (this.editFlag) {
445
+        if (this.editFlag && type != 0) {
444 446
           flag = 1;
445 447
         } else {
446 448
           flag = 0;
@@ -453,7 +455,7 @@ export default {
453 455
           "_black"
454 456
         );
455 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 Vedi File

@@ -5,16 +5,16 @@ module.exports = defineConfig({
5 5
     proxy: {
6 6
       '/tiaojie': {
7 7
         // target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
8
-        target: 'http://172.16.1.26:6001',
8
+        target: 'http://121.40.189.20:6001',
9 9
         changeOrigin: true, // 是否改变Origin头信息
10 10
         secure : false,
11 11
         pathRewrite: {
12 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 18
         changeOrigin: true, // 是否改变Origin头信息
19 19
         secure : false,
20 20
         pathRewrite: {