| | |
| | | @expanded-rows-change="onExpandedRChg" |
| | | > |
| | | <template #toolbar> |
| | | <a-button type="primary" @click="handleCreate('BS 菜单')"> 新增菜单 </a-button> |
| | | <a-button type="primary" @click="handleCreate('BS')"> 新增菜单 </a-button> |
| | | </template> |
| | | <template #action="{ record }"> |
| | | <TableAction |
| | | :actions="[ |
| | | { |
| | | icon: 'clarity:note-edit-line', |
| | | onClick: handleEdit.bind(null, record, 'BS 菜单'), |
| | | onClick: handleEdit.bind(null, record, 'BS'), |
| | | name: '', |
| | | }, |
| | | { |
| | | icon: 'ant-design:delete-outlined', |
| | |
| | | placement: 'left', |
| | | confirm: handleDelete.bind(null, record), |
| | | }, |
| | | name: '', |
| | | }, |
| | | ]" |
| | | /> |
| | |
| | | { |
| | | icon: 'clarity:note-edit-line', |
| | | onClick: handleEdit.bind(null, record, 'PDA'), |
| | | name: '', |
| | | }, |
| | | { |
| | | icon: 'ant-design:delete-outlined', |
| | |
| | | placement: 'left', |
| | | confirm: handleDelete.bind(null, record), |
| | | }, |
| | | name: '', |
| | | }, |
| | | ]" |
| | | /> |
| | |
| | | // const [registerTable, { reload, expandRows }] = useTable({ |
| | | title: '菜单列表', |
| | | api: getMenuList, |
| | | searchInfo: { menuName: 'BS 菜单' }, |
| | | searchInfo: { menuName: 'BS' }, |
| | | columns, |
| | | formConfig: { |
| | | labelWidth: 120, |
| | |
| | | rowKey: 'id', |
| | | }); |
| | | |
| | | const [registerTableSecond, { reload:reloadSecond, expandAll:expandAllSecond, expandRows:expandRowsSecond }] = useTable({ |
| | | const [ |
| | | registerTableSecond, |
| | | { reload: reloadSecond, expandAll: expandAllSecond, expandRows: expandRowsSecond }, |
| | | ] = useTable({ |
| | | // const [registerTable, { reload, expandRows }] = useTable({ |
| | | title: '菜单列表', |
| | | api: getMenuList, |
| | |
| | | const apiAction = DeleteMenu(record); |
| | | apiAction.then((onfulfilled) => { |
| | | if (onfulfilled.IsSuccessed) { |
| | | reload(); |
| | | reloadSecond(); |
| | | reload(); |
| | | } |
| | | }); |
| | | } |