@titaui/pc 1.11.46 → 1.11.48-beta.2

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 (46) 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/change-okr-modal/index.js +6 -6
  6. package/lib/components/form/form-fields/radios/index.css +4 -0
  7. package/lib/components/form/form-fields/radios/index.js +4 -3
  8. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  9. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +9 -5
  10. package/lib/components/okr-detail/e-list/index.js +2 -2
  11. package/lib/components/period-selector/interface.js +7 -0
  12. package/lib/components/radio/index.css +3 -3
  13. package/lib/components/search-input/index.css +1 -1
  14. package/lib/components/task-relation-modal/helper.js +69 -2
  15. package/lib/components/task-relation-modal/image/loading.gif +0 -0
  16. package/lib/components/task-relation-modal/index.js +9 -0
  17. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
  18. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +256 -0
  19. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +123 -0
  20. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
  21. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
  22. package/lib/components/task-relation-modal/okr-relation/request-api.js +93 -0
  23. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +119 -0
  24. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +183 -0
  25. package/lib/components/task-relation-modal/request-api.js +28 -2
  26. package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
  27. package/lib/components/task-relation-modal/search/principal.js +1 -2
  28. package/lib/components/task-relation-modal/search/search-dropdown/index.css +1 -1
  29. package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
  30. package/lib/components/task-relation-modal/search/work-relation.js +83 -0
  31. package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
  32. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +15 -2
  33. package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
  34. package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
  35. package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
  36. package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
  37. package/lib/components/task-relation-modal/tree/work-list/search-form.js +122 -0
  38. package/lib/components/task-relation-modal/work-relation/index.css +0 -0
  39. package/lib/components/task-relation-modal/work-relation/index.js +256 -0
  40. package/lib/components/tooltip/index.js +3 -0
  41. package/lib/components/tooltip/tooltip-rows/index.css +26 -0
  42. package/lib/components/tooltip/tooltip-rows/index.js +106 -0
  43. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +7 -3
  44. package/lib/components-v1/radio/radio.js +1 -1
  45. package/lib/pages/new-okr-list/header/index.css +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAABo0lEQVQoFTWSwU7kMBBEq912WAYhJEba6+6BAwjxhfwcH8MVBJdhiGOb145IlHTHruqqbscense/WtW2oW3p2vq11vOn6uur1vs7nSWtY6jKtJoETJsNtVRX5VLkyyJvprSe5f0G2O81NMzUAkyBGdnaspsyZJVFsqThVd26XI+QzxoDkiAApq42YkW1Zb5yctnaZEuRTisKDcAHxCM5oADPB7tTNYhULwDdXD660uEKFL3+/+B7V8EPBOmbIlEAiSCaFpIed5fyoAg9y//OwVRsfgE+EaPAJJGPDGlR9IZ7euz4+kPPl9EzRd4BvwGMqTZUodA3i1MRgDEOg2UMKymrYPuJ/RdAt+wWbDokm3cQeTgIpSSlaXUHHfB9TKY3CCFxCDKTco7FibZbhYRq5OHgArUDsaBQAZ3I6QOBwdqu7JkKAXA2Mz1GfoHZwno46MSYKB3MK841XLbcIUKiQ82cxcyEM0CLYUHcz5FCoYzt+JNQ3AfkYRXgTmJA0QcF4g/gPcnx19gksxxgp4pHRD0sJaxxQBCNd9jlIY/jwEC0K/0AOvvST1WxS68AAAAASUVORK5CYII="></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="线性按钮Bottun" transform="translate(-881.000000, -339.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(287.000000, 40.000000)">
