@voplus/morpho-csp 6.0.30 → 6.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.d.ts +7 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js +27 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.less +17 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +3 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +9 -51
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +7 -34
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js +34 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +10 -13
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +13 -3
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js +34 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.less +17 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +3 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.d.ts +8 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +9 -69
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +7 -34
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js +37 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +10 -13
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +12 -2
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.d.ts +8 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +36 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.less +17 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +3 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +9 -60
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +7 -32
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js +34 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +10 -13
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +12 -2
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useController, useControllerStore } from "../../../../../../data/controller";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { Skeleton } from "antd";
|
|
5
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
|
+
import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const ControllerHead = (props) => {
|
|
11
|
+
const { id, open } = props;
|
|
12
|
+
const controller = useController(id);
|
|
13
|
+
const store = useControllerStore();
|
|
14
|
+
return observe(() => {
|
|
15
|
+
var _a, _b, _c, _d;
|
|
16
|
+
return (React.createElement("div", { className: "controller-head" },
|
|
17
|
+
React.createElement(Skeleton, { active: true, loading: !controller.loaded },
|
|
18
|
+
React.createElement("div", { className: "tool-bar-content" },
|
|
19
|
+
React.createElement(ToolBar, { showMenu: false },
|
|
20
|
+
open && React.createElement(Open, { url: `/controller/${id}` }),
|
|
21
|
+
React.createElement(CompanyControllerMenu, { id: id, title: "Controller Menu", unitId: (_a = controller.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true }))),
|
|
22
|
+
React.createElement(UnitAvatar, { unit: controller.contact, size: 70 }),
|
|
23
|
+
React.createElement("div", { className: "controller-name" }, (_c = (_b = controller.identity) === null || _b === void 0 ? void 0 : _b.fullName) !== null && _c !== void 0 ? _c : (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.name))));
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export default ControllerHead;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,cAAc,CAAC;AAEtB,MAAM,cAAc,GAAG,CAAC,KAAqC,EAAE,EAAE;IAChE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,iBAAiB;YAC/B,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,UAAU,CAAC,MAAM;gBAC3C,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;wBACtB,IAAI,IAAI,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI;wBAC3C,oBAAC,qBAAqB,IACrB,EAAE,EAAE,EAAE,EACN,KAAK,EAAC,iBAAiB,EACvB,MAAM,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,EAAE,EAC9B,KAAK,EAAE,KAAK,EACZ,UAAU,SACT,CACO,CACL;gBACN,oBAAC,UAAU,IAAC,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,GAAI;gBAClD,6BAAK,SAAS,EAAC,iBAAiB,IAAE,MAAA,MAAA,UAAU,CAAC,QAAQ,0CAAE,QAAQ,mCAAI,MAAA,UAAU,CAAC,OAAO,0CAAE,IAAI,CAAO,CACxF,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.controller-head {
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
padding: 10px 0;
|
|
6
|
+
margin: 0 20px;
|
|
7
|
+
.tool-bar-content {
|
|
8
|
+
text-align: right;
|
|
9
|
+
}
|
|
10
|
+
.controller-name {
|
|
11
|
+
color: #000;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare const ControllerProperties: {
|
|
|
14
14
|
name: "name" | "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
|
|
15
15
|
visible?: boolean;
|
|
16
16
|
}[];
|
|
17
|
+
headerVisible?: boolean;
|
|
17
18
|
onReloadMenu?: () => void;
|
|
18
19
|
}): React.JSX.Element;
|
|
19
20
|
defaultProps: {
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js
CHANGED
|
@@ -9,11 +9,12 @@ import IdentifyProperties from "../../../identity/components/IdentifyProperties"
|
|
|
9
9
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
10
10
|
import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
|
|
11
11
|
import PropertyLabel from "../../../components/PropertyLabel";
|
|
12
|
+
import ControllerHead from "../ControllerHead";
|
|
12
13
|
import dayjs from "dayjs";
|
|
13
14
|
const ControllerProperties = (props) => {
|
|
14
15
|
/** 加class name 为了方便做integration tests */
|
|
15
16
|
const classId = "controller-properties";
|
|
16
|
-
const { id, allowEdit, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, } = props;
|
|
17
|
+
const { id, allowEdit, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, headerVisible, } = props;
|
|
17
18
|
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
18
19
|
const controller = useController(id);
|
|
19
20
|
const controllerStore = useControllerStore();
|
|
@@ -21,6 +22,7 @@ const ControllerProperties = (props) => {
|
|
|
21
22
|
return observe(() => {
|
|
22
23
|
var _a, _b, _c;
|
|
23
24
|
return (React.createElement("div", { className: "properties-list" },
|
|
25
|
+
headerVisible && React.createElement(ControllerHead, { id: id }),
|
|
24
26
|
React.createElement(Scrollbars, { autoHide: true },
|
|
25
27
|
React.createElement(PropertiesSection, { title: controllerTitle, properties: (labelCol) => {
|
|
26
28
|
setLabelColWidth(labelCol);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,KAe7B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,uBAAuB,CAAC;IAExC,MAAM,EACL,EAAE,EACF,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EAC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5B,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,58 +1,16 @@
|
|
|
1
|
-
import React, { useMemo
|
|
2
|
-
import { Tabs } from "antd";
|
|
1
|
+
import React, { useMemo } from "react";
|
|
3
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
-
import { useController, useControllerStore } from "../../../../../../data/controller";
|
|
5
3
|
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import ControllerProperties from "../ControllerProperties";
|
|
10
|
-
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
11
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
13
|
-
import styles from "./index.less";
|
|
4
|
+
import ControllerHead from "../ControllerHead";
|
|
5
|
+
import ControllerTabs from "../ControllerTabs";
|
|
6
|
+
import "./index.less";
|
|
14
7
|
const ControllerPropertiesView = (props) => {
|
|
15
|
-
const { id
|
|
16
|
-
const controller = useController(id);
|
|
17
|
-
const store = useControllerStore();
|
|
8
|
+
const { id } = props;
|
|
18
9
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [id]);
|
|
24
|
-
return observe(() => {
|
|
25
|
-
var _a, _b, _c, _d, _e;
|
|
26
|
-
return (React.createElement(ViewContext.Provider, { value: view },
|
|
27
|
-
React.createElement("div", { className: styles["controller-properties-view-content"] },
|
|
28
|
-
React.createElement("div", { className: "controller-properties-view-header" },
|
|
29
|
-
React.createElement(UnitAvatar, { unit: controller.contact, size: 70 }),
|
|
30
|
-
React.createElement("div", null, (_b = (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = controller.contact) === null || _c === void 0 ? void 0 : _c.name),
|
|
31
|
-
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
32
|
-
React.createElement(Open, { url: `/controller/${id}` }),
|
|
33
|
-
React.createElement(CompanyControllerMenu, { id: id, title: "Controller Menu", unitId: (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.id, store: store, closeAside: true })))),
|
|
34
|
-
React.createElement(Tabs, { className: "element-tabs", activeKey: activeKey, onChange: onChange, items: [
|
|
35
|
-
{
|
|
36
|
-
key: "Controller",
|
|
37
|
-
label: "Details",
|
|
38
|
-
children: React.createElement(ControllerProperties, { id: id, allowEdit: allowEdit }),
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
key: "Documents",
|
|
42
|
-
label: "Documents",
|
|
43
|
-
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: "Activities",
|
|
47
|
-
label: "Activities",
|
|
48
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: id, nodes: [(_e = controller.contact) === null || _e === void 0 ? void 0 : _e.id], bar: false, title: " " })) : null)),
|
|
49
|
-
},
|
|
50
|
-
] }))));
|
|
51
|
-
});
|
|
52
|
-
/**切换面板的回调*/
|
|
53
|
-
function onChange(activeKey) {
|
|
54
|
-
setActiveKey(activeKey);
|
|
55
|
-
}
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "controller-properties-view-content" },
|
|
12
|
+
React.createElement(ControllerHead, { id: id, open: true }),
|
|
13
|
+
React.createElement(ControllerTabs, { id: id, properties: true })))));
|
|
56
14
|
};
|
|
57
15
|
export default ControllerPropertiesView;
|
|
58
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,CAAC,KAIjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oCAAoC;YAClD,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG;YAC/B,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAChC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,42 +1,15 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
:global {
|
|
11
|
-
.controller-properties-view-header {
|
|
12
|
-
position: relative;
|
|
13
|
-
text-align: center;
|
|
14
|
-
padding: 20px 0 10px 0;
|
|
15
|
-
|
|
16
|
-
.controller-person-name {
|
|
17
|
-
color: #000;
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
padding-top: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.tool-bar {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 20px;
|
|
26
|
-
right: 20px;
|
|
27
|
-
|
|
28
|
-
.delete {
|
|
29
|
-
color: @delete-color;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
3
|
+
:global {
|
|
4
|
+
.controller-properties-view-content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: #fff;
|
|
33
10
|
|
|
34
11
|
.ant-tabs {
|
|
35
12
|
height: 100%;
|
|
36
|
-
|
|
37
|
-
.controller-information {
|
|
38
|
-
padding: 15px 20px;
|
|
39
|
-
}
|
|
40
13
|
}
|
|
41
14
|
}
|
|
42
15
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
2
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
3
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import ControllerProperties from "../ControllerProperties";
|
|
6
|
+
import { useController } from "../../../../../../data/controller";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
const ControllerTabs = (props) => {
|
|
9
|
+
var _a;
|
|
10
|
+
const { id, properties, allowEdit } = props;
|
|
11
|
+
const [activeKey, setActiveKey] = useState();
|
|
12
|
+
const controller = useController(id);
|
|
13
|
+
const items = [
|
|
14
|
+
{
|
|
15
|
+
key: "Document",
|
|
16
|
+
label: "Document",
|
|
17
|
+
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "Activities",
|
|
21
|
+
label: "Activities",
|
|
22
|
+
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: id, nodes: [(_a = controller.contact) === null || _a === void 0 ? void 0 : _a.id], bar: false, title: " " })) : null)),
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
properties &&
|
|
26
|
+
items.unshift({
|
|
27
|
+
key: "Properties",
|
|
28
|
+
label: "Properties",
|
|
29
|
+
children: React.createElement(ControllerProperties, { id: id, allowEdit: allowEdit }),
|
|
30
|
+
});
|
|
31
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Document", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
32
|
+
};
|
|
33
|
+
export default ControllerTabs;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,KAAgE,EAAE,EA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package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import React, { useEffect,
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { AsideContent } from "@voplus/morpho-ui";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
5
5
|
import { useTabItem } from "@voplus/morpho-data";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import ControllerTabs from "../../components/ControllerTabs";
|
|
7
|
+
import ControllerProperties from "../../components/ControllerProperties";
|
|
8
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
9
9
|
import "./index.less";
|
|
10
10
|
const ControllerDefaultView = () => {
|
|
11
11
|
const { id } = useParams();
|
|
12
12
|
const [asideContext] = useState(AsideContent.createContext());
|
|
13
13
|
const tab = useTabItem();
|
|
14
|
-
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
15
14
|
useEffect(() => {
|
|
16
15
|
tab.title = "Controller";
|
|
17
16
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return observe(() => (React.createElement(AsideContent, { context: asideContext, className: "controller-default-view" },
|
|
25
|
-
React.createElement(ControllerPropertiesView, { id: id, toolbar: false }))));
|
|
17
|
+
return observe(() => (React.createElement(MainContent, { className: "controller-default-view" },
|
|
18
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
19
|
+
React.createElement(ControllerProperties, { id: id, headerVisible: true })),
|
|
20
|
+
React.createElement("div", { className: "controller-context" },
|
|
21
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
22
|
+
React.createElement(ControllerTabs, { id: id }))))));
|
|
26
23
|
};
|
|
27
24
|
export default ControllerDefaultView;
|
|
28
25
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/page/ControllerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/page/ControllerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,YAAY,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,IAAC,SAAS,EAAC,yBAAyB;QAC/C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;YAC3B,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CAC9B;QAClB,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;gBAClC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAG,GAAI,CACb,CACV,CACO,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
:global {
|
|
2
2
|
.controller-default-view {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
.main-content-nav {
|
|
4
|
+
width: 370px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
.controller-head {
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.controller-context {
|
|
12
|
+
padding: 0;
|
|
13
|
+
background: #ffffff;
|
|
14
|
+
}
|
|
5
15
|
}
|
|
6
|
-
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import { Skeleton } from "antd";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const CompanyMemberHead = (props) => {
|
|
11
|
+
const { id, open } = props;
|
|
12
|
+
const member = useMember(id);
|
|
13
|
+
const store = useMemberStore();
|
|
14
|
+
return observe(() => {
|
|
15
|
+
var _a, _b, _c, _d;
|
|
16
|
+
return (React.createElement("div", { className: "company-member-header" },
|
|
17
|
+
React.createElement(Skeleton, { active: true, loading: !member.loaded },
|
|
18
|
+
React.createElement("div", { className: "tool-bar-content" },
|
|
19
|
+
React.createElement(ToolBar, { showMenu: false },
|
|
20
|
+
open && React.createElement(Open, { url: `/member/${id}` }),
|
|
21
|
+
React.createElement(CompanyMemberMenu, { id: id, title: "Member Menu", unitId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, onChangeContact: () => {
|
|
22
|
+
var _a;
|
|
23
|
+
return store.edit(id, {
|
|
24
|
+
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
25
|
+
error: "message",
|
|
26
|
+
});
|
|
27
|
+
} }))),
|
|
28
|
+
React.createElement(UnitAvatar, { unit: member.contact, size: 70 }),
|
|
29
|
+
React.createElement("div", { className: "member-name" }, (_c = (_b = member.identity) === null || _b === void 0 ? void 0 : _b.fullName) !== null && _c !== void 0 ? _c : (_d = member.contact) === null || _d === void 0 ? void 0 : _d.name),
|
|
30
|
+
React.createElement("div", null, "Member"))));
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export default CompanyMemberHead;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,OAA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AAiB,CACP,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.company-member-header {
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
padding: 10px 0;
|
|
6
|
+
margin: 0 20px;
|
|
7
|
+
.tool-bar-content {
|
|
8
|
+
text-align: right;
|
|
9
|
+
}
|
|
10
|
+
.member-name {
|
|
11
|
+
color: #000;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare const CompanyMemberProperties: {
|
|
|
14
14
|
name: "name" | "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
|
|
15
15
|
visible?: boolean;
|
|
16
16
|
}[];
|
|
17
|
+
headerVisible?: boolean;
|
|
17
18
|
onReloadMenu?: () => void;
|
|
18
19
|
}): React.JSX.Element;
|
|
19
20
|
defaultProps: {
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js
CHANGED
|
@@ -9,10 +9,11 @@ import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
|
9
9
|
import MemberStatusLabel from "../../controls/MemberStatusLabel";
|
|
10
10
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
11
11
|
import PropertyLabel from "../../../components/PropertyLabel";
|
|
12
|
+
import CompanyMemberHead from "../CompanyMemberHead";
|
|
12
13
|
const CompanyMemberProperties = (props) => {
|
|
13
14
|
/** 加class name 为了方便做integration tests */
|
|
14
15
|
const classId = "companyMember-properties";
|
|
15
|
-
const { id, allowEdit, companyMemberTitle, orgContactTitle, companyMemberProperties, orgContactProperties, } = props;
|
|
16
|
+
const { id, allowEdit, companyMemberTitle, orgContactTitle, companyMemberProperties, orgContactProperties, headerVisible, } = props;
|
|
16
17
|
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
17
18
|
const member = useMember(id);
|
|
18
19
|
const store = useMemberStore();
|
|
@@ -20,6 +21,7 @@ const CompanyMemberProperties = (props) => {
|
|
|
20
21
|
return observe(() => {
|
|
21
22
|
var _a, _b, _c;
|
|
22
23
|
return (React.createElement("div", { className: "properties-list" },
|
|
24
|
+
headerVisible && React.createElement(CompanyMemberHead, { id: id }),
|
|
23
25
|
React.createElement(Scrollbars, { autoHide: true },
|
|
24
26
|
React.createElement(PropertiesSection, { title: companyMemberTitle, properties: (labelCol) => {
|
|
25
27
|
setLabelColWidth(labelCol);
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAY,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,aAAa,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/C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AAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CACzE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
defaultProps: {
|
|
11
|
-
documentTab: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const CompanyMemberPropertiesView: (props: {
|
|
4
|
+
id: string;
|
|
5
|
+
allowEdit?: boolean;
|
|
6
|
+
toolbar?: boolean;
|
|
7
|
+
/** 是否显示document Tab */
|
|
8
|
+
documentTab?: boolean;
|
|
9
|
+
}) => React.JSX.Element;
|
|
14
10
|
export default CompanyMemberPropertiesView;
|
package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js
CHANGED
|
@@ -1,76 +1,16 @@
|
|
|
1
|
-
import React, { useMemo
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
-
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
4
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
-
import { Tabs } from "antd";
|
|
6
3
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
11
|
-
import MemberShareTransactions from "../MemberShareTransactions";
|
|
12
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
14
|
-
import styles from "./index.less";
|
|
4
|
+
import CompanyMemberHead from "../CompanyMemberHead";
|
|
5
|
+
import CompanyMemberTabs from "../CompanyMemberTabs";
|
|
6
|
+
import "./index.less";
|
|
15
7
|
const CompanyMemberPropertiesView = (props) => {
|
|
16
|
-
const { id, allowEdit
|
|
17
|
-
const member = useMember(id);
|
|
18
|
-
const store = useMemberStore();
|
|
8
|
+
const { id, allowEdit } = props;
|
|
19
9
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [id]);
|
|
25
|
-
const items = [
|
|
26
|
-
{
|
|
27
|
-
key: "Details",
|
|
28
|
-
label: "Details",
|
|
29
|
-
children: React.createElement(CompanyMemberProperties, { id: id, allowEdit: allowEdit }),
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: "Shares",
|
|
33
|
-
label: "Shares",
|
|
34
|
-
children: React.createElement(MemberShareTransactions, { id: id }),
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
if (documentTab)
|
|
38
|
-
items.push({
|
|
39
|
-
key: "Document",
|
|
40
|
-
label: "Documents",
|
|
41
|
-
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
42
|
-
});
|
|
43
|
-
items.push({
|
|
44
|
-
key: "Activities",
|
|
45
|
-
label: "Activities",
|
|
46
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " ", bar: false }) : null)),
|
|
47
|
-
});
|
|
48
|
-
return observe(() => {
|
|
49
|
-
var _a, _b, _c;
|
|
50
|
-
return (React.createElement(ViewContext.Provider, { value: view },
|
|
51
|
-
React.createElement("div", { className: styles["member-properties-view-content"] },
|
|
52
|
-
React.createElement("div", { className: "member-properties-view-header" },
|
|
53
|
-
React.createElement(UnitAvatar, { unit: member.contact, size: 70 }),
|
|
54
|
-
React.createElement("div", { className: "member-person-name" }, (_b = (_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : member.contact.name),
|
|
55
|
-
React.createElement("div", null, "Member"),
|
|
56
|
-
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
57
|
-
React.createElement(Open, { url: `/member/${id}` }),
|
|
58
|
-
React.createElement(CompanyMemberMenu, { id: id, title: "Member Menu", unitId: (_c = member.contact) === null || _c === void 0 ? void 0 : _c.id, store: store, closeAside: true, onChangeContact: () => {
|
|
59
|
-
var _a;
|
|
60
|
-
return store.edit(id, {
|
|
61
|
-
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
62
|
-
error: "message",
|
|
63
|
-
});
|
|
64
|
-
} })))),
|
|
65
|
-
React.createElement(Tabs, { className: "element-tabs", items: items, activeKey: activeKey, onChange: onChange }))));
|
|
66
|
-
});
|
|
67
|
-
/**切换面板的回调*/
|
|
68
|
-
function onChange(activeKey) {
|
|
69
|
-
setActiveKey(activeKey);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
CompanyMemberPropertiesView.defaultProps = {
|
|
73
|
-
documentTab: true,
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "member-properties-view-content" },
|
|
12
|
+
React.createElement(CompanyMemberHead, { id: id, open: true }),
|
|
13
|
+
React.createElement(CompanyMemberTabs, { id: id, allowEdit: allowEdit, properties: true })))));
|
|
74
14
|
};
|
|
75
15
|
export default CompanyMemberPropertiesView;
|
|
76
16
|
//# sourceMappingURL=index.js.map
|