@voplus/morpho-workspace 6.0.63 → 6.0.64
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import React, { useState } from "react";
|
|
4
4
|
import { faCalendarCheck, faThumbsUp, faUser } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
6
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
7
|
-
import { Empty } from "antd";
|
7
|
+
import { Empty, Spin } from "antd";
|
8
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
9
9
|
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
10
10
|
import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
|
@@ -19,6 +19,7 @@ const WorkScheduleTimeLineView = (props) => {
|
|
19
19
|
const list = useCreateListDataState({
|
20
20
|
filterDefaults: {
|
21
21
|
filters: filters(),
|
22
|
+
page: { Page: 1, PageSize: 300 },
|
22
23
|
},
|
23
24
|
}, [contact]);
|
24
25
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
@@ -45,7 +46,7 @@ const WorkScheduleTimeLineView = (props) => {
|
|
45
46
|
React.createElement(Scrollbars, { autoHide: true },
|
46
47
|
React.createElement("div", { className: "border-t border-gray-200 p-4" },
|
47
48
|
React.createElement("div", { className: "work-schedule-time-line" },
|
48
|
-
!list.data.length ? (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })) : (React.createElement("div", { className: "flow-root" },
|
49
|
+
React.createElement(Spin, { spinning: list.loading }, !list.data.length ? (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })) : (React.createElement("div", { className: "flow-root" },
|
49
50
|
React.createElement("ul", { role: "list", className: "-mb-8" }, list.data.map((event, eventIdx) => (React.createElement("li", { className: "cursor-pointer", key: event.id },
|
50
51
|
React.createElement("div", { className: "relative pb-8" },
|
51
52
|
eventIdx !== list.data.length - 1 ? (React.createElement("span", { className: "absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" })) : null,
|
@@ -63,7 +64,7 @@ const WorkScheduleTimeLineView = (props) => {
|
|
63
64
|
React.createElement("div", { className: "font-medium text-gray-500" }, event === null || event === void 0 ? void 0 : event.status))),
|
64
65
|
React.createElement("div", { className: "whitespace-nowrap text-right text-sm text-gray-500" }, event.schedule
|
65
66
|
? dayjs(event.schedule).format("YYYY-MM-DD")
|
66
|
-
: "unscheduled")))))))))),
|
67
|
+
: "unscheduled"))))))))))),
|
67
68
|
visibleQuickView.visible && visibleQuickView.id && (React.createElement(WorkScheduleQuickViewDialog, { id: visibleQuickView.id, visible: true, onCancel: onQuickView })))))))));
|
68
69
|
function filters() {
|
69
70
|
const filter = [{ c: "Work", o: "=", v1: "null", l: "And" }];
|
@@ -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,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;
|
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,CA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