afterHeadEvent.js 590 B

1234567891011121314151617
  1. import { FIELD, CARD_ADD_DISABLED_BUTTON, CARD } from "../../constant";
  2. /**
  3. * @description: 表头编辑后事件
  4. * @param: moduleId 区域编码
  5. * @param: key 当前字段编码
  6. */
  7. export function afterHeadEvent(props, moduleId, key, value, oldValue) {
  8. if (key === FIELD.org) {
  9. props.resMetaAfterPkorgEdit(); //选择主组织以后,恢复其他字段的编辑性
  10. props.button.setButtonDisabled(CARD_ADD_DISABLED_BUTTON, false);//恢复增行编辑性
  11. props.cardTable.setAllCheckboxAble(CARD.table_code, true);
  12. }
  13. }