Commit eee10113 authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-修改bug

parent cc9d42dc
......@@ -73,6 +73,7 @@
:student_status="student_status"
:timeOut="time_out"
:workName="workName"
:workType="workType"
:work_contexts="work_context"
:work_nums="work_num"
@closeDialog="closeDialog"
......@@ -103,6 +104,7 @@
time_out: 0,
work_num: 0,
workName: "",
workType: null,
order_num: 0,
student_status: 0,
end_time: null,
......@@ -143,6 +145,7 @@
this.enclosure_url = item.enclosure_url;
this.work_num = item.id;
this.workName = item.work_name; //作业名字
this.workType = item.type;
this.order_num = item.work_num;
this.student_status = item.student_status;
//作业截止时间
......
......@@ -258,6 +258,7 @@
enclosure_urls: [Object, String], //老师作业地址
work_nums: [Number],
workName: [String], //作业名字
workType: [Number, String],
student_status: [Number], //作业审核状态
order_nums: [Number], //作业状态
end_time: [Boolean], //作业截止时间
......@@ -300,11 +301,13 @@
isUploading: false, // 图片上传蒙层
work_context: "", //简介
work_name: "", //作业名称
work_type: this.workType,
is_end: '',//是否营地截止
time_out: 1,
fileImg: fileImg,
loading: false,
formData: {
type: this.workType,
teacher_id: "",
stu_answer: "",
stu_enclosure_url: "",
......@@ -748,8 +751,7 @@
}
window.open(url, "_blank");
}
}
,
},
handleImageClose(done) {
this.$confirm("确认关闭?")
.then((_) => {
......@@ -765,6 +767,8 @@
return decodeURI(item.url_open.split('?sign=')[0]);
})
.join(",");
this.formData.type = this.work_type;
console.log(this.formData)
subStudentWork(this.formData)
.then((response) => {
// console.log(response);
......@@ -814,7 +818,6 @@
});
},
},
watch: {
dialogVisibleFu() {
this.dialogVisible = this.dialogVisibleFu;
......@@ -825,6 +828,10 @@
workName() {
this.work_name = this.workName;
},
workType() {
this.work_type = this.workType;
this.formData.type = this.workType;
},
timeOut() {
this.time_out = this.timeOut;
console.log(this.time_out, "timeout");
......
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