diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 5b935030..063d5012 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -1172,8 +1172,8 @@ import { message } from "ant-design-vue"; console.log(state.uploadStatus,'state.uploadStatus') await save({ id: state.uploadDownId, - createId:userInfo.value.userId, - createName:userInfo.value.realName, + creatId:userInfo.value.userId, + creatName:userInfo.value.realName, prefix:'', remarks:state.formData.remarks, evaluationName:state.formData.evaluationName, @@ -1185,17 +1185,17 @@ import { message } from "ant-design-vue"; console.log(res.data,'data') }) } - else{ - state.bg_results = true - state.valueAll.forEach((item)=>{ - if(item.createId){ - item.createId = userInfo.value.userId - } - }) - await saveEvaluationDetail({evaluationDetailListlist:state.valueAll,pid:state.uploadId}).then((res)=>{ - console.log(res.data,'json') - }) - } + //else{ + // state.bg_results = true + // state.valueAll.forEach((item)=>{ + // if(item.createId){ + // item.createId = userInfo.value.userId + // } + // }) + // await saveEvaluationDetail({evaluationDetailListlist:state.valueAll,pid:state.uploadId}).then((res)=>{ + // console.log(res.data,'json') + // }) + // } of_exit() listData() } @@ -1289,27 +1289,27 @@ import { message } from "ant-design-vue"; state.uploadDownLoad = false } }) - await importList(formData).then((res)=>{ - if(res.code === 200){ - if(state.stateType == "application/pdf"){ - state.idValue = res.data.map(item=>item.id) - state.valueAll = res.data - }else{ - state.idValue = res.data.evaluationDetailList.map(item=>item.id) - state.valueAll = res.data.evaluationDetailList - state.totalNumber = res.data - } - console.log(state.valueAll,'state.valueAll') - state.uploadDownLoad = false - } - }).catch((err)=>{ - state.uploadDownLoad = false - console.log(err,'err') - }) + // await importList(formData).then((res)=>{ + // if(res.code === 200){ + // if(state.stateType == "application/pdf"){ + // state.idValue = res.data.map(item=>item.id) + // state.valueAll = res.data + // }else{ + // state.idValue = res.data.evaluationDetailList.map(item=>item.id) + // state.valueAll = res.data.evaluationDetailList + // state.totalNumber = res.data + // } + // console.log(state.valueAll,'state.valueAll') + // state.uploadDownLoad = false + // } + // }).catch((err)=>{ + // state.uploadDownLoad = false + // console.log(err,'err') + // }) // try { // const response = await axios.post('/activityApi/evaluation/import', formData); // const jsonData = JSONbig({ storeAsString: true }).parse(response.data); - // + // if (jsonData.code === 200) { // console.log(jsonData.data, 'jsondata.data') // }