|
@ -282,7 +282,12 @@ const customRequest = (options: UploadCustomRequestOptions) => { |
|
|
) |
|
|
) |
|
|
let uploadParams = new FormData() |
|
|
let uploadParams = new FormData() |
|
|
uploadParams.append('file', newNameFile) |
|
|
uploadParams.append('file', newNameFile) |
|
|
const uploadRes = await uploadFile(uploadParams) |
|
|
const upData = { |
|
|
|
|
|
tableId: fetchRouteParamsLocation(), |
|
|
|
|
|
tableName: 'reportGoViewProject', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const uploadRes = await uploadFile(uploadParams, upData) |
|
|
|
|
|
|
|
|
if(uploadRes && uploadRes.code === ResultEnum.SUCCESS) { |
|
|
if(uploadRes && uploadRes.code === ResultEnum.SUCCESS) { |
|
|
chartEditStore.setEditCanvasConfig( |
|
|
chartEditStore.setEditCanvasConfig( |
|
|