@titaui/pc 1.15.89-beta.1 → 1.15.89

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 (96) hide show
  1. package/lib/components/button/index.js +4 -5
  2. package/lib/components/change-okr-modal/Filter.js +66 -70
  3. package/lib/components/edit-kr-wight/EditKrWightModal.js +21 -28
  4. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
  5. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -10
  6. package/lib/components/operation-records/OperationRecordItem.js +3 -7
  7. package/lib/components/popup-select/index.css +0 -10
  8. package/lib/components/popup-select/index.js +2 -8
  9. package/lib/index.js +0 -8
  10. package/lib/pages/new-okr-list/header/index.js +12 -62
  11. package/lib/pages/new-okr-list/header/operate-record.js +49 -7
  12. package/lib/pages/new-okr-list/index.js +0 -1
  13. package/package.json +1 -1
  14. package/lib/components/okr-excel-create/components/kr-confidence/index.css +0 -18
  15. package/lib/components/okr-excel-create/components/kr-confidence/index.js +0 -61
  16. package/lib/components/okr-excel-create/components/kr-weight/index.css +0 -10
  17. package/lib/components/okr-excel-create/components/kr-weight/index.js +0 -114
  18. package/lib/components/okr-excel-create/components/okr-align/index.css +0 -49
  19. package/lib/components/okr-excel-create/components/okr-align/index.js +0 -139
  20. package/lib/components/okr-excel-create/components/okr-classify/index.css +0 -74
  21. package/lib/components/okr-excel-create/components/okr-classify/index.js +0 -117
  22. package/lib/components/okr-excel-create/components/okr-cycle/index.css +0 -40
  23. package/lib/components/okr-excel-create/components/okr-cycle/index.js +0 -85
  24. package/lib/components/okr-excel-create/components/okr-name/index.css +0 -48
  25. package/lib/components/okr-excel-create/components/okr-name/index.js +0 -116
  26. package/lib/components/okr-excel-create/components/okr-principal/index.css +0 -17
  27. package/lib/components/okr-excel-create/components/okr-principal/index.js +0 -107
  28. package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.css +0 -13
  29. package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.js +0 -46
  30. package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.css +0 -13
  31. package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.js +0 -47
  32. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.css +0 -196
  33. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +0 -319
  34. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/request-api.js +0 -20
  35. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/util.js +0 -134
  36. package/lib/components/okr-excel-create/components/okr-progress/index.css +0 -25
  37. package/lib/components/okr-excel-create/components/okr-progress/index.js +0 -90
  38. package/lib/components/okr-excel-create/components/okr-progress/interface.js +0 -5
  39. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
  40. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +0 -166
  41. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.css +0 -20
  42. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.js +0 -76
  43. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +0 -275
  44. package/lib/components/okr-excel-create/components/okr-type/index.css +0 -30
  45. package/lib/components/okr-excel-create/components/okr-type/index.js +0 -196
  46. package/lib/components/okr-excel-create/components/okr-visibility/index.css +0 -53
  47. package/lib/components/okr-excel-create/components/okr-visibility/index.js +0 -236
  48. package/lib/components/okr-excel-create/components-new/kr-confidence/index.css +0 -18
  49. package/lib/components/okr-excel-create/components-new/kr-confidence/index.js +0 -71
  50. package/lib/components/okr-excel-create/components-new/kr-weight/index.css +0 -10
  51. package/lib/components/okr-excel-create/components-new/kr-weight/index.js +0 -123
  52. package/lib/components/okr-excel-create/components-new/okr-align/index.css +0 -49
  53. package/lib/components/okr-excel-create/components-new/okr-align/index.js +0 -139
  54. package/lib/components/okr-excel-create/components-new/okr-classify/index.css +0 -74
  55. package/lib/components/okr-excel-create/components-new/okr-classify/index.js +0 -125
  56. package/lib/components/okr-excel-create/components-new/okr-cycle/index.css +0 -40
  57. package/lib/components/okr-excel-create/components-new/okr-cycle/index.js +0 -99
  58. package/lib/components/okr-excel-create/components-new/okr-name/index.css +0 -48
  59. package/lib/components/okr-excel-create/components-new/okr-name/index.js +0 -133
  60. package/lib/components/okr-excel-create/components-new/okr-principal/index.css +0 -17
  61. package/lib/components/okr-excel-create/components-new/okr-principal/index.js +0 -116
  62. package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.css +0 -13
  63. package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js +0 -46
  64. package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.css +0 -13
  65. package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.js +0 -47
  66. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.css +0 -196
  67. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +0 -319
  68. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/request-api.js +0 -20
  69. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/util.js +0 -134
  70. package/lib/components/okr-excel-create/components-new/okr-progress/index.css +0 -25
  71. package/lib/components/okr-excel-create/components-new/okr-progress/index.js +0 -90
  72. package/lib/components/okr-excel-create/components-new/okr-progress/interface.js +0 -5
  73. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
  74. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +0 -166
  75. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.css +0 -20
  76. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.js +0 -76
  77. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +0 -275
  78. package/lib/components/okr-excel-create/components-new/okr-type/index.css +0 -30
  79. package/lib/components/okr-excel-create/components-new/okr-type/index.js +0 -205
  80. package/lib/components/okr-excel-create/components-new/okr-visibility/index.css +0 -53
  81. package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +0 -248
  82. package/lib/components/okr-excel-create/constant.js +0 -14
  83. package/lib/components/okr-excel-create/hooks.js +0 -314
  84. package/lib/components/okr-excel-create/img/base-info-add.svg +0 -19
  85. package/lib/components/okr-excel-create/img/desire.svg +0 -61
  86. package/lib/components/okr-excel-create/img/promise.svg +0 -61
  87. package/lib/components/okr-excel-create/index-old.js +0 -258
  88. package/lib/components/okr-excel-create/index.css +0 -69
  89. package/lib/components/okr-excel-create/index.js +0 -221
  90. package/lib/components/okr-excel-create/setting.js +0 -21
  91. package/lib/components/okr-excel-create/type.js +0 -5
  92. package/lib/components/okr-excel-create/utils.js +0 -179
  93. package/lib/components/table-excel-v2/index.css +0 -55
  94. package/lib/components/table-excel-v2/index.js +0 -472
  95. package/lib/components/table-excel-v2/utils.js +0 -20
  96. package/lib/utils/array.js +0 -26
