Ben Lin
2025-02-27 8a12783afd1d6c4881d90e66bb0a52010a1598ae
src/views/tigerprojects/system/lowcode/composition/Config.vue
@@ -39,13 +39,13 @@
    v-show="showOtherTable[item]"
    class="mt-1"
  >
  <div :style="custTableStyle" >
    <BasicTable @register="useTables[item][0]" v-if="showOtherTable[item]">
      <template #action="{ record }">
        <TableAction :actions="createActions(record, item)" />
      </template>
    </BasicTable>
  </div>
    <div :style="custTableStyle">
      <BasicTable @register="useTables[item][0]" v-if="showOtherTable[item]">
        <template #action="{ record }">
          <TableAction :actions="createActions(record, item)" />
        </template>
      </BasicTable>
    </div>
    <normalDrawer @register="useDrawers[item][0]" @success="(d, u) => EditSuccess(d, u, item)" />
    <GeneralCrudModal @register="useModalsCrud[item][0]"></GeneralCrudModal>
  </Card>
@@ -134,11 +134,12 @@
    useModalsCrud.value[x] = useModal();
  });
  const custTableStyle = ref({
    height: window.screen.width == 1366? '350px': '450px'
    height: window.screen.width == 1366 ? '350px' : '450px',
  });
  /* 注入选中节点数据 */
  const selectedNodes = inject('selectedNodes') as Ref<any>;
  const mainRecord = ref(objParams.value.record);
  watch(
    () => selectedNodes.value,
    (newVal, oldVal) => {
@@ -242,6 +243,7 @@
      // useModalData,
      // useFormData,
      crudColSlots: objParams.value['crudColSlots'][name],
      mainRecord: mainRecord.value,
    };
    const actionItem = [
@@ -295,7 +297,7 @@
  /**
   * @description: 点击打开弹出选择列表框
   * @param {*} item
   * @param {*} item slot名字
   * @return {*}
   */
  function SelectItemInForm(item) {
@@ -306,6 +308,7 @@
      useModalsCrudInForm.value[item][1].openModal,
      record,
      objParams.value['CODE'],
      mainRecord.value,
    );
  }