lsc 2 years ago
parent
commit
a90360ce13
2 changed files with 11 additions and 12 deletions
  1. 1 11
      js/Desktop/DeskTop.js
  2. 10 1
      js/Office/Word/Word.js

+ 1 - 11
js/Desktop/DeskTop.js

@@ -2800,7 +2800,7 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
                 _iframe.contentWindow.document.body.appendChild(script1);
                 _iframe.contentWindow.document.body.appendChild(script2);
                 _iframe.contentWindow.document.body.appendChild(script4);
-                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
+                U.MD.O.W.getContent(cid, stage, task, tool, _userid, '2', _iframe)
             })
         } else {
             _iframe.onload = () => {
@@ -2891,13 +2891,3 @@ U.MD.D.I.getEditorContent = function (iframe) {
     });
 }
 
-U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
-    U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
-        if (res.value[0].length > 0) {
-            // resolve(res.value[0][0].text);
-            iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
-                $(fileInput).val('');
-            });
-        }
-    });
-}

+ 10 - 1
js/Office/Word/Word.js

@@ -846,5 +846,14 @@ U.MD.O.W.openRoomConfirm = function () {
 
 }
 
-
+U.MD.O.W.getContent = function (cid, s, task, t, uid, type, iframe) {
+    U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
+        if (res.value[0].length > 0) {
+            // resolve(res.value[0][0].text);
+            iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
+                $(fileInput).val('');
+            });
+        }
+    });
+}
 //#endregion