@voplus/morpho-workspace 6.0.152 → 6.0.153
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.
@@ -1,28 +1,28 @@
|
|
1
|
-
import { Col, Row, Tag } from "antd";
|
2
1
|
import React, { useState } from "react";
|
2
|
+
import { Col, Row, Tag } from "antd";
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
4
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
5
|
+
import { useWorkError } from "../../../../../data/workerror";
|
6
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
4
8
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
5
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
6
9
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
7
10
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
8
11
|
import classnames from "classnames";
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
10
12
|
import "./index.less";
|
11
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
12
|
-
import { useWorkError } from "../../../../../data/workerror";
|
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
17
|
return observe(() => (React.createElement("div", { className: "workerror-item", onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
18
18
|
React.createElement(Row, null,
|
19
|
-
React.createElement(Col, {
|
19
|
+
React.createElement(Col, { span: 16 },
|
20
20
|
React.createElement("div", null,
|
21
21
|
React.createElement("div", { className: "workerror-info" }, workError.errorType),
|
22
22
|
React.createElement(Tag, { color: "purple" }, workError.severity)),
|
23
23
|
React.createElement("div", { className: "workerror-date" },
|
24
24
|
React.createElement(UTCShortDate, { value: workError.incidentDate, format: "DD MMM YYYY" }))),
|
25
|
-
React.createElement(Col, {
|
25
|
+
React.createElement(Col, { span: 8, className: "workerror-causers" },
|
26
26
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false }))),
|
27
27
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
28
28
|
show: hover,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-error/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-error/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,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