@titaui/pc 1.12.0-beta.1 → 1.12.0-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.
- package/lib/components/avatar/name-avatar/index.css +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/avatar/text-avatar/index.css +2 -2
- package/lib/components/avatar/text-avatar/index.js +6 -6
- package/lib/components/button/rect-btn/index.css +45 -11
- package/lib/components/button/rect-btn/index.js +12 -6
- package/lib/components/change-okr-modal/index.js +7 -6
- package/lib/components/checkbox/index.css +3 -3
- package/lib/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
- package/lib/components/contact-kefu/index.css +85 -0
- package/lib/components/contact-kefu/index.js +102 -0
- package/lib/components/create-okr-modal/index.js +45 -41
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +5 -1
- package/lib/components/drawer/headerDrop.js +42 -4
- package/lib/components/drawer/index.css +33 -0
- package/lib/components/drawer/index.js +26 -3
- package/lib/components/dynamic/constant.js +38 -33
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +48 -10
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +4 -2
- package/lib/components/dynamic/new-ui.css +4 -4
- package/lib/components/dynamic/online-broadcast/data.js +19 -1
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +10 -2
- package/lib/components/form/form-fields/radios/index.css +4 -0
- package/lib/components/form/form-fields/radios/index.js +4 -3
- package/lib/components/mblog/components/MblogContent.js +5 -2
- package/lib/components/nav-top/components/menu/img/new.svg +30 -0
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/nav-top/components/menu/index.css +91 -0
- package/lib/components/nav-top/components/menu/index.js +72 -24
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
- package/lib/components/nav-top/index.js +6 -2
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
- package/lib/components/okr-detail/components/header/index.js +10 -3
- package/lib/components/okr-detail/components/header/o-name.js +10 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +111 -54
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +63 -0
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +228 -234
- package/lib/components/okr-detail/helper.js +108 -0
- package/lib/components/okr-detail/index.js +21 -4
- package/lib/components/okr-detail/okr-list/index.js +13 -6
- package/lib/components/okr-detail/request-apis.js +14 -8
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +66 -3
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/radio/index.css +3 -3
- package/lib/components/survey-model/index.js +3 -0
- package/lib/components/task-relation-modal/index.js +0 -1
- package/lib/components/task-relation-modal/request-api.js +2 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/constant.js +39 -22
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +38 -8
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +28 -18
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +262 -0
- package/lib/components/time-picker/time-picker.js +34 -102
- package/lib/components/time-picker/timer-picker-input.js +0 -6
- package/lib/components/toast/index.js +5 -3
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +48 -17
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/searched-panel/index.js +1 -0
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/index.js +48 -0
- package/lib/pages/aha2021/index.css +1 -26
- package/lib/pages/aha2021/index.js +3 -82
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +40 -16
- package/lib/pages/new-okr-list/header/operate-record.js +136 -0
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/package.json +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
- package/lib/components/task-tree/mock.js +0 -944
|
@@ -58,7 +58,10 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
58
58
|
onDelUser = props.onDelUser,
|
|
59
59
|
_props$textWidth = props.textWidth,
|
|
60
60
|
textWidth = _props$textWidth === void 0 ? 42 : _props$textWidth,
|
|
61
|
-
textClass = props.textClass
|
|
61
|
+
textClass = props.textClass,
|
|
62
|
+
renderRightTopCmp = props.renderRightTopCmp,
|
|
63
|
+
_props$avatarTips = props.avatarTips,
|
|
64
|
+
avatarTips = _props$avatarTips === void 0 ? '' : _props$avatarTips;
|
|
62
65
|
var hasAvatar = src && !src.match(/default\w*.jpg$/);
|
|
63
66
|
|
|
64
67
|
var _useState = (0, _react.useState)(false),
|
|
@@ -103,7 +106,7 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
103
106
|
style: {
|
|
104
107
|
width: size.width,
|
|
105
108
|
height: size.width,
|
|
106
|
-
verticalAlign:
|
|
109
|
+
verticalAlign: 'top'
|
|
107
110
|
},
|
|
108
111
|
src: src
|
|
109
112
|
});
|
|
@@ -120,11 +123,11 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
120
123
|
}
|
|
121
124
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
125
|
style: {
|
|
123
|
-
display:
|
|
126
|
+
display: 'inline-block',
|
|
124
127
|
width: "".concat(size.fontSize, "px"),
|
|
125
|
-
margin:
|
|
126
|
-
overflow:
|
|
127
|
-
whiteSpace:
|
|
128
|
+
margin: '0 auto',
|
|
129
|
+
overflow: 'hidden',
|
|
130
|
+
whiteSpace: 'nowrap',
|
|
128
131
|
fontSize: "".concat(size.fontSize, "px"),
|
|
129
132
|
lineHeight: "".concat(size.width, "px")
|
|
130
133
|
}
|
|
@@ -134,7 +137,7 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
134
137
|
})));
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
var cuttedName =
|
|
140
|
+
var cuttedName = '';
|
|
138
141
|
var cuttedNameLen = 0;
|
|
139
142
|
|
|
140
143
|
for (var i = 0, lent = name.length; i < lent; i++) {
|
|
@@ -167,11 +170,11 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
167
170
|
className: "titaui-pc-avator__name-avatar-container",
|
|
168
171
|
onMouseEnter: handleMouseEnter,
|
|
169
172
|
onMouseLeave: handleMouseLeave
|
|
170
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
|
+
}, renderRightTopCmp, /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
174
|
onClick: handleDelUser,
|
|
172
175
|
onMouseLeave: handleCloseIconMouseLeave,
|
|
173
176
|
onMouseEnter: handleCloseIconMouseEnter,
|
|
174
|
-
className: "titaui-pc-avator__delete-wrapper ".concat(canDelUser && mouseIsEnterUser ?
|
|
177
|
+
className: "titaui-pc-avator__delete-wrapper ".concat(canDelUser && mouseIsEnterUser ? 'titaui-pc-avator--enter' : ''),
|
|
175
178
|
style: {
|
|
176
179
|
left: "".concat(size.width - 14, "px")
|
|
177
180
|
}
|
|
@@ -185,7 +188,10 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
185
188
|
onClick: onClick,
|
|
186
189
|
onMouseEnter: onMouseEnter,
|
|
187
190
|
onMouseLeave: onMouseLeave
|
|
188
|
-
},
|
|
191
|
+
}, avatarTips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
192
|
+
overlay: avatarTips,
|
|
193
|
+
placement: "top"
|
|
194
|
+
}, hasAvatar ? renderImgAvatar() : renderTextAvatar()), !avatarTips && (hasAvatar ? renderImgAvatar() : renderTextAvatar())), showNameTips && isNameOverflow ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
189
195
|
overlay: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
190
196
|
name: name,
|
|
191
197
|
id: userId
|
|
@@ -194,14 +200,17 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
194
200
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
201
|
className: "titaui-pc-avator__name ".concat(textClass),
|
|
196
202
|
style: {
|
|
197
|
-
|
|
203
|
+
maxWidth: textWidth
|
|
198
204
|
}
|
|
199
205
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
200
206
|
ref: textRef
|
|
201
|
-
},
|
|
207
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
208
|
+
name: name,
|
|
209
|
+
id: userId
|
|
210
|
+
})))) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
202
211
|
className: "titaui-pc-avator__name ".concat(textClass),
|
|
203
212
|
style: {
|
|
204
|
-
|
|
213
|
+
maxWidth: textWidth
|
|
205
214
|
}
|
|
206
215
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
207
216
|
ref: textRef
|
|
@@ -41,7 +41,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
|
44
|
-
var preCls =
|
|
44
|
+
var preCls = 'titaui-text-avatar';
|
|
45
45
|
|
|
46
46
|
function TextAvatar(props) {
|
|
47
47
|
var name = props.name,
|
|
@@ -54,7 +54,7 @@ function TextAvatar(props) {
|
|
|
54
54
|
_props$isGetRoot = props.isGetRoot,
|
|
55
55
|
isGetRoot = _props$isGetRoot === void 0 ? false : _props$isGetRoot,
|
|
56
56
|
_props$extraCls = props.extraCls,
|
|
57
|
-
extraCls = _props$extraCls === void 0 ?
|
|
57
|
+
extraCls = _props$extraCls === void 0 ? '' : _props$extraCls,
|
|
58
58
|
_props$nameTips = props.nameTips,
|
|
59
59
|
nameTips = _props$nameTips === void 0 ? function (name) {
|
|
60
60
|
return name;
|
|
@@ -83,7 +83,7 @@ function TextAvatar(props) {
|
|
|
83
83
|
}; // 非编辑态,不可以弹出选人组件
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
var FieldPerson = editable ? _userSelector["default"] :
|
|
86
|
+
var FieldPerson = editable ? _userSelector["default"] : 'span';
|
|
87
87
|
|
|
88
88
|
var renderAvatar = function renderAvatar() {
|
|
89
89
|
if (showAvatar) {
|
|
@@ -91,7 +91,7 @@ function TextAvatar(props) {
|
|
|
91
91
|
className: "".concat(preCls, "__img")
|
|
92
92
|
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
93
93
|
userId: id,
|
|
94
|
-
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium :
|
|
94
|
+
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : '',
|
|
95
95
|
color: avatar === null || avatar === void 0 ? void 0 : avatar.color,
|
|
96
96
|
name: name,
|
|
97
97
|
size: {
|
|
@@ -132,7 +132,7 @@ function TextAvatar(props) {
|
|
|
132
132
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
133
|
className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
|
|
134
134
|
style: {
|
|
135
|
-
|
|
135
|
+
width: width
|
|
136
136
|
}
|
|
137
137
|
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
138
|
ref: text,
|
|
@@ -143,7 +143,7 @@ function TextAvatar(props) {
|
|
|
143
143
|
})))), !showTooltip && /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
144
|
className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
|
|
145
145
|
style: {
|
|
146
|
-
|
|
146
|
+
width: width
|
|
147
147
|
}
|
|
148
148
|
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
149
|
ref: text,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
min-width: 64px;
|
|
16
|
-
font-size:
|
|
16
|
+
font-size: 14px;
|
|
17
17
|
padding: 0 12px;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -60,21 +60,35 @@
|
|
|
60
60
|
background: #5c8eff;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
.titaui-rect-btn--secondary {
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
color: #2879ff;
|
|
67
|
+
line-height: 28px;
|
|
68
|
+
background: rgba(40, 121, 255, 0.2);
|
|
69
|
+
margin-right: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.titaui-rect-btn--secondary:hover {
|
|
73
|
+
color: #fff;
|
|
74
|
+
background-color: #2879ff;
|
|
75
|
+
}
|
|
76
|
+
|
|
63
77
|
.titaui-rect-btn--cancel {
|
|
64
|
-
color: #
|
|
65
|
-
border: 1px solid #
|
|
66
|
-
background: #
|
|
78
|
+
color: #6f7886;
|
|
79
|
+
border: 1px solid #dfe3ea;
|
|
80
|
+
background: #ffffff;
|
|
67
81
|
}
|
|
68
82
|
|
|
69
83
|
.titaui-rect-btn--cancel:hover {
|
|
70
|
-
color: #
|
|
71
|
-
border: 1px solid #
|
|
84
|
+
color: #2879ff;
|
|
85
|
+
border: 1px solid #2879ff;
|
|
72
86
|
}
|
|
73
87
|
|
|
74
88
|
.titaui-rect-btn--delete {
|
|
75
|
-
background: #
|
|
76
|
-
color: #
|
|
77
|
-
border: 1px solid #
|
|
89
|
+
background: #ffffff;
|
|
90
|
+
color: #f05e5e;
|
|
91
|
+
border: 1px solid #f05e5e;
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
.titaui-rect-btn--delete:hover {
|
|
@@ -92,11 +106,31 @@
|
|
|
92
106
|
user-select: none;
|
|
93
107
|
}
|
|
94
108
|
|
|
109
|
+
.titaui-rect-btn--disabled:hover .titaui-rect-btn--default:hover {
|
|
110
|
+
background: #fff;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.titaui-rect-btn--disabled:hover .titaui-rect-btn--primary:hover {
|
|
114
|
+
background: #2879ff;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.titaui-rect-btn--disabled:hover .titaui-rect-btn--secondary:hover {
|
|
118
|
+
background: rgba(40, 121, 255, 0.2);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.titaui-rect-btn--disabled:hover .titaui-rect-btn--cancel:hover {
|
|
122
|
+
background: #ffffff;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.titaui-rect-btn--disabled:hover .titaui-rect-btn--delete:hover {
|
|
126
|
+
background: #ffffff;
|
|
127
|
+
}
|
|
128
|
+
|
|
95
129
|
.titaui-rect-btn--primary.titaui-rect-btn--disabled {
|
|
96
|
-
background: #
|
|
130
|
+
background: #93bcff;
|
|
97
131
|
opacity: 1;
|
|
98
132
|
}
|
|
99
133
|
|
|
100
134
|
.titaui-rect-btn--primary.titaui-rect-btn--disabled:hover {
|
|
101
|
-
background: #
|
|
135
|
+
background: #93bcff;
|
|
102
136
|
}
|
|
@@ -34,7 +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
|
|
37
|
+
style = props.style,
|
|
38
|
+
children = props.children,
|
|
39
|
+
_props$loading = props.loading,
|
|
40
|
+
loading = _props$loading === void 0 ? false : _props$loading;
|
|
38
41
|
|
|
39
42
|
var renderIcon = function renderIcon() {
|
|
40
43
|
if (typeof icon === 'string') {
|
|
@@ -50,16 +53,19 @@ function RectBtn(props) {
|
|
|
50
53
|
}, icon);
|
|
51
54
|
};
|
|
52
55
|
|
|
53
|
-
var onClickHandler = function onClickHandler() {
|
|
54
|
-
if (disabled) return;
|
|
55
|
-
|
|
56
|
+
var onClickHandler = function onClickHandler(e) {
|
|
57
|
+
if (disabled || loading) return;
|
|
58
|
+
|
|
59
|
+
if (onClick) {
|
|
60
|
+
onClick(e);
|
|
61
|
+
}
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
-
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled), className),
|
|
65
|
+
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled || loading), className),
|
|
60
66
|
style: style,
|
|
61
67
|
onClick: onClickHandler
|
|
62
|
-
}, icon && renderIcon(),
|
|
68
|
+
}, icon && renderIcon(), children || text);
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
var _default = RectBtn;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -564,7 +564,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
564
564
|
}).join(','),
|
|
565
565
|
searchKr: okrPopType,
|
|
566
566
|
// 是否搜索KR:默认为0-不搜索,1-只有对齐目标弹层可以搜索KR
|
|
567
|
-
toUserId: toUserId
|
|
567
|
+
toUserId: toUserId,
|
|
568
|
+
includeCreateFailApprovalOkr: includeCreateFailApprovalOkr
|
|
568
569
|
}).then(function (res) {
|
|
569
570
|
_this4.pending = false;
|
|
570
571
|
var resData = res && res.Data && res.Data.works || [];
|
|
@@ -629,9 +630,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
629
630
|
var _this4$state4 = _this4.state,
|
|
630
631
|
selected = _this4$state4.selected,
|
|
631
632
|
selectOkr = _this4$state4.selectOkr;
|
|
632
|
-
var _this4$
|
|
633
|
-
onConfirm = _this4$
|
|
634
|
-
parentId = _this4$
|
|
633
|
+
var _this4$props3 = _this4.props,
|
|
634
|
+
onConfirm = _this4$props3.onConfirm,
|
|
635
|
+
parentId = _this4$props3.parentId;
|
|
635
636
|
var parentType = selected && selected.mileStoneId ? 2 : 1; // 临时注入
|
|
636
637
|
|
|
637
638
|
var data = _objectSpread(_objectSpread({}, selected), {}, {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
width: 16px;
|
|
4
4
|
height: 16px;
|
|
5
|
-
background: #
|
|
5
|
+
background: #ffffff;
|
|
6
6
|
border-radius: 4px;
|
|
7
|
-
border: 1px solid #
|
|
7
|
+
border: 1px solid #bfc7d5;
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.titaui-checkbox--disabled {
|
|
18
|
-
background-color: #
|
|
18
|
+
background-color: #f0f2f5;
|
|
19
19
|
cursor: not-allowed;
|
|
20
20
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.contact-kefu {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background: #f0f4fa;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.contact-kefu__kefu {
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 74px;
|
|
11
|
+
right: 24px;
|
|
12
|
+
z-index: 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.contact-kefu__try-kefu {
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: 134px;
|
|
18
|
+
right: 24px;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.contact-kefu__kefu {
|
|
23
|
+
width: 42px;
|
|
24
|
+
height: 42px;
|
|
25
|
+
background: url("./img/kefu.svg") no-repeat;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
background-size: 42px;
|
|
28
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.contact-kefu__hidden {
|
|
34
|
+
background-image: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.contact-kefu__cancel {
|
|
38
|
+
height: 100%;
|
|
39
|
+
background: url("./img/canceled.svg") 50% 50% no-repeat;
|
|
40
|
+
animation-duration: 0.3s;
|
|
41
|
+
animation-name: kefuActive;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.contact-kefu__popup {
|
|
45
|
+
width: 332px;
|
|
46
|
+
height: 376px;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
align-items: center;
|
|
51
|
+
background: #ffffff;
|
|
52
|
+
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
|
|
53
|
+
border-radius: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.contact-kefu__popup-title {
|
|
57
|
+
font-size: 20px;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
color: #141c28;
|
|
60
|
+
line-height: 30px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.contact-kefu__popup-content {
|
|
64
|
+
margin-top: 4px;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-weight: normal;
|
|
67
|
+
color: #6f7886;
|
|
68
|
+
line-height: 22px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.contact-kefu__popup-img {
|
|
72
|
+
width: 200px;
|
|
73
|
+
height: 200px;
|
|
74
|
+
margin-top: 24px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@keyframes contentOpacity {
|
|
78
|
+
from {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
to {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
15
|
+
|
|
16
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
17
|
+
|
|
18
|
+
var _platform = require("../../utils/platform");
|
|
19
|
+
|
|
20
|
+
var _notTry = _interopRequireDefault(require("./img/not-try.png"));
|
|
21
|
+
|
|
22
|
+
var _try = _interopRequireDefault(require("./img/try.png"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
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."); }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var preCls = "contact-kefu";
|
|
47
|
+
|
|
48
|
+
var ContactKefu = function ContactKefu() {
|
|
49
|
+
var _useState = (0, _react.useState)(false),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
visible = _useState2[0],
|
|
52
|
+
setVisible = _useState2[1];
|
|
53
|
+
|
|
54
|
+
var handleShowCode = function handleShowCode() {
|
|
55
|
+
setVisible(true);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
59
|
+
|
|
60
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: "".concat(preCls, "__popup")
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: "".concat(preCls, "__popup-title")
|
|
64
|
+
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
+
className: "".concat(preCls, "__popup-content")
|
|
66
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
67
|
+
src: isTrial ? _try["default"] : _notTry["default"],
|
|
68
|
+
className: "".concat(preCls, "__popup-img"),
|
|
69
|
+
alt: "\u5FAE\u4FE1\u626B\u7801"
|
|
70
|
+
}));
|
|
71
|
+
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
73
|
+
popup: popup,
|
|
74
|
+
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
75
|
+
placement: "topLeft",
|
|
76
|
+
popupAlign: {
|
|
77
|
+
offset: [-32, -10],
|
|
78
|
+
overflow: {
|
|
79
|
+
adjustX: 1,
|
|
80
|
+
adjustY: 1
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
popupVisible: visible,
|
|
84
|
+
onPopupVisibleChange: function onPopupVisibleChange(bol) {
|
|
85
|
+
return setVisible(bol);
|
|
86
|
+
}
|
|
87
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
88
|
+
overlay: "\u8054\u7CFB\u5BA2\u670D",
|
|
89
|
+
placement: "right",
|
|
90
|
+
align: {
|
|
91
|
+
offset: [0, 0]
|
|
92
|
+
}
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
+
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
95
|
+
onClick: handleShowCode
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
|
|
98
|
+
}))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = ContactKefu;
|
|
102
|
+
exports["default"] = _default;
|