| | |
| | | add |
| | | @handle-add="handleAdd" --> |
| | | <div class="w-3/4 xl:w-4/5 p-5"> |
| | | <RouteAction v-if="entityName == 'ProdRouteBinding' && rotType == 'Product'" /> |
| | | <AddRoute v-if="entityName == 'ProdRouteBinding' && rotType == 'Product'" /> |
| | | <ActionConfig v-if="entityName == 'ProdRouteBinding' && rotType == 'Action'" /> |
| | | </div> |
| | | <!-- <BasicTable class="w-3/4 xl:w-4/5" @register="registerTable"> |
| | | <template #toolbar> |
| | |
| | | import GeneralTree from '/@/views/components/GeneralTree.vue'; |
| | | import { useModal } from '@/components/Modal'; |
| | | import GeneralModal from '/@/views/components/GeneralModal.vue'; |
| | | import RouteAction from './RouteAction.vue'; |
| | | import AddRoute from './AddRoute.vue'; |
| | | import ActionConfig from './ActionConfig.vue'; |
| | | import CustModal from '/@/views/components/CustModal.vue'; |
| | | import { OpenCustModal } from '../data'; |
| | | import { Ref, onMounted, provide, reactive, ref } from 'vue'; |
| | |
| | | const pageTitle = ref(objParams.value.pageTitle); |
| | | const pageContent = ref(objParams.value.pageContent); |
| | | const prodCode = ref(''); |
| | | const actionCode = ref(''); |
| | | const rotType = ref(''); |
| | | const isMounted = ref(false); |
| | | const custImport = ref<any>(null); |
| | |
| | | const [registerItemAdd, { openModal: openItemModal }] = useModal(); |
| | | const [registerDrawer, { openDrawer }] = useDrawer(); |
| | | provide<Ref<string>>('prodCode', prodCode); |
| | | provide<Ref<string>>('actionCode', actionCode); |
| | | setTitle(objParams.value.Title); //设置标签页标题 |
| | | |
| | | /** |
| | |
| | | |
| | | function handleSelect(deptId = '', info) { |
| | | searchInfo.deptId = deptId; |
| | | prodCode.value = info.selectedNodes[0].code; |
| | | rotType.value = info.selectedNodes[0].type; |
| | | prodCode.value =rotType.value=='Product'? info.selectedNodes[0].code: prodCode.value; |
| | | actionCode.value =rotType.value=='Action'? info.selectedNodes[0].code: actionCode.value; |
| | | // reload(); |
| | | } |
| | | |