yangbifan 2 роки тому
батько
коміт
8dc7fb250f

+ 2 - 2
public/index.html

@@ -26,10 +26,10 @@
   <!-- built files will be auto injected -->
   <script type="text/javascript">
     // window.staticHost = 'http://10.230.26.15:8000/mkt'; // 正式
-   window.staticHost = 'http://10.149.85.91:8000/spfm'; // 测试
+  //  window.staticHost = 'http://10.149.85.91:8000/spfm'; // 测试
   //  window.staticHost = 'http://43.138.50.94:9600/'; 
     // window.staticHost = 'http://192.168.0.103:9600/';
-    // window.staticHost = 'http://192.168.2.124:9600';
+    window.staticHost = 'http://192.168.2.124:9600';
 
     // document.title = "hello";
   </script>

+ 4 - 4
public/static/views/onlineShareExcel.html

@@ -217,17 +217,17 @@
                         showsheetbar: false, // 底部sheet显示/隐藏
                         loadUrl:
                             window.location.protocol +
-                            "//10.149.85.91:7777" +
+                            "//192.168.2.124:7777" +
                             "/sheet/worksheet/" +
                             ids + '/' + JSON.parse(window.sessionStorage.userInfo).loginNo,
                         loadSheetUrl:
                             window.location.protocol +
-                            "//10.149.85.91:7777" +
+                            "//192.168.2.124:7777" +
                             "/sheet/loadsheet/" +
                             ids,
                         updateUrl:
                             "ws://" +
-                            "//10.149.85.91:7777" +
+                            "//192.168.2.124:7777" +
                             "/ws/" +
                             JSON.parse(window.sessionStorage.userInfo).loginName +
                             "/" +
@@ -680,7 +680,7 @@
                         }
                         let res = JSON.stringify(exportJson)
                         console.log(res);
-                        util.ajaxJson("正在导入中", "http://10.149.85.91:7777/sheet/excel/importFile", { exceldata: res, id: excelId }, function (res) {
+                        util.ajaxJson("正在导入中", "http://192.168.2.124:7777/sheet/excel/importFile", { exceldata: res, id: excelId }, function (res) {
                             console.log(res);
                             if (res.code === '1') {
                                 // 销毁原来的excel

+ 8 - 1
src/pages/main/onlineExcel/index.vue

@@ -95,7 +95,7 @@
                     <div class="container" id="container" v-else>
                         <fullscreen :fullscreen.sync="excelFullScreen" class="container">
                             <iframe id="excelIframe" height="100%" width="100%"
-                                    src="/marketfront/static/views/onlineShareExcel.html"
+                                    src="/static/views/onlineShareExcel.html"
                                     frameborder="0"></iframe>
                         </fullscreen>
                     </div>
@@ -299,10 +299,14 @@ export default {
                         message: '请填写完毕后点击“保存”按钮',
                         type: 'success'
                     });
+                    console.log(123888);
                     var id = res.data.desc;
+                    console.log(1239999);
                     //放入id,切换到excel模式
                     document.getElementById('excelId').setAttribute("value", id);
+                    console.log(123);
                     _this.showExcel = true;
+                    console.log(_this.showExcel);
                 }
             });
         },
@@ -484,6 +488,7 @@ export default {
                     folderId: folderId,
                 },
             }).then((res) => {
+                console.log(res);
                 if (res.data.result === 1) {
                     _this.$message({
                         message: res.data.desc,
@@ -496,9 +501,11 @@ export default {
                     });
                     var id = res.data.desc;
                     _this.addNewStatus = false;
+                    console.log(123);
                     //放入id,切换到excel模式
                     document.getElementById('excelId').setAttribute("value", id);
                     _this.showExcel = true;
+                    console.log(_this.showExcel);
                 }
             });
         },