|
@@ -66,7 +66,7 @@ function beforeUpload_shishi(nfile, uid, cid, stage, task, tool) {
|
|
|
url: data.Location,
|
|
|
uid: file.uid,
|
|
|
}
|
|
|
- addSWork_shishi(uid, cid, stage, task, tool, a)
|
|
|
+ addSWork_shishi(uid, cid, stage, task, tool, data.Location)
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -75,19 +75,29 @@ function addSWork_shishi(uid, cid, stage, task, tool, a) {
|
|
|
let params = {
|
|
|
uid: uid,
|
|
|
cid: cid,
|
|
|
- stage:stage,
|
|
|
- task:task,
|
|
|
- tool:tool,
|
|
|
+ stage: stage,
|
|
|
+ task: task,
|
|
|
+ tool: tool,
|
|
|
content: a,
|
|
|
type: 1,
|
|
|
// upload: JSON.stringify(this.imgFileUp),
|
|
|
};
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
- url: 'https://pbl.cocorobo.cn/api/pbl/addCourseWorks',
|
|
|
+ url: 'https://pbl.cocorobo.cn/api/pbl/addCourseWorks2',
|
|
|
data: params,
|
|
|
dataType: "json",
|
|
|
success: (data) => {
|
|
|
+ let _div = document.createElement('div')
|
|
|
+ _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
|
|
|
+ let _inner = document.createElement('div')
|
|
|
+ _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
|
|
|
+ _inner.innerHTML = "截图上传成功"
|
|
|
+ _div.appendChild(_inner)
|
|
|
+ document.body.appendChild(_div)
|
|
|
+ setTimeout(() => {
|
|
|
+ document.body.removeChild(_div)
|
|
|
+ }, 2000);
|
|
|
console.log("截图上传成功");
|
|
|
}
|
|
|
})
|