Commit eee10113 authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-修改bug

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