Commit b7c63260 authored by liudong1993's avatar liudong1993

1

parent 8a808686
......@@ -94,10 +94,10 @@
showPhone: false,
showLogin: false, //多次点击
show:false,
params:{
Uid:'',
CourseId:'',
ExamName:''
uploadParm: {
Uid:726615,
CourseId:44977497,
ExamName:'考试测试530'
},
fileList:[],
Msg:{
......@@ -144,26 +144,19 @@
})
return
}
let params = {
// Uid: data.params.Uid,
// CourseId: data.params.CourseId,
// ExamName: data.params.ExamName,
Uid: 1,
CourseId: 1,
ExamName: '',
}
uni.uploadFile({
url: host + '/Upload/UploadStuExamScore',
filePath: file[0].url,
name: 'file',
formData: {
'myfile': file[0],
'params': JSON.stringify(params)
},
myfile:file[0],
params:JSON.stringify(data.uploadParm)
},
success(res) {
uni.hideLoading();
uni.showToast({
title:res.Message,
title: res.Code ==1?'导入成功': '导入失败',
icon:'none',
duration: 500
})
......
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