Commit b7c63260 authored by liudong1993's avatar liudong1993

1

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