점선 그리드 조건 수정
This commit is contained in:
parent
3ea6eb2eaf
commit
f42ef08b09
@ -108,6 +108,10 @@ export default function DotLineGrid(props) {
|
||||
}
|
||||
|
||||
const handleSave = async () => {
|
||||
if (!dotLineGridSetting.DOT && !dotLineGridSetting.LINE) {
|
||||
swalFire({ text: '배치할 그리드를 설정해주세요.' })
|
||||
return
|
||||
}
|
||||
try {
|
||||
const patternData = {
|
||||
objectNo,
|
||||
@ -345,7 +349,8 @@ export default function DotLineGrid(props) {
|
||||
id="ra01"
|
||||
value={1}
|
||||
onChange={handleRadioChange}
|
||||
checked={dotLineGridSetting.INTERVAL.type === 1}
|
||||
checked={(dotLineGridSetting.DOT || dotLineGridSetting.LINE) && dotLineGridSetting.INTERVAL.type === 1}
|
||||
readOnly={!dotLineGridSetting.DOT && !dotLineGridSetting.LINE}
|
||||
/>
|
||||
<label htmlFor="ra01"></label>
|
||||
</div>
|
||||
@ -384,7 +389,8 @@ export default function DotLineGrid(props) {
|
||||
id="ra02"
|
||||
value={2}
|
||||
onChange={handleRadioChange}
|
||||
checked={dotLineGridSetting.INTERVAL.type === 2}
|
||||
checked={(dotLineGridSetting.DOT || dotLineGridSetting.LINE) && dotLineGridSetting.INTERVAL.type === 2}
|
||||
readOnly={!dotLineGridSetting.DOT && !dotLineGridSetting.LINE}
|
||||
/>
|
||||
<label htmlFor="ra02"></label>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user