@titaui/pc 1.15.25-beta.4 → 1.15.27
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/nav-top/components/app-center/index.css +0 -29
- package/lib/components/nav-top/components/app-center/index.js +4 -48
- package/lib/components/nav-top/index.js +0 -3
- package/package.json +1 -1
- package/lib/components/nav-top/components/app-center/images/quick.svg +0 -30
- package/lib/components/quick-entrance/img/canceled.svg +0 -15
- package/lib/components/quick-entrance/img/drag-icon.svg +0 -18
- package/lib/components/quick-entrance/img/ork.svg +0 -20
- package/lib/components/quick-entrance/img/performance.svg +0 -20
- package/lib/components/quick-entrance/img/project.svg +0 -21
- package/lib/components/quick-entrance/index.css +0 -172
- package/lib/components/quick-entrance/index.js +0 -278
- package/lib/components/quick-entrance/render-item.js +0 -36
- package/lib/components/quick-entrance/request-api.js +0 -22
|
@@ -46,10 +46,6 @@
|
|
|
46
46
|
background-size: contain;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.app-center__app-item-icon--quick {
|
|
50
|
-
background-image: url("./images/quick.svg");
|
|
51
|
-
}
|
|
52
|
-
|
|
53
49
|
.app-center__app-item-icon--chart {
|
|
54
50
|
background-image: url(./images/chart.svg);
|
|
55
51
|
}
|
|
@@ -102,27 +98,6 @@
|
|
|
102
98
|
color: #141c28;
|
|
103
99
|
line-height: 26px;
|
|
104
100
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
105
|
-
display: flex;
|
|
106
|
-
flex-direction: row;
|
|
107
|
-
align-items: center;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.app-center__app-item-name__right-btn {
|
|
111
|
-
min-width: 46px;
|
|
112
|
-
width: 46px !important;
|
|
113
|
-
height: 20px !important;
|
|
114
|
-
border-radius: 11px;
|
|
115
|
-
border: 1px solid #2879FF;
|
|
116
|
-
font-size: 12px;
|
|
117
|
-
font-weight: normal;
|
|
118
|
-
color: #2879FF;
|
|
119
|
-
line-height: 20px;
|
|
120
|
-
text-align: center;
|
|
121
|
-
margin-left: 8px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.app-center__app-item-name__right-btn:hover {
|
|
125
|
-
background-color: rgba(40, 121, 255, 0.1);
|
|
126
101
|
}
|
|
127
102
|
|
|
128
103
|
.app-center__app-item-sub-title {
|
|
@@ -141,10 +116,6 @@
|
|
|
141
116
|
padding: 0 16px;
|
|
142
117
|
}
|
|
143
118
|
|
|
144
|
-
.app-center__app-item--quick:hover {
|
|
145
|
-
background-color: rgba(255, 178, 0, 0.1);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
119
|
.app-center__app-item--okr:hover, .app-center__app-item--demo:hover {
|
|
149
120
|
background-color: rgba(40, 121, 255, 0.1);
|
|
150
121
|
}
|
|
@@ -29,8 +29,6 @@ var _interface = require("./interface");
|
|
|
29
29
|
|
|
30
30
|
var _yuyueAward = _interopRequireDefault(require("./images/yuyue-award.png"));
|
|
31
31
|
|
|
32
|
-
var _quickEntrance = _interopRequireDefault(require("../../../quick-entrance"));
|
|
33
|
-
|
|
34
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
33
|
|
|
36
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -89,13 +87,6 @@ var AppCenter = function AppCenter(props) {
|
|
|
89
87
|
isTrial = _useState6[0];
|
|
90
88
|
|
|
91
89
|
var _useState7 = (0, _react.useState)(function () {
|
|
92
|
-
console.log(apps);
|
|
93
|
-
var localCurrentAppId = localStorage.getItem("LocalCurrentAppId_".concat(userId));
|
|
94
|
-
|
|
95
|
-
if (localCurrentAppId) {
|
|
96
|
-
return Number(localCurrentAppId);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
90
|
var hash = window.location.hash.split('?')[0] || '';
|
|
100
91
|
|
|
101
92
|
if (hash) {
|
|
@@ -111,7 +102,6 @@ var AppCenter = function AppCenter(props) {
|
|
|
111
102
|
currentAppId = _useState8[0],
|
|
112
103
|
setCurrentAppId = _useState8[1];
|
|
113
104
|
|
|
114
|
-
var QuickEntranceDialogRef = (0, _react.useRef)(null);
|
|
115
105
|
var bookDemoRef = (0, _react.useRef)();
|
|
116
106
|
(0, _react.useEffect)(function () {
|
|
117
107
|
setInit(true);
|
|
@@ -129,21 +119,11 @@ var AppCenter = function AppCenter(props) {
|
|
|
129
119
|
setMenu([].concat(_toConsumableArray(dynamic), _toConsumableArray(menus)));
|
|
130
120
|
|
|
131
121
|
if (init) {
|
|
132
|
-
|
|
133
|
-
window.location.href = menus[0].href;
|
|
134
|
-
} else {
|
|
135
|
-
var _dynamic$;
|
|
136
|
-
|
|
137
|
-
var _dynamic = navigations.filter(function (item) {
|
|
138
|
-
return item.code === 'dynamic';
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
window.location.href = (_dynamic$ = _dynamic[0]) === null || _dynamic$ === void 0 ? void 0 : _dynamic$.href;
|
|
142
|
-
}
|
|
122
|
+
window.location.href = menus === null || menus === void 0 ? void 0 : menus[0].href;
|
|
143
123
|
}
|
|
144
124
|
|
|
145
125
|
closeAppCenter();
|
|
146
|
-
}, [currentAppId
|
|
126
|
+
}, [currentAppId]);
|
|
147
127
|
|
|
148
128
|
var onAppSelectHandler = function onAppSelectHandler(app) {
|
|
149
129
|
if (app.type === 'newPage') {
|
|
@@ -151,9 +131,7 @@ var AppCenter = function AppCenter(props) {
|
|
|
151
131
|
return;
|
|
152
132
|
}
|
|
153
133
|
|
|
154
|
-
console.log(app);
|
|
155
134
|
setCurrentAppId(app.id);
|
|
156
|
-
localStorage.setItem("LocalCurrentAppId_".concat(userId), app.id.toString());
|
|
157
135
|
closeAppCenter();
|
|
158
136
|
};
|
|
159
137
|
|
|
@@ -185,22 +163,6 @@ var AppCenter = function AppCenter(props) {
|
|
|
185
163
|
}
|
|
186
164
|
};
|
|
187
165
|
|
|
188
|
-
var handleOpenQuickMenu = function handleOpenQuickMenu() {
|
|
189
|
-
var quickMenuId = 23859;
|
|
190
|
-
localStorage.setItem("LocalCurrentAppId_".concat(userId), quickMenuId.toString());
|
|
191
|
-
setTimeout(function () {
|
|
192
|
-
setCurrentAppId(quickMenuId);
|
|
193
|
-
location.reload();
|
|
194
|
-
}, 500);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
var handleSetting = function handleSetting(e) {
|
|
198
|
-
var _QuickEntranceDialogR;
|
|
199
|
-
|
|
200
|
-
e.stopPropagation();
|
|
201
|
-
(_QuickEntranceDialogR = QuickEntranceDialogRef.current) === null || _QuickEntranceDialogR === void 0 ? void 0 : _QuickEntranceDialogR.showDialog();
|
|
202
|
-
};
|
|
203
|
-
|
|
204
166
|
return /*#__PURE__*/_react["default"].createElement(_drawer["default"], {
|
|
205
167
|
className: "".concat(precls, "__drawer"),
|
|
206
168
|
placement: "top",
|
|
@@ -208,10 +170,7 @@ var AppCenter = function AppCenter(props) {
|
|
|
208
170
|
visible: appCenterVisible,
|
|
209
171
|
width: "100%",
|
|
210
172
|
autoClosable: true
|
|
211
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
212
|
-
ref: QuickEntranceDialogRef,
|
|
213
|
-
handleOpenQuickMenu: handleOpenQuickMenu
|
|
214
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
215
174
|
className: precls
|
|
216
175
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
176
|
className: "".concat(precls, "__app-list")
|
|
@@ -227,10 +186,7 @@ var AppCenter = function AppCenter(props) {
|
|
|
227
186
|
className: "".concat(precls, "__app-item-desc")
|
|
228
187
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
229
188
|
className: "".concat(precls, "__app-item-name")
|
|
230
|
-
},
|
|
231
|
-
className: "".concat(precls, "__app-item-name__right-btn"),
|
|
232
|
-
onClick: handleSetting
|
|
233
|
-
}, "\u8BBE\u7F6E")), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
189
|
+
}, app.title), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
234
190
|
className: "".concat(precls, "__app-item-sub-title")
|
|
235
191
|
}, app.subTitle)));
|
|
236
192
|
}), new Array(20).fill(1).map(function () {
|
|
@@ -272,9 +272,6 @@ var NavTop = function NavTop() {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
(0, _react.useEffect)(function () {
|
|
276
|
-
localStorage.removeItem("LocalCurrentAppId_".concat((0, _bsGlobal.getUserInfo)().Id));
|
|
277
|
-
}, []);
|
|
278
275
|
(0, _react.useEffect)(function () {
|
|
279
276
|
handleHashChange();
|
|
280
277
|
window.addEventListener('hashchange', handleHashChange);
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>OKR 目标</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient x1="93.0938721%" y1="100%" x2="58.0596924%" y2="57.6904297%" id="linearGradient-1">
|
|
6
|
-
<stop stop-color="#FFD15E" offset="0%"></stop>
|
|
7
|
-
<stop stop-color="#FFC637" offset="78.8761029%"></stop>
|
|
8
|
-
<stop stop-color="#FFC32C" offset="100%"></stop>
|
|
9
|
-
</linearGradient>
|
|
10
|
-
</defs>
|
|
11
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
12
|
-
<g id="快捷入口" transform="translate(-136.000000, -98.000000)">
|
|
13
|
-
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
14
|
-
<g id="编组-21" transform="translate(120.000000, 32.000000)">
|
|
15
|
-
<g id="OKR-目标" transform="translate(16.000000, 12.000000)">
|
|
16
|
-
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background" fill="url(#linearGradient-1)"></path>
|
|
17
|
-
<g id="验收标准规范库" transform="translate(4.000000, 4.000000)" fill-rule="nonzero">
|
|
18
|
-
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="24" height="24"></rect>
|
|
19
|
-
<g id="闪电">
|
|
20
|
-
<rect id="矩形" fill="#F6BD16" opacity="0" x="0" y="0" width="24" height="24"></rect>
|
|
21
|
-
<path d="M11.9573624,15.9479022 L8.20069499,15.9479022 C7.71022824,15.9479022 7.37189483,15.4569688 7.5464282,14.9989353 L11.2792956,5.2008001 C11.3826842,4.9294091 11.6429117,4.75000001 11.9333291,4.75000001 L18.232397,4.75000001 C18.729397,4.75000001 19.0681971,5.25353345 18.8805971,5.7139002 L16.7070967,11.0488346 L20.7988308,11.0488346 C21.4005976,11.0488346 21.7216643,11.758168 21.3247642,12.2103681 L9.50537109,21.8832397 C9.01770434,22.4390398 8.11353748,21.9574397 8.30277086,21.2427395 L11.9573624,15.9479022 Z" id="路径" fill-opacity="0.4" fill="#FFFFFF"></path>
|
|
22
|
-
<path d="M9.95736238,13.9479022 L6.20069499,13.9479022 C5.71022824,13.9479022 5.37189483,13.4569688 5.5464282,12.9989353 L9.27929559,3.2008001 C9.38268419,2.9294091 9.64291165,2.75000001 9.93332906,2.75000001 L16.232397,2.75000001 C16.729397,2.75000001 17.0681971,3.25353345 16.8805971,3.7139002 L14.7070967,9.04883456 L18.7988308,9.04883456 C19.4005976,9.04883456 19.7216643,9.75816804 19.3247642,10.2103681 L9.29282894,21.6413704 C8.80516218,22.1971705 7.90099532,21.7155704 8.0902287,21.0008702 L9.95736238,13.9479022 Z" id="路径" fill="#FFFFFF"></path>
|
|
23
|
-
</g>
|
|
24
|
-
</g>
|
|
25
|
-
</g>
|
|
26
|
-
</g>
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
</g>
|
|
30
|
-
</svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>切片</title>
|
|
4
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="快捷入口-设置" transform="translate(-764.000000, -239.000000)" fill="#444444">
|
|
6
|
-
<g id="编组-5" transform="translate(80.000000, 110.000000)">
|
|
7
|
-
<g id="编组-4" transform="translate(401.000000, 119.000000)">
|
|
8
|
-
<g id="canceled" transform="translate(283.000000, 10.000000)">
|
|
9
|
-
<path d="M3.67140452,2.88954305 L8.00814045,7.22580712 L12.3452477,2.88954305 C12.5535273,2.68126343 12.8768366,2.65812125 13.1106784,2.82011651 L13.1937758,2.88954305 C13.4280904,3.12385763 13.4280904,3.50375661 13.1937758,3.73807119 L13.1937758,3.73807119 L8.85614045,8.07480712 L13.1937758,12.4119144 C13.4280904,12.6462289 13.4280904,13.0261279 13.1937758,13.2604425 C12.9594613,13.4947571 12.5795623,13.4947571 12.3452477,13.2604425 L8.00814045,8.92280712 L3.67140452,13.2604425 C3.4631249,13.4687221 3.13981562,13.4918643 2.90597385,13.329869 L2.82287638,13.2604425 C2.58856181,13.0261279 2.58856181,12.6462289 2.82287638,12.4119144 L2.82287638,12.4119144 L7.15914045,8.07480712 L2.82287638,3.73807119 C2.58856181,3.50375661 2.58856181,3.12385763 2.82287638,2.88954305 C3.05719096,2.65522847 3.43708995,2.65522847 3.67140452,2.88954305 Z" id="形状结合"></path>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</g>
|
|
15
|
-
</svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>切片</title>
|
|
4
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="快捷入口-设置" transform="translate(-489.000000, -238.000000)" fill="#6F7886" fill-rule="nonzero">
|
|
6
|
-
<g id="编组-5" transform="translate(80.000000, 110.000000)">
|
|
7
|
-
<g id="编组-4" transform="translate(401.000000, 119.000000)">
|
|
8
|
-
<g id="shitu" transform="translate(8.000000, 9.000000)">
|
|
9
|
-
<g id="拖拽" transform="translate(9.000000, 9.000000) rotate(-270.000000) translate(-9.000000, -9.000000) translate(0.000000, 0.000000)">
|
|
10
|
-
<rect id="矩形" opacity="0" x="0" y="0" width="18" height="18"></rect>
|
|
11
|
-
<path d="M3.85714285,10.2857143 C3.2142857,10.2857143 2.57142857,10.9285714 2.57142857,11.5714286 C2.57142857,12.2142857 3.21428572,12.8571428 3.85714285,12.8571428 C4.49999998,12.8571428 5.14285715,12.2142857 5.14285715,11.5714286 C5.14285715,10.9285714 4.5,10.2857143 3.85714285,10.2857143 L3.85714285,10.2857143 Z M14.1428572,7.71428572 C14.7857143,7.71428572 15.4285714,7.07142857 15.4285714,6.42857143 C15.4285714,5.7857143 14.7857143,5.14285715 14.1428572,5.14285715 C13.5,5.14285715 12.8571428,5.7857143 12.8571428,6.42857143 C12.8571428,7.07142857 13.5,7.71428572 14.1428572,7.71428572 Z M3.85714285,5.14285715 C3.2142857,5.14285715 2.57142857,5.7857143 2.57142857,6.42857143 C2.57142857,7.07142857 3.21428572,7.71428572 3.85714285,7.71428572 C4.49999998,7.71428572 5.14285715,7.07142857 5.14285715,6.42857143 C5.14285715,5.7857143 4.5,5.14285715 3.85714285,5.14285715 L3.85714285,5.14285715 Z M14.1428572,10.2857143 C13.5,10.2857143 12.8571428,10.9285714 12.8571428,11.5714286 C12.8571428,12.2142857 13.5,12.8571428 14.1428572,12.8571428 C14.7857143,12.8571428 15.4285714,12.2142857 15.4285714,11.5714286 C15.4285714,10.9285714 14.7857143,10.2857143 14.1428572,10.2857143 Z M9,5.14285715 C8.35714285,5.14285715 7.71428572,5.7857143 7.71428572,6.42857143 C7.71428572,7.07142857 8.35714287,7.71428572 9,7.71428572 C9.64285713,7.71428572 10.2857143,7.07142857 10.2857143,6.42857143 C10.2857143,5.7857143 9.64285713,5.14285715 9,5.14285715 Z M9,10.2857143 C8.35714285,10.2857143 7.71428572,10.9285714 7.71428572,11.5714286 C7.71428572,12.2142857 8.35714287,12.8571428 9,12.8571428 C9.64285713,12.8571428 10.2857143,12.2142857 10.2857143,11.5714286 C10.2857143,10.9285714 9.64285713,10.2857143 9,10.2857143 Z" id="形状"></path>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</svg>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>OKR 目标</title>
|
|
4
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="快捷入口-设置" transform="translate(-132.000000, -192.000000)">
|
|
6
|
-
<g id="编组-5" transform="translate(80.000000, 110.000000)">
|
|
7
|
-
<g id="OKR-目标" transform="translate(52.000000, 82.000000)">
|
|
8
|
-
<path d="M6.53334329,1.24442951 C11.5111393,-0.414809837 16.4888607,-0.414809837 21.4666567,1.24442951 C23.4576407,1.9830307 26.016912,4.54237492 26.7555137,6.5333576 C28.4148288,11.5110756 28.4148288,16.4888684 26.7555137,21.4666611 C26.016912,23.4575691 23.4576407,26.0169133 21.4666567,26.7555145 C16.4888607,28.4148285 11.5111393,28.4148285 6.53334329,26.7555145 C4.54243394,26.0169133 1.98308802,23.4575691 1.24448634,21.4666611 C-0.41482878,16.4888684 -0.41482878,11.5110756 1.24448634,6.5333576 C1.98308802,4.54237492 4.54243394,1.9830307 6.53334329,1.24442951" id="background" fill-opacity="0.16" fill="#2879FF"></path>
|
|
9
|
-
<g id="OKR" transform="translate(3.500000, 3.500000)">
|
|
10
|
-
<rect id="矩形" x="0" y="0" width="21" height="21"></rect>
|
|
11
|
-
<g id="OKR-s" transform="translate(1.995000, 1.863750)">
|
|
12
|
-
<path d="M8.09375,1.085 C8.66199831,1.085 9.21658714,1.14358923 9.75181398,1.25505187 C9.38672791,1.92228989 9.27848041,2.66571244 9.43355306,3.37927085 L9.48798094,3.5923364 L9.555,3.82025 L6.77863573,6.77578425 L6.66849312,6.90164897 C5.90017515,7.83926871 5.91778637,9.17185929 6.69462529,10.070066 L6.816842,10.2014355 L6.93945026,10.3160503 L7.06773487,10.4206986 C7.98002533,11.1150318 9.26799621,11.0837868 10.1464754,10.3269636 L10.2816652,10.2014355 L12.93075,7.378875 L13.4182196,7.5224615 L13.6280665,7.57525344 L13.8294958,7.60785364 C14.5976374,7.70950435 15.330038,7.54676585 15.9329267,7.1631847 C16.0995953,7.80664622 16.1875,8.48242685 16.1875,9.17875 C16.1875,11.4134344 15.2818094,13.4368719 13.8172453,14.9022453 C12.3518719,16.3668094 10.3284344,17.2725 8.09375,17.2725 C5.85866094,17.2725 3.83522344,16.3668094 2.37065938,14.9022453 C0.906095313,13.4368719 0,11.4134344 0,9.17875 C0,6.94366094 0.906095313,4.92022344 2.37065938,3.45565938 C3.83522344,1.99109531 5.85866094,1.085 8.09375,1.085 Z M14.7185612,0.435678663 C14.8239579,0.541075399 14.9126613,0.661458095 14.9832696,0.796088175 L15.0477944,0.935440029 L15.093795,1.0677741 L15.28625,1.72375 L15.9426175,1.91659912 C16.6453566,2.12328707 17.0800593,2.80303357 17.0016942,3.5066142 L16.9809284,3.63870521 L16.9499513,3.76337771 C16.9078934,3.90637449 16.8446858,4.04189234 16.7603056,4.16834698 L16.668867,4.29172187 L16.5747165,4.39547664 L15.3340144,5.63617867 C15.0204895,5.94970364 14.5860527,6.10476039 14.1445462,6.06475024 L13.9972716,6.04413862 L13.8624868,6.01141824 L12.446875,5.59475 L9.16797205,9.08774229 C8.87883387,9.37688047 8.43768633,9.42136326 8.10177604,9.22119068 L8.0129666,9.16053232 L7.93053518,9.08774229 C7.62256899,8.77977609 7.59144025,8.29788368 7.84265547,7.95325009 L7.91134462,7.87013134 L11.319875,4.242 L10.9989816,3.14792444 C10.8877726,2.76981396 10.9322317,2.36779037 11.1166382,2.02435424 L11.1923199,1.89847311 L11.2809375,1.77905136 L11.3742165,1.67638069 L12.6149185,0.435678663 C13.1958234,-0.145226221 14.1376563,-0.145226221 14.7185612,0.435678663 Z M13.538875,1.98625 L12.72075,2.8035 L13.0585,3.950625 L14.2065,4.288375 L15.024625,3.47025 L14.3350399,3.26790447 C14.1344727,3.20891412 13.9632704,3.08063261 13.8471211,2.9014498 L13.7937531,2.80770177 L13.7513647,2.70366164 L13.538875,1.98625 Z" id="形状结合" fill="#2175FF"></path>
|
|
13
|
-
<path d="M3.5,8.0889986 C3.98324916,8.0889986 4.375,8.48074944 4.375,8.9639986 C4.375,10.9936451 6.02035354,12.6389986 8.05,12.6389986 C8.53324916,12.6389986 8.925,13.0307494 8.925,13.5139986 C8.925,13.9972478 8.53324916,14.3889986 8.05,14.3889986 C5.05385523,14.3889986 2.625,11.9601434 2.625,8.9639986 C2.625,8.48074944 3.01675084,8.0889986 3.5,8.0889986 Z" id="路径" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</svg>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>绩效管理</title>
|
|
4
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="快捷入口-设置" transform="translate(-132.000000, -348.000000)">
|
|
6
|
-
<g id="编组-5" transform="translate(80.000000, 110.000000)">
|
|
7
|
-
<g id="绩效管理" transform="translate(52.000000, 238.000000)">
|
|
8
|
-
<path d="M6.53334329,1.24442951 C11.5111393,-0.414809837 16.4888607,-0.414809837 21.4666567,1.24442951 C23.4576407,1.9830307 26.016912,4.54237492 26.7555137,6.5333576 C28.4148288,11.5110756 28.4148288,16.4888684 26.7555137,21.4666611 C26.016912,23.4575691 23.4576407,26.0169133 21.4666567,26.7555145 C16.4888607,28.4148285 11.5111393,28.4148285 6.53334329,26.7555145 C4.54243394,26.0169133 1.98308802,23.4575691 1.24448634,21.4666611 C-0.41482878,16.4888684 -0.41482878,11.5110756 1.24448634,6.5333576 C1.98308802,4.54237492 4.54243394,1.9830307 6.53334329,1.24442951" id="background备份" fill-opacity="0.16" fill="#FFB200"></path>
|
|
9
|
-
<g id="OKR" transform="translate(3.500000, 3.500000)">
|
|
10
|
-
<rect id="矩形" x="0" y="0" width="21" height="21"></rect>
|
|
11
|
-
<g id="编组" transform="translate(2.625000, 2.625000)">
|
|
12
|
-
<path d="M12.25,0 C14.1829966,0 15.75,1.56700338 15.75,3.5 L15.75,3.5 L15.75,12.25 C15.75,14.1829966 14.1829966,15.75 12.25,15.75 L12.25,15.75 L3.5,15.75 C1.56700338,15.75 0,14.1829966 0,12.25 L0,12.25 L0,3.5 C0,1.56700338 1.56700338,0 3.5,0 L3.5,0 Z M11.2811972,10.325 L4.4561972,10.325 C4.06959787,10.325 3.7561972,10.6384007 3.7561972,11.025 C3.7561972,11.4115993 4.06959787,11.725 4.4561972,11.725 L4.4561972,11.725 L11.2811972,11.725 C11.6677965,11.725 11.9811972,11.4115993 11.9811972,11.025 C11.9811972,10.6384007 11.6677965,10.325 11.2811972,10.325 L11.2811972,10.325 Z" id="形状结合" fill="#F6BD16" fill-rule="nonzero"></path>
|
|
13
|
-
<path d="M8.90770601,2.32268098 C9.05405518,2.31973186 9.20113474,2.36280472 9.32537987,2.45183158 L9.41391406,2.52721704 L11.1363565,4.25962865 C11.3813835,4.50607373 11.4058861,4.88897619 11.2098646,5.16271274 L11.1363565,5.24957815 C10.8891933,5.49533378 10.5085653,5.51888235 10.2379137,5.32299674 L10.1521037,5.24957815 L9.58290022,4.67709611 L9.5843368,7.31219083 C9.59054936,7.3495778 9.5937818,7.38797209 9.5937818,7.42712136 C9.5937818,7.81149601 9.28218459,8.12309323 8.89780994,8.12309323 L7.03190022,8.12209611 L7.03284394,9.98805923 C7.03284394,10.3724339 6.72124673,10.6840311 6.33687208,10.6840311 C5.95249743,10.6840311 5.64090022,10.3724339 5.64090022,9.98805923 L5.64090022,7.44250295 C5.64090022,7.24601293 5.7223266,7.06854105 5.85327664,6.94199004 C5.97829177,6.81257588 6.15576364,6.7311495 6.35225367,6.7311495 L8.19090022,6.73109611 L8.19090022,4.72109611 L7.62830027,5.28802038 C7.35807038,5.5598143 6.91867327,5.5610822 6.64687935,5.29085232 C6.64593265,5.28991106 6.64498867,5.28896708 6.64404742,5.28802038 C6.3717953,5.01419252 6.3717953,4.57189875 6.64404742,4.29807089 L8.32931531,2.6023815 C8.45619913,2.43225904 8.65901628,2.32209611 8.88756337,2.32209611 L8.90770601,2.32268098 Z" id="形状结合" fill="#FFFFFF" transform="translate(8.491139, 6.503064) rotate(-315.000000) translate(-8.491139, -6.503064) "></path>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</svg>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>项目</title>
|
|
4
|
-
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="快捷入口-设置" transform="translate(-132.000000, -504.000000)">
|
|
6
|
-
<g id="编组-5" transform="translate(80.000000, 110.000000)">
|
|
7
|
-
<g id="项目" transform="translate(52.000000, 394.000000)">
|
|
8
|
-
<path d="M6.53334329,1.24442951 C11.5111393,-0.414809837 16.4888607,-0.414809837 21.4666567,1.24442951 C23.4576407,1.9830307 26.016912,4.54237492 26.7555137,6.5333576 C28.4148288,11.5110756 28.4148288,16.4888684 26.7555137,21.4666611 C26.016912,23.4575691 23.4576407,26.0169133 21.4666567,26.7555145 C16.4888607,28.4148285 11.5111393,28.4148285 6.53334329,26.7555145 C4.54243394,26.0169133 1.98308802,23.4575691 1.24448634,21.4666611 C-0.41482878,16.4888684 -0.41482878,11.5110756 1.24448634,6.5333576 C1.98308802,4.54237492 4.54243394,1.9830307 6.53334329,1.24442951" id="background备份" fill-opacity="0.16" fill="#624DFF"></path>
|
|
9
|
-
<g id="OKR" transform="translate(3.500000, 3.500000)">
|
|
10
|
-
<rect id="矩形" x="0" y="0" width="21" height="21"></rect>
|
|
11
|
-
<g id="zongjie-s">
|
|
12
|
-
<polygon id="Stroke-7" points="0 21 21 21 21 0 0 0"></polygon>
|
|
13
|
-
<path d="M14.875,2.625 C16.8079966,2.625 18.375,4.19200338 18.375,6.125 L18.375,6.125 L18.375,14.875 C18.375,16.8079966 16.8079966,18.375 14.875,18.375 L14.875,18.375 L6.125,18.375 C4.19200338,18.375 2.625,16.8079966 2.625,14.875 L2.625,14.875 L2.625,6.125 C2.625,4.19200338 4.19200338,2.625 6.125,2.625 L6.125,2.625 Z M6.5625,13.125 C6.07925084,13.125 5.6875,13.5167508 5.6875,14 C5.6875,14.4832492 6.07925084,14.875 6.5625,14.875 C7.04574916,14.875 7.4375,14.4832492 7.4375,14 C7.4375,13.5167508 7.04574916,13.125 6.5625,13.125 Z M14.4375,13.125 L9.1875,13.125 C8.70425084,13.125 8.3125,13.5167508 8.3125,14 C8.3125,14.4832492 8.70425084,14.875 9.1875,14.875 L9.1875,14.875 L14.4375,14.875 C14.9207492,14.875 15.3125,14.4832492 15.3125,14 C15.3125,13.5167508 14.9207492,13.125 14.4375,13.125 L14.4375,13.125 Z M6.5625,9.625 C6.07925084,9.625 5.6875,10.0167508 5.6875,10.5 C5.6875,10.9832492 6.07925084,11.375 6.5625,11.375 C7.04574916,11.375 7.4375,10.9832492 7.4375,10.5 C7.4375,10.0167508 7.04574916,9.625 6.5625,9.625 Z M14.4375,9.625 L9.1875,9.625 C8.70425084,9.625 8.3125,10.0167508 8.3125,10.5 C8.3125,10.9832492 8.70425084,11.375 9.1875,11.375 L9.1875,11.375 L14.4375,11.375 C14.9207492,11.375 15.3125,10.9832492 15.3125,10.5 C15.3125,10.0167508 14.9207492,9.625 14.4375,9.625 L14.4375,9.625 Z M14.4375,6.125 L6.5625,6.125 C6.07925084,6.125 5.6875,6.51675084 5.6875,7 C5.6875,7.48324916 6.07925084,7.875 6.5625,7.875 L6.5625,7.875 L14.4375,7.875 C14.9207492,7.875 15.3125,7.48324916 15.3125,7 C15.3125,6.51675084 14.9207492,6.125 14.4375,6.125 L14.4375,6.125 Z" id="形状结合" fill="#624DFF" fill-rule="nonzero"></path>
|
|
14
|
-
<path d="M10.5,2.1875 C10.9832492,2.1875 11.375,2.57925084 11.375,3.0625 L11.375,10.9375 C11.375,11.4207492 10.9832492,11.8125 10.5,11.8125 C10.0167508,11.8125 9.625,11.4207492 9.625,10.9375 L9.625,3.0625 C9.625,2.57925084 10.0167508,2.1875 10.5,2.1875 Z" id="矩形" fill="#FFFFFF" transform="translate(10.500000, 7.000000) rotate(-270.000000) translate(-10.500000, -7.000000) "></path>
|
|
15
|
-
</g>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</g>
|
|
21
|
-
</svg>
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
.titaui-quick-entrance-dialog {
|
|
2
|
-
padding: 0 32px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-quick-entrance-dialog__wrap .rc-dialog {
|
|
6
|
-
width: 760px;
|
|
7
|
-
height: 580px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.titaui-quick-entrance-dialog__title {
|
|
11
|
-
width: 108px;
|
|
12
|
-
font-size: 18px;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
color: #141C28;
|
|
15
|
-
line-height: 26px;
|
|
16
|
-
padding: 18px 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-quick-entrance-dialog__content {
|
|
20
|
-
width: 696px;
|
|
21
|
-
height: 442px;
|
|
22
|
-
background: #FFFFFF;
|
|
23
|
-
border-radius: 12px;
|
|
24
|
-
border: 1px solid #DFE3EA;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: row;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.titaui-quick-entrance-dialog__content__left {
|
|
30
|
-
width: 348px;
|
|
31
|
-
height: 100%;
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-quick-entrance-dialog__content__left-wrapper {
|
|
36
|
-
margin-top: 20px;
|
|
37
|
-
overflow-y: scroll;
|
|
38
|
-
overflow-y: overlay;
|
|
39
|
-
height: 95%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.titaui-quick-entrance-dialog__content__left-wrapper::-webkit-scrollbar {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.titaui-quick-entrance-dialog__content__left-wrapper:hover::-webkit-scrollbar {
|
|
47
|
-
display: block;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.titaui-quick-entrance-dialog__content__left__item:nth-child(1) {
|
|
51
|
-
padding-top: 0px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.titaui-quick-entrance-dialog__content__left__item {
|
|
55
|
-
padding: 20px 20px 0 20px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-one {
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: row;
|
|
61
|
-
align-items: center;
|
|
62
|
-
margin-bottom: 8px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-one__icon {
|
|
66
|
-
width: 28px;
|
|
67
|
-
height: 28px;
|
|
68
|
-
display: inline-block;
|
|
69
|
-
background-size: cover;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-one__title {
|
|
73
|
-
margin-left: 8px;
|
|
74
|
-
font-size: 14px;
|
|
75
|
-
font-weight: normal;
|
|
76
|
-
color: #89919F;
|
|
77
|
-
line-height: 22px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-two {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: row;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
align-items: center;
|
|
85
|
-
height: 36px;
|
|
86
|
-
background: #FFFFFF;
|
|
87
|
-
border-radius: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-two:hover {
|
|
91
|
-
background: #F0F4FA;
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-two__title {
|
|
96
|
-
margin-left: 36px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.titaui-quick-entrance-dialog__content__left__item__menu-two__checkbox {
|
|
100
|
-
display: inline-block;
|
|
101
|
-
padding-top: 10px;
|
|
102
|
-
padding-right: 6px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.titaui-quick-entrance-dialog__content__right {
|
|
106
|
-
flex: 1;
|
|
107
|
-
border-left: 1px solid #DFE3EA;
|
|
108
|
-
height: 100%;
|
|
109
|
-
box-sizing: border-box;
|
|
110
|
-
padding: 20px 20px;
|
|
111
|
-
overflow-y: scroll;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.titaui-quick-entrance-dialog__content__right-yixuan {
|
|
115
|
-
font-size: 14px;
|
|
116
|
-
font-weight: normal;
|
|
117
|
-
color: #3F4755;
|
|
118
|
-
line-height: 22px;
|
|
119
|
-
margin-bottom: 12px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.titaui-quick-entrance-dialog__content__right__item {
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.titaui-quick-entrance-dialog__content__right__item__container {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
box-sizing: border-box;
|
|
129
|
-
display: flex;
|
|
130
|
-
flex-direction: row;
|
|
131
|
-
align-items: center;
|
|
132
|
-
width: 307px;
|
|
133
|
-
height: 36px;
|
|
134
|
-
background: #F0F4FA;
|
|
135
|
-
border-radius: 8px;
|
|
136
|
-
margin-bottom: 8px;
|
|
137
|
-
padding: 0 8px;
|
|
138
|
-
position: relative;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.titaui-quick-entrance-dialog__content__right__item__container__drag-icon {
|
|
142
|
-
width: 18px;
|
|
143
|
-
height: 18px;
|
|
144
|
-
background-image: url("./img/drag-icon.svg");
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.titaui-quick-entrance-dialog__content__right__item__container__cancle-icon {
|
|
148
|
-
width: 16px;
|
|
149
|
-
height: 16px;
|
|
150
|
-
background-image: url("./img/canceled.svg");
|
|
151
|
-
position: absolute;
|
|
152
|
-
right: 8px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.titaui-quick-entrance-dialog__content__right__item__container__title {
|
|
156
|
-
margin-left: 9px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.titaui-quick-entrance-dialog .drag-boder {
|
|
160
|
-
width: 307px;
|
|
161
|
-
position: relative;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.titaui-quick-entrance-dialog .drag-boder::before {
|
|
165
|
-
content: '';
|
|
166
|
-
position: absolute;
|
|
167
|
-
top: 0;
|
|
168
|
-
left: 0;
|
|
169
|
-
width: 307px;
|
|
170
|
-
height: 1px;
|
|
171
|
-
background: #2879FF;
|
|
172
|
-
}
|
|
@@ -1,278 +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 _reactSortablejs = require("react-sortablejs");
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _dialog = _interopRequireDefault(require("../dialog"));
|
|
17
|
-
|
|
18
|
-
var _renderItem = _interopRequireDefault(require("./render-item"));
|
|
19
|
-
|
|
20
|
-
var _bsGlobal = require("../../utils/bs-global");
|
|
21
|
-
|
|
22
|
-
var _requestApi = require("./request-api");
|
|
23
|
-
|
|
24
|
-
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
25
|
-
|
|
26
|
-
require("./index.css");
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
35
|
-
|
|
36
|
-
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."); }
|
|
37
|
-
|
|
38
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
39
|
-
|
|
40
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
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 preCls = 'titaui-quick-entrance-dialog';
|
|
55
|
-
var QuickEntranceDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
56
|
-
var _props$visible = props.visible,
|
|
57
|
-
visible = _props$visible === void 0 ? false : _props$visible,
|
|
58
|
-
handleOpenQuickMenu = props.handleOpenQuickMenu;
|
|
59
|
-
|
|
60
|
-
var _useState = (0, _react.useState)(visible),
|
|
61
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
62
|
-
dialogVisible = _useState2[0],
|
|
63
|
-
setDialogVisible = _useState2[1];
|
|
64
|
-
|
|
65
|
-
var _useState3 = (0, _react.useState)([]),
|
|
66
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
67
|
-
entrancelist = _useState4[0],
|
|
68
|
-
setEntranceList = _useState4[1];
|
|
69
|
-
|
|
70
|
-
var QuickEntranceDialogRef = (0, _react.useRef)(null);
|
|
71
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
72
|
-
return {
|
|
73
|
-
showDialog: showDialog,
|
|
74
|
-
hideDialog: hideDialog
|
|
75
|
-
};
|
|
76
|
-
});
|
|
77
|
-
var newNavigation = (0, _bsGlobal.getBSGlobal)('newNavigation');
|
|
78
|
-
var FilterNavigation = newNavigation.filter(function (item) {
|
|
79
|
-
if (item.appId === 119 || item.appId === 1) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return item;
|
|
84
|
-
});
|
|
85
|
-
(0, _react.useEffect)(function () {
|
|
86
|
-
var quickMenu = newNavigation.find(function (item) {
|
|
87
|
-
return item.appId === 1;
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
if (quickMenu) {
|
|
91
|
-
var quickMenuChildren = quickMenu === null || quickMenu === void 0 ? void 0 : quickMenu.children;
|
|
92
|
-
var quickEntranceArr = [];
|
|
93
|
-
|
|
94
|
-
if (quickMenuChildren.length > 0) {
|
|
95
|
-
quickMenuChildren.forEach(function (item) {
|
|
96
|
-
quickEntranceArr.push({
|
|
97
|
-
id: item.id,
|
|
98
|
-
title: item.title,
|
|
99
|
-
appId: item.appId
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
setEntranceList(quickMenuChildren);
|
|
105
|
-
}
|
|
106
|
-
}, []);
|
|
107
|
-
|
|
108
|
-
var handleOnOk = function handleOnOk() {
|
|
109
|
-
var menuIdArr = [];
|
|
110
|
-
entrancelist.forEach(function (item) {
|
|
111
|
-
menuIdArr.push(item.id);
|
|
112
|
-
});
|
|
113
|
-
var menuIds = menuIdArr.join(',');
|
|
114
|
-
(0, _requestApi.setHomeQuick)(menuIds);
|
|
115
|
-
hideDialog();
|
|
116
|
-
handleOpenQuickMenu && handleOpenQuickMenu();
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var handleOnCancel = function handleOnCancel() {
|
|
120
|
-
hideDialog();
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
var handleOnClose = function handleOnClose() {
|
|
124
|
-
hideDialog();
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
var handleClickDelete = function handleClickDelete(id) {
|
|
128
|
-
var newEntrancelist = _toConsumableArray(entrancelist);
|
|
129
|
-
|
|
130
|
-
var filterNewEntranceList = newEntrancelist.filter(function (item) {
|
|
131
|
-
if (item.id === id) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return item;
|
|
136
|
-
});
|
|
137
|
-
setEntranceList(filterNewEntranceList);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
var hideDialog = function hideDialog() {
|
|
141
|
-
setDialogVisible(false);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
var showDialog = function showDialog() {
|
|
145
|
-
setDialogVisible(true);
|
|
146
|
-
}; // 开始拖拽
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
var onItemDragMove = function onItemDragMove(evt) {
|
|
150
|
-
evt.stopPropagation();
|
|
151
|
-
evt.dragged && evt.dragged.classList.add('drag-boder');
|
|
152
|
-
return true;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
var onItemDragEnd = function onItemDragEnd(evt) {
|
|
156
|
-
evt.stopPropagation();
|
|
157
|
-
evt.item && evt.item.classList.remove('drag-boder');
|
|
158
|
-
return true;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
var isCheckedById = function isCheckedById(id, appId) {
|
|
162
|
-
var index = entrancelist.findIndex(function (item) {
|
|
163
|
-
return item.id === id;
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
if (index !== -1) {
|
|
167
|
-
return true;
|
|
168
|
-
} else {
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
var handleClickMenuTwoItem = function handleClickMenuTwoItem(item) {
|
|
174
|
-
var findItem = entrancelist.find(function (i) {
|
|
175
|
-
return i.id === item.id;
|
|
176
|
-
});
|
|
177
|
-
var isChecked = true;
|
|
178
|
-
|
|
179
|
-
if (findItem) {
|
|
180
|
-
isChecked = false;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
var newEntrancelist = _toConsumableArray(entrancelist);
|
|
184
|
-
|
|
185
|
-
var checkedIndex = newEntrancelist.findIndex(function (i) {
|
|
186
|
-
return i.id === item.id;
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
if (isChecked) {
|
|
190
|
-
if (checkedIndex !== -1) {
|
|
191
|
-
setEntranceList(newEntrancelist);
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
newEntrancelist.push({
|
|
196
|
-
id: item.id,
|
|
197
|
-
title: item.title
|
|
198
|
-
});
|
|
199
|
-
setEntranceList(newEntrancelist);
|
|
200
|
-
} else {
|
|
201
|
-
var filterNewEntrancelist = newEntrancelist.filter(function (i) {
|
|
202
|
-
if (i.id === item.id) {
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return i;
|
|
207
|
-
});
|
|
208
|
-
setEntranceList(filterNewEntrancelist);
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
213
|
-
wrapClassName: "".concat(preCls, "__wrap"),
|
|
214
|
-
noFooterLine: true,
|
|
215
|
-
visible: dialogVisible,
|
|
216
|
-
onOk: handleOnOk,
|
|
217
|
-
onCancel: handleOnCancel,
|
|
218
|
-
onClose: handleOnClose,
|
|
219
|
-
ref: QuickEntranceDialogRef
|
|
220
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
221
|
-
className: preCls
|
|
222
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
|
-
className: "".concat(preCls, "__title")
|
|
224
|
-
}, "\u8BBE\u7F6E\u5FEB\u6377\u5165\u53E3"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
|
-
className: "".concat(preCls, "__content")
|
|
226
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
|
-
className: "".concat(preCls, "__content__left")
|
|
228
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
|
-
className: "".concat(preCls, "__content__left-wrapper")
|
|
230
|
-
}, FilterNavigation.map(function (item) {
|
|
231
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
-
className: "".concat(preCls, "__content__left__item")
|
|
233
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
|
-
className: "".concat(preCls, "__content__left__item__menu-one")
|
|
235
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
236
|
-
className: (0, _classnames["default"])("".concat(preCls, "__content__left__item__menu-one__icon"), "app-center__app-item-icon--".concat(item.iconName))
|
|
237
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
|
-
className: "".concat(preCls, "__content__left__item__menu-one__title")
|
|
239
|
-
}, item.title)), item.children.length > 0 && item.children.map(function (i) {
|
|
240
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
|
-
className: "".concat(preCls, "__content__left__item__menu-two"),
|
|
242
|
-
onClick: function onClick() {
|
|
243
|
-
return handleClickMenuTwoItem(i);
|
|
244
|
-
}
|
|
245
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
246
|
-
className: "".concat(preCls, "__content__left__item__menu-two__title")
|
|
247
|
-
}, i.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
248
|
-
className: "".concat(preCls, "__content__left__item__menu-two__checkbox")
|
|
249
|
-
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
250
|
-
checked: function checked() {
|
|
251
|
-
return isCheckedById(i.id, i.appId);
|
|
252
|
-
}
|
|
253
|
-
})));
|
|
254
|
-
}));
|
|
255
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
256
|
-
className: "".concat(preCls, "__content__right")
|
|
257
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
258
|
-
className: "".concat(preCls, "__content__right-yixuan")
|
|
259
|
-
}, "\u5DF2\u9009"), /*#__PURE__*/_react["default"].createElement(_reactSortablejs.ReactSortable, {
|
|
260
|
-
list: entrancelist,
|
|
261
|
-
setList: setEntranceList,
|
|
262
|
-
animation: 200,
|
|
263
|
-
delayOnTouchStart: true,
|
|
264
|
-
delay: 2,
|
|
265
|
-
onEnd: onItemDragEnd,
|
|
266
|
-
onMove: onItemDragMove
|
|
267
|
-
}, entrancelist.length > 0 && entrancelist.map(function (item) {
|
|
268
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
269
|
-
key: item.id
|
|
270
|
-
}, /*#__PURE__*/_react["default"].createElement(_renderItem["default"], {
|
|
271
|
-
id: item.id,
|
|
272
|
-
title: item.title,
|
|
273
|
-
handleClickDelete: handleClickDelete
|
|
274
|
-
}));
|
|
275
|
-
}))))))));
|
|
276
|
-
});
|
|
277
|
-
var _default = QuickEntranceDialog;
|
|
278
|
-
exports["default"] = _default;
|
|
@@ -1,36 +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
|
-
require("./index.css");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var preCls = 'titaui-quick-entrance-dialog';
|
|
15
|
-
|
|
16
|
-
var RenderItem = function RenderItem(props) {
|
|
17
|
-
var id = props.id,
|
|
18
|
-
title = props.title,
|
|
19
|
-
handleClickDelete = props.handleClickDelete;
|
|
20
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
|
-
className: "".concat(preCls, "__content__right__item__container")
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
-
className: "".concat(preCls, "__content__right__item__container__drag-icon"),
|
|
24
|
-
draggable: false
|
|
25
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
|
-
className: "".concat(preCls, "__content__right__item__container__title")
|
|
27
|
-
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className: "".concat(preCls, "__content__right__item__container__cancle-icon"),
|
|
29
|
-
onClick: function onClick() {
|
|
30
|
-
return handleClickDelete(id);
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var _default = RenderItem;
|
|
36
|
-
exports["default"] = _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.setHomeQuick = void 0;
|
|
7
|
-
|
|
8
|
-
var _request = _interopRequireDefault(require("../../utils/request"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
;
|
|
13
|
-
var rget = _request["default"].rget,
|
|
14
|
-
rpost = _request["default"].rpost;
|
|
15
|
-
|
|
16
|
-
var setHomeQuick = function setHomeQuick(menuIds) {
|
|
17
|
-
return rpost('v3')("menu/set/homeQuick?menuIds=".concat(menuIds)).then(function (res) {
|
|
18
|
-
return res;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
exports.setHomeQuick = setHomeQuick;
|