| | |
| | | } |
| | | // 添加一级菜单 |
| | | const getTableRow = async () => { |
| | | if (!menuName.value) { |
| | | ElMessage.error(t('customer.inmenu')) |
| | | return |
| | | } |
| | | if (!url.value) { |
| | | ElMessage.error(t('customer.inlink')) |
| | | return |
| | | } |
| | | if (!listSort.value) { |
| | | ElMessage.error(t('customer.insort')) |
| | | return |
| | | } |
| | | try { |
| | | const response = await request.post('/loadGlass/sys/menu/save', { |
| | | menuName: menuName.value, |
| | |
| | | }; |
| | | // 添加二级菜单 |
| | | const getTableRowb = async () => { |
| | | if (!menuName.value) { |
| | | ElMessage.error(t('customer.inmenu')) |
| | | return |
| | | } |
| | | if (!url.value) { |
| | | ElMessage.error(t('customer.inlink')) |
| | | return |
| | | } |
| | | if (!listSort.value) { |
| | | ElMessage.error(t('customer.insort')) |
| | | return |
| | | } |
| | | try { |
| | | const dataToSend = { |
| | | parentId: currentRow.id, |
| | |
| | | } |
| | | // 编辑 |
| | | const getTableRowa = async () => { |
| | | if (!menuName.value) { |
| | | ElMessage.error(t('customer.inmenu')) |
| | | return |
| | | } |
| | | if (!url.value) { |
| | | ElMessage.error(t('customer.inlink')) |
| | | return |
| | | } |
| | | if (!listSort.value) { |
| | | ElMessage.error(t('customer.insort')) |
| | | return |
| | | } |
| | | try { |
| | | const response = await request.post('/loadGlass/sys/menu/updateMenu', { |
| | | parentId: currentRow.id, |
| | |
| | | }; |
| | | // 编辑二级菜单 |
| | | const getTableRowac = async () => { |
| | | if (!menuName.value) { |
| | | ElMessage.error(t('customer.inmenu')) |
| | | return |
| | | } |
| | | if (!url.value) { |
| | | ElMessage.error(t('customer.inlink')) |
| | | return |
| | | } |
| | | if (!listSort.value) { |
| | | ElMessage.error(t('customer.insort')) |
| | | return |
| | | } |
| | | try { |
| | | const response = await request.post('/loadGlass/sys/menu/updateMenu', { |
| | | menuName: menuName.value, |