Commit 96c6508c authored by 杨梦雪's avatar 杨梦雪

提交作业-删除作业

parent 90fd91a3
......@@ -617,8 +617,6 @@
//删除图片
handleRemove(file) {
console.log(file, "file");
console.log(this.stu_fileList);
console.log(file.url_open, "file");
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -632,22 +630,17 @@
); //https://yingdi-achievement.oss-cn-beijing.aliyuncs.com/进行分割,
console.log(str, "str");
let savefile = str[1];
// console.log(savefile, "savefile");
let stu_work_num = this.work_nums;
delPic({object: savefile, teacher_id: stu_work_num}).then((res) => {
// console.log(res, "delpic");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
console.log(this.stu_fileList);
console.log(this.fileList);
// console.log(this.stu_fileListoss);
this.stu_fileList.forEach((item, idx) => {
// console.log(idx, "idx");
console.log(item.url == file.url);
if (item.url == file.url) {
if (item.url_open == file.url_open) {
this.stu_fileList.splice(idx, 1);
this.fileList.splice(idx, 1);
// this.fileList.splice(idx, 1);
console.log( this.fileList);
let code = this.$store.state.indexIdentity;
this.stu_fileListoss = this.stu_fileList
.map(function (item, index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment