|
|
@@ -2,7 +2,7 @@ import { MultiTreeSelect } from "../components/ui/multi-tree-select";
|
|
|
import { PageIntro } from "../components/PageIntro";
|
|
|
import { TeamTicketTypes } from "../components/TeamTicketTypes";
|
|
|
import { ListPager } from "../components/ListPager";
|
|
|
-import { OpsNotice, OpsResponsiveActions, OpsTableColumns } from "../components/OperationsKit";
|
|
|
+import { OpsDialog, OpsNotice, OpsResponsiveActions, OpsTableColumns } from "../components/OperationsKit";
|
|
|
import { compareNum, compareText, nextSort, slicePage, useLocalPage, type SortDir } from "../lib/list-paging";
|
|
|
import { downloadCsv } from "../lib/csv-download";
|
|
|
import { useHorizontalOverflow } from "../lib/use-horizontal-overflow";
|
|
|
@@ -30,6 +30,7 @@ import { MAINTENANCE_TICKET_TYPES, typeLabel } from "../lib/api/ticket";
|
|
|
import { useDemoIdentity } from "../lib/demo-session";
|
|
|
import { useSession } from "../auth/session";
|
|
|
import { Tri } from "../components/triState";
|
|
|
+import "../styles/operations.css";
|
|
|
import "../styles/organization.css";
|
|
|
|
|
|
type EditorKind = "region" | "operator" | "partner" | "operations" | "maintenance";
|
|
|
@@ -688,17 +689,10 @@ function RegionNodeDialog({ data, modal, onClose, onSaved }: {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return <div className="org-dialog-backdrop org-editor-modal-backdrop" role="presentation" onMouseDown={onClose}>
|
|
|
- <section aria-label={title} aria-modal="true" className="org-dialog org-editor-modal org-region-editor-modal" onMouseDown={(e) => e.stopPropagation()} role="dialog">
|
|
|
- <header>
|
|
|
- <div>
|
|
|
- <span className="org-eyebrow">REGION / {modal.kind === "rename" ? "RENAME" : "CREATE"}</span>
|
|
|
- <h2>{title}</h2>
|
|
|
- </div>
|
|
|
- <button aria-label="关闭" className="org-icon-button" onClick={onClose} type="button"><X size={18} /></button>
|
|
|
- </header>
|
|
|
- <form onSubmit={submit}>
|
|
|
- <div className="org-dialog-content">
|
|
|
+ return (
|
|
|
+ <OpsDialog title={title} className="org-region-node-dialog" onClose={onClose}>
|
|
|
+ <form className="org-region-node-form" onSubmit={submit}>
|
|
|
+ <div className="org-region-node-fields">
|
|
|
{modal.kind === "create" && !isProvince && parent ? (
|
|
|
<div className="org-region-editor-context">
|
|
|
<span>上级节点</span>
|
|
|
@@ -720,8 +714,8 @@ function RegionNodeDialog({ data, modal, onClose, onSaved }: {
|
|
|
<button className="org-button" disabled={busy} type="submit">{busy ? "提交中…" : submitLabel}</button>
|
|
|
</footer>
|
|
|
</form>
|
|
|
- </section>
|
|
|
- </div>;
|
|
|
+ </OpsDialog>
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
type RegionTreeMenuState = { id: string; anchor: HTMLElement } | null;
|