|
|
|
|
@ -252,23 +252,17 @@ const setFormData = async (data: Record<string, any>) => {
|
|
|
|
|
if (data[key] != null && data[key] != undefined) { |
|
|
|
|
//@ts-ignore |
|
|
|
|
if(key=='departId'){ |
|
|
|
|
console.log("key"+key); |
|
|
|
|
formData[key]= parseInt( data[key]) |
|
|
|
|
}else{ |
|
|
|
|
console.log("key"+key); |
|
|
|
|
console.log("data[key]"+data[key]); |
|
|
|
|
formData[key] = data[key] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if(key=='reportDate'){ |
|
|
|
|
let tmpArr = [] |
|
|
|
|
console.log("key"+key); |
|
|
|
|
tmpArr.push(data["startTime"]) |
|
|
|
|
tmpArr.push(data["endTime"]) |
|
|
|
|
console.log('转成啥', tmpArr) |
|
|
|
|
formData[key] = tmpArr |
|
|
|
|
console.log("formData[key]"+formData[key]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|