@@ -1,179 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getKrItemData = exports.getIitData = exports.formatDataToOKRExcelTableData = exports.formatDataToOKRExcelData = void 0;
7
-
8
- var _uuid = _interopRequireDefault(require("uuid"));
9
-
10
- var _helpers = require("../../utils/helpers");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
15
-
16
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
-
18
- 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); }
19
-
20
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
21
-
22
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- 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; }
29
-
30
- 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; }
31
-
32
- var loginUser = (0, _helpers.getLoginUserInfo)();
33
-
34
- var getKrItemData = function getKrItemData() {
35
- return {
36
- uuid: (0, _uuid["default"])(),
37
- mileStoneId: 0,
38
- feedId: '',
39
- workId: 0,
40
- mileStoneName: '',
41
- mileStoneNameRichText: null,
42
- aiteUsers: [],
43
- mileStoneDescription: '',
44
- principalId: 0,
45
- createUserId: loginUser.Id,
46
- startDate: '',
47
- endDate: '',
48
- lastUpdatedDate: '',
49
- user: {
50
- userId: loginUser.Id,
51
- userType: loginUser.Type,
52
- name: loginUser.Name,
53
- email: loginUser.Email,
54
- managerId: loginUser.ManagerId,
55
- jobState: loginUser.JobState,
56
- departmentId: loginUser.DepartmentId,
57
- departmentName: loginUser.Department,
58
- postition: loginUser.Position,
59
- subType: 0,
60
- hasSubordinates: loginUser.HasSub,
61
- avatar: _objectSpread({}, loginUser.UserAvatar),
62
- staffCode: ''
63
- },
64
- counter: {
65
- taskTotal: 0,
66
- finishTaskTotal: 0,
67
- workTotal: 0,
68
- finishWrokTotal: 0,
69
- eTotal: 0,
70
- finishETotal: 0,
71
- subWorkTotal: 0
72
- },
73
- departments: null,
74
- status: 1,
75
- remainingDays: 0,
76
- progress: 0,
77
- progressGrow: 0,
78
- riskLevel: 0,
79
- remainingContent: '',
80
- progressDescription: '',
81
- editable: false,
82
- evaluateEditable: true,
83
- krWeightEditable: false,
84
- confidenceIndex: 5,
85
- evaluateValue: '0',
86
- remark: '',
87
- confidenceIndexGrow: 0,
88
- isEvaluate: false,
89
- krWeight: 100,
90
- okrInfo: null,
91
- tasks: null,
92
- mapkrVisible: true,
93
- CreateDate: '2022/3/14 16:16:36',
94
- SortNum: 0,
95
- UpdateProgressWay: 0,
96
- progressDescriptionDate: null,
97
- applyState: 0,
98
- krApprovalType: '',
99
- KrApprovalTypes: []
100
- };
101
- };
102
-
103
- exports.getKrItemData = getKrItemData;
104
-
105
- var getIitData = function getIitData() {
106
- return {
107
- uuid: (0, _uuid["default"])(),
108
- workId: 0,
109
- workName: '',
110
- workNameRichText: null,
111
- visibility: 1,
112
- departmentId: loginUser.DepartmentId,
113
- departmentName: loginUser.Department,
114
- groupId: 0,
115
- groupName: '',
116
- Krs: [_objectSpread({}, getKrItemData())],
117
- okrClassify: 0,
118
- cycleType: -1,
119
- yqmnum: 1,
120
- parentId: 0,
121
- parentKrId: 0,
122
- annualNum: 2022,
123
- hasSub: false,
124
- okrType: 2,
125
- createUserId: loginUser.Id,
126
- principalUser: {
127
- userId: loginUser.Id,
128
- userType: loginUser.Type,
129
- name: loginUser.Name,
130
- email: loginUser.Email,
131
- managerId: loginUser.ManagerId,
132
- jobState: loginUser.JobState,
133
- departmentId: loginUser.DepartmentId,
134
- departmentName: loginUser.Department,
135
- postition: loginUser.Position,
136
- subType: 0,
137
- hasSubordinates: loginUser.HasSub,
138
- avatar: _objectSpread({}, loginUser.UserAvatar),
139
- staffCode: ''
140
- },
141
- parentPrincipal: null,
142
- isShowApprovalOpinion: false
143
- };
144
- };
145
-
146
- exports.getIitData = getIitData;
147
-
148
- var formatDataToOKRExcelTableData = function formatDataToOKRExcelTableData(data) {
149
- return data.map(function (detail) {
150
- return _objectSpread(_objectSpread({}, detail), {}, {
151
- childs: [].concat(_toConsumableArray(detail.Krs), [{
152
- isAddKR: true
153
- }])
154
- });
155
- });
156
- };
157
-
158
- exports.formatDataToOKRExcelTableData = formatDataToOKRExcelTableData;
159
-
160
- var formatDataToOKRExcelData = function formatDataToOKRExcelData(data) {
161
- var okrExcelData = [];
162
- data.forEach(function (detail) {
163
- var tempData = JSON.parse(JSON.stringify(detail));
164
- var krs = tempData.Krs;
165
- krs.forEach(function (item, index) {
166
- okrExcelData.push(_objectSpread(_objectSpread({}, tempData), {}, {
167
- kr: _objectSpread(_objectSpread({}, item), {}, {
168
- mileStoneId: tempData.workId + '_' + (item.isAddKR ? 'addKR' : index)
169
- }),
170
- rowSpan: index === 0 ? krs.length : 0,
171
- colSpan: item.isAddKR ? 4 : 0
172
- }));
173
- });
174
- });
175
- console.log(okrExcelData);
176
- return okrExcelData;
177
- };
178
-
179
- exports.formatDataToOKRExcelData = formatDataToOKRExcelData;
@@ -1,55 +0,0 @@
1
- .titaui-table-excel-v2 {
2
- position: relative;
3
- box-shadow: 0 0 0 1px #e2e2e2;
4
- background-color: #fff;
5
- overflow-x: auto;
6
- }
7
-
8
- .titaui-table-excel-v2__header {
9
- display: flex;
10
- }
11
-
12
- .titaui-table-excel-v2__header > div {
13
- display: flex;
14
- flex-shrink: 0;
15
- align-items: center;
16
- min-height: 40px;
17
- padding: 0 12px;
18
- color: #89919F;
19
- font-size: 12px;
20
- font-weight: 600;
21
- box-sizing: border-box;
22
- transition: background-color .3s;
23
- }
24
-
25
- .titaui-table-excel-v2__header > div:hover {
26
- background-color: #f2f2f2;
27
- }
28
-
29
- .titaui-table-excel-v2__header > div:last-child {
30
- border-right: 1px solid #e2e2e2;
31
- }
32
-
33
- .titaui-table-excel-v2__childs {
34
- display: flex;
35
- flex-direction: column;
36
- }
37
-
38
- .titaui-table-excel-v2__childs > div {
39
- height: 100%;
40
- }
41
-
42
- .titaui-table-excel-v2__row {
43
- display: flex;
44
- }
45
-
46
- .titaui-table-excel-v2__box {
47
- position: relative;
48
- padding: 7px 12px;
49
- display: flex;
50
- align-items: center;
51
- min-height: 30px;
52
- box-sizing: border-box;
53
- border-right: 1px solid #e2e2e2;
54
- border-top: 1px solid #e2e2e2;
55
- }