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