|
|
@ -7,7 +7,6 @@ import 'antd/dist/antd.css'; |
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
|
|
|
|
|
|
|
|
const { Option } = Select |
|
|
|
const { Option } = Select |
|
|
|
const company_id = window.localStorage.getItem('company_id'); |
|
|
|
|
|
|
|
const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdit, dataMenu }) => { |
|
|
|
const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdit, dataMenu }) => { |
|
|
|
const [id, setId] = useState(0) |
|
|
|
const [id, setId] = useState(0) |
|
|
|
const [name, setName] = useState('') |
|
|
|
const [name, setName] = useState('') |
|
|
@ -69,7 +68,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi |
|
|
|
sequence: parseInt(sequence), |
|
|
|
sequence: parseInt(sequence), |
|
|
|
icon, |
|
|
|
icon, |
|
|
|
alias_name: aliasName, |
|
|
|
alias_name: aliasName, |
|
|
|
company_id |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (parentId && parentId > 0) { |
|
|
|
if (parentId && parentId > 0) { |
|
|
@ -85,7 +83,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi |
|
|
|
sequence: parseInt(sequence), |
|
|
|
sequence: parseInt(sequence), |
|
|
|
icon, |
|
|
|
icon, |
|
|
|
alias_name: aliasName, |
|
|
|
alias_name: aliasName, |
|
|
|
company_id |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (parentId && parentId > 0) { |
|
|
|
if (parentId && parentId > 0) { |
|
|
|