@voplus/morpho-workspace 1.3.50 → 1.3.51
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/controls/filters/AssigneeViewFilter/index.js +1 -1
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/components/ChangeAvatarDialog/index.d.ts +2 -0
- package/es/modules/work/components/ChangeAvatarDialog/index.js +1 -1
- package/es/modules/work/components/ChangeAvatarDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +5 -2
- package/es/modules/work/components/NewWorkErrorDialog/index.js +13 -21
- package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.less +2 -2
- package/es/modules/work/components/NewWorkErrorDialog/state.js +2 -2
- package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.d.ts +3 -1
- package/es/modules/work/components/NewWorkForm/index.js +4 -20
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.less +8 -7
- package/es/modules/work/components/RejectWorkDialog/index.d.ts +0 -1
- package/es/modules/work/components/RejectWorkDialog/index.js +4 -4
- package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -1
- package/es/modules/work/components/RejectWorkDialog/index.less +2 -2
- package/es/modules/work/components/SubWorkList/index.d.ts +0 -1
- package/es/modules/work/components/SubWorkList/index.js +8 -9
- package/es/modules/work/components/SubWorkList/index.js.map +1 -1
- package/es/modules/work/components/SubWorkList/index.less +2 -2
- package/es/modules/work/components/WorkErrorItem/index.d.ts +0 -1
- package/es/modules/work/components/WorkErrorItem/index.js +8 -8
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.less +9 -11
- package/es/modules/work/components/WorkErrorList/index.d.ts +0 -1
- package/es/modules/work/components/WorkErrorList/index.js +10 -15
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorList/index.less +3 -3
- package/es/modules/work/components/WorkErrorProperties/index.d.ts +3 -1
- package/es/modules/work/components/WorkErrorProperties/index.js +23 -14
- package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorProperties/index.less +2 -2
- package/es/modules/work/components/WorkErrorProperties/state.d.ts +1 -0
- package/es/modules/work/components/WorkErrorProperties/state.js +8 -1
- package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +3 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +7 -7
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +7 -8
- package/es/modules/work/components/WorkItem/index.d.ts +0 -1
- package/es/modules/work/components/WorkItem/index.js +15 -34
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.less +8 -0
- package/es/modules/work/components/WorkList/index.js +9 -12
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.d.ts +0 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +4 -8
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.d.ts +0 -1
- package/es/modules/work/components/WorkQATab/index.js +19 -11
- package/es/modules/work/components/WorkQATab/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.less +2 -2
- package/es/modules/work/components/WorkTabs/index.d.ts +0 -1
- package/es/modules/work/components/WorkTabs/index.js +2 -4
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorkTabs/index.less +3 -3
- package/es/modules/work/components/WorksProperties/index.js +31 -62
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/state.d.ts +18 -0
- package/es/modules/work/components/WorksProperties/state.js +108 -0
- package/es/modules/work/components/WorksProperties/state.js.map +1 -0
- package/es/modules/work/controls/WorkDataIconBar/index.d.ts +5 -0
- package/es/modules/work/controls/WorkDataIconBar/index.js +30 -0
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -0
- package/es/modules/work/controls/WorkErrorMenu/index.d.ts +1 -1
- package/es/modules/work/controls/WorkErrorMenu/index.js +5 -7
- package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -1
- package/es/modules/work/controls/WorkErrorMenu/index.less +10 -11
- package/es/modules/work/pages/WorkDefaultView/index.d.ts +0 -1
- package/es/modules/work/pages/WorkDefaultView/index.js +4 -4
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/modules/work/pages/WorkDefaultView/index.less +2 -2
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js +1 -1
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js +7 -6
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.less +8 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/modules/workspaces/pages/ListView/index.js +1 -1
- package/es/modules/workspaces/pages/ListView/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.js +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/pages/Space/components/TaskMenu/index.js +33 -27
- package/es/pages/Space/components/TaskMenu/index.js.map +1 -1
- package/es/pages/Space/components/WorkMenu/index.js +30 -24
- package/es/pages/Space/components/WorkMenu/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.less +4 -0
- package/es/pages/Work/components/NewWorkDialog/index.js +1 -1
- package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.less +0 -23
@@ -1,46 +1,30 @@
|
|
1
|
-
import "./index.less";
|
2
1
|
import { Button, Col, Form, Row, Space, message } from "@voplus/antd";
|
3
2
|
import React, { useState } from "react";
|
4
|
-
import AvatarList from "@voplus/morpho-
|
3
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
5
4
|
import { State } from "./state";
|
6
5
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
7
6
|
import WorkPropertiesView from "../WorkPropertiesView";
|
8
7
|
import WorkTypeSelect from "../../../../pages/WorkType/WorkTypeSelect";
|
9
8
|
import classnames from "classnames";
|
10
9
|
import { observe } from "@voplus/morpho-ui";
|
11
|
-
import
|
10
|
+
import styles from "./index.less";
|
12
11
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
13
12
|
import { useWorkStore } from "../../../../data/work";
|
14
13
|
const NewWorkForm = (props) => {
|
15
|
-
const { user } = useApplicationContext();
|
16
14
|
const [state] = useState(new State());
|
17
15
|
const [form] = Form.useForm();
|
18
16
|
const [loading, setLoading] = useState(false);
|
19
|
-
// const [workType, setWorkType] = useState<IWorkType>();
|
20
17
|
const [contactEditable, setContactEditable] = useState(false);
|
21
18
|
const asideContext = useAsideContentContext();
|
22
19
|
const works = useWorkStore();
|
23
20
|
return observe(() => {
|
24
21
|
var _a, _b;
|
25
|
-
return (React.createElement("div", { className: classnames("new-work-form", { "sub-work-simply-form": props.simple }, props.className) },
|
22
|
+
return (React.createElement("div", { className: classnames(styles["new-work-form"], { "sub-work-simply-form": props.simple }, props.className) },
|
26
23
|
React.createElement(Form, { form: form, layout: "vertical" },
|
27
24
|
!props.simple ? (React.createElement(React.Fragment, null,
|
28
25
|
React.createElement(Form.Item, { name: "WorkTypeId", label: "Work Type" },
|
29
26
|
React.createElement(WorkTypeSelect, { onChange: (id, data) => (state.params.WorkTypeId = data.id) })),
|
30
|
-
React.createElement(Form.Item, { name: "ContactId", label: "Contact" }, !((_a = state.params) === null || _a === void 0 ? void 0 : _a.ContactId) ? (React.createElement("div", { style: { cursor: "pointer", color: "#ccc" }, onClick: () => setContactEditable(true) }, "Choose main contact")) : (React.createElement(AvatarList, { editable: false, list: state.params.ContactId ? [{ id: state.params.ContactId }] : [] }))))) : (
|
31
|
-
// <Row gutter={20}>
|
32
|
-
// <Col span={12}>
|
33
|
-
// <Form.Item name="Name">
|
34
|
-
// <Input placeholder="Enter a title for this work" />
|
35
|
-
// </Form.Item>
|
36
|
-
// </Col>
|
37
|
-
// <Col span={12}>
|
38
|
-
// <Form.Item name="WorkTypeId">
|
39
|
-
// <WorkTypeSelect onChange={(id, data) => setWorkType(data)} />
|
40
|
-
// </Form.Item>
|
41
|
-
// </Col>
|
42
|
-
// </Row>
|
43
|
-
React.createElement(Row, { gutter: 20 },
|
27
|
+
React.createElement(Form.Item, { name: "ContactId", label: "Contact" }, !((_a = state.params) === null || _a === void 0 ? void 0 : _a.ContactId) ? (React.createElement("div", { style: { cursor: "pointer", color: "#ccc" }, onClick: () => setContactEditable(true) }, "Choose main contact")) : (React.createElement(AvatarList, { editable: false, list: state.params.ContactId ? [{ id: state.params.ContactId }] : [] }))))) : (React.createElement(Row, { gutter: 20 },
|
44
28
|
React.createElement(Col, { span: 14 },
|
45
29
|
React.createElement(Form.Item, { name: "WorkTypeId", label: "Work Type" },
|
46
30
|
React.createElement(WorkTypeSelect, { onChange: (id, data) => (state.params.WorkTypeId = data.id) }))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,iBAAiB,MAAM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C;YAC9B,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE;YACzB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,MAAA,KAAK,CAAC,MAAM,+CAAZ,KAAK,EAAU,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,KAAK,CAAC,QAAQ;YACjB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IAClB,SAAS,QAAQ;;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,CAAa,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
.new-work-form {
|
2
|
+
&:global(.sub-work-simply-form) {
|
3
|
+
padding: 10px 20px;
|
4
|
+
border-top: #f2f2f2 solid 1px;
|
5
|
+
}
|
6
|
+
:global {
|
7
|
+
.from-footer {
|
8
|
+
margin-bottom: 0;
|
8
9
|
}
|
9
10
|
.ant-tabs-tabpane {
|
10
11
|
padding: 24px;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import "
|
2
|
-
import { Button, Form, Row, Select, Space, } from "@voplus/antd";
|
1
|
+
import { Button, Form, Row, Select, Space } from "@voplus/antd";
|
3
2
|
import React, { useState } from "react";
|
4
3
|
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
5
4
|
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
@@ -7,17 +6,18 @@ import { State } from "./state";
|
|
7
6
|
import classnames from "classnames";
|
8
7
|
import { observe } from "@voplus/morpho-ui";
|
9
8
|
import { runInAction } from "mobx";
|
9
|
+
import styles from "./index.less";
|
10
10
|
// import { useWorkspaceStore } from "../../../../data/workspace";
|
11
11
|
const RejectWorkDialog = (props) => {
|
12
12
|
// const workspaces = useWorkspaceStore();
|
13
13
|
const { Option } = Select;
|
14
14
|
const [state] = useState(new State());
|
15
15
|
return observe(() => (React.createElement(Modal, { title: "Reject Work Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
|
16
|
-
React.createElement("div", { className: classnames("new-reject-form", props.className) },
|
16
|
+
React.createElement("div", { className: classnames(styles["new-reject-form"], props.className) },
|
17
17
|
React.createElement(Form, { layout: "vertical" },
|
18
18
|
React.createElement(React.Fragment, null,
|
19
19
|
React.createElement(Form.Item, { label: "Reason for your reject work" },
|
20
|
-
React.createElement(Select, { defaultValue: "Reason1", onChange: (value) => state.params.Reason = value },
|
20
|
+
React.createElement(Select, { defaultValue: "Reason1", onChange: (value) => (state.params.Reason = value) },
|
21
21
|
React.createElement(Option, { value: "Reason1" }, "Reason1"),
|
22
22
|
React.createElement(Option, { value: "Reason2" }, "Reason2"),
|
23
23
|
React.createElement(Option, { value: "Reason3" }, "Reason3"))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RejectWorkDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RejectWorkDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAS,GAAG,EAAE,MAAM,EAAE,KAAK,EAAW,MAAM,cAAc,CAAC;AAChF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;A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ACzB,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import "./index.less";
|
2
1
|
import { useWorkListEffect } from "../../../../data/work";
|
3
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
3
|
import React, { useState } from "react";
|
@@ -8,6 +7,7 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
|
|
8
7
|
import NewWorkForm from "../NewWorkForm";
|
9
8
|
import WorkItem from "../WorkItem";
|
10
9
|
import { observe } from "@voplus/morpho-ui";
|
10
|
+
import styles from "./index.less";
|
11
11
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
12
12
|
const SubWorkList = (props) => {
|
13
13
|
const [addAble, setAddAble] = useState(false);
|
@@ -28,18 +28,17 @@ const SubWorkList = (props) => {
|
|
28
28
|
list.union(result);
|
29
29
|
}, list.filters.options);
|
30
30
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
31
|
-
React.createElement("div", { className: "sub-work-list" },
|
31
|
+
React.createElement("div", { className: styles["sub-work-list"] },
|
32
32
|
React.createElement(ListView, { headerProps: {
|
33
33
|
viewTitle: "Active Works",
|
34
34
|
sortable: false,
|
35
35
|
onAdd: () => setAddAble(!addAble),
|
36
|
-
}, className: "work-list", moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
React.createElement(WorkItem, { id: item.id, toolBarVisible: true })))) }),
|
36
|
+
}, className: "work-list", moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
37
|
+
hoverEffect: "background",
|
38
|
+
hoverBackgroundProps: { color: "#f2f2f2" },
|
39
|
+
style: { border: "none", flex: "1" },
|
40
|
+
} },
|
41
|
+
React.createElement(WorkItem, { id: item.id, toolBarVisible: true }))) }),
|
43
42
|
addAble && (React.createElement(NewWorkForm, { simple: true, onSave: () => setAddAble(false), onCancel: () => setAddAble(false) }))))));
|
44
43
|
async function moveAfter(id, afterId) {
|
45
44
|
await documentStore.moveAfter(id, afterId);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/SubWorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/SubWorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,GAAG,CAAC,KAA8B,EAAE,EAAE;IACtD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,s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B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;wBACX,WAAW,EAAE,YAAY;wBACzB,oBAAoB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;wBAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;qBACpC;oBAED,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,CAC5B,CACpB,GACA;YACD,OAAO,IAAI,CACX,oBAAC,WAAW,IACX,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAC/B,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAChC,CACF,CACI,CACoB,CAC3B,CAAC,CAAC;IAEH,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import React, { useState } from "react";
|
2
|
-
import moment from "moment";
|
3
1
|
import { Col, Row, Tag } from "@voplus/antd";
|
4
|
-
import
|
5
|
-
import
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
6
4
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
5
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
6
|
+
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
7
|
+
import classnames from "classnames";
|
8
|
+
import moment from "moment";
|
7
9
|
import { observe } from "@voplus/morpho-ui";
|
10
|
+
import styles from "./index.less";
|
8
11
|
import { useApplicationContext } from "@voplus/morpho-data";
|
9
12
|
import { useWorkError } from "../../../../data/workerror";
|
10
|
-
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
11
|
-
import classnames from "classnames";
|
12
|
-
import "./index.less";
|
13
13
|
const WorkErrorItem = (props) => {
|
14
14
|
const { user } = useApplicationContext();
|
15
15
|
const workError = useWorkError(props.id);
|
16
16
|
const [hover, setHover] = useState(false);
|
17
|
-
return observe(() => (React.createElement("div", { className: "workerror-item", onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
17
|
+
return observe(() => (React.createElement("div", { className: styles["workerror-item"], onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
18
18
|
React.createElement(Row, null,
|
19
19
|
React.createElement(Col, { flex: 3 },
|
20
20
|
React.createElement("div", null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAErE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EA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AAK;gBACrC,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,aAAa,GAAI;gBAC1C,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,IAAI,GAAI,CACtD,CACL,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,13 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
1
|
+
.workerror-item {
|
2
|
+
padding: 10px 20px;
|
3
|
+
background: transparent;
|
4
|
+
position: relative;
|
5
|
+
// &:global(:hover) {
|
6
|
+
// background: #f3f1f1;
|
7
|
+
// }
|
8
|
+
:global {
|
11
9
|
.workerror-info {
|
12
10
|
display: inline-block;
|
13
11
|
color: #000;
|
@@ -51,4 +49,4 @@
|
|
51
49
|
}
|
52
50
|
}
|
53
51
|
}
|
54
|
-
}
|
52
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import "./index.less";
|
2
1
|
import { useWorkErrorListEffect } from "../../../../data/workerror";
|
3
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
3
|
import React, { useState } from "react";
|
@@ -6,6 +5,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
5
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
7
6
|
import { Empty } from "@voplus/antd";
|
8
7
|
import WorkErrorItem from "../WorkErrorItem";
|
8
|
+
import styles from "./index.less";
|
9
9
|
import { useAutoUpdateListData } from "../../../../data/workerror/workerror-events";
|
10
10
|
/** A work error list view shows work error in card style. */
|
11
11
|
const WorkErrorList = (props) => {
|
@@ -14,7 +14,7 @@ const WorkErrorList = (props) => {
|
|
14
14
|
const list = useCreateListDataState({
|
15
15
|
filterDefaults: {
|
16
16
|
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.id }],
|
17
|
-
page: { Page: 1, PageSize: 200 }
|
17
|
+
page: { Page: 1, PageSize: 200 },
|
18
18
|
},
|
19
19
|
}, [props.id]);
|
20
20
|
/** 如果 list.filters.options变更了就重渲染,使下一行的useWorkErrorListEffect 可以接收新参数*/
|
@@ -24,19 +24,14 @@ const WorkErrorList = (props) => {
|
|
24
24
|
/** useOnNewWorkError, useOnDeleteWorkError的sugar syntax 自動更新list. */
|
25
25
|
useAutoUpdateListData(list, (d) => true);
|
26
26
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
27
|
-
React.createElement("div", { className: "workerror-list-view" }, list.data.length ?
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
setActiveId(item.id);
|
36
|
-
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id);
|
37
|
-
} },
|
38
|
-
React.createElement(WorkErrorItem, { id: item.id }))))
|
39
|
-
: React.createElement(Empty, null)))));
|
27
|
+
React.createElement("div", { className: styles["workerror-list-view"] }, list.data.length ? (list.data.map((item) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
28
|
+
active: activeId === item.id,
|
29
|
+
}, onClick: () => {
|
30
|
+
var _a;
|
31
|
+
setActiveId(item.id);
|
32
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id);
|
33
|
+
} },
|
34
|
+
React.createElement(WorkErrorItem, { id: item.id }))))) : (React.createElement(Empty, null))))));
|
40
35
|
function loadMore() {
|
41
36
|
list.triggerNextPage();
|
42
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work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O,CAAC,CAAC;IAEnF,qEAAqE;IACrE,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,6BAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC,IAO3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;gBACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;aAC5B,EACD,OAAO,EAAE,GAAG,EAAE;;gBACb,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,EAAE,CAAC,CAAC;YAC9B,CAAC;YAED,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACX,CACpB,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CAEI,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,IAAI,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,37 +1,46 @@
|
|
1
|
-
import "./index.less";
|
2
|
-
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
3
1
|
import { Form, Select } from "@voplus/antd";
|
4
|
-
import React, { useState } from "react";
|
5
|
-
import moment from "moment";
|
6
2
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
3
|
+
import React, { useEffect, useState } from "react";
|
7
4
|
import { useWorkError, useWorkErrorStore } from "../../../../data/workerror";
|
8
|
-
import
|
5
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
6
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
9
7
|
import { State } from "./state";
|
8
|
+
import moment from "moment";
|
10
9
|
import { runInAction } from "mobx";
|
11
|
-
import
|
10
|
+
import styles from "./index.less";
|
11
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
12
|
+
import { useWorkType } from "../../../../data/worktype";
|
12
13
|
const WorkErrorProperties = (props) => {
|
13
|
-
const { id } = props;
|
14
|
+
const { id, workTypeId } = props;
|
14
15
|
const Option = Select.Option;
|
15
16
|
const [state] = useState(new State());
|
16
|
-
const workerror = useWorkError(id);
|
17
|
+
const workerror = useWorkError(id, { reload: false });
|
18
|
+
const workType = useWorkType(workTypeId);
|
17
19
|
const { user } = useApplicationContext();
|
18
20
|
const store = useWorkErrorStore();
|
19
|
-
|
21
|
+
useEffect(() => {
|
22
|
+
state.clear();
|
23
|
+
}, [id]);
|
24
|
+
return observe(() => (React.createElement("div", { className: styles["workerror-properties"] },
|
20
25
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
|
21
26
|
React.createElement(Form.Item, { label: "Type" }, state.editType ? (React.createElement(Select, { defaultValue: workerror.type, onChange: async (value) => {
|
22
27
|
await save({ Type: value });
|
23
28
|
runInAction(() => (state.editType = false));
|
24
|
-
}, onBlur: () => (state.editType = false) },
|
25
|
-
React.createElement(Option, { value:
|
26
|
-
React.createElement(
|
27
|
-
React.createElement(Option, { value: "Type3" }, "Type3"))) : (React.createElement("div", { onClick: () => runInAction(() => (state.editType = true)) }, workerror.type || "ADD Type"))),
|
29
|
+
}, onBlur: () => (state.editType = false) }, (workType === null || workType === void 0 ? void 0 : workType.errorTypes)
|
30
|
+
? workType.errorTypes.map((errorType) => (React.createElement(Option, { value: errorType, key: errorType }, errorType)))
|
31
|
+
: "")) : (React.createElement("div", { onClick: () => runInAction(() => (state.editType = true)) }, workerror.type || "ADD Type"))),
|
28
32
|
React.createElement(Form.Item, { label: "Severity" }, state.editSeverity ? (React.createElement(Select, { defaultValue: workerror.severity, onChange: async (value) => {
|
29
33
|
await save({ Severity: value });
|
30
34
|
runInAction(() => (state.editSeverity = false));
|
31
35
|
} },
|
36
|
+
React.createElement(Option, { value: "S0" }, "S0"),
|
32
37
|
React.createElement(Option, { value: "S1" }, "S1"),
|
33
38
|
React.createElement(Option, { value: "S2" }, "S2"),
|
34
|
-
React.createElement(Option, { value: "S3" }, "S3")
|
39
|
+
React.createElement(Option, { value: "S3" }, "S3"),
|
40
|
+
React.createElement(Option, { value: "S4" }, "S4"),
|
41
|
+
React.createElement(Option, { value: "S5" }, "S5"),
|
42
|
+
React.createElement(Option, { value: "S6" }, "S6"),
|
43
|
+
React.createElement(Option, { value: "S7" }, "S7"))) : (React.createElement("div", { onClick: () => runInAction(() => (state.editSeverity = true)) }, workerror.severity || "ADD Severity"))),
|
35
44
|
React.createElement(Form.Item, { label: "Incident Date" },
|
36
45
|
React.createElement(InlineEdit, { defaultValue: moment(workerror.incidentDate), content: (v) => (React.createElement("span", null, workerror.incidentDate
|
37
46
|
? moment(workerror.incidentDate).format("DD MMM YYYY")
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAA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AAC,CAAC;oBAChD,CAAC,GACA,CACS;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS;gBACzB,oBAAC,UAAU,IACV,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,QACR,UAAU,EAAC,IAAI,EACf,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GACpD,CACS,CACN,CACF,CACN,CAAC,CAAC;IAEH,KAAK,UAAU,IAAI,CAAC,MAA+B;QAClD,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { makeObservable, observable } from "mobx";
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor() {
|
5
5
|
Object.defineProperty(this, "editType", {
|
@@ -16,6 +16,10 @@ export class State {
|
|
16
16
|
});
|
17
17
|
makeObservable(this);
|
18
18
|
}
|
19
|
+
clear() {
|
20
|
+
this.editType = false;
|
21
|
+
this.editSeverity = false;
|
22
|
+
}
|
19
23
|
}
|
20
24
|
__decorate([
|
21
25
|
observable
|
@@ -23,4 +27,7 @@ __decorate([
|
|
23
27
|
__decorate([
|
24
28
|
observable
|
25
29
|
], State.prototype, "editSeverity", void 0);
|
30
|
+
__decorate([
|
31
|
+
action
|
32
|
+
], State.prototype, "clear", null);
|
26
33
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IACjB;QAGY;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAsB,KAAK;WAAC;QAHvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAIc,KAAK;QACnB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC3B,CAAC;CACD;AAPY;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;2CAA6B;AAEhC;IAAP,MAAM;kCAGN"}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import "./index.less";
|
2
1
|
import React, { useEffect, useState } from "react";
|
3
2
|
import { Skeleton, Tabs, Tag } from "@voplus/antd";
|
4
3
|
import { useWorkError, useWorkErrorStore } from "../../../../data/workerror";
|
5
4
|
import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
|
6
|
-
import AvatarList from "@voplus/morpho-
|
5
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
7
6
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
8
7
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
8
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
9
9
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
10
10
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
11
|
-
import
|
11
|
+
import WorkErrorProperties from "../WorkErrorProperties";
|
12
12
|
import moment from "moment";
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
14
|
+
import styles from "./index.less";
|
14
15
|
import { useApplicationContext } from "@voplus/morpho-data";
|
15
|
-
import WorkErrorProperties from "../WorkErrorProperties";
|
16
16
|
const WorkErrorPropertiesView = (props) => {
|
17
|
-
const { id } = props;
|
17
|
+
const { id, workTypeId } = props;
|
18
18
|
const workerror = useWorkError(id);
|
19
19
|
const store = useWorkErrorStore();
|
20
20
|
const { user } = useApplicationContext();
|
@@ -23,7 +23,7 @@ const WorkErrorPropertiesView = (props) => {
|
|
23
23
|
useEffect(() => {
|
24
24
|
setActiveKey("Properties");
|
25
25
|
}, [props.id]);
|
26
|
-
return observe(() => (React.createElement("div", { className: "workerror-properties-view" },
|
26
|
+
return observe(() => (React.createElement("div", { className: styles["workerror-properties-view"] },
|
27
27
|
workerror.loaded !== true ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
28
28
|
React.createElement("div", { className: "workerror-header" },
|
29
29
|
React.createElement("div", { className: "workerror-header-content" },
|
@@ -41,7 +41,7 @@ const WorkErrorPropertiesView = (props) => {
|
|
41
41
|
store.edit(id, { data: { Description: description }, error: "message" });
|
42
42
|
} }))),
|
43
43
|
React.createElement(Tabs, { activeKey: activeKey, className: "workerror-tabs", onChange: onChange },
|
44
|
-
React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorkErrorProperties, { id: id })),
|
44
|
+
React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorkErrorProperties, { id: id, workTypeId: workTypeId })),
|
45
45
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
46
46
|
React.createElement(Tabs.TabPane, { tab: "Document", key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true }))))));
|
47
47
|
/**切换面板的回调*/
|