lsc 2 年之前
父節點
當前提交
f0bb2315f3
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      js/jietu2.js

+ 5 - 4
js/jietu2.js

@@ -41,7 +41,7 @@ function dataURLtoFile_shishi(dataurl, filename) {
 }
 }
 
 
 
 
-function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading) {
+function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool) {
   // loading.style.display = 'flex'
   // loading.style.display = 'flex'
   // top.document.getElementById(loading);
   // top.document.getElementById(loading);
   //  document.body.appendChild(_loading)
   //  document.body.appendChild(_loading)
@@ -83,12 +83,12 @@ function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading) {
           url: data.Location,
           url: data.Location,
           uid: file.uid,
           uid: file.uid,
         }
         }
-        addSWork_shishi(uid, cid, stage, task, tool, data.Location, loading)
+        addSWork_shishi(uid, cid, stage, task, tool, data.Location, loading, atool)
       });
       });
   }
   }
 }
 }
 
 
-function addSWork_shishi(uid, cid, stage, task, tool, a, loading) {
+function addSWork_shishi(uid, cid, stage, task, tool, a, loading, atool) {
   let params = {
   let params = {
     uid: uid,
     uid: uid,
     cid: cid,
     cid: cid,
@@ -97,11 +97,12 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading) {
     tool: tool,
     tool: tool,
     content: a,
     content: a,
     type: 1,
     type: 1,
+    atool:atool
     // upload: JSON.stringify(this.imgFileUp),
     // upload: JSON.stringify(this.imgFileUp),
   };
   };
   $.ajax({
   $.ajax({
     type: 'GET',
     type: 'GET',
-    url: 'https://pbl.cocorobo.cn/api/pbl/addCourseWorks2',
+    url: 'https://pbl.cocorobo.cn/api/pbl/addCourseWorks3',
     data: params,
     data: params,
     dataType: "json",
     dataType: "json",
     success: (data) => {
     success: (data) => {