Commit da416fc3 authored by youjie's avatar youjie

no message

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