forked from ddrilling/asb_cloud_front
design
This commit is contained in:
parent
e42b9069fe
commit
4ad91d861f
@ -26,7 +26,7 @@ export default function DrillingProgram({idWell}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(files.every(fileInfo => fileInfo?.name.endsWith('.xlsx'))){
|
if(files.every(fileInfo => fileInfo?.name.toLowerCase().endsWith('.xlsx'))){
|
||||||
setTooltip('Программа доступна для скачивания')
|
setTooltip('Программа доступна для скачивания')
|
||||||
selDownloadButtonEnabled(true)
|
selDownloadButtonEnabled(true)
|
||||||
}
|
}
|
||||||
@ -40,6 +40,7 @@ export default function DrillingProgram({idWell}) {
|
|||||||
<div>
|
<div>
|
||||||
<Tooltip title={tooltip}>
|
<Tooltip title={tooltip}>
|
||||||
<Button
|
<Button
|
||||||
|
type="primary"
|
||||||
onClick={downloadProgram}
|
onClick={downloadProgram}
|
||||||
disabled={!downloadButtonEnabled}>
|
disabled={!downloadButtonEnabled}>
|
||||||
Сформировать и скачать
|
Сформировать и скачать
|
||||||
|
@ -5,6 +5,7 @@ import {
|
|||||||
AlertOutlined,
|
AlertOutlined,
|
||||||
FilePdfOutlined,
|
FilePdfOutlined,
|
||||||
DatabaseOutlined,
|
DatabaseOutlined,
|
||||||
|
ExperimentOutlined,
|
||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import { Link, Redirect, Route, Switch, useParams } from "react-router-dom";
|
import { Link, Redirect, Route, Switch, useParams } from "react-router-dom";
|
||||||
import TelemetryView from "./TelemetryView";
|
import TelemetryView from "./TelemetryView";
|
||||||
@ -64,7 +65,7 @@ export default function Well() {
|
|||||||
>
|
>
|
||||||
{makeMenuItems(rootPath)}
|
{makeMenuItems(rootPath)}
|
||||||
</SubMenu>
|
</SubMenu>
|
||||||
<Menu.Item key="measure" icon={<FolderOutlined />}>
|
<Menu.Item key="measure" icon={<ExperimentOutlined />}>
|
||||||
<Link to={`${rootPath}/measure`}>Измерения</Link>
|
<Link to={`${rootPath}/measure`}>Измерения</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item key="drillingProgram" icon={<FolderOutlined />}>
|
<Menu.Item key="drillingProgram" icon={<FolderOutlined />}>
|
||||||
|
Loading…
Reference in New Issue
Block a user