This commit is contained in:
670788339
2024-04-02 17:59:17 +08:00
parent 8eb5193c83
commit da3fff0e14

View File

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