systemrobotassistant 3.0.8
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.
Potentially problematic release.
This version of systemrobotassistant might be problematic. Click here for more details.
- package/.eslintignore +6 -0
- package/.eslintrc +45 -0
- package/.gitlab-ci.yml +52 -0
- package/.lecprc.ts +76 -0
- package/.yarnrc +1 -0
- package/CHANGELOG.md +114 -0
- package/README.md +14 -0
- package/custom-amd-plugin.ts +46 -0
- package/es/component/answer-itme/index.d.ts +20 -0
- package/es/component/answer-itme/index.d.ts.map +1 -0
- package/es/component/answer-itme/index.js +41 -0
- package/es/component/answer-itme/style.css +35 -0
- package/es/component/data-container/index.d.ts +19 -0
- package/es/component/data-container/index.d.ts.map +1 -0
- package/es/component/data-container/index.js +37 -0
- package/es/component/data-container/style.css +26 -0
- package/es/component/days-tab/index.d.ts +6 -0
- package/es/component/days-tab/index.d.ts.map +1 -0
- package/es/component/days-tab/index.js +119 -0
- package/es/component/days-tab/style.css +43 -0
- package/es/component/days-tab/utils.d.ts +32 -0
- package/es/component/days-tab/utils.d.ts.map +1 -0
- package/es/component/days-tab/utils.js +98 -0
- package/es/component/error-boundary/index.d.ts +2 -0
- package/es/component/error-boundary/index.d.ts.map +1 -0
- package/es/component/error-boundary/index.js +33 -0
- package/es/component/it-notice-modal/columns.d.ts +11 -0
- package/es/component/it-notice-modal/columns.d.ts.map +1 -0
- package/es/component/it-notice-modal/columns.js +108 -0
- package/es/component/it-notice-modal/double-tab.d.ts +6 -0
- package/es/component/it-notice-modal/double-tab.d.ts.map +1 -0
- package/es/component/it-notice-modal/double-tab.js +94 -0
- package/es/component/it-notice-modal/index.d.ts +6 -0
- package/es/component/it-notice-modal/index.d.ts.map +1 -0
- package/es/component/it-notice-modal/index.js +488 -0
- package/es/component/it-notice-modal/server.d.ts +8 -0
- package/es/component/it-notice-modal/server.d.ts.map +1 -0
- package/es/component/it-notice-modal/server.js +43 -0
- package/es/component/it-notice-modal/single-tab.d.ts +6 -0
- package/es/component/it-notice-modal/single-tab.d.ts.map +1 -0
- package/es/component/it-notice-modal/single-tab.js +82 -0
- package/es/component/it-notice-modal/style.css +301 -0
- package/es/component/it-notice-modal/utils.d.ts +2 -0
- package/es/component/it-notice-modal/utils.d.ts.map +1 -0
- package/es/component/it-notice-modal/utils.js +8 -0
- package/es/component/it-notice-tab/index.d.ts +6 -0
- package/es/component/it-notice-tab/index.d.ts.map +1 -0
- package/es/component/it-notice-tab/index.js +206 -0
- package/es/component/it-notice-tab/server.d.ts +3 -0
- package/es/component/it-notice-tab/server.d.ts.map +1 -0
- package/es/component/it-notice-tab/server.js +13 -0
- package/es/component/it-notice-tab/style.css +103 -0
- package/es/component/mail-list-modal/index.d.ts +2 -0
- package/es/component/mail-list-modal/index.d.ts.map +1 -0
- package/es/component/mail-list-modal/index.js +306 -0
- package/es/component/mail-list-modal/server.d.ts +7 -0
- package/es/component/mail-list-modal/server.d.ts.map +1 -0
- package/es/component/mail-list-modal/server.js +38 -0
- package/es/component/mail-list-modal/style.css +132 -0
- package/es/component/myself-chat-card/index.d.ts +15 -0
- package/es/component/myself-chat-card/index.d.ts.map +1 -0
- package/es/component/myself-chat-card/index.js +25 -0
- package/es/component/myself-chat-card/style.css +22 -0
- package/es/component/need-answer/index.d.ts +15 -0
- package/es/component/need-answer/index.d.ts.map +1 -0
- package/es/component/need-answer/index.js +60 -0
- package/es/component/need-answer/style.css +19 -0
- package/es/component/opppsition-chat-card/index.d.ts +11 -0
- package/es/component/opppsition-chat-card/index.d.ts.map +1 -0
- package/es/component/opppsition-chat-card/index.js +25 -0
- package/es/component/opppsition-chat-card/style.css +23 -0
- package/es/component/question-library/index.d.ts +10 -0
- package/es/component/question-library/index.d.ts.map +1 -0
- package/es/component/question-library/index.js +291 -0
- package/es/component/question-library/server.d.ts +4 -0
- package/es/component/question-library/server.d.ts.map +1 -0
- package/es/component/question-library/server.js +19 -0
- package/es/component/question-library/style.css +75 -0
- package/es/component/question-tag/index.d.ts +11 -0
- package/es/component/question-tag/index.d.ts.map +1 -0
- package/es/component/question-tag/index.js +23 -0
- package/es/component/question-tag/style.css +12 -0
- package/es/component/recommend-questions-card/index.d.ts +10 -0
- package/es/component/recommend-questions-card/index.d.ts.map +1 -0
- package/es/component/recommend-questions-card/index.js +104 -0
- package/es/component/recommend-questions-card/style.css +54 -0
- package/es/component/scroll-view/index.d.ts +3 -0
- package/es/component/scroll-view/index.d.ts.map +1 -0
- package/es/component/scroll-view/index.js +2 -0
- package/es/component/scroll-view/scroll-view.d.ts +18 -0
- package/es/component/scroll-view/scroll-view.d.ts.map +1 -0
- package/es/component/scroll-view/scroll-view.js +66 -0
- package/es/component/scroll-view/style.css +34 -0
- package/es/component/tab/index.d.ts +2 -0
- package/es/component/tab/index.d.ts.map +1 -0
- package/es/component/tab/index.js +18 -0
- package/es/component/tab/style.css +26 -0
- package/es/component/tips-answer/index.d.ts +15 -0
- package/es/component/tips-answer/index.d.ts.map +1 -0
- package/es/component/tips-answer/index.js +28 -0
- package/es/component/tips-answer/style.css +10 -0
- package/es/images/expire-robot.svg +16 -0
- package/es/images/pc-invalid.svg +11 -0
- package/es/images/screenshot-5.png +0 -0
- package/es/index.d.ts +92 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +506 -0
- package/es/js/const.d.ts +41 -0
- package/es/js/const.d.ts.map +1 -0
- package/es/js/const.js +46 -0
- package/es/js/gen-render-promise.d.ts +9 -0
- package/es/js/gen-render-promise.d.ts.map +1 -0
- package/es/js/gen-render-promise.js +30 -0
- package/es/js/get-time.d.ts +15 -0
- package/es/js/get-time.d.ts.map +1 -0
- package/es/js/get-time.js +35 -0
- package/es/js/hfc-space.d.ts +16 -0
- package/es/js/hfc-space.d.ts.map +1 -0
- package/es/js/hfc-space.js +71 -0
- package/es/js/render-special.d.ts +16 -0
- package/es/js/render-special.d.ts.map +1 -0
- package/es/js/render-special.js +53 -0
- package/es/js/request/fetch.d.ts +10 -0
- package/es/js/request/fetch.d.ts.map +1 -0
- package/es/js/request/fetch.js +81 -0
- package/es/js/request/request.d.ts +3 -0
- package/es/js/request/request.d.ts.map +1 -0
- package/es/js/request/request.js +63 -0
- package/es/js/showMessage.d.ts +15 -0
- package/es/js/showMessage.d.ts.map +1 -0
- package/es/js/showMessage.js +75 -0
- package/es/js/state-immer.d.ts +3 -0
- package/es/js/state-immer.d.ts.map +1 -0
- package/es/js/state-immer.js +19 -0
- package/es/js/timer-executor.d.ts +3 -0
- package/es/js/timer-executor.d.ts.map +1 -0
- package/es/js/timer-executor.js +83 -0
- package/es/js/to-hfc.d.ts +2 -0
- package/es/js/to-hfc.d.ts.map +1 -0
- package/es/js/to-hfc.js +8 -0
- package/es/js/utils.d.ts +3 -0
- package/es/js/utils.d.ts.map +1 -0
- package/es/js/utils.js +11 -0
- package/es/jsx/chat-modal.d.ts +16 -0
- package/es/jsx/chat-modal.d.ts.map +1 -0
- package/es/jsx/chat-modal.js +268 -0
- package/es/server.d.ts +8 -0
- package/es/server.d.ts.map +1 -0
- package/es/server.js +44 -0
- package/es/style.css +174 -0
- package/lib/component/answer-itme/index.d.ts +20 -0
- package/lib/component/answer-itme/index.d.ts.map +1 -0
- package/lib/component/answer-itme/index.js +51 -0
- package/lib/component/answer-itme/style.css +35 -0
- package/lib/component/data-container/index.d.ts +19 -0
- package/lib/component/data-container/index.d.ts.map +1 -0
- package/lib/component/data-container/index.js +45 -0
- package/lib/component/data-container/style.css +26 -0
- package/lib/component/days-tab/index.d.ts +6 -0
- package/lib/component/days-tab/index.d.ts.map +1 -0
- package/lib/component/days-tab/index.js +129 -0
- package/lib/component/days-tab/style.css +43 -0
- package/lib/component/days-tab/utils.d.ts +32 -0
- package/lib/component/days-tab/utils.d.ts.map +1 -0
- package/lib/component/days-tab/utils.js +110 -0
- package/lib/component/error-boundary/index.d.ts +2 -0
- package/lib/component/error-boundary/index.d.ts.map +1 -0
- package/lib/component/error-boundary/index.js +40 -0
- package/lib/component/it-notice-modal/columns.d.ts +11 -0
- package/lib/component/it-notice-modal/columns.d.ts.map +1 -0
- package/lib/component/it-notice-modal/columns.js +116 -0
- package/lib/component/it-notice-modal/double-tab.d.ts +6 -0
- package/lib/component/it-notice-modal/double-tab.d.ts.map +1 -0
- package/lib/component/it-notice-modal/double-tab.js +104 -0
- package/lib/component/it-notice-modal/index.d.ts +6 -0
- package/lib/component/it-notice-modal/index.d.ts.map +1 -0
- package/lib/component/it-notice-modal/index.js +499 -0
- package/lib/component/it-notice-modal/server.d.ts +8 -0
- package/lib/component/it-notice-modal/server.d.ts.map +1 -0
- package/lib/component/it-notice-modal/server.js +55 -0
- package/lib/component/it-notice-modal/single-tab.d.ts +6 -0
- package/lib/component/it-notice-modal/single-tab.d.ts.map +1 -0
- package/lib/component/it-notice-modal/single-tab.js +92 -0
- package/lib/component/it-notice-modal/style.css +301 -0
- package/lib/component/it-notice-modal/utils.d.ts +2 -0
- package/lib/component/it-notice-modal/utils.d.ts.map +1 -0
- package/lib/component/it-notice-modal/utils.js +15 -0
- package/lib/component/it-notice-tab/index.d.ts +6 -0
- package/lib/component/it-notice-tab/index.d.ts.map +1 -0
- package/lib/component/it-notice-tab/index.js +216 -0
- package/lib/component/it-notice-tab/server.d.ts +3 -0
- package/lib/component/it-notice-tab/server.d.ts.map +1 -0
- package/lib/component/it-notice-tab/server.js +20 -0
- package/lib/component/it-notice-tab/style.css +103 -0
- package/lib/component/mail-list-modal/index.d.ts +2 -0
- package/lib/component/mail-list-modal/index.d.ts.map +1 -0
- package/lib/component/mail-list-modal/index.js +316 -0
- package/lib/component/mail-list-modal/server.d.ts +7 -0
- package/lib/component/mail-list-modal/server.d.ts.map +1 -0
- package/lib/component/mail-list-modal/server.js +50 -0
- package/lib/component/mail-list-modal/style.css +132 -0
- package/lib/component/myself-chat-card/index.d.ts +15 -0
- package/lib/component/myself-chat-card/index.d.ts.map +1 -0
- package/lib/component/myself-chat-card/index.js +35 -0
- package/lib/component/myself-chat-card/style.css +22 -0
- package/lib/component/need-answer/index.d.ts +15 -0
- package/lib/component/need-answer/index.d.ts.map +1 -0
- package/lib/component/need-answer/index.js +70 -0
- package/lib/component/need-answer/style.css +19 -0
- package/lib/component/opppsition-chat-card/index.d.ts +11 -0
- package/lib/component/opppsition-chat-card/index.d.ts.map +1 -0
- package/lib/component/opppsition-chat-card/index.js +35 -0
- package/lib/component/opppsition-chat-card/style.css +23 -0
- package/lib/component/question-library/index.d.ts +10 -0
- package/lib/component/question-library/index.d.ts.map +1 -0
- package/lib/component/question-library/index.js +301 -0
- package/lib/component/question-library/server.d.ts +4 -0
- package/lib/component/question-library/server.d.ts.map +1 -0
- package/lib/component/question-library/server.js +27 -0
- package/lib/component/question-library/style.css +75 -0
- package/lib/component/question-tag/index.d.ts +11 -0
- package/lib/component/question-tag/index.d.ts.map +1 -0
- package/lib/component/question-tag/index.js +33 -0
- package/lib/component/question-tag/style.css +12 -0
- package/lib/component/recommend-questions-card/index.d.ts +10 -0
- package/lib/component/recommend-questions-card/index.d.ts.map +1 -0
- package/lib/component/recommend-questions-card/index.js +114 -0
- package/lib/component/recommend-questions-card/style.css +54 -0
- package/lib/component/scroll-view/index.d.ts +3 -0
- package/lib/component/scroll-view/index.d.ts.map +1 -0
- package/lib/component/scroll-view/index.js +10 -0
- package/lib/component/scroll-view/scroll-view.d.ts +18 -0
- package/lib/component/scroll-view/scroll-view.d.ts.map +1 -0
- package/lib/component/scroll-view/scroll-view.js +76 -0
- package/lib/component/scroll-view/style.css +34 -0
- package/lib/component/tab/index.d.ts +2 -0
- package/lib/component/tab/index.d.ts.map +1 -0
- package/lib/component/tab/index.js +28 -0
- package/lib/component/tab/style.css +26 -0
- package/lib/component/tips-answer/index.d.ts +15 -0
- package/lib/component/tips-answer/index.d.ts.map +1 -0
- package/lib/component/tips-answer/index.js +38 -0
- package/lib/component/tips-answer/style.css +10 -0
- package/lib/images/expire-robot.svg +16 -0
- package/lib/images/pc-invalid.svg +11 -0
- package/lib/images/screenshot-5.png +0 -0
- package/lib/index.d.ts +92 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +516 -0
- package/lib/js/const.d.ts +41 -0
- package/lib/js/const.d.ts.map +1 -0
- package/lib/js/const.js +55 -0
- package/lib/js/gen-render-promise.d.ts +9 -0
- package/lib/js/gen-render-promise.d.ts.map +1 -0
- package/lib/js/gen-render-promise.js +37 -0
- package/lib/js/get-time.d.ts +15 -0
- package/lib/js/get-time.d.ts.map +1 -0
- package/lib/js/get-time.js +43 -0
- package/lib/js/hfc-space.d.ts +16 -0
- package/lib/js/hfc-space.d.ts.map +1 -0
- package/lib/js/hfc-space.js +91 -0
- package/lib/js/render-special.d.ts +16 -0
- package/lib/js/render-special.d.ts.map +1 -0
- package/lib/js/render-special.js +61 -0
- package/lib/js/request/fetch.d.ts +10 -0
- package/lib/js/request/fetch.d.ts.map +1 -0
- package/lib/js/request/fetch.js +88 -0
- package/lib/js/request/request.d.ts +3 -0
- package/lib/js/request/request.d.ts.map +1 -0
- package/lib/js/request/request.js +71 -0
- package/lib/js/showMessage.d.ts +15 -0
- package/lib/js/showMessage.d.ts.map +1 -0
- package/lib/js/showMessage.js +83 -0
- package/lib/js/state-immer.d.ts +3 -0
- package/lib/js/state-immer.d.ts.map +1 -0
- package/lib/js/state-immer.js +27 -0
- package/lib/js/timer-executor.d.ts +3 -0
- package/lib/js/timer-executor.d.ts.map +1 -0
- package/lib/js/timer-executor.js +91 -0
- package/lib/js/to-hfc.d.ts +2 -0
- package/lib/js/to-hfc.d.ts.map +1 -0
- package/lib/js/to-hfc.js +14 -0
- package/lib/js/utils.d.ts +3 -0
- package/lib/js/utils.d.ts.map +1 -0
- package/lib/js/utils.js +19 -0
- package/lib/jsx/chat-modal.d.ts +16 -0
- package/lib/jsx/chat-modal.d.ts.map +1 -0
- package/lib/jsx/chat-modal.js +278 -0
- package/lib/server.d.ts +8 -0
- package/lib/server.d.ts.map +1 -0
- package/lib/server.js +58 -0
- package/lib/style.css +174 -0
- package/package.json +57 -0
- package/rct.config.js +8 -0
- package/src/component/answer-itme/index.jsx +64 -0
- package/src/component/answer-itme/style.less +37 -0
- package/src/component/data-container/index.jsx +45 -0
- package/src/component/data-container/style.less +27 -0
- package/src/component/days-tab/index.jsx +114 -0
- package/src/component/days-tab/style.less +55 -0
- package/src/component/days-tab/utils.js +87 -0
- package/src/component/error-boundary/index.jsx +39 -0
- package/src/component/it-notice-modal/columns.js +102 -0
- package/src/component/it-notice-modal/double-tab.jsx +83 -0
- package/src/component/it-notice-modal/index.jsx +404 -0
- package/src/component/it-notice-modal/server.js +43 -0
- package/src/component/it-notice-modal/single-tab.jsx +70 -0
- package/src/component/it-notice-modal/style.less +367 -0
- package/src/component/it-notice-modal/utils.js +8 -0
- package/src/component/it-notice-tab/index.jsx +196 -0
- package/src/component/it-notice-tab/server.js +14 -0
- package/src/component/it-notice-tab/style.less +120 -0
- package/src/component/mail-list-modal/index.jsx +270 -0
- package/src/component/mail-list-modal/server.js +38 -0
- package/src/component/mail-list-modal/style.less +154 -0
- package/src/component/myself-chat-card/index.jsx +27 -0
- package/src/component/myself-chat-card/style.less +30 -0
- package/src/component/need-answer/index.jsx +56 -0
- package/src/component/need-answer/style.less +21 -0
- package/src/component/opppsition-chat-card/index.jsx +25 -0
- package/src/component/opppsition-chat-card/style.less +33 -0
- package/src/component/question-library/index.jsx +316 -0
- package/src/component/question-library/server.js +19 -0
- package/src/component/question-library/style.less +102 -0
- package/src/component/question-tag/index.jsx +27 -0
- package/src/component/question-tag/style.less +15 -0
- package/src/component/recommend-questions-card/index.jsx +111 -0
- package/src/component/recommend-questions-card/style.less +66 -0
- package/src/component/scroll-view/index.js +3 -0
- package/src/component/scroll-view/scroll-view.jsx +74 -0
- package/src/component/scroll-view/style.less +37 -0
- package/src/component/tab/index.jsx +17 -0
- package/src/component/tab/style.less +26 -0
- package/src/component/tips-answer/index.jsx +38 -0
- package/src/component/tips-answer/style.less +11 -0
- package/src/images/expire-robot.svg +16 -0
- package/src/images/pc-invalid.svg +11 -0
- package/src/images/screenshot-5.png +0 -0
- package/src/index.jsx +554 -0
- package/src/js/const.js +48 -0
- package/src/js/gen-render-promise.js +32 -0
- package/src/js/get-time.js +35 -0
- package/src/js/hfc-space.js +91 -0
- package/src/js/render-special.js +64 -0
- package/src/js/request/fetch.js +87 -0
- package/src/js/request/request.js +74 -0
- package/src/js/showMessage.js +81 -0
- package/src/js/state-immer.js +12 -0
- package/src/js/timer-executor.js +37 -0
- package/src/js/to-hfc.js +9 -0
- package/src/js/utils.js +13 -0
- package/src/jsx/chat-modal.jsx +254 -0
- package/src/main.js +1 -0
- package/src/server.js +45 -0
- package/src/style.less +229 -0
- package/test/cases/case-01.assert.js +6 -0
- package/test/cases/case-01.source.jsx +17 -0
- package/test/cases/case-02.assert.js +6 -0
- package/test/cases/case-02.source.jsx +25 -0
- package/test/cases/case-02.style.less +15 -0
- package/test/cases/case-03.source.jsx +69 -0
- package/test/cases/case-03.style.less +3 -0
- package/tsconfig.json +48 -0
- package/typings.d.ts +5 -0
- package/umd/b415d90208c277ba3703.png +0 -0
- package/umd/index.css +1753 -0
- package/umd/index.js +36258 -0
- package/umd/index.min.css +1 -0
- package/umd/index.min.js +657 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _Ellipsis = _interopRequireDefault(require("@shein-components/Ellipsis"));
|
|
10
|
+
var _dataContainer = _interopRequireDefault(require("../data-container"));
|
|
11
|
+
var _daysTab = _interopRequireDefault(require("../days-tab"));
|
|
12
|
+
var _itNoticeModal = require("../it-notice-modal");
|
|
13
|
+
var _stateImmer = _interopRequireDefault(require("../../js/state-immer"));
|
|
14
|
+
var _server = require("./server");
|
|
15
|
+
require("./style.css");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
24
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
25
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
28
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
29
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
30
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
|
+
var styles = {
|
|
32
|
+
"itNoticeTabCon": "shein-components_systemrobotassistant_itNoticeTabCon",
|
|
33
|
+
"mainNoticeCon": "shein-components_systemrobotassistant_mainNoticeCon",
|
|
34
|
+
"cardBody": "shein-components_systemrobotassistant_cardBody",
|
|
35
|
+
"cardItem": "shein-components_systemrobotassistant_cardItem",
|
|
36
|
+
"itemHeader": "shein-components_systemrobotassistant_itemHeader",
|
|
37
|
+
"img": "shein-components_systemrobotassistant_img",
|
|
38
|
+
"total": "shein-components_systemrobotassistant_total",
|
|
39
|
+
"headerRight": "shein-components_systemrobotassistant_headerRight",
|
|
40
|
+
"itemBody": "shein-components_systemrobotassistant_itemBody",
|
|
41
|
+
"listItem": "shein-components_systemrobotassistant_listItem",
|
|
42
|
+
"checkMore": "shein-components_systemrobotassistant_checkMore",
|
|
43
|
+
"clickText": "shein-components_systemrobotassistant_clickText",
|
|
44
|
+
"noticeMenus": "shein-components_systemrobotassistant_noticeMenus",
|
|
45
|
+
"menuItem": "shein-components_systemrobotassistant_menuItem",
|
|
46
|
+
"active": "shein-components_systemrobotassistant_active"
|
|
47
|
+
};
|
|
48
|
+
var cs = _classnames.default.bind(styles);
|
|
49
|
+
var defaultState = {
|
|
50
|
+
detailInfo: [],
|
|
51
|
+
dateList: [],
|
|
52
|
+
seletedDate: '',
|
|
53
|
+
belongSystemList: [],
|
|
54
|
+
curBelongSystemId: ''
|
|
55
|
+
};
|
|
56
|
+
var ITNotice = _ref => {
|
|
57
|
+
var getBelongSystemList = _ref.getBelongSystemList,
|
|
58
|
+
zIndex = _ref.zIndex,
|
|
59
|
+
t = _ref.t;
|
|
60
|
+
var _useImmer = (0, _stateImmer.default)(defaultState),
|
|
61
|
+
_useImmer2 = _slicedToArray(_useImmer, 2),
|
|
62
|
+
state = _useImmer2[0],
|
|
63
|
+
setState = _useImmer2[1];
|
|
64
|
+
var detailInfo = state.detailInfo,
|
|
65
|
+
dateList = state.dateList,
|
|
66
|
+
seletedDate = state.seletedDate,
|
|
67
|
+
curBelongSystemId = state.curBelongSystemId,
|
|
68
|
+
belongSystemList = state.belongSystemList;
|
|
69
|
+
var getData = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
70
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
71
|
+
var res, _ref3, _ref3$info, info, index;
|
|
72
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
73
|
+
while (1) switch (_context.prev = _context.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
_context.next = 2;
|
|
76
|
+
return (0, _server.getVersionPlan)({
|
|
77
|
+
belongSystemId: params.belongSystemId,
|
|
78
|
+
date: params.date
|
|
79
|
+
});
|
|
80
|
+
case 2:
|
|
81
|
+
res = _context.sent;
|
|
82
|
+
if (res) {
|
|
83
|
+
_ref3 = res || {}, _ref3$info = _ref3.info, info = _ref3$info === void 0 ? [] : _ref3$info;
|
|
84
|
+
index = 0;
|
|
85
|
+
setState({
|
|
86
|
+
detailInfo: info.map(item => {
|
|
87
|
+
var _item$jiraInfoList;
|
|
88
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
89
|
+
jiraInfoList: (_item$jiraInfoList = item.jiraInfoList) === null || _item$jiraInfoList === void 0 ? void 0 : _item$jiraInfoList.map(jira => _objectSpread(_objectSpread({}, jira), {}, {
|
|
90
|
+
showIndex: ++index
|
|
91
|
+
}))
|
|
92
|
+
});
|
|
93
|
+
})
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
case 4:
|
|
97
|
+
case "end":
|
|
98
|
+
return _context.stop();
|
|
99
|
+
}
|
|
100
|
+
}, _callee);
|
|
101
|
+
}));
|
|
102
|
+
return function (_x) {
|
|
103
|
+
return _ref2.apply(this, arguments);
|
|
104
|
+
};
|
|
105
|
+
}(), []);
|
|
106
|
+
(0, _react.useEffect)(() => {
|
|
107
|
+
(0, _server.getSystemDateList)().then(res => {
|
|
108
|
+
var _info$, _info$2, _list$, _list$2, _info$3;
|
|
109
|
+
var _ref4 = res || {},
|
|
110
|
+
_ref4$info = _ref4.info,
|
|
111
|
+
info = _ref4$info === void 0 ? [] : _ref4$info;
|
|
112
|
+
var list = (info === null || info === void 0 ? void 0 : (_info$ = info[0]) === null || _info$ === void 0 ? void 0 : _info$.belongSystemList) || [];
|
|
113
|
+
setState({
|
|
114
|
+
dateList: info,
|
|
115
|
+
seletedDate: info === null || info === void 0 ? void 0 : (_info$2 = info[0]) === null || _info$2 === void 0 ? void 0 : _info$2.date,
|
|
116
|
+
curBelongSystemId: list === null || list === void 0 ? void 0 : (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.belongSystemId,
|
|
117
|
+
belongSystemList: list
|
|
118
|
+
});
|
|
119
|
+
if (typeof getBelongSystemList === 'function') {
|
|
120
|
+
getBelongSystemList(list);
|
|
121
|
+
}
|
|
122
|
+
getData({
|
|
123
|
+
belongSystemId: list === null || list === void 0 ? void 0 : (_list$2 = list[0]) === null || _list$2 === void 0 ? void 0 : _list$2.belongSystemId,
|
|
124
|
+
date: info === null || info === void 0 ? void 0 : (_info$3 = info[0]) === null || _info$3 === void 0 ? void 0 : _info$3.date
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}, []);
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
129
|
+
className: styles.itNoticeTabCon
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_daysTab.default, {
|
|
131
|
+
activeDay: seletedDate,
|
|
132
|
+
data: dateList,
|
|
133
|
+
t: t,
|
|
134
|
+
onChange: item => {
|
|
135
|
+
var _list$3, _list$4;
|
|
136
|
+
var list = item.belongSystemList || [];
|
|
137
|
+
setState({
|
|
138
|
+
seletedDate: item.date,
|
|
139
|
+
curBelongSystemId: list === null || list === void 0 ? void 0 : (_list$3 = list[0]) === null || _list$3 === void 0 ? void 0 : _list$3.belongSystemId,
|
|
140
|
+
belongSystemList: list
|
|
141
|
+
});
|
|
142
|
+
getData({
|
|
143
|
+
belongSystemId: list === null || list === void 0 ? void 0 : (_list$4 = list[0]) === null || _list$4 === void 0 ? void 0 : _list$4.belongSystemId,
|
|
144
|
+
date: item.date
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
+
className: styles.mainNoticeCon
|
|
149
|
+
}, /*#__PURE__*/_react.default.createElement(_dataContainer.default, {
|
|
150
|
+
className: styles.cardBody
|
|
151
|
+
}, detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.map(item => {
|
|
152
|
+
var _item$jiraInfoList2, _item$jiraInfoList2$, _item$jiraInfoList3;
|
|
153
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
+
className: styles.cardItem
|
|
155
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
156
|
+
className: styles.itemHeader
|
|
157
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
158
|
+
className: styles.headerLeft
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
160
|
+
className: styles.clickText,
|
|
161
|
+
style: {
|
|
162
|
+
marginRight: 8
|
|
163
|
+
},
|
|
164
|
+
onClick: () => {
|
|
165
|
+
window.open(item.jiraIssueUrl);
|
|
166
|
+
}
|
|
167
|
+
}, item.bizProjectIssueNum || item.projectIssueNum), item.bizOrigDemandOnlineCount > 0 ? /*#__PURE__*/_react.default.createElement("span", {
|
|
168
|
+
className: styles.total
|
|
169
|
+
}, t('累计已上线:'), item.bizOrigDemandOnlineCount) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
170
|
+
className: styles.headerRight
|
|
171
|
+
}, item === null || item === void 0 ? void 0 : (_item$jiraInfoList2 = item.jiraInfoList) === null || _item$jiraInfoList2 === void 0 ? void 0 : (_item$jiraInfoList2$ = _item$jiraInfoList2[0]) === null || _item$jiraInfoList2$ === void 0 ? void 0 : _item$jiraInfoList2$.reporterUserName)), /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
+
className: styles.itemBody
|
|
173
|
+
}, item === null || item === void 0 ? void 0 : (_item$jiraInfoList3 = item.jiraInfoList) === null || _item$jiraInfoList3 === void 0 ? void 0 : _item$jiraInfoList3.map(jira => /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
+
className: styles.listItem
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
+
className: styles.content
|
|
177
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, jira.showIndex, ".\xA0"), /*#__PURE__*/_react.default.createElement("span", {
|
|
178
|
+
className: styles.clickText,
|
|
179
|
+
onClick: () => {
|
|
180
|
+
window.open(jira === null || jira === void 0 ? void 0 : jira.jiraUrl);
|
|
181
|
+
}
|
|
182
|
+
}, jira === null || jira === void 0 ? void 0 : jira.summary))))));
|
|
183
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
184
|
+
className: styles.checkMore,
|
|
185
|
+
onClick: () => {
|
|
186
|
+
// 打开弹窗
|
|
187
|
+
(0, _itNoticeModal.openITNoticeModal)({
|
|
188
|
+
zIndex,
|
|
189
|
+
defaultMenuCollapse: true,
|
|
190
|
+
t
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, t('查看更多公告'))), (belongSystemList === null || belongSystemList === void 0 ? void 0 : belongSystemList.length) > 1 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
194
|
+
className: styles.noticeMenus
|
|
195
|
+
}, belongSystemList === null || belongSystemList === void 0 ? void 0 : belongSystemList.map(item => /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
+
key: item.belongSystemId,
|
|
197
|
+
className: cs(styles.menuItem, curBelongSystemId === item.belongSystemId && styles.active),
|
|
198
|
+
onClick: () => {
|
|
199
|
+
// 切换tab
|
|
200
|
+
setState({
|
|
201
|
+
curBelongSystemId: item.belongSystemId
|
|
202
|
+
});
|
|
203
|
+
getData({
|
|
204
|
+
belongSystemId: item.belongSystemId,
|
|
205
|
+
date: seletedDate
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {
|
|
209
|
+
value: item.belongSystemName,
|
|
210
|
+
popProps: {
|
|
211
|
+
zIndex
|
|
212
|
+
}
|
|
213
|
+
})))) : null);
|
|
214
|
+
};
|
|
215
|
+
var _default = ITNotice;
|
|
216
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-tab/server.js"],"names":[],"mappings":"AAKA,sDAEC;AAID,mDAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSystemDateList = getSystemDateList;
|
|
7
|
+
exports.getVersionPlan = getVersionPlan;
|
|
8
|
+
var _request = _interopRequireDefault(require("../../js/request/request"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
// 返回系统-日期列表
|
|
11
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_getSystemDateList/doc
|
|
12
|
+
function getSystemDateList(argument) {
|
|
13
|
+
return (0, _request.default)('/front/manual/getSystemDateList', argument);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 组件-返回版本计划信息
|
|
17
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_getVersionPlan/doc
|
|
18
|
+
function getVersionPlan(argument) {
|
|
19
|
+
return (0, _request.default)('/front/manual/getVersionPlan', argument);
|
|
20
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.shein-components_systemrobotassistant_itNoticeTabCon {
|
|
2
|
+
padding: 0;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: #F7F9FC;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
word-break: break-all;
|
|
9
|
+
}
|
|
10
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_mainNoticeCon {
|
|
11
|
+
margin-top: 12px;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
flex: 1;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody {
|
|
18
|
+
flex: 1;
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
margin: 0 12px;
|
|
21
|
+
}
|
|
22
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_cardItem {
|
|
23
|
+
margin-bottom: 12px;
|
|
24
|
+
background-color: #FFFFFF;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
box-shadow: 0px 1px 2px 0px rgba(25, 122, 250, 0.15);
|
|
27
|
+
}
|
|
28
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_cardItem:last-child {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemHeader {
|
|
32
|
+
padding: 8px 12px;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
box-shadow: inset 0px -1px 0px 0px #E6EAF0;
|
|
38
|
+
}
|
|
39
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemHeader .shein-components_systemrobotassistant_img {
|
|
40
|
+
margin-right: 8px;
|
|
41
|
+
}
|
|
42
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemHeader .shein-components_systemrobotassistant_total {
|
|
43
|
+
color: #7E848F;
|
|
44
|
+
}
|
|
45
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemHeader .shein-components_systemrobotassistant_headerRight {
|
|
46
|
+
margin-left: 8px;
|
|
47
|
+
color: #7E848F;
|
|
48
|
+
}
|
|
49
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemBody {
|
|
50
|
+
padding: 12px;
|
|
51
|
+
margin-bottom: 0;
|
|
52
|
+
border-radius: 0px 0px 8px 8px;
|
|
53
|
+
}
|
|
54
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemBody .shein-components_systemrobotassistant_listItem {
|
|
55
|
+
margin-top: 12px;
|
|
56
|
+
padding-bottom: 12px;
|
|
57
|
+
border-bottom: 1px solid #E6EAF0;
|
|
58
|
+
}
|
|
59
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemBody .shein-components_systemrobotassistant_listItem:first-child {
|
|
60
|
+
margin-top: 0;
|
|
61
|
+
}
|
|
62
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_cardBody .shein-components_systemrobotassistant_itemBody .shein-components_systemrobotassistant_listItem:last-child {
|
|
63
|
+
padding-bottom: 0;
|
|
64
|
+
border: none;
|
|
65
|
+
}
|
|
66
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_checkMore {
|
|
67
|
+
margin: 12px;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
text-align: center;
|
|
70
|
+
color: #A5ACB8;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_clickText {
|
|
74
|
+
color: #1890FF;
|
|
75
|
+
color: var(--primary-color, #1890FF);
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_noticeMenus {
|
|
79
|
+
position: absolute;
|
|
80
|
+
left: -120px;
|
|
81
|
+
top: 104px;
|
|
82
|
+
width: 120px;
|
|
83
|
+
max-height: 240px;
|
|
84
|
+
padding: 12px 8px;
|
|
85
|
+
box-shadow: 0px 4px 8px 0px rgba(20, 23, 55, 0.05);
|
|
86
|
+
border-radius: 8px 0px 0px 8px;
|
|
87
|
+
border: 1px solid #F5F6FB;
|
|
88
|
+
background: #FFFFFF;
|
|
89
|
+
overflow-y: auto;
|
|
90
|
+
}
|
|
91
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_noticeMenus .shein-components_systemrobotassistant_menuItem {
|
|
92
|
+
padding: 5px 8px;
|
|
93
|
+
border-radius: 4px;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
}
|
|
99
|
+
.shein-components_systemrobotassistant_itNoticeTabCon .shein-components_systemrobotassistant_noticeMenus .shein-components_systemrobotassistant_menuItem.shein-components_systemrobotassistant_active {
|
|
100
|
+
background-color: #E2F2FF;
|
|
101
|
+
color: #1890FF;
|
|
102
|
+
color: var(--primary-color, #1890FF);
|
|
103
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/mail-list-modal/index.jsx"],"names":[],"mappings":";AAUA,gEAiQE"}
|