Commit da416fc3 authored by youjie's avatar youjie

no message

parent e74216fe
......@@ -95,10 +95,11 @@
<input v-model="uploadParm.params.ExamName" class="examList-popup-name" placeholder="请输入考试名称"/>
<div class="diy-upload-class">
<!-- https://jjswapi.oytour.com -->
<!-- http://192.168.10.36:8082 -->
<el-upload class="avatar-uploader"
:data="JSON.parse(JSON.stringify(uploadParm))"
:data="uploadParm"
name="myfile"
action="http://192.168.10.36:8082/api/Upload/UploadStuExamScore"
action="https://jjswapi.oytour.com/api/Upload/UploadStuExamScore"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
:before-upload="uploadFileCheck"
:on-success="uploadFileSuccess"
......@@ -142,7 +143,7 @@
ExamName:''
}
},
}
};
},
created() {
......@@ -158,6 +159,7 @@
},
methods: {
uploadFileCheck(files) {//文件上传
this.uploadParm.params = JSON.stringify(this.uploadParm.params)
if(this.uploadParm.params.ExamName.length==0){
Notify.create({
icon: "error",
......@@ -167,7 +169,6 @@
});
return false;
}
console.log(this.uploadParm,'-----')
Loading.show({
message:"正在上传文件"
})
......
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