@titaui/pc 1.10.1 → 1.10.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/communication/CommunicationRecord.js +18 -12
- package/lib/components/communication/index.css +48 -9
- package/lib/components/communication/index.js +67 -28
- package/lib/components/communication/style.js +7 -5
- package/lib/components/dialog-confirm/index.css +2 -1
- package/lib/components/dynamic/components/obj-status/index.css +2 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +16 -54
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +38 -8
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/file-list/components/single-file/index.css +9 -8
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
- package/lib/components/float-fixed-video-modal/index.css +243 -0
- package/lib/components/float-fixed-video-modal/index.js +334 -0
- package/lib/components/float-fixed-video-modal/utils.js +25 -0
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +31 -4
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +9 -3
- package/lib/components/menus/export-modules/demo-menus/menus.js +12 -35
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +1 -1
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +7 -2
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +16 -0
- package/lib/components/video-modal/img/not-muted.svg +16 -0
- package/lib/components/video-modal/img/pause.svg +17 -0
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +16 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +213 -0
- package/lib/components/video-modal/index.js +322 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +16 -0
- package/lib/pages/aha2021/index.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -3
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _utils = _interopRequireDefault(require("./utils"));
|
|
15
|
+
|
|
16
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
17
|
+
|
|
18
|
+
var _videoModal = _interopRequireDefault(require("../video-modal"));
|
|
19
|
+
|
|
20
|
+
var _close = _interopRequireDefault(require("./img/close.png"));
|
|
21
|
+
|
|
22
|
+
var _pause = _interopRequireDefault(require("./img/pause.svg"));
|
|
23
|
+
|
|
24
|
+
var _play = _interopRequireDefault(require("./img/play.svg"));
|
|
25
|
+
|
|
26
|
+
var _volume = _interopRequireDefault(require("./img/volume.svg"));
|
|
27
|
+
|
|
28
|
+
var _full = _interopRequireDefault(require("./img/full.svg"));
|
|
29
|
+
|
|
30
|
+
var _muted = _interopRequireDefault(require("./img/muted.svg"));
|
|
31
|
+
|
|
32
|
+
var _smallFaQi = _interopRequireDefault(require("./img/smallFaQi.png"));
|
|
33
|
+
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
|
+
|
|
46
|
+
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."); }
|
|
47
|
+
|
|
48
|
+
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); }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
|
+
|
|
56
|
+
var preCls = "titaui-pc-float-fixed-video";
|
|
57
|
+
|
|
58
|
+
var FloatVideo = function FloatVideo(props) {
|
|
59
|
+
var _props$visible = props.visible,
|
|
60
|
+
visible = _props$visible === void 0 ? true : _props$visible,
|
|
61
|
+
_props$title = props.title,
|
|
62
|
+
title = _props$title === void 0 ? "如何发起考核" : _props$title,
|
|
63
|
+
_props$videoSrc = props.videoSrc,
|
|
64
|
+
videoSrc = _props$videoSrc === void 0 ? "https://club.tita.com/wp-content/uploads/2022/03/1646114589-20220301140309117.mp4" : _props$videoSrc;
|
|
65
|
+
|
|
66
|
+
var _useState = (0, _react.useState)(false),
|
|
67
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
68
|
+
isHover = _useState2[0],
|
|
69
|
+
setIsHover = _useState2[1];
|
|
70
|
+
|
|
71
|
+
var _useState3 = (0, _react.useState)(false),
|
|
72
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
73
|
+
videoModalVisible = _useState4[0],
|
|
74
|
+
setVideoModalVisible = _useState4[1];
|
|
75
|
+
|
|
76
|
+
var _useState5 = (0, _react.useState)(true),
|
|
77
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
|
+
isPlay = _useState6[0],
|
|
79
|
+
setIsPlay = _useState6[1];
|
|
80
|
+
|
|
81
|
+
var _useState7 = (0, _react.useState)(true),
|
|
82
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
83
|
+
isMuted = _useState8[0],
|
|
84
|
+
setIsMuted = _useState8[1];
|
|
85
|
+
|
|
86
|
+
var _useState9 = (0, _react.useState)("00:00"),
|
|
87
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
88
|
+
totalTime = _useState10[0],
|
|
89
|
+
setTotalTime = _useState10[1];
|
|
90
|
+
|
|
91
|
+
var _useState11 = (0, _react.useState)("00:00"),
|
|
92
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
93
|
+
currentTime = _useState12[0],
|
|
94
|
+
setCurrentTime = _useState12[1];
|
|
95
|
+
|
|
96
|
+
var _useState13 = (0, _react.useState)(false),
|
|
97
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
98
|
+
showDot = _useState14[0],
|
|
99
|
+
setShowDot = _useState14[1];
|
|
100
|
+
|
|
101
|
+
var _useState15 = (0, _react.useState)(false),
|
|
102
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
103
|
+
isMouseDown = _useState16[0],
|
|
104
|
+
setIsMouseDown = _useState16[1];
|
|
105
|
+
|
|
106
|
+
var videoRef = (0, _react.useRef)(document.createElement("video"));
|
|
107
|
+
var volumeRef = (0, _react.useRef)(document.createElement("div"));
|
|
108
|
+
var totalProgressRef = (0, _react.useRef)(document.createElement("div"));
|
|
109
|
+
var progressRef = (0, _react.useRef)(document.createElement("div"));
|
|
110
|
+
var boxRef = (0, _react.useRef)(document.createElement("div"));
|
|
111
|
+
|
|
112
|
+
var handlePlayVideo = function handlePlayVideo() {
|
|
113
|
+
setIsPlay(!isPlay);
|
|
114
|
+
|
|
115
|
+
if (isPlay) {
|
|
116
|
+
videoRef.current.pause();
|
|
117
|
+
} else {
|
|
118
|
+
videoRef.current.play();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var handleChangeVolumeMuted = function handleChangeVolumeMuted() {
|
|
123
|
+
setIsMuted(!isMuted);
|
|
124
|
+
videoRef.current.muted = !videoRef.current.muted;
|
|
125
|
+
}; // 鼠标移入移出进度条区域
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
var handleMouseEnterProgress = function handleMouseEnterProgress() {
|
|
129
|
+
setShowDot(true);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var handleMouseLeaveProgress = function handleMouseLeaveProgress() {
|
|
133
|
+
setShowDot(false);
|
|
134
|
+
}; // 点击音量 音量进度条宽度
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
var getCurrentVolumeWidth = function getCurrentVolumeWidth(e) {
|
|
138
|
+
var currentWidth = e.clientX - (document.documentElement.offsetWidth - 178);
|
|
139
|
+
|
|
140
|
+
if (currentWidth <= 0) {
|
|
141
|
+
setIsMuted(true);
|
|
142
|
+
videoRef.current.muted = true;
|
|
143
|
+
} else if (currentWidth >= 34) {
|
|
144
|
+
volumeRef.current.style.width = "34px";
|
|
145
|
+
videoRef.current.volume = 1;
|
|
146
|
+
} else {
|
|
147
|
+
volumeRef.current.style.width = "".concat(currentWidth, "px");
|
|
148
|
+
videoRef.current.volume = currentWidth / 34;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var handleMouseClickVolume = function handleMouseClickVolume(e) {
|
|
153
|
+
getCurrentVolumeWidth(e);
|
|
154
|
+
}; // 获得点击进度条 进度条的宽度
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
var getCurrentProgressWidth = function getCurrentProgressWidth(e) {
|
|
158
|
+
var currentWidth = e.clientX - (document.documentElement.offsetWidth - 432);
|
|
159
|
+
progressRef.current.style.width = "".concat(currentWidth, "px");
|
|
160
|
+
videoRef.current.currentTime = videoRef.current.duration * currentWidth / 360;
|
|
161
|
+
}; // 点击进度条
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
var handleClickTotalProgress = function handleClickTotalProgress(e) {
|
|
165
|
+
getCurrentProgressWidth(e);
|
|
166
|
+
}; // 拖动进度条
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
var handleMouseDownProgress = function handleMouseDownProgress() {
|
|
170
|
+
setIsMouseDown(true);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var handleMouseMoveProgress = function handleMouseMoveProgress(e) {
|
|
174
|
+
if (isMouseDown) {
|
|
175
|
+
getCurrentProgressWidth(e);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
var handleMouseUpProgress = function handleMouseUpProgress() {
|
|
180
|
+
setIsMouseDown(false);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var handleCloseFloatVideo = function handleCloseFloatVideo() {
|
|
184
|
+
localStorage.setItem("hide_performance_small_video_".concat((0, _bsGlobal.getUserInfo)().Id), "true");
|
|
185
|
+
boxRef.current.style.display = "none";
|
|
186
|
+
videoRef.current.pause();
|
|
187
|
+
videoRef.current.currentTime = 0;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
var handleShowBigVideo = function handleShowBigVideo() {
|
|
191
|
+
handleCloseFloatVideo();
|
|
192
|
+
setVideoModalVisible(true);
|
|
193
|
+
videoRef.current.pause();
|
|
194
|
+
setIsPlay(false);
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
var handleCloseBigVideo = function handleCloseBigVideo() {
|
|
198
|
+
setVideoModalVisible(false);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
var showSmallVideo = function showSmallVideo() {
|
|
202
|
+
videoRef.current.play();
|
|
203
|
+
setIsPlay(true);
|
|
204
|
+
videoRef.current.muted = true;
|
|
205
|
+
setIsMuted(true);
|
|
206
|
+
boxRef.current.style.display = "block";
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
var handleMouseOverVideo = function handleMouseOverVideo() {
|
|
210
|
+
setIsHover(true);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
var handleMouseLeaveVideo = function handleMouseLeaveVideo() {
|
|
214
|
+
setIsHover(false);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
(0, _react.useEffect)(function () {
|
|
218
|
+
videoRef.current.onloadedmetadata = function () {
|
|
219
|
+
setTotalTime(videoRef.current.duration.toString());
|
|
220
|
+
};
|
|
221
|
+
}, [videoRef.current.onloadedmetadata]);
|
|
222
|
+
(0, _react.useEffect)(function () {
|
|
223
|
+
videoRef.current.ontimeupdate = function () {
|
|
224
|
+
setCurrentTime(videoRef.current.currentTime.toString());
|
|
225
|
+
progressRef.current.style.width = "".concat(360 * videoRef.current.currentTime / videoRef.current.duration, "px");
|
|
226
|
+
};
|
|
227
|
+
}, [videoRef.current.ontimeupdate]);
|
|
228
|
+
(0, _react.useEffect)(function () {
|
|
229
|
+
volumeRef.current.style.width = "".concat(34 * videoRef.current.volume, "px");
|
|
230
|
+
}, [videoRef.current.onloadedmetadata]);
|
|
231
|
+
(0, _react.useEffect)(function () {
|
|
232
|
+
if (visible) {
|
|
233
|
+
videoRef.current.play();
|
|
234
|
+
setIsPlay(true);
|
|
235
|
+
videoRef.current.muted = true;
|
|
236
|
+
setIsMuted(true);
|
|
237
|
+
boxRef.current.style.display = "block";
|
|
238
|
+
} else {
|
|
239
|
+
videoRef.current.pause();
|
|
240
|
+
setIsPlay(false);
|
|
241
|
+
videoRef.current.muted = true;
|
|
242
|
+
setIsMuted(true);
|
|
243
|
+
boxRef.current.style.display = "none";
|
|
244
|
+
}
|
|
245
|
+
}, [visible]);
|
|
246
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
247
|
+
className: preCls,
|
|
248
|
+
ref: boxRef,
|
|
249
|
+
onMouseOver: handleMouseOverVideo,
|
|
250
|
+
onMouseLeave: handleMouseLeaveVideo,
|
|
251
|
+
onFocus: handleMouseOverVideo
|
|
252
|
+
}, /*#__PURE__*/_react["default"].createElement("video", {
|
|
253
|
+
ref: videoRef,
|
|
254
|
+
src: videoSrc,
|
|
255
|
+
loop: true,
|
|
256
|
+
autoPlay: true,
|
|
257
|
+
muted: true,
|
|
258
|
+
poster: _smallFaQi["default"],
|
|
259
|
+
className: "".concat(preCls, "__video")
|
|
260
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
261
|
+
className: (0, _classnames["default"])("".concat(preCls, "__progress"), _defineProperty({}, "".concat(preCls, "__progress--show"), isHover)),
|
|
262
|
+
onMouseEnter: handleMouseEnterProgress,
|
|
263
|
+
onMouseLeave: handleMouseLeaveProgress,
|
|
264
|
+
ref: totalProgressRef,
|
|
265
|
+
onClick: handleClickTotalProgress,
|
|
266
|
+
onMouseDown: handleMouseDownProgress,
|
|
267
|
+
onMouseMove: handleMouseMoveProgress,
|
|
268
|
+
onMouseUp: handleMouseUpProgress
|
|
269
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
270
|
+
className: "".concat(preCls, "__progress-current"),
|
|
271
|
+
ref: progressRef
|
|
272
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
273
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__progress-current-dot"), showDot))
|
|
274
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
275
|
+
className: (0, _classnames["default"])("".concat(preCls, "__controls"), _defineProperty({}, "".concat(preCls, "__controls--show"), isHover))
|
|
276
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
277
|
+
className: "".concat(preCls, "__controls-left")
|
|
278
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
|
+
onClick: handlePlayVideo,
|
|
280
|
+
className: (0, _classnames["default"])("".concat(preCls, "__controls-play"), "".concat(preCls, "__controls-button"))
|
|
281
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
282
|
+
src: isPlay ? _play["default"] : _pause["default"],
|
|
283
|
+
alt: "play"
|
|
284
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
285
|
+
className: "".concat(preCls, "__controls-time")
|
|
286
|
+
}, (0, _utils["default"])(currentTime)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
287
|
+
className: "".concat(preCls, "__controls-time")
|
|
288
|
+
}, " / ".concat((0, _utils["default"])(totalTime)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
289
|
+
className: "".concat(preCls, "__controls-right")
|
|
290
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
291
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-button"), isMuted), _defineProperty({}, "".concat(preCls, "__controls-volume"), !isMuted))
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-progress--hidden"), isMuted), "".concat(preCls, "__controls-volume-progress")),
|
|
294
|
+
onClick: handleMouseClickVolume
|
|
295
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
296
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-current--hidden"), isMuted), "".concat(preCls, "__controls-volume-current")),
|
|
297
|
+
ref: volumeRef
|
|
298
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
299
|
+
onClick: handleChangeVolumeMuted
|
|
300
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
301
|
+
src: isMuted ? _muted["default"] : _volume["default"],
|
|
302
|
+
className: "".concat(preCls, "__controls-play"),
|
|
303
|
+
alt: "\u97F3\u91CF"
|
|
304
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
305
|
+
className: "".concat(preCls, "__controls-full"),
|
|
306
|
+
onClick: handleShowBigVideo
|
|
307
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
308
|
+
src: _full["default"],
|
|
309
|
+
alt: "full"
|
|
310
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
311
|
+
className: (0, _classnames["default"])("".concat(preCls, "__mask1"), _defineProperty({}, "".concat(preCls, "__mask1--show"), isHover))
|
|
312
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
313
|
+
className: "".concat(preCls, "__mask1-title")
|
|
314
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
315
|
+
onClick: handleCloseFloatVideo
|
|
316
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
317
|
+
src: _close["default"],
|
|
318
|
+
alt: "\u5173\u95ED",
|
|
319
|
+
className: "".concat(preCls, "__mask1-close")
|
|
320
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
321
|
+
className: (0, _classnames["default"])("".concat(preCls, "__mask2"), _defineProperty({}, "".concat(preCls, "__mask2--show"), isHover))
|
|
322
|
+
}), /*#__PURE__*/_react["default"].createElement(_videoModal["default"], {
|
|
323
|
+
title: title,
|
|
324
|
+
videoSrc: videoSrc,
|
|
325
|
+
visible: videoModalVisible,
|
|
326
|
+
onClose: handleCloseBigVideo,
|
|
327
|
+
onCancel: handleCloseBigVideo,
|
|
328
|
+
canMini: true,
|
|
329
|
+
showSmallVideo: showSmallVideo
|
|
330
|
+
}));
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
var _default = FloatVideo;
|
|
334
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var formatSecToDate = function formatSecToDate(value) {
|
|
9
|
+
var result = parseInt(value, 10);
|
|
10
|
+
var m = Math.floor(result / 60 % 60) < 10 ? "0".concat(Math.floor(result / 60 % 60)) : Math.floor(result / 60 % 60);
|
|
11
|
+
var s = Math.floor(result % 60) < 10 ? "0".concat(Math.floor(result % 60)) : Math.floor(result % 60);
|
|
12
|
+
var res = "";
|
|
13
|
+
|
|
14
|
+
if (m !== "00") {
|
|
15
|
+
res += "".concat(m, ":");
|
|
16
|
+
} else {
|
|
17
|
+
res += "00:";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
res += "".concat(s);
|
|
21
|
+
return res;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var _default = formatSecToDate;
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
12
|
+
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
13
|
+
popContainer: document.body
|
|
14
|
+
});
|
|
13
15
|
|
|
14
16
|
exports["default"] = _default;
|
|
@@ -15,6 +15,8 @@ var _MblogContent = _interopRequireDefault(require("./components/MblogContent"))
|
|
|
15
15
|
|
|
16
16
|
var _MblogAction = _interopRequireDefault(require("./components/MblogAction"));
|
|
17
17
|
|
|
18
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
19
|
+
|
|
18
20
|
var _bsGlobal = require("../../utils/bs-global");
|
|
19
21
|
|
|
20
22
|
var _index = require("./common/index");
|
|
@@ -25,6 +27,8 @@ var _platform = require("../../utils/platform");
|
|
|
25
27
|
|
|
26
28
|
var _getLocale = require("../../utils/getLocale");
|
|
27
29
|
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
33
|
|
|
30
34
|
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); }
|
|
@@ -51,6 +55,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
51
55
|
|
|
52
56
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
57
|
|
|
58
|
+
var prefix = 'titaui-mblog';
|
|
59
|
+
|
|
54
60
|
var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
55
61
|
_inherits(MBlog, _PureComponent);
|
|
56
62
|
|
|
@@ -235,6 +241,11 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
235
241
|
// 取消
|
|
236
242
|
_this.props.onMblogSubmit(submitType);
|
|
237
243
|
}
|
|
244
|
+
|
|
245
|
+
_this.setState({
|
|
246
|
+
textareaValue: '',
|
|
247
|
+
uploadSuccessFilesPath: []
|
|
248
|
+
});
|
|
238
249
|
};
|
|
239
250
|
|
|
240
251
|
_this._dropHandler = function (event) {
|
|
@@ -398,7 +409,8 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
398
409
|
_this$props3$submitTe = _this$props3.submitText,
|
|
399
410
|
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)("Mod_Publish") : _this$props3$submitTe,
|
|
400
411
|
setTextareaRef = _this$props3.setTextareaRef,
|
|
401
|
-
disableRangeSelect = _this$props3.disableRangeSelect
|
|
412
|
+
disableRangeSelect = _this$props3.disableRangeSelect,
|
|
413
|
+
showUser = _this$props3.showUser;
|
|
402
414
|
var _this$state2 = this.state,
|
|
403
415
|
localStroageKey = _this$state2.localStroageKey,
|
|
404
416
|
visibility = _this$state2.visibility,
|
|
@@ -411,7 +423,21 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
411
423
|
isAtAll = _this$state2.isAtAll;
|
|
412
424
|
var fSize = (0, _bsGlobal.getUploadMaxSize)();
|
|
413
425
|
var fTip = attachmentTipText || (0, _getLocale.getLocale)("OKR_MyO_KRP_Draganddropu").replace("50MB", "".concat(fSize, "MB"));
|
|
414
|
-
|
|
426
|
+
var user = (0, _bsGlobal.getUserInfo)();
|
|
427
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
428
|
+
className: prefix
|
|
429
|
+
}, showUser && /*#__PURE__*/_react["default"].createElement("div", {
|
|
430
|
+
className: "".concat(prefix, "__avatar")
|
|
431
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
432
|
+
size: {
|
|
433
|
+
width: 28,
|
|
434
|
+
textNum: 1,
|
|
435
|
+
fontSize: 14
|
|
436
|
+
},
|
|
437
|
+
name: user.Name,
|
|
438
|
+
color: user.UserAvatar.Color,
|
|
439
|
+
src: user.UserAvatar.Medium
|
|
440
|
+
})), /*#__PURE__*/_react["default"].createElement(_style.MBlogBox, {
|
|
415
441
|
className: className,
|
|
416
442
|
ref: "mblogbox",
|
|
417
443
|
onDrop: this._dropHandler,
|
|
@@ -490,7 +516,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
490
516
|
id: this.previewid
|
|
491
517
|
}), !(0, _platform.isPlatform)("wx") && isShowDragMask && /*#__PURE__*/_react["default"].createElement(_style.DragEffect, {
|
|
492
518
|
className: "tu-icon-inbox-upload"
|
|
493
|
-
}));
|
|
519
|
+
})));
|
|
494
520
|
}
|
|
495
521
|
}]);
|
|
496
522
|
|
|
@@ -531,5 +557,6 @@ MBlog.defaultProps = {
|
|
|
531
557
|
// 1公开,2私密 3部门
|
|
532
558
|
isShowRangeDropDown: true,
|
|
533
559
|
isShowBtnCancel: true,
|
|
534
|
-
submitStatus: 0
|
|
560
|
+
submitStatus: 0,
|
|
561
|
+
showUser: false
|
|
535
562
|
};
|
|
@@ -13,12 +13,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n flex: 1;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.MBlogBox = MBlogBox;
|
|
20
20
|
|
|
21
|
-
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius:
|
|
21
|
+
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 12px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 120px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
22
22
|
|
|
23
23
|
exports.DivMblogContent = DivMblogContent;
|
|
24
24
|
|
|
@@ -47,7 +47,7 @@ var Tips = _styledComponents["default"].div(_templateObject7 || (_templateObject
|
|
|
47
47
|
|
|
48
48
|
exports.Tips = Tips;
|
|
49
49
|
|
|
50
|
-
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding:
|
|
50
|
+
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding: 16px 0 2px 0;\n font-size: 13px;\n line-height: 20px;\n color: #565E66;\n background-color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))); // 左侧按钮
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
exports.MblogActionWrapper = MblogActionWrapper;
|
|
@@ -66,7 +66,7 @@ var IconSpan = _styledComponents["default"].span(_templateObject11 || (_template
|
|
|
66
66
|
|
|
67
67
|
exports.IconSpan = IconSpan;
|
|
68
68
|
|
|
69
|
-
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width:
|
|
69
|
+
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width: 80px;\n height: 32px;\n box-sizing: border-box;\n border-radius: 18px;\n border: none;\n }\n"])));
|
|
70
70
|
|
|
71
71
|
exports.RightBtnGroupWrapper = RightBtnGroupWrapper;
|
|
72
72
|
|
|
@@ -25,7 +25,13 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
_createClass(_default, [{
|
|
26
26
|
key: "highlight",
|
|
27
27
|
value: function highlight(cb) {
|
|
28
|
-
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);
|
|
28
|
+
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
key: "isChart",
|
|
32
|
+
value: function isChart() {
|
|
33
|
+
var pathname = this.history.location.pathname;
|
|
34
|
+
return pathname.match(/demofree\/charts/);
|
|
29
35
|
}
|
|
30
36
|
}, {
|
|
31
37
|
key: "isUnAssigned",
|
|
@@ -35,7 +41,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
35
41
|
search = _this$history$locatio.search;
|
|
36
42
|
|
|
37
43
|
if (this.isManager === 1) {
|
|
38
|
-
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
44
|
+
return pathname.match(/demofree\/list/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?unassigned/);
|
|
@@ -46,7 +52,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
46
52
|
var _this$history$locatio2 = this.history.location,
|
|
47
53
|
pathname = _this$history$locatio2.pathname,
|
|
48
54
|
search = _this$history$locatio2.search;
|
|
49
|
-
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?assigned/));
|
|
55
|
+
return pathname.match(/demofree\/list/) && (!search || search.match(/selected[\s]*?=[\s]*?assigned/));
|
|
50
56
|
}
|
|
51
57
|
}, {
|
|
52
58
|
key: "isReserved",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -28,6 +28,8 @@ var PAGE_DONE_DEMOFREE = "done";
|
|
|
28
28
|
exports.PAGE_DONE_DEMOFREE = PAGE_DONE_DEMOFREE;
|
|
29
29
|
var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
30
30
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
31
|
+
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
32
|
+
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
31
33
|
|
|
32
34
|
var DemoMenuData = /*#__PURE__*/function () {
|
|
33
35
|
function DemoMenuData() {
|
|
@@ -73,40 +75,15 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
73
75
|
href: "#/demofree/list?selected=ignore",
|
|
74
76
|
isShow: this.isManager
|
|
75
77
|
}]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// label: "未处理",
|
|
86
|
-
// key: "ignore",
|
|
87
|
-
// href: "#/demofree/custom?selected=未处理",
|
|
88
|
-
// isShow: true,
|
|
89
|
-
// },{
|
|
90
|
-
// icon: "",
|
|
91
|
-
// label: "待定",
|
|
92
|
-
// key: "ignore",
|
|
93
|
-
// href: "#/demofree/custom?selected=待定",
|
|
94
|
-
// isShow: true,
|
|
95
|
-
// },{
|
|
96
|
-
// icon: "",
|
|
97
|
-
// label: "已续费",
|
|
98
|
-
// key: "ignore",
|
|
99
|
-
// href: "#/demofree/custom?selected=已续费",
|
|
100
|
-
// isShow: true,
|
|
101
|
-
// },{
|
|
102
|
-
// icon: "",
|
|
103
|
-
// label: "未续费",
|
|
104
|
-
// key: "ignore",
|
|
105
|
-
// href: "#/demofree/custom?selected=未续费",
|
|
106
|
-
// isShow: true,
|
|
107
|
-
// }]
|
|
108
|
-
// },
|
|
109
|
-
];
|
|
78
|
+
}, {
|
|
79
|
+
icon: "KH-help",
|
|
80
|
+
label: "预约演示报表",
|
|
81
|
+
key: "charts",
|
|
82
|
+
href: "#/demofree/charts",
|
|
83
|
+
isShow: this.isManager,
|
|
84
|
+
children: [],
|
|
85
|
+
type: _index.MENU_ITEM_NOE
|
|
86
|
+
}];
|
|
110
87
|
}
|
|
111
88
|
|
|
112
89
|
_createClass(DemoMenuData, [{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -17,10 +17,13 @@ require("./index.css");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
var EEmpty = function EEmpty(props) {
|
|
21
21
|
var index = props.index;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
23
|
key: index,
|
|
24
24
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-empty-node"))
|
|
25
|
-
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject")
|
|
26
|
-
}
|
|
25
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject"));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = EEmpty;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
.tita-okrdt-tree__e-empty-node {
|
|
380
380
|
font-size: 12px;
|
|
381
381
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
382
|
-
color: #
|
|
382
|
+
color: #A4ACB9;
|
|
383
383
|
line-height: 18px;
|
|
384
384
|
padding-left: 12px;
|
|
385
385
|
}
|