forked from ddrilling/asb_cloud_front
rename params, disable clear btn on RangePickers
This commit is contained in:
parent
7cd0971f24
commit
8238bdb523
@ -8,7 +8,7 @@ const { Option } = Select;
|
||||
const linesCollection = [
|
||||
{ label: "Глубина забоя", xAccessorName: "wellDepth", color: '#f00' },
|
||||
{ label: "Положение инструмента", xAccessorName: "bitDepth", color: '#ff0' },
|
||||
{ label: "Высота талевого блока", xAccessorName: "blockPosition", color: '#f0f' },
|
||||
{ label: "Положение талевого блока", xAccessorName: "blockPosition", color: '#f0f' },
|
||||
{ label: "Талевый блок. Мин положение", xAccessorName: "blockPositionMin", color: '#0ff' },
|
||||
{ label: "Талевый блок. Макс положение", xAccessorName: "blockPositionMax", color: '#0f0' },
|
||||
{ label: "Скорость талевого блока", xAccessorName: "blockSpeed", color: '#00f' },
|
||||
@ -54,7 +54,6 @@ const tagRender = ({ label, value, closable, onClose }) =>{
|
||||
let color = linesCollection.find(l=>l.xAccessorName === value)?.color
|
||||
return (
|
||||
<Tag
|
||||
//color={color}
|
||||
onMouseDown={onPreventMouseDown}
|
||||
closable={closable}
|
||||
onClose={onClose}
|
||||
@ -85,8 +84,9 @@ export function ArchiveColumn({ data, config, rangeDate, chartRatio, onRemoveCha
|
||||
const select = <Select
|
||||
mode="multiple"
|
||||
placeholder="Выберите линии"
|
||||
value={selectedValues}
|
||||
//showArrow
|
||||
value={selectedValues}
|
||||
allowClear={false}
|
||||
showArrow
|
||||
bordered={false}
|
||||
tagRender={tagRender}
|
||||
onChange={handleLinesSetChange}
|
||||
|
@ -128,6 +128,7 @@ export default function Archive() {
|
||||
<ConfigProvider locale={locale}>
|
||||
<RangePicker
|
||||
showTime
|
||||
allowClear={false}
|
||||
onChange = {onChangeRange}
|
||||
value = {rangeDate}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user