| | |
| | | <!-- |
| | | * @Description: 通用组合页面,左边是树,右边是配置 |
| | | * @Author: Ben Lin |
| | | * @version: |
| | | * @Date: 2024-06-18 23:30:30 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-06-27 22:31:13 |
| | | --> |
| | | <template> |
| | | <PageWrapper |
| | | :dense="dense" |
| | |
| | | <Suspense> |
| | | <div class="w-3/4 xl:w-4/5 p-5"> |
| | | <CarGridNav v-if="showNav" /> |
| | | <Config v-if="showConfig" /> |
| | | <Config v-if="showConfig" :configType="configType" @success="configSuccess"/> |
| | | </div> |
| | | </Suspense> |
| | | <!-- <BasicTable class="w-3/4 xl:w-4/5" @register="registerTable"> |
| | |
| | | import { useTabs } from '/@/hooks/web/useTabs'; |
| | | import { isNullOrUnDef } from '/@/utils/is'; |
| | | import { useGo } from '/@/hooks/web/usePage'; |
| | | import { useMessage } from '/@/hooks/web/useMessage'; |
| | | |
| | | defineOptions({ name: 'DeptManagement' }); |
| | | |
| | | const { notification, createErrorModal } = useMessage(); |
| | | const go = useGo(); |
| | | const route = useRoute(); |
| | | const { setTitle } = useTabs(); |
| | |
| | | const isMounted = ref(false); |
| | | const showNav = ref(false); |
| | | const showConfig = ref(false); |
| | | const configType = ref(''); |
| | | const custImport = ref<any>(null); |
| | | const [registerCust, { openModal: openCustomModal, closeModal }] = useModal(); |
| | | provide<Ref<string>>('nodeType', nodeType); |
| | |
| | | function NodeSelect(e) { |
| | | showConfig.value = e.showConfig; |
| | | showNav.value = e.showNav; |
| | | configType.value = e.type |
| | | } |
| | | |
| | | /** |
| | | * @description: 保存配置成功返回方法 |
| | | * @return {*} |
| | | */ |
| | | function configSuccess() { |
| | | notification.success({ message: '成功保存行为配置数据' }); |
| | | } |
| | | |
| | | /** |