modal.config.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { ModalConfig } from "/@/components/PageModal/src/types";
  2. import { createRoleOptions, createCardOptions } from "../utils/create-options";
  3. const modalConfig: ModalConfig = {
  4. title: "运营账号",
  5. width: "900px",
  6. colLayout: { span: 24 },
  7. itemStyle: {},
  8. contact: "account",
  9. labelWidth: "100px",
  10. formItems: [
  11. {
  12. field: "username",
  13. type: "input",
  14. label: "账号",
  15. placeholder: "账号",
  16. rules: [{ required: true, trigger: "blur", message: "请输入账号" }]
  17. },
  18. {
  19. field: "role_id",
  20. type: "select",
  21. label: "角色",
  22. placeholder: "角色",
  23. options: [],
  24. // await createRoleOptions(),
  25. rules: [{ required: true, trigger: "change", message: "请选择角色" }]
  26. },
  27. {
  28. field: "card_id",
  29. type: "checkbox",
  30. label: "卡类型",
  31. placeholder: "卡类型",
  32. options: [], //await createCardOptions(),
  33. rules: [{ required: true, trigger: "change", message: "请选择卡类型" }]
  34. }
  35. ]
  36. };
  37. export default modalConfig;