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

11

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