Ben Lin
2024-06-25 3505aa60ad15de91bc9b437ca8d69124c8074974
src/views/tigerprojects/system/lowcode/composition/index.vue
@@ -21,7 +21,8 @@
      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>
@@ -67,7 +68,8 @@
  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';
@@ -104,6 +106,7 @@
  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);
@@ -111,6 +114,7 @@
  const [registerItemAdd, { openModal: openItemModal }] = useModal();
  const [registerDrawer, { openDrawer }] = useDrawer();
  provide<Ref<string>>('prodCode', prodCode);
  provide<Ref<string>>('actionCode', actionCode);
  setTitle(objParams.value.Title); //设置标签页标题
  /**
@@ -172,8 +176,9 @@
  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();
  }