14
+ <g id="编组-8" transform="translate(548.000000, 40.000000)">
15
+ <path d="M23,11 C26.8659932,11 30,14.1340068 30,18 C30,21.8659932 26.8659932,25 23,25 C19.1340068,25 16,21.8659932 16,18 C16,14.1340068 19.1340068,11 23,11 Z M23,12.2 C19.7967485,12.2 17.2,14.7967485 17.2,18 C17.2,21.2032515 19.7967485,23.8 23,23.8 C26.2032515,23.8 28.8,21.2032515 28.8,18 C28.8,14.7967485 26.2032515,12.2 23,12.2 Z" id="椭圆形"></path>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAABx0lEQVQoFT2SQW7bQAxFSQ4l2YabhbtJgQA5Qc/RE3ST03bXO2TVRXdpArSL2JrRDPsoFDUwHor8n5/8kl6fnh7fVftS6/bHfftkVn/W2r6L1C+Hwy1Ua4g043lEbKq6iUi3tXc/RRQ7HssHd/tN/HC76VeqECT4KcAE/z80sDZNvnJ029xac4P4S7XIy4uKKoK6E1DrqUaTlrcfUIzetZaiMy3fzcIvl03u71Wu1xRNQqNJg1QZoJPsxtATQ89b70tzX85jzE7ux/Nz2UkJ5jDzCqmSq7mv8zeH+6Aw+hiupRRfVznf3d1SBdIVAv5pklO98xyu7rP2HmmVlzLY5bCaHc/ns6wib4Bfc9R/BgXPkfM7wFxNMUXHGGDU+E3N7LNGfEP1Qn2KMQoxfLBJpDgLyCTkqAmieiL+SO6Veoqc9jxuD5FCTh3QTMVQc/j4ogvxifwEuEHK/QjxIiKb7mRc2QEFU7LJxOgLwIk9jIY5e76CkmRy+TE4dvdUmACUTKA0sWHezp06A3AnTmXL3Wgcw6x47oWbhYSzfJqVyqmmTCPsM8h3zoZBureDvJOo58tO1bKPiFHEcHDGbH/HfHs9HeTOgvwFtVIeevLXjdUAAAAASUVORK5CYII="></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="线性按钮Bottun" transform="translate(-881.000000, -547.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(287.000000, 40.000000)">
14
+ <g id="编组-8" transform="translate(548.000000, 248.000000)">
15
+ <path d="M23,11 C26.8659932,11 30,14.1340068 30,18 C30,21.8659932 26.8659932,25 23,25 C19.1340068,25 16,21.8659932 16,18 C16,14.1340068 19.1340068,11 23,11 Z M23,12.2 C19.7967485,12.2 17.2,14.7967485 17.2,18 C17.2,21.2032515 19.7967485,23.8 23,23.8 C26.2032515,23.8 28.8,21.2032515 28.8,18 C28.8,14.7967485 26.2032515,12.2 23,12.2 Z" id="椭圆形"></path>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAA+UlEQVQoFVXSSVLDQBBEUQkzL+EAnID7b7kQLBltRL4OpaOpiB+tkjNraGvdtu1pWZZTOO585/wJzs/9bF7N6TI/QGzhNxwCQcN7hWeOs5FwNq97/s+Qd7qfOxJBMOs4G4k77iik41UwHi6CYJQT2RVfYXTLOTpe58FuUIhBuBjCj/AemDv2RshoPMF8G+4kibfwGtqJbmhr7I5O4xr/ObyEh9B1qhuj6UiM7nyf58egm5DXbJW1HWuS30xCI9pPaHA2t4MqfWYkUMzOLqUXZj+6cautUqMT9mF0kzorJJgPFbVjcyJGUXM/Cu/G38E0w1Sj6ow1t9jyBy9lWT02rrfMAAAAAElFTkSuQmCC"></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="面性按钮Bottun" transform="translate(-909.000000, -339.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(209.000000, 40.000000)">
14
+ <path d="M677,51 C680.865993,51 684,54.1340068 684,58 C684,61.8659932 680.865993,65 677,65 C673.134007,65 670,61.8659932 670,58 C670,54.1340068 673.134007,51 677,51 Z M677,52.2 C673.796748,52.2 671.2,54.7967485 671.2,58 C671.2,61.2032515 673.796748,63.8 677,63.8 C680.203252,63.8 682.8,61.2032515 682.8,58 C682.8,54.7967485 680.203252,52.2 677,52.2 Z" id="椭圆形"></path>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </svg>
@@ -34,10 +34,10 @@ function RectBtn(props) {
34
34
  className = _props$className === void 0 ? '' : _props$className,
35
35
  _props$disabled = props.disabled,
36
36
  disabled = _props$disabled === void 0 ? false : _props$disabled,
37
- style = props.style,
38
- children = props.children,
39
37
  _props$loading = props.loading,
40
- loading = _props$loading === void 0 ? false : _props$loading;
38
+ loading = _props$loading === void 0 ? false : _props$loading,
39
+ style = props.style,
40
+ children = props.children;
41
41
 
42
42
  var renderIcon = function renderIcon() {
43
43
  if (typeof icon === 'string') {
@@ -504,7 +504,7 @@ var _initialiseProps = function _initialiseProps() {
504
504
 
505
505
  this.getListData = /*#__PURE__*/function () {
506
506
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(isLoading) {
507
- var _this4$state2, keywords, type, users, departments, data, nextPage, toUserId, _this4$state3, status, cycle, year, okrPopType, url;
507
+ var _this4$state2, keywords, type, users, departments, data, nextPage, toUserId, _this4$state3, status, cycle, year, _this4$props2, okrPopType, _this4$props2$include, includeCreateFailApprovalOkr, url;
508
508
 
509
509
  return regeneratorRuntime.wrap(function _callee$(_context) {
510
510
  while (1) {
@@ -520,7 +520,7 @@ var _initialiseProps = function _initialiseProps() {
520
520
  case 2:
521
521
  _this4$state2 = _this4.state, keywords = _this4$state2.keywords, type = _this4$state2.type, users = _this4$state2.users, departments = _this4$state2.departments, data = _this4$state2.data, nextPage = _this4$state2.nextPage, toUserId = _this4$state2.toUserId;
522
522
  _this4$state3 = _this4.state, status = _this4$state3.status, cycle = _this4$state3.cycle, year = _this4$state3.year;
523
- okrPopType = _this4.props.okrPopType;
523
+ _this4$props2 = _this4.props, okrPopType = _this4$props2.okrPopType, _this4$props2$include = _this4$props2.includeCreateFailApprovalOkr, includeCreateFailApprovalOkr = _this4$props2$include === void 0 ? false : _this4$props2$include;
524
524
  cycle = cycle || '-1';
525
525
  year = year || -1;
526
526
  status = status || 0;
@@ -565,7 +565,7 @@ var _initialiseProps = function _initialiseProps() {
565
565
  searchKr: okrPopType,
566
566
  // 是否搜索KR:默认为0-不搜索,1-只有对齐目标弹层可以搜索KR
567
567
  toUserId: toUserId,
568
- includeCreateFailApprovalOkr: false
568
+ includeCreateFailApprovalOkr: includeCreateFailApprovalOkr
569
569
  }).then(function (res) {
570
570
  _this4.pending = false;
571
571
  var resData = res && res.Data && res.Data.works || [];
@@ -630,9 +630,9 @@ var _initialiseProps = function _initialiseProps() {
630
630
  var _this4$state4 = _this4.state,
631
631
  selected = _this4$state4.selected,
632
632
  selectOkr = _this4$state4.selectOkr;
633
- var _this4$props2 = _this4.props,
634
- onConfirm = _this4$props2.onConfirm,
635
- parentId = _this4$props2.parentId;
633
+ var _this4$props3 = _this4.props,
634
+ onConfirm = _this4$props3.onConfirm,
635
+ parentId = _this4$props3.parentId;
636
636
  var parentType = selected && selected.mileStoneId ? 2 : 1; // 临时注入
637
637
 
638
638
  var data = _objectSpread(_objectSpread({}, selected), {}, {
@@ -28,3 +28,7 @@
28
28
  line-height: 22px;
29
29
  color: #3f4755;
30
30
  }
31
+
32
+ .form-field-radio__radios-item {
33
+ display: flex;
34
+ }
@@ -33,17 +33,18 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
33
33
 
34
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
35
 
36
- var prefixCls = "form-field-radio";
36
+ var prefixCls = 'form-field-radio';
37
37
 
38
38
  var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
39
39
  var _props$className = props.className,
40
- className = _props$className === void 0 ? "" : _props$className,
40
+ className = _props$className === void 0 ? '' : _props$className,
41
41
  label = props.label,
42
42
  onChange = props.onChange,
43
43
  radios = props.radios,
44
44
  require = props.require,
45
45
  value = props.value,
46
- radioClass = props.radioClass;
46
+ _props$radioClass = props.radioClass,
47
+ radioClass = _props$radioClass === void 0 ? '' : _props$radioClass;
47
48
 
48
49
  var _useState = (0, _react.useState)(value),
49
50
  _useState2 = _slicedToArray(_useState, 2),
@@ -47,7 +47,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
47
47
 
48
48
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
49
49
 
50
- var ConfirmWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* TODO padding \u53EF\u52A8\u6001\u8C03\u6574 */\n width: 300px;\n max-height: 100px;\n border-radius: 5px;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n padding: 15px 12px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: #fff;\n"])));
50
+ var ConfirmWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* TODO padding \u53EF\u52A8\u6001\u8C03\u6574 */\n width: 300px;\n // max-height: 100px;\n border-radius: 5px;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n padding: 15px 12px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: #fff;\n"])));
51
51
 
52
52
  var FooterWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: 5px;\n button {\n padding: 2px 12px;\n font-size: 12px;\n }\n"])));
53
53
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  .okr-detail-delete-confirm__option-text {
8
8
  font-size: 14px;
9
- color: #3F4755;
9
+ color: #3f4755;
10
10
  line-height: 22px;
11
11
  }
12
12
 
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  .okr-detail-delete-confirm__icon.tu-icon-singlebox-have {
26
- color: #BFC7D5;
26
+ color: #bfc7d5;
27
27
  }
28
28
 
29
29
  .okr-detail-delete-confirm__icon.tu-icon-wiki {
@@ -38,13 +38,17 @@
38
38
  margin-top: 10px;
39
39
  }
40
40
 
41
+ .okr-detail-delete-confirm .tita-radio:hover .tita-radio-inner {
42
+ color: #2879ff;
43
+ }
44
+
41
45
  .isApprovalDisabled {
42
46
  margin-bottom: 0;
43
47
  padding: 5px 24px;
44
48
  font-size: 14px;
45
49
  line-height: 22px;
46
- transition: all .3s ease-in;
47
- color: #BFC7D5;
50
+ transition: all 0.3s ease-in;
51
+ color: #bfc7d5;
48
52
  cursor: pointer;
49
53
  display: flex;
50
54
  align-items: center;
@@ -54,6 +58,6 @@
54
58
  .isApprovalDisabled .options-icon {
55
59
  margin-right: 12px;
56
60
  font-size: 14px;
57
- transition: all .3s ease-in;
61
+ transition: all 0.3s ease-in;
58
62
  color: #89919f;
59
63
  }
@@ -84,12 +84,12 @@ function Elist(props, ref) {
84
84
  krList = _useState2[0],
85
85
  setKrList = _useState2[1];
86
86
 
87
- var _useState3 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerECheckedStatus".concat(loginUser))) : []),
87
+ var _useState3 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerECheckedStatus".concat(loginUser)) || '[]') : []),
88
88
  _useState4 = _slicedToArray(_useState3, 2),
89
89
  checkedStatus = _useState4[0],
90
90
  setCheckedStatus = _useState4[1];
91
91
 
92
- var _useState5 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerESelectUsers".concat(loginUser))) : []),
92
+ var _useState5 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerESelectUsers".concat(loginUser)) || '[]') : []),
93
93
  _useState6 = _slicedToArray(_useState5, 2),
94
94
  selectUsers = _useState6[0],
95
95
  setSelectUsers = _useState6[1];
@@ -0,0 +1,7 @@
1
+ // annualNum: "2022" 年份
2
+ // cycleType: "-1" 全部周期
3
+ // endDate: ""
4
+ // startDate: ""
5
+ // yqmNum: "0"
6
+ //
7
+ "use strict";
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .titaui-radio-wrapper .titaui-radio:hover > .titaui-radio-inner {
33
- border: 1px solid #96d0fa;
33
+ border: 1px solid #2879ff;
34
34
  }
35
35
 
36
36
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input {
@@ -59,14 +59,14 @@
59
59
  height: 10px;
60
60
  min-height: 10px;
61
61
  border-radius: 50%;
62
- background-color: #1687d9;
62
+ background-color: #2879ff;
63
63
  transform: scale(0);
64
64
  opacity: 0;
65
65
  transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
66
66
  }
67
67
 
68
68
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input:checked + .titaui-radio-inner {
69
- border-color: #1687d9;
69
+ border-color: #2879ff;
70
70
  }
71
71
 
72
72
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input:checked + .titaui-radio-inner:after {
@@ -41,7 +41,7 @@
41
41
  .search-input-box > input {
42
42
  background: #ffffff;
43
43
  border: 1px solid #e9edf0;
44
- border-radius: 5px;
44
+ border-radius: 16px;
45
45
  width: 100%;
46
46
  height: 100%;
47
47
  padding: 0 44px 0 11px;
@@ -3,10 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.preCls = exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = exports.formatDateStr = void 0;
6
+ exports.workStatus = exports.timeFormat = exports.preCls = exports.okrStatus = exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = exports.formatDateStr = void 0;
7
7
 
8
8
  var _bsGlobal = require("../../utils/bs-global");
9
9
 
10
+ var _getLocale = require("../../utils/getLocale");
11
+
10
12
  var preCls = "titaui-task-relation";
11
13
  exports.preCls = preCls;
12
14
  var isOpenOkrManage = (0, _bsGlobal.getAppHead)("113"); // 开通OKR
@@ -29,7 +31,21 @@ var lableTypeMap = {
29
31
  };
30
32
  exports.lableTypeMap = lableTypeMap;
31
33
 
34
+ var timeFormat = function timeFormat(NowDate) {
35
+ var date = new Date(NowDate);
36
+ var y = date.getFullYear(); // 年
37
+
38
+ var m = date.getMonth() + 1; // 月
39
+
40
+ var d = date.getDate(); // 日
41
+
42
+ return "".concat(y, "/").concat(m, "/").concat(d);
43
+ };
44
+
45
+ exports.timeFormat = timeFormat;
46
+
32
47
  var formatDateStr = function formatDateStr(str) {
48
+ str = timeFormat(str);
33
49
  var currentYear = new Date().getFullYear();
34
50
 
35
51
  if (str.indexOf(currentYear) !== -1) {
@@ -39,4 +55,55 @@ var formatDateStr = function formatDateStr(str) {
39
55
  return str;
40
56
  };
41
57
 
42
- exports.formatDateStr = formatDateStr;
58
+ exports.formatDateStr = formatDateStr;
59
+
60
+ var okrStatus = function okrStatus(key) {
61
+ // 分类的类型(4:项目 17:普通分类 62:目标
62
+ var label = (0, _getLocale.getLocale)('OKR_MyO_E_From_AllStates');
63
+
64
+ switch (Number(key)) {
65
+ case 1:
66
+ label = (0, _getLocale.getLocale)('Per_MyRe_text_Inprogress');
67
+ break;
68
+
69
+ case 2:
70
+ label = (0, _getLocale.getLocale)('Pro_page_Sta_Completed');
71
+ break;
72
+
73
+ case 3:
74
+ label = (0, _getLocale.getLocale)('OKR_MyO_E_From_Delayed');
75
+ break;
76
+
77
+ case 4:
78
+ label = (0, _getLocale.getLocale)('OKR_MyO_E_From_Cancelled');
79
+ break;
80
+
81
+ case 5:
82
+ label = (0, _getLocale.getLocale)('OKR_MyO_E_From_Notaccepted');
83
+ break;
84
+
85
+ case 6:
86
+ label = (0, _getLocale.getLocale)('OKR_MyO_E_From_Suspended');
87
+ break;
88
+
89
+ case 0:
90
+ label = (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted');
91
+ break;
92
+
93
+ default:
94
+ break;
95
+ }
96
+
97
+ return label;
98
+ };
99
+
100
+ exports.okrStatus = okrStatus;
101
+
102
+ var workStatus = function workStatus() {
103
+ return {
104
+ 1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
105
+ 2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
106
+ };
107
+ };
108
+
109
+ exports.workStatus = workStatus;
@@ -29,6 +29,12 @@ var _requestApi = require("./request-api");
29
29
 
30
30
  var _getLocale = require("../../utils/getLocale");
31
31
 
32
+ var _relationTaskModel = _interopRequireDefault(require("./okr-relation/relation-task-model"));
33
+
34
+ var _relationWorkModel = _interopRequireDefault(require("./okr-relation/relation-work-model"));
35
+
36
+ var _workRelation = _interopRequireDefault(require("./work-relation"));
37
+
32
38
  require("./index.css");
33
39
 
34
40
  var _excluded = ["defaultVisible", "multiple", "onOk", "onCancel", "taskId", "isRelationOther", "lastSelected"];
@@ -306,5 +312,8 @@ function TaskRelationModal(props) {
306
312
  }, selected.length), "\u9879"))));
307
313
  }
308
314
 
315
+ TaskRelationModal.RelationTaskModel = _relationTaskModel["default"];
316
+ TaskRelationModal.RelationWorkModel = _relationWorkModel["default"];
317
+ TaskRelationModal.WorkRelationModal = _workRelation["default"];
309
318
  var _default = TaskRelationModal;
310
319
  exports["default"] = _default;
@@ -0,0 +1,18 @@
1
+ .relation-task__content {
2
+ padding: 0 32px;
3
+ }
4
+
5
+ .relation-task__content-tree {
6
+ margin-top: 16px;
7
+ }
8
+
9
+ .relation-task__content-empty {
10
+ height: 382px;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ }
15
+
16
+ .relation-task__content-empty > img {
17
+ width: 60px;
18
+ }