diff --git a/src/components/UploadForm.jsx b/src/components/UploadForm.jsx
index 7f1e437..95a3055 100644
--- a/src/components/UploadForm.jsx
+++ b/src/components/UploadForm.jsx
@@ -3,7 +3,7 @@ import { UploadOutlined } from '@ant-design/icons'
import { useState } from 'react'
import { upload } from './factory'
-export default function UploadForm({url, onUploadStart, onUploadComplete, onUploadError}) {
+export default function UploadForm({url, accept, onUploadStart, onUploadComplete, onUploadError}) {
const [fileList, setfileList] = useState([])
const handleFileSend = async (values) => {
@@ -31,6 +31,7 @@ export default function UploadForm({url, onUploadStart, onUploadComplete, onUplo
setfileList(props.fileList)}>
diff --git a/src/pages/Documents/DocumentsTemplate.jsx b/src/pages/Documents/DocumentsTemplate.jsx
index 18bc372..4a998a1 100644
--- a/src/pages/Documents/DocumentsTemplate.jsx
+++ b/src/pages/Documents/DocumentsTemplate.jsx
@@ -17,7 +17,7 @@ const pageSize = 12
const { RangePicker } = DatePicker
const { Search } = Input
-export default function DocumentsTemplate({ idCategory, idWell }) {
+export default function DocumentsTemplate({ idCategory, idWell, accept }) {
const [page, setPage] = useState(1)
const [filterDataRange, setFilterDataRange] = useState([])
const [filterCompanyName, setFilterCompanyName] = useState([])
@@ -175,6 +175,7 @@ export default function DocumentsTemplate({ idCategory, idWell }) {
Загрузка
setShowLoader(true)}
onUploadComplete={handleUploadComplete}/>
diff --git a/src/pages/Documents/DrillingProgram.jsx b/src/pages/Documents/DrillingProgram.jsx
index 3235d07..1a43a23 100644
--- a/src/pages/Documents/DrillingProgram.jsx
+++ b/src/pages/Documents/DrillingProgram.jsx
@@ -9,7 +9,7 @@ const idFileCategoryDrillingProgramItems = 13;
export default function DrillingProgram({idWell}) {
const [showLoader, setShowLoader] = useState(false)
- const urlDownloadProgram =`api/well/${idWell}/drillingProgram`
+ const urlDownloadProgram =`/api/well/${idWell}/drillingProgram`
const downloadProgram = () => invokeWebApiWrapperAsync(async()=>{
await download(urlDownloadProgram)
@@ -21,6 +21,7 @@ export default function DrillingProgram({idWell}) {
+ idCategory={idFileCategoryDrillingProgramItems}
+ accept='.xlsx'/>
)
}
\ No newline at end of file