Commit 363e5e93 authored by 杨梦雪's avatar 杨梦雪

11

parent 083a12d9
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
data() { data() {
return { return {
isShowinfo: false, isShowinfo: false,
pageSize: 1, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
homeworkList: [], homeworkList: [],
......
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
}, },
data() { data() {
var validateNum = (rule, value, callback) => { var validateNum = (rule, value, callback) => {
console.log(value, "value"); // console.log(value, "value");
// let code = this.$store.state.indexIdentity; // let code = this.$store.state.indexIdentity;
// this.formData.stu_enclosure_url = window.localStorage.getItem( // this.formData.stu_enclosure_url = window.localStorage.getItem(
// "student_file_" + window.localStorage.getItem("phone" + code) + code // "student_file_" + window.localStorage.getItem("phone" + code) + code
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
console.log(this.formData.stu_enclosure_url); console.log(this.formData.stu_enclosure_url);
if ( if (
this.formData.stu_answer == "" && this.formData.stu_answer == "" &&
this.formData.stu_enclosure_url == [] this.formData.stu_enclosure_url == ""
) { ) {
callback(new Error("请至少填写一项")); callback(new Error("请至少填写一项"));
} else { } else {
...@@ -289,6 +289,7 @@ export default { ...@@ -289,6 +289,7 @@ export default {
}, },
methods: { methods: {
open() { open() {
console.log(this.student_status);
this.titleName = this.order_nums; this.titleName = this.order_nums;
// console.log(this.student_status); // console.log(this.student_status);
this.getTeachList(); this.getTeachList();
...@@ -469,7 +470,7 @@ export default { ...@@ -469,7 +470,7 @@ export default {
this.stu_fileListoss = []; this.stu_fileListoss = [];
this.teaFileList = []; this.teaFileList = [];
this.formData.stu_answer = ""; this.formData.stu_answer = "";
this.$refs["formRef"].resetFields(); this.$refs["formRef_stu"].resetFields();
this.dialogVisible = false; this.dialogVisible = false;
this.$emit("closeDialog", this.dialogVisible, true); this.$emit("closeDialog", this.dialogVisible, true);
}, },
...@@ -550,13 +551,14 @@ export default { ...@@ -550,13 +551,14 @@ export default {
name: res.data.config.savefile.split("/work/")[1], name: res.data.config.savefile.split("/work/")[1],
}; };
this.fileList.push(obj); this.fileList.push(obj);
console.log(this.fileList, "fileList"); // console.log(this.fileList, "fileList");
this.stu_fileListoss = this.fileList this.stu_fileListoss = this.fileList
.map((item) => { .map((item) => {
return item.url; return item.url;
}) })
.join(","); .join(",");
console.log(this.stu_fileListoss, "stu_fileListoss"); this.formData.stu_enclosure_url = this.stu_fileListoss;
// console.log(this.stu_fileListoss, "stu_fileListoss");
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
window.localStorage.setItem( window.localStorage.setItem(
"student_file_" + "student_file_" +
......
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