| | |
| | | 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> |
| | |
| | | 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) => { |
| | |
| | | // useModalData, |
| | | // useFormData, |
| | | crudColSlots: objParams.value['crudColSlots'][name], |
| | | mainRecord: mainRecord.value, |
| | | }; |
| | | |
| | | const actionItem = [ |
| | |
| | | |
| | | /** |
| | | * @description: 点击打开弹出选择列表框 |
| | | * @param {*} item |
| | | * @param {*} item slot名字 |
| | | * @return {*} |
| | | */ |
| | | function SelectItemInForm(item) { |
| | |
| | | useModalsCrudInForm.value[item][1].openModal, |
| | | record, |
| | | objParams.value['CODE'], |
| | | mainRecord.value, |
| | | ); |
| | | } |
| | | |