@titaui/pc 1.11.52 → 1.11.55

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.
Files changed (117) hide show
  1. package/lib/components/button/images/blue.svg +21 -0
  2. package/lib/components/button/images/red.svg +21 -0
  3. package/lib/components/button/images/white.svg +19 -0
  4. package/lib/components/button/rect-btn/index.js +3 -3
  5. package/lib/components/checkbox/index.css +4 -0
  6. package/lib/components/create-okr-modal/index.js +3 -1
  7. package/lib/components/dynamic/dynamic-list/index.js +14 -7
  8. package/lib/components/dynamic/index.js +9 -12
  9. package/lib/components/dynamic/request-api.js +7 -68
  10. package/lib/components/nav-top/index.js +2 -2
  11. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  12. package/lib/components/okr-detail/e-list/index.js +2 -2
  13. package/lib/components/period-selector/interface.js +7 -0
  14. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
  15. package/lib/components/search-input/index.css +1 -1
  16. package/lib/components/select-layer/index.css +1 -1
  17. package/lib/components/task-relation-modal/helper.js +139 -2
  18. package/lib/components/task-relation-modal/image/loading.gif +0 -0
  19. package/lib/components/task-relation-modal/index.js +9 -0
  20. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
  21. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
  22. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
  23. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
  24. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
  25. package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
  26. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
  27. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
  28. package/lib/components/task-relation-modal/request-api.js +28 -2
  29. package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
  30. package/lib/components/task-relation-modal/search/principal.js +20 -5
  31. package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
  32. package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
  33. package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
  34. package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
  35. package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
  36. package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
  37. package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
  38. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
  39. package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
  40. package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
  41. package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
  42. package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
  43. package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
  44. package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
  45. package/lib/components/task-relation-modal/work-relation/index.css +0 -0
  46. package/lib/components/task-relation-modal/work-relation/index.js +256 -0
  47. package/lib/components/tooltip/index.js +3 -0
  48. package/lib/components/tooltip/tooltip-rows/index.css +26 -0
  49. package/lib/components/{dynamic/advertise → tooltip/tooltip-rows}/index.js +65 -85
  50. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
  51. package/lib/utils/planDataJson.js +11115 -0
  52. package/package.json +2 -2
  53. package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
  54. package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
  55. package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
  56. package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
  57. package/lib/components/dynamic/advertise/index.css +0 -21
  58. package/lib/components/dynamic/advertise/interface.js +0 -5
  59. package/lib/components/dynamic/advertise/util.js +0 -28
  60. package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
  61. package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
  62. package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
  63. package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
  64. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
  65. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  66. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  67. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  68. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
  69. package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
  70. package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
  71. package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
  72. package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  73. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
  74. package/lib/components/dynamic/dynamic-liking/index.css +0 -81
  75. package/lib/components/dynamic/dynamic-liking/item.js +0 -75
  76. package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
  77. package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
  78. package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
  79. package/lib/components/dynamic/dynamic-topping/index.css +0 -141
  80. package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
  81. package/lib/components/dynamic/dynamic-topping/item.js +0 -153
  82. package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
  83. package/lib/components/dynamic/dynamic.css +0 -173
  84. package/lib/components/dynamic/dynamic.js +0 -428
  85. package/lib/components/dynamic/export-module/index.js +0 -37
  86. package/lib/components/dynamic/img/dynamic-top.svg +0 -14
  87. package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
  88. package/lib/components/dynamic/my-team/img/line.png +0 -0
  89. package/lib/components/dynamic/my-team/img/team.png +0 -0
  90. package/lib/components/dynamic/my-team/index.css +0 -184
  91. package/lib/components/dynamic/my-team/index.js +0 -263
  92. package/lib/components/dynamic/my-team/request-api.js +0 -52
  93. package/lib/components/dynamic/my-team/util.js +0 -20
  94. package/lib/components/dynamic/new-ui.css +0 -192
  95. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
  96. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
  97. package/lib/components/dynamic/online-broadcast/data.js +0 -95
  98. package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
  99. package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
  100. package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
  101. package/lib/components/dynamic/online-broadcast/index.css +0 -46
  102. package/lib/components/dynamic/online-broadcast/index.js +0 -61
  103. package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
  104. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
  105. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
  106. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
  107. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
  108. package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
  109. package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
  110. package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
  111. package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -44
  112. package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
  113. package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
  114. package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
  115. package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
  116. package/lib/components/dynamic/quick-operation/index.css +0 -51
  117. package/lib/components/dynamic/quick-operation/index.js +0 -120
