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')
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')
// }