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