mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
还原
This commit is contained in:
@@ -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')
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user