@@ -1,263 +0,0 @@
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 _util = require("./util");
15
-
16
- var _requestApi = require("./request-api");
17
-
18
- var _bsGlobal = require("../../../utils/bs-global");
19
-
20
- var _avatar = _interopRequireDefault(require("../../avatar"));
21
-
22
- var _conditionRender = _interopRequireDefault(require("../../condition-render"));
23
-
24
- var _addSubordinate = _interopRequireDefault(require("./img/add-subordinate.png"));
25
-
26
- var _userSelector = _interopRequireDefault(require("../../user-selector"));
27
-
28
- var _toast = _interopRequireDefault(require("../../toast"));
29
-
30
- var _team = _interopRequireDefault(require("./img/team.png"));
31
-
32
- var _getLocale = require("../../../utils/getLocale");
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43
-
44
- 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."); }
45
-
46
- 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); }
47
-
48
- 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; }
49
-
50
- 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; }
51
-
52
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
-
54
- var prefix = "titaui-dynamic-my-team";
55
-
56
- var DynamicMyTeam = function DynamicMyTeam() {
57
- var loginUser = (0, _bsGlobal.getBSGlobal)("loginUserInfo");
58
-
59
- var _useState = (0, _react.useState)(),
60
- _useState2 = _slicedToArray(_useState, 2),
61
- superior = _useState2[0],
62
- setSuperior = _useState2[1];
63
-
64
- var _useState3 = (0, _react.useState)([]),
65
- _useState4 = _slicedToArray(_useState3, 2),
66
- subordinate = _useState4[0],
67
- setSubordinate = _useState4[1];
68
-
69
- var _useState5 = (0, _react.useState)(false),
70
- _useState6 = _slicedToArray(_useState5, 2),
71
- isMouseEnter = _useState6[0],
72
- setIsMouseEnter = _useState6[1];
73
-
74
- var _useState7 = (0, _react.useState)(0),
75
- _useState8 = _slicedToArray(_useState7, 2),
76
- scrollLeft = _useState8[0],
77
- setScrollLeft = _useState8[1];
78
-
79
- var subordinateContainerRef = (0, _react.useRef)();
80
- var selectorRef = (0, _react.useRef)();
81
-
82
- var handleScrollToLeft = function handleScrollToLeft() {
83
- subordinateContainerRef.current.scrollTo({
84
- left: scrollLeft - 96,
85
- behavior: "smooth"
86
- });
87
- setScrollLeft(function (data) {
88
- return data - 96;
89
- });
90
- };
91
-
92
- var handleScrollToRight = function handleScrollToRight() {
93
- subordinateContainerRef.current.scrollTo({
94
- left: scrollLeft + 96,
95
- behavior: "smooth"
96
- });
97
- setScrollLeft(function (data) {
98
- return data + 96;
99
- });
100
- };
101
-
102
- var handleMouseEnter = function handleMouseEnter() {
103
- setIsMouseEnter(true);
104
- };
105
-
106
- var handleMouseLeave = function handleMouseLeave() {
107
- setIsMouseEnter(false);
108
- };
109
-
110
- var getSubordinateData = function getSubordinateData() {
111
- (0, _requestApi.getSubordinate)().then(function (resp) {
112
- if (resp.Code === 1) {
113
- setSubordinate(resp.Data.data.members.filter(function (item) {
114
- return item.user.userId !== loginUser.Id;
115
- }));
116
- }
117
- });
118
- };
119
-
120
- var handleSelected = function handleSelected(_ref) {
121
- var _ref2 = _slicedToArray(_ref, 1),
122
- user = _ref2[0];
123
-
124
- (0, _requestApi.addSubPerson)(user.data.userId).then(function (resp) {
125
- if (resp.Code === 1 && resp.Data) {
126
- _toast["default"].Success("添加成功", {
127
- canClose: false
128
- });
129
-
130
- setTimeout(getSubordinateData, 1500);
131
- } else {
132
- _toast["default"].Error(resp.Message, {
133
- canClose: false
134
- });
135
- }
136
- });
137
- };
138
-
139
- (0, _react.useEffect)(function () {
140
- (0, _requestApi.getSuperior)().then(function (resp) {
141
- if (resp.Code === 1) {
142
- setSuperior(resp.Data[0].parentUser);
143
- }
144
- });
145
- getSubordinateData();
146
- }, []);
147
- return /*#__PURE__*/_react["default"].createElement("div", {
148
- className: prefix
149
- }, /*#__PURE__*/_react["default"].createElement("div", {
150
- className: "".concat(prefix, "__container")
151
- }, /*#__PURE__*/_react["default"].createElement("div", {
152
- className: "".concat(prefix, "__header")
153
- }, /*#__PURE__*/_react["default"].createElement("span", {
154
- className: "".concat(prefix, "__header-icon")
155
- }, /*#__PURE__*/_react["default"].createElement("img", {
156
- className: "".concat(prefix, "__header-icon-img"),
157
- src: _team["default"]
158
- })), /*#__PURE__*/_react["default"].createElement("span", {
159
- className: "".concat(prefix, "__header-text")
160
- }, (0, _getLocale.getLocale)("Feed_Title_Myteam"))), /*#__PURE__*/_react["default"].createElement("div", {
161
- className: "".concat(prefix, "__content")
162
- }, superior && /*#__PURE__*/_react["default"].createElement("div", {
163
- className: "".concat(prefix, "__content-superior")
164
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
165
- size: {
166
- width: 40,
167
- textNum: 1,
168
- fontSize: 14
169
- },
170
- src: superior.avatar.Medium,
171
- userId: superior.userId,
172
- name: superior.name,
173
- color: superior.avatar.Color,
174
- showNameTips: true
175
- }), /*#__PURE__*/_react["default"].createElement("span", {
176
- className: "".concat(prefix, "__content-superior-text")
177
- }, (0, _getLocale.getLocale)("Feed_Title_Directsuperior"))), /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
178
- size: {
179
- width: 56,
180
- textNum: 3,
181
- fontSize: 14
182
- },
183
- src: loginUser.UserAvatar.Medium,
184
- userId: loginUser.Id,
185
- name: loginUser.Name,
186
- color: loginUser.UserAvatar.Color,
187
- showNameTips: true
188
- }), /*#__PURE__*/_react["default"].createElement("div", {
189
- className: "".concat(prefix, "__content-add-subordinate")
190
- }, (0, _util.showAddIcon)() && /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
191
- ref: selectorRef,
192
- multiple: false,
193
- position: "centerRight",
194
- onSelect: handleSelected,
195
- disabledDepartSelect: true,
196
- searchedPanes: {
197
- user: true,
198
- depart: false,
199
- group: false
200
- },
201
- popupAlign: {
202
- offset: [0, 0],
203
- overflow: {
204
- adjustX: true,
205
- adjustY: true
206
- },
207
- targetOffset: [12, 209]
208
- },
209
- panes: {
210
- depart: true
211
- },
212
- trigger: /*#__PURE__*/_react["default"].createElement("span", {
213
- className: "".concat(prefix, "__content-add-subordinate-icon")
214
- }, /*#__PURE__*/_react["default"].createElement("img", {
215
- className: "".concat(prefix, "__content-add-subordinate-icon-img"),
216
- src: _addSubordinate["default"]
217
- }))
218
- })), /*#__PURE__*/_react["default"].createElement("div", {
219
- className: "".concat(prefix, "__content-subordinate"),
220
- onMouseEnter: handleMouseEnter,
221
- onMouseLeave: handleMouseLeave
222
- }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
223
- condition: subordinate.length > 0
224
- }, /*#__PURE__*/_react["default"].createElement("div", {
225
- className: "".concat(prefix, "__subordinates")
226
- }, /*#__PURE__*/_react["default"].createElement("div", {
227
- className: "".concat(prefix, "__subordinates-left-mask")
228
- }, isMouseEnter && /*#__PURE__*/_react["default"].createElement("i", {
229
- onClick: handleScrollToLeft,
230
- className: (0, _classnames["default"])("tu-icon-left", "".concat(prefix, "__subordinates-left-mask-icon"))
231
- })), /*#__PURE__*/_react["default"].createElement("div", {
232
- className: "".concat(prefix, "__subordinates-content"),
233
- ref: subordinateContainerRef
234
- }, subordinate.map(function (item) {
235
- var user = item.user;
236
- return /*#__PURE__*/_react["default"].createElement("span", {
237
- className: "".concat(prefix, "__subordinates-item")
238
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
239
- size: {
240
- width: 40,
241
- textNum: 1,
242
- fontSize: 14
243
- },
244
- src: user.avatar.Medium,
245
- userId: user.userId,
246
- name: user.name,
247
- color: user.avatar.Color,
248
- showNameTips: true
249
- }));
250
- })), /*#__PURE__*/_react["default"].createElement("div", {
251
- className: "".concat(prefix, "__subordinates-right-mask")
252
- }, isMouseEnter && /*#__PURE__*/_react["default"].createElement("i", {
253
- onClick: handleScrollToRight,
254
- className: (0, _classnames["default"])("tu-icon-left", "".concat(prefix, "__subordinates-right-mask-icon"))
255
- })))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
256
- condition: subordinate.length === 0
257
- }, /*#__PURE__*/_react["default"].createElement("div", {
258
- className: "".concat(prefix, "__content-subordinate--empty")
259
- }, (0, _getLocale.getLocale)("Feed_Tab_HaveSubordinates")))))));
260
- };
261
-
262
- var _default = DynamicMyTeam;
263
- exports["default"] = _default;
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSuperior = exports.getSubordinate = exports.addSubPerson = void 0;
7
-
8
- var _qs = _interopRequireDefault(require("qs"));
9
-
10
- var _request = require("../../../utils/request");
11
-
12
- var _bsGlobal = require("../../../utils/bs-global");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- var loginUser = (0, _bsGlobal.getBSGlobal)("loginUserInfo");
17
-
18
- var getSuperior = function getSuperior() {
19
- return (0, _request.rget)("v1")("org/DirectSuperior?to_user_id=".concat(loginUser.Id));
20
- };
21
-
22
- exports.getSuperior = getSuperior;
23
-
24
- var addSubPerson = function addSubPerson(id) {
25
- return (0, _request.rput)("v1")("user", {
26
- subordinate_user_id: id
27
- }, {
28
- headers: {
29
- "Content-Type": "application/x-www-form-urlencoded"
30
- },
31
- transformRequest: _qs["default"].stringify
32
- });
33
- };
34
-
35
- exports.addSubPerson = addSubPerson;
36
-
37
- var getSubordinate = function getSubordinate() {
38
- return (0, _request.rpost)("v2")("WorkTable/View?channel_type=2&view_name=Team", {
39
- view_name: "Team",
40
- startNum: 1,
41
- count: 500,
42
- WorkTableType: 0,
43
- SubType: 0
44
- }, {
45
- headers: {
46
- "Content-Type": "application/x-www-form-urlencoded"
47
- },
48
- transformRequest: _qs["default"].stringify
49
- });
50
- };
51
-
52
- exports.getSubordinate = getSubordinate;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.showAddIcon = void 0;
7
-
8
- var _bsGlobal = require("../../../utils/bs-global");
9
-
10
- var showAddIcon = function showAddIcon() {
11
- // const isUseSetOrg = getBSGlobal("tenant_function").IsUseSetOrg;
12
- // const header = getBSGlobal("Header");
13
- // const isOpenApp908 = header.find((item) => item.Code == "908");
14
- // const isOpenApp830 = header.find((item) => item.Code == "830");
15
- // return isUseSetOrg && !isOpenApp908 && !isOpenApp830;
16
- var versionInfo = (0, _bsGlobal.getBSGlobal)("tenantAuthentication");
17
- return versionInfo.Version === 1;
18
- };
19
-
20
- exports.showAddIcon = showAddIcon;
@@ -1,192 +0,0 @@
1
- .titaui-new-ui-dynamic {
2
- position: relative;
3
- display: flex;
4
- flex-direction: column;
5
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
6
- height: 100%;
7
- }
8
-
9
- .titaui-new-ui-dynamic__header {
10
- position: absolute;
11
- display: flex;
12
- justify-content: space-between;
13
- height: 68px;
14
- background: #ffffff;
15
- box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
16
- padding: 0 24px;
17
- width: calc(100% - 14px);
18
- box-sizing: border-box;
19
- z-index: 3;
20
- border-radius: 12px;
21
- }
22
-
23
- .titaui-new-ui-dynamic__header--content-scroll {
24
- background: rgba(255, 255, 255, 0.92);
25
- backdrop-filter: blur(4px);
26
- }
27
-
28
- .titaui-new-ui-dynamic__header-search {
29
- display: flex;
30
- align-items: center;
31
- }
32
-
33
- .titaui-new-ui-dynamic__header-tabs {
34
- display: flex;
35
- }
36
-
37
- .titaui-new-ui-dynamic__content {
38
- position: relative;
39
- display: flex;
40
- flex: 1;
41
- overflow: auto;
42
- padding: 78px 0 0 0;
43
- box-sizing: border-box;
44
- }
45
-
46
- .titaui-new-ui-dynamic__content-left {
47
- display: flex;
48
- flex-direction: column;
49
- width: calc(100% - 288px);
50
- }
51
-
52
- .titaui-new-ui-dynamic__content-left-tabs {
53
- display: flex;
54
- align-items: center;
55
- min-height: 48px;
56
- max-height: 48px;
57
- background: #ffffff;
58
- box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
59
- border-radius: 12px;
60
- padding-left: 20px;
61
- margin-bottom: 10px;
62
- }
63
-
64
- .titaui-new-ui-dynamic__content-left-tab {
65
- display: inline-flex;
66
- align-items: center;
67
- height: 30px;
68
- padding: 4px 12px;
69
- background: #ffffff;
70
- border-radius: 15px;
71
- font-size: 14px;
72
- color: #3f4755;
73
- line-height: 22px;
74
- box-sizing: border-box;
75
- cursor: pointer;
76
- white-space: nowrap;
77
- word-break: keep-all;
78
- overflow: hidden;
79
- text-overflow: ellipsis;
80
- }
81
-
82
- .titaui-new-ui-dynamic__content-left-tab--active {
83
- background: rgba(40, 121, 255, 0.1);
84
- color: #2879ff;
85
- animation: second-tab-animation 0.1s linear;
86
- }
87
-
88
- .titaui-new-ui-dynamic__content-left-loading {
89
- margin: 0 auto;
90
- background-image: url("./img/dynamic-loading.gif");
91
- background-repeat: no-repeat;
92
- background-size: 100px 40px;
93
- padding-bottom: 60px;
94
- width: 100px;
95
- }
96
-
97
- .titaui-new-ui-dynamic__content-right {
98
- margin-left: 10px;
99
- }
100
-
101
- .titaui-new-ui-dynamic__loading {
102
- position: absolute;
103
- width: 100%;
104
- height: 100%;
105
- z-index: 4;
106
- background: #f0f4fa;
107
- }
108
-
109
- .titaui-new-ui-dynamic__loading-img {
110
- width: 100px;
111
- position: relative;
112
- top: 50%;
113
- left: 50%;
114
- transform: translate(-50%, -50%);
115
- }
116
-
117
- .titaui-new-ui-dynamic__empty-loading-block {
118
- height: 160px;
119
- }
120
-
121
- .titaui-new-ui-dynamic__no-more-data {
122
- display: flex;
123
- justify-content: center;
124
- align-items: center;
125
- padding-bottom: 20px;
126
- font-size: 14px;
127
- color: #6f7886;
128
- line-height: 22px;
129
- }
130
-
131
- .titaui-new-ui-dynamic__no-more-data::before {
132
- content: '';
133
- display: inline-block;
134
- margin-right: 12px;
135
- width: 192px;
136
- height: 2px;
137
- background: linear-gradient(90deg, #f0f4fa 0%, #b8c3d5 100%);
138
- border-radius: 1px;
139
- }
140
-
141
- .titaui-new-ui-dynamic__no-more-data::after {
142
- content: '';
143
- display: inline-block;
144
- margin-left: 12px;
145
- width: 192px;
146
- height: 2px;
147
- background: linear-gradient(90deg, #b8c3d5 0%, #f0f4fa 100%);
148
- border-radius: 1px;
149
- }
150
-
151
- .titaui-new-ui-dynamic__go-to-top {
152
- position: fixed;
153
- bottom: 20px;
154
- right: 86px;
155
- display: flex;
156
- align-items: center;
157
- justify-content: center;
158
- width: 42px;
159
- height: 42px;
160
- background: rgba(255, 255, 255, 0.86);
161
- box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
162
- border-radius: 50%;
163
- cursor: pointer;
164
- z-index: 1;
165
- }
166
-
167
- .titaui-new-ui-dynamic__go-to-top-img {
168
- display: inline-block;
169
- width: 24px;
170
- height: 24px;
171
- background: url("./img/dynamic-top.svg") no-repeat;
172
- }
173
-
174
- @keyframes activeAnimation {
175
- 0% {
176
- width: 0;
177
- }
178
-
179
- 100% {
180
- width: 24px;
181
- }
182
- }
183
-
184
- @keyframes second-tab-animation {
185
- 0% {
186
- opacity: 0;
187
- }
188
-
189
- 100% {
190
- opacity: 1;
191
- }
192
- }
@@ -1,58 +0,0 @@
1
- .dynamic-online-broadcast-item {
2
- margin-top: 12px;
3
- cursor: pointer;
4
- }
5
-
6
- .dynamic-online-broadcast-item__info {
7
- display: flex;
8
- align-items: center;
9
- }
10
-
11
- .dynamic-online-broadcast-item__order {
12
- font-size: 12px;
13
- line-height: 18px;
14
- color: #96a9c4;
15
- margin-right: 8px;
16
- }
17
-
18
- .dynamic-online-broadcast-item__order--first {
19
- color: #ff614d;
20
- }
21
-
22
- .dynamic-online-broadcast-item__order--second {
23
- color: #f0a326;
24
- }
25
-
26
- .dynamic-online-broadcast-item__order--third {
27
- color: #75aaff;
28
- }
29
-
30
- .dynamic-online-broadcast-item__text {
31
- position: relative;
32
- display: inline-block;
33
- overflow: hidden;
34
- word-break: keep-all;
35
- white-space: nowrap;
36
- margin-right: 4px;
37
- }
38
-
39
- .dynamic-online-broadcast-item__text:hover {
40
- color: #2879ff;
41
- }
42
-
43
- .dynamic-online-broadcast-item__date {
44
- margin-top: 4px;
45
- font-size: 12px;
46
- color: #89919f;
47
- line-height: 18px;
48
- margin-left: 16px;
49
- }
50
-
51
- .dynamic-online-broadcast-item__new, .dynamic-online-broadcast-item__preview {
52
- display: flex;
53
- }
54
-
55
- .dynamic-online-broadcast-item__new-icon, .dynamic-online-broadcast-item__preview-icon {
56
- width: 28px;
57
- height: 14px;
58
- }
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
13
-
14
- var _new = _interopRequireDefault(require("../../img/new.png"));
15
-
16
- var _preview = _interopRequireDefault(require("../../img/preview.png"));
17
-
18
- require("./index.css");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
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
-
24
- var prefix = "dynamic-online-broadcast-item";
25
-
26
- var BroadcastItem = function BroadcastItem(_ref) {
27
- var _classNames;
28
-
29
- var hasOnline = _ref.hasOnline,
30
- preContent = _ref.preContent,
31
- preHref = _ref.preHref,
32
- isNew = _ref.isNew,
33
- date = _ref.date,
34
- index = _ref.index;
35
-
36
- var handleClickItem = function handleClickItem() {
37
- window.open(preHref, "_blank");
38
- };
39
-
40
- return /*#__PURE__*/_react["default"].createElement("div", {
41
- className: prefix,
42
- onClick: handleClickItem
43
- }, /*#__PURE__*/_react["default"].createElement("div", {
44
- className: "".concat(prefix, "__info")
45
- }, /*#__PURE__*/_react["default"].createElement("span", {
46
- className: (0, _classnames["default"])("".concat(prefix, "__order"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__order--first"), index === 1), _defineProperty(_classNames, "".concat(prefix, "__order--second"), index === 2), _defineProperty(_classNames, "".concat(prefix, "__order--third"), index === 3), _classNames))
47
- }, index), /*#__PURE__*/_react["default"].createElement("span", {
48
- className: "".concat(prefix, "__text")
49
- }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
50
- isPercent: true,
51
- text: preContent
52
- })), isNew && hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
53
- className: "".concat(prefix, "__new")
54
- }, /*#__PURE__*/_react["default"].createElement("img", {
55
- className: "".concat(prefix, "__new-icon"),
56
- src: _new["default"]
57
- })), isNew && !hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
58
- className: "".concat(prefix, "__preview")
59
- }, /*#__PURE__*/_react["default"].createElement("img", {
60
- className: "".concat(prefix, "__preview-icon"),
61
- src: _preview["default"]
62
- }))), date && /*#__PURE__*/_react["default"].createElement("div", {
63
- className: "".concat(prefix, "__date")
64
- }, date));
65
- };
66
-
67
- var _default = BroadcastItem;
68
- exports["default"] = _default;