@voplus/morpho-workspace 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/TimeLog/index.js +5 -7
- package/es/components/TimeLog/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +2 -3
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/notification/components/DocumentNotificationCard/index.js +1 -1
- package/es/modules/space/pages/MySpace/state.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +1 -2
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -2
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.js +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +2 -2
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.js +2 -2
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/controls/WorkDataIconBar/index.js +3 -3
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +2 -2
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js +2 -2
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js.map +1 -1
- package/es/modules/work/work-type/components/RepeatTab/index.js +1 -1
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js +2 -2
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +2 -2
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -1
- package/package.json +1 -1
@@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";
|
|
3
3
|
import { faPlay, faStop } from "@fortawesome/free-solid-svg-icons";
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
5
|
import { faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
6
|
-
import
|
6
|
+
import dayjs from "dayjs";
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
8
8
|
import styles from "./index.less";
|
9
9
|
const TimeLog = (props) => {
|
@@ -59,13 +59,11 @@ const TimeLog = (props) => {
|
|
59
59
|
React.createElement(Avatar, { size: "small" }, "Mn"),
|
60
60
|
React.createElement("div", { className: "record-time" },
|
61
61
|
React.createElement("div", null,
|
62
|
-
React.createElement("span", null,
|
62
|
+
React.createElement("span", null, dayjs().format("YYYY-MM-DD")),
|
63
63
|
" from",
|
64
|
-
" ",
|
65
|
-
|
66
|
-
"
|
67
|
-
" ",
|
68
|
-
React.createElement("span", null, moment().format("HH:mm"))),
|
64
|
+
React.createElement("span", null, dayjs().format("HH:mm")),
|
65
|
+
" to ",
|
66
|
+
React.createElement("span", null, dayjs().format("HH:mm"))),
|
69
67
|
React.createElement("div", null, "3 hours 4 minutes 4 seconds")))))))), trigger: ["click"], placement: "bottomCenter", onOpenChange: handleVisibleChange },
|
70
68
|
React.createElement(Button, { shape: "circle", size: props.size },
|
71
69
|
React.createElement(FAIcon, { icon: faStopwatch })))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TimeLog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,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AC,MAAM,IAAC,IAAI,EAAC,OAAO,SAAY;gBAChC,6BAAK,SAAS,EAAC,aAAa;oBAC3B;wBACC,kCAAO,KAAK,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAQ;;wBAC3C,kCAAO,KAAK,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAQ;;wBAAI,kCAAO,KAAK,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAQ,CAC3E;oBACN,+DAAsC,CACjC,CACD,CACN,CAAC,CACG,CACD,CACN,EACD,OAAO,EAAE,CAAC,OAAO,CAAC,EAClB,SAAS,EAAC,cAAc,EACxB,YAAY,EAAE,mBAAmB;QAEjC,oBAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI;YACtC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,CACrB,CACC,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,OAAO,CAAC"}
|
@@ -13,7 +13,6 @@ import AgendaNewForm from "../AgendaList/AgendaNewForm";
|
|
13
13
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
14
14
|
import MeetingPropertiesView from "../MeetingPropertiesView";
|
15
15
|
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
16
|
-
import moment from "moment";
|
17
16
|
import dayjs from "dayjs";
|
18
17
|
import styles from "./index.less";
|
19
18
|
const NewMeetingForm = (props) => {
|
@@ -70,8 +69,8 @@ const NewMeetingForm = (props) => {
|
|
70
69
|
}
|
71
70
|
function changeAllDay(e) {
|
72
71
|
state.allDay = e.target.checked;
|
73
|
-
state.params.StartTime = state.allDay ?
|
74
|
-
state.params.EndTime = state.allDay ?
|
72
|
+
state.params.StartTime = state.allDay ? dayjs().startOf("day") : "";
|
73
|
+
state.params.EndTime = state.allDay ? dayjs().endOf("day") : "";
|
75
74
|
}
|
76
75
|
async function onSubmit() {
|
77
76
|
if (!state.params.Name)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAA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A4B,CAAC;gBAC7E,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC;gBACzE,QAAQ,EAAE,KAAK,CAAC,QAAQ;aACxB;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,MAAM;gBAChB,YAAa,CAAC,SAAS,CAAC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9E,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,IAAI,SAAS,CAAC,OAAO;YAAE,OAAO,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzD,CAAC;IACD,8BAA8B;IAC9B,SAAS,SAAS,CAAC,CAAM;;QACxB,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO;QAC7B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -19,7 +19,7 @@ const DocumentNotificationCard = (props) => {
|
|
19
19
|
React.createElement("h3", null, notification.content.title),
|
20
20
|
React.createElement(ProseMirrorViewer, { html: notification.content.content }),
|
21
21
|
React.createElement("div", { className: "notification-footer" },
|
22
|
-
React.createElement("div", { className: "notification-date" }, dayjs(notification.createDate).format("DD MMM
|
22
|
+
React.createElement("div", { className: "notification-date" }, dayjs(notification.createDate).format("DD MMM YYYY")),
|
23
23
|
React.createElement("div", { className: "notification-btn" },
|
24
24
|
React.createElement(Space, null,
|
25
25
|
notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-dismiss", onClick: (ev) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAOpE,MAAM,OAAO,KAAK;IA8BjB,YAAoB,OAAsB,EAAU,IAAY,EAAU,IAAiB;QAA/E;;;;mBAAQ,OAAO;WAAe;QAAE;;;;mBAAQ,IAAI;WAAQ;QAAE;;;;mBAAQ,IAAI;WAAa;QA7BxE;;;;mBAAU,SAAiC;WAAC;QAC/D,0CAA0C;QACvB;;;;mBAA6C;gBAC/D,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC;aACZ;WAAC;QAEF,sCAAsC;QACnB;;;;mBAAqC;gBACvD,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,CAAC;gBACd,GAAG,EAAE,CAAC;aACN;WAAC;QAEF,sCAAsC;QACnB;;;;mBAAqC;gBACvD,SAAS,EAAE,CAAC;gBACZ,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,kBAAkB;gBAClB,GAAG,EAAE,CAAC;aACN;WAAC;QAGD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,QAAQ,CAAC,GAAW,EAAE,IAAa;QACjD,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,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;IAEvC,IAAW,aAAa;QACvB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;SACzD,CAAC;IACH,CAAC;IAED,2CAA2C;IAE3C,IAAW,iBAAiB;QAC3B,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC;SAC7D,CAAC;IACH,CAAC;CACD;AA/FmB;IAAlB,UAAU;sCAAoD;AAE5C;IAAlB,UAAU;iDAKT;AAGiB;IAAlB,UAAU;yCAOT;AAGiB;IAAlB,UAAU;yCAOT;AAMa;IAAd,MAAM;qCAGN;AAGM;IADN,MAAM;4CAIN;AAGM;IADN,MAAM;4CAIN;AAGM;IADN,MAAM;oDAIN;AAID;IADC,QAAQ;2CAOR;AAID;IADC,QAAQ;yCAOR;AAID;IADC,QAAQ;0CAOR;AAID;IADC,QAAQ;8CAOR"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
3
|
import { message } from "antd";
|
4
|
-
import moment from "moment";
|
5
4
|
import dayjs from "dayjs";
|
6
5
|
export class State {
|
7
6
|
constructor(taskStore) {
|
@@ -118,7 +117,7 @@ export class State {
|
|
118
117
|
makeObservable(this);
|
119
118
|
}
|
120
119
|
get dateFormat() {
|
121
|
-
return
|
120
|
+
return dayjs(this.startDate).year() !== dayjs().year() ? "DD MMM YYYY" : "DD MMM";
|
122
121
|
}
|
123
122
|
}
|
124
123
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,KAAK;IAiBjB,YAA2B,SAAoB;QAA5B;;;;mBAAQ,SAAS;WAAW;QAhB5B;;;;;WAA8B;QACjD,iBAAiB;QACE;;;;mBAAK,EAAE;WAAC;QAC3B,iBAAiB;QACE;;;;mBAAuC,SAAS;WAAC;QACpE,gBAAgB;QACG;;;;mBAAqC,SAAS;WAAC;QAClE,6BAA6B;QACV;;;;mBAAiB,CAAC;WAAC;QACtC,iCAAiC;QACd;;;;mBAAoB,CAAC;WAAC;QACzC,uBAAuB;QACJ;;;;mBAAU,KAAK;WAAC;QACnC,uDAAuD;QACpC;;;;mBAAU,KAAK;WAAC;QAMnC,kDAAkD;QAE3C;;;;mBAAS,KAAK,IAAI,EAAE;gBAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;gBACpB,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;oBAClC,IAAI,EAAE;wBACL,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC;wBACrE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MA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AC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC5C,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;YACzB,CAAC;WAAC;QAvCD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAyCD,IAAW,UAAU;QACpB,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC;IACnF,CAAC;CACD;AA9DmB;IAAlB,UAAU;oCAAsC;AAE9B;IAAlB,UAAU;iCAAgB;AAER;IAAlB,UAAU;wCAAyD;AAEjD;IAAlB,UAAU;sCAAuD;AAE/C;IAAlB,UAAU;6CAA2B;AAEnB;IAAlB,UAAU;gDAA8B;AAEtB;IAAlB,UAAU;sCAAwB;AAEhB;IAAlB,UAAU;sCAAwB;AAQ5B;IADN,MAAM;qCAqBL;AAGK;IADN,MAAM;mDAKL;AAGK;IADN,MAAM;6CAKL;AAGF;IADC,QAAQ;uCAGR"}
|
@@ -10,7 +10,7 @@ import FlagIcon from "@voplus/morpho-document/es/controls/data-icons/FlagIcon";
|
|
10
10
|
import TaskDataIconBar from "../../controls/TaskDataIconBar";
|
11
11
|
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
12
12
|
import { autorun } from "mobx";
|
13
|
-
import
|
13
|
+
import dayjs from "dayjs";
|
14
14
|
import { observe } from "@voplus/morpho-ui";
|
15
15
|
import { useApplicationContext } from "@voplus/morpho-data";
|
16
16
|
const DefaultTaskItem = (props) => {
|
@@ -29,7 +29,7 @@ const DefaultTaskItem = (props) => {
|
|
29
29
|
React.createElement("span", { className: "margin-right-15" },
|
30
30
|
React.createElement("span", { className: "margin-right-5" },
|
31
31
|
React.createElement(FAIcon, { icon: faClock })),
|
32
|
-
|
32
|
+
dayjs(task.dueDate).format("D MMM YYYY")))),
|
33
33
|
React.createElement(TaskDataIconBar, { id: id })), tools: React.createElement(React.Fragment, null,
|
34
34
|
React.createElement("div", { className: "member-avatar" },
|
35
35
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: false, maxCount: 3, list: [...(task.members || []), ...(task.childMembers || [])] })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DefaultTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/DefaultTaskItem.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,yDAAyD,CAAC;AAC/E,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAE7D,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,
|
1
|
+
{"version":3,"file":"DefaultTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/DefaultTaskItem.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM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B,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;wBAC9B,aAAa,CAAC,UAAU,CAAC,CAAC;wBAC1B,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;4BAC7B,IAAI,EAAE,EAAE,UAAU,EAAE;4BACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;yBACrD,CAAC,CAAC;wBACH,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;oBAChC,CAAC,GACA,CACc,KAEd,KAAK,CAAC,WAAW,GACpB,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -20,7 +20,7 @@ const WorkErrorItem = (props) => {
|
|
20
20
|
React.createElement("div", null,
|
21
21
|
React.createElement("div", { className: "workerror-info" }, workError.type),
|
22
22
|
React.createElement(Tag, { color: "purple" }, workError.severity)),
|
23
|
-
React.createElement("div", { className: "workerror-date" }, workError.incidentDate ? dayjs(workError.incidentDate).format("DD MMM
|
23
|
+
React.createElement("div", { className: "workerror-date" }, workError.incidentDate ? dayjs(workError.incidentDate).format("DD MMM YYYY") : null)),
|
24
24
|
React.createElement(Col, { flex: 2, className: "workerror-causers" },
|
25
25
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false }))),
|
26
26
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
@@ -7,7 +7,7 @@ import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
|
7
7
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
8
8
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
9
9
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
10
|
-
import
|
10
|
+
import dayjs from "dayjs";
|
11
11
|
import { observe } from "@voplus/morpho-ui";
|
12
12
|
import styles from "./index.less";
|
13
13
|
import { useApplicationContext } from "@voplus/morpho-data";
|
@@ -27,7 +27,7 @@ const WorkErrorPropertiesView = (props) => {
|
|
27
27
|
React.createElement(ToolBar, { id: props.id, showMenu: false },
|
28
28
|
React.createElement(Open, { size: "small", url: `/work-error/${props.id}` }),
|
29
29
|
React.createElement(WorkErrorMenu, { id: props.id, closeAside: true }))),
|
30
|
-
React.createElement("div", { className: "workerror-date" },
|
30
|
+
React.createElement("div", { className: "workerror-date" }, dayjs(workerror.due).format("DD MMM YYYY")),
|
31
31
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workerror.causers || [], onChange: (ids) => {
|
32
32
|
store.edit(id, { data: { CauserIds: ids }, error: "message" });
|
33
33
|
} }))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAA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,EAAC,0BAA0B;oBACxC,6BAAK,SAAS,EAAC,wBAAwB;wBACtC,6BAAK,SAAS,EAAC,gBAAgB,IAAE,SAAS,CAAC,IAAI,CAAO;wBACtD,oBAAC,GAAG,IAAC,KAAK,EAAC,QAAQ,IAAE,SAAS,CAAC,QAAQ,CAAO,CACzC;oBAEN,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;wBACrC,oBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,eAAe,KAAK,CAAC,EAAE,EAAE,GAAI;wBACrD,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACxC,CACL;gBACN,6BAAK,SAAS,EAAC,gBAAgB,IAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAO;gBAClF,oBAAC,UAAU,IACV,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;wBACjB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAChE,CAAC,GACA,CACG,CACN;YACD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CAC9B,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
@@ -9,7 +9,7 @@ import WorkDataIconBar from "../../controls/WorkDataIconBar";
|
|
9
9
|
import WorkStatusLabel from "../../controls/WorkStatusLabel";
|
10
10
|
import classnames from "classnames";
|
11
11
|
import { faAlarmExclamation } from "@fortawesome/pro-light-svg-icons";
|
12
|
-
import
|
12
|
+
import dayjs from "dayjs";
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
14
14
|
import "./index.less";
|
15
15
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
@@ -30,7 +30,7 @@ const WorkItem = (props) => {
|
|
30
30
|
work.workStatus !== "Rejected" && (React.createElement(Tooltip, { title: "Due Date" },
|
31
31
|
React.createElement("div", { className: "due-date-sub" },
|
32
32
|
React.createElement(FAIcon, { icon: faAlarmExclamation }),
|
33
|
-
React.createElement("span", { className: "margin-left-5" }, work.due ?
|
33
|
+
React.createElement("span", { className: "margin-left-5" }, work.due ? dayjs(work.due).format("DD MMM YYYY") : "no data"))))),
|
34
34
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
35
35
|
show: hover,
|
36
36
|
}) },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkItem/index.tsx"],"names":[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AC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACvC,CACL,CACU,GAEjB,CACF,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,UAAkB;QACzC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACvB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC9B,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,eAAe,EAAE,SAAS;CAC1B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -6,7 +6,7 @@ import { Tooltip } from "antd";
|
|
6
6
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
7
7
|
import WorkStatusDataIcon from "../WorkStatusDataIcon";
|
8
8
|
import { faAlarmExclamation } from "@fortawesome/pro-light-svg-icons";
|
9
|
-
import
|
9
|
+
import dayjs from "dayjs";
|
10
10
|
import { observe } from "@voplus/morpho-ui";
|
11
11
|
import { useWork } from "../../../../data/work";
|
12
12
|
const WorkDataIconBar = (props) => {
|
@@ -19,9 +19,9 @@ const WorkDataIconBar = (props) => {
|
|
19
19
|
dueDateVisible && (React.createElement(Tooltip, { title: "Due Date" },
|
20
20
|
React.createElement("span", { className: "due-date data-icon" },
|
21
21
|
React.createElement(FAIcon, { icon: faAlarmExclamation }),
|
22
|
-
work.due ?
|
22
|
+
work.due ? dayjs(work.due).format("DD MMM YYYY") : "no data"))),
|
23
23
|
documentDateVisible && (React.createElement(Tooltip, { title: "Document Date" },
|
24
|
-
React.createElement("span", { className: "data-icon" }, work.date ?
|
24
|
+
React.createElement("span", { className: "data-icon" }, work.date ? dayjs(work.date).format("DD MMM YYYY") : "no data"))),
|
25
25
|
React.createElement(DocumentDataIcon, { id: id }),
|
26
26
|
commentVisible && React.createElement(CommentDataIcon, { id: id }),
|
27
27
|
React.createElement(UserQuickIcon, { id: id }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkDataIconBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkDataIconBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,O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C,KAAK,EAAC,cAAc,EAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe;gBACzE,8BAAM,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;oBAC3D,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,CAAC,OAAO,GAAI,CAC/B,CACE,CACV;YACA,aAAa,IAAI,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACnC,CACd,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,OAAgB;QACxC,UAAU,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -12,7 +12,7 @@ import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUn
|
|
12
12
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
13
13
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
14
14
|
import classnames from "classnames";
|
15
|
-
import
|
15
|
+
import dayjs from "dayjs";
|
16
16
|
import styles from "./index.less";
|
17
17
|
const WorkScheduleItem = (props) => {
|
18
18
|
const { id, avatar, quickView } = props;
|
@@ -46,7 +46,7 @@ const WorkScheduleItem = (props) => {
|
|
46
46
|
React.createElement("div", { className: "work-schedule-item-data-info text-sm text-gray-500 margin-right-15" }, (_f = workSchedule.owners) === null || _f === void 0 ? void 0 : _f.map((item) => (React.createElement("span", { key: item.id, className: "data-icon" },
|
47
47
|
React.createElement(UnitReference, { unit: item })))))),
|
48
48
|
React.createElement(ColumnItemCol, { span: 7, align: "flex-end" },
|
49
|
-
React.createElement(UpDownStatusBar, { className: classnames("work-schedule-item-menus", { hide: hover }), upNode: React.createElement("div", { className: classnames("flex items-baseline text-xl font-semibold commission-amount") }, workSchedule.schedule && (React.createElement("span", null,
|
49
|
+
React.createElement(UpDownStatusBar, { className: classnames("work-schedule-item-menus", { hide: hover }), upNode: React.createElement("div", { className: classnames("flex items-baseline text-xl font-semibold commission-amount") }, workSchedule.schedule && (React.createElement("span", null, dayjs(workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.schedule).format("YYYY-MM-DD")))), downNode: React.createElement("div", { className: "work-schedule-item-schedule" }, workSchedule.status) }),
|
50
50
|
React.createElement("div", { className: classnames("work-schedule-item-tool", { show: hover }), onClick: (e) => {
|
51
51
|
e.stopPropagation();
|
52
52
|
setHover(false);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
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,CAAC,MAAM,CAAC,YAAY,CAAC,CAAQ,CACjE,CACI,EAEP,QAAQ,EACP,6BAAK,SAAS,EAAC,6BAA6B,IAAE,YAAY,CAAC,MAAM,CAAO,GAExE;wBACF,6BACC,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EACjE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gCACd,CAAC,CAAC,eAAe,EAAE,CAAC;gCACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;4BACjB,CAAC;4BAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;gCAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAmB,CAAC,GAAI;gCAC/D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACS,CACd,CACH,CACW,CACb;YACA,gBAAgB,IAAI,CACpB,oBAAC,2BAA2B,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,GAAI,CAC7E,CACI,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW;QACnB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -9,7 +9,7 @@ import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
|
9
9
|
import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
|
10
10
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
11
11
|
import classnames from "classnames";
|
12
|
-
import
|
12
|
+
import dayjs from "dayjs";
|
13
13
|
import { useAutoUpdateListData } from "../../../../../data/work-schedule/work-schedule-events";
|
14
14
|
const WorkScheduleTimeLineView = (props) => {
|
15
15
|
const { contact } = props;
|
@@ -59,7 +59,7 @@ const WorkScheduleTimeLineView = (props) => {
|
|
59
59
|
React.createElement("div", { className: "text-sm" }, event.workType.name),
|
60
60
|
React.createElement("div", { className: "font-medium text-gray-500" }, event === null || event === void 0 ? void 0 : event.status))),
|
61
61
|
React.createElement("div", { className: "whitespace-nowrap text-right text-sm text-gray-500" }, event.schedule
|
62
|
-
?
|
62
|
+
? dayjs(event.schedule).format("YYYY-MM-DD")
|
63
63
|
: "unscheduled")))))))))),
|
64
64
|
visibleQuickView.visible && visibleQuickView.id && (React.createElement(WorkScheduleQuickViewDialog, { id: visibleQuickView.id, visible: true, onCancel: onQuickView }))))))));
|
65
65
|
function filters() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,wBAAwB,GAAG,CAAC,KAGjC,EAAE,EAAE;IACJ,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAGrD,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/B,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,OAAO,EAAE;SAClB;KACD,EACD,CAAC,OAAO,CAAC,CACT,CAAC;IAEF,mEAAmE;IACnE,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE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,7 +3,7 @@ import { Calendar, Divider, Form, InputNumber, Radio, Select, Space } from "antd
|
|
3
3
|
import { observe, UTCDatePicker as DatePicker } from "@voplus/morpho-ui";
|
4
4
|
import "./index.less";
|
5
5
|
const RepeatTab = (props) => {
|
6
|
-
const dateFormatList = ["DD MMM
|
6
|
+
const dateFormatList = ["DD MMM YYYY"];
|
7
7
|
const [select, setSelect] = useState("Week");
|
8
8
|
return observe(() => (React.createElement("div", { className: "repeat-tab" },
|
9
9
|
React.createElement("div", { className: "repeat-tab-head" }, "Repeat Tab"),
|
@@ -5,7 +5,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Column } from "@antv/g2plot";
|
6
6
|
import { LoadingOutlined } from "@ant-design/icons";
|
7
7
|
import { State } from "./state";
|
8
|
-
import
|
8
|
+
import dayjs from "dayjs";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
const WorkTypeCompletedWorksChart = (props) => {
|
11
11
|
const { id } = props;
|
@@ -15,7 +15,7 @@ const WorkTypeCompletedWorksChart = (props) => {
|
|
15
15
|
useWorkTypeCompletedWork(id, (list) => {
|
16
16
|
const data = [];
|
17
17
|
list.map((i) => {
|
18
|
-
data.push({ date:
|
18
|
+
data.push({ date: dayjs(i.date).format("DD MMM"), total: i.total });
|
19
19
|
});
|
20
20
|
setColumnData(data);
|
21
21
|
state.loading = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,wBAAwB,GACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,wBAAwB,GACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAA2B,EAAE,CAAC,CAAC;IAE3E,wBAAwB,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,EAA8B,CAAC;QAC5C,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACd,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,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,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,6BAAK,GAAG,EAAE,KAAK,GAAI;QAClB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
@@ -5,7 +5,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Column } from "@antv/g2plot";
|
6
6
|
import { LoadingOutlined } from "@ant-design/icons";
|
7
7
|
import { State } from "./state";
|
8
|
-
import
|
8
|
+
import dayjs from "dayjs";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
const WorkspaceCompletedWorksChart = (props) => {
|
11
11
|
const { id } = props;
|
@@ -15,7 +15,7 @@ const WorkspaceCompletedWorksChart = (props) => {
|
|
15
15
|
useWorkSpaceCompletedWork(id, (list) => {
|
16
16
|
const data = [];
|
17
17
|
list.map((i) => {
|
18
|
-
data.push({ date:
|
18
|
+
data.push({ date: dayjs(i.date).format("DD MMM"), total: i.total });
|
19
19
|
});
|
20
20
|
setColumnData(data);
|
21
21
|
state.loading = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceCompletedWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,M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