@titaui/pc 1.6.11 → 1.6.15

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 (188) hide show
  1. package/lib/components/button/icon-btn/index.css +2 -0
  2. package/lib/components/button/index.js +1 -9
  3. package/lib/components/button/rect-btn/index.css +41 -8
  4. package/lib/components/button/rect-btn/index.js +8 -8
  5. package/lib/components/button/text-btn/index.css +33 -0
  6. package/lib/components/button/text-btn/index.js +52 -2
  7. package/lib/components/dynamic/components/title/index.css +2 -2
  8. package/lib/components/dynamic/constant.js +2 -1
  9. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
  10. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
  11. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
  12. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
  13. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
  14. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
  15. package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
  16. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
  17. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
  18. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
  19. package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
  20. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
  21. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
  22. package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -2
  23. package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
  24. package/lib/components/dynamic/dynamic-liking/index.css +0 -1
  25. package/lib/components/dynamic/dynamic-liking/item.js +2 -20
  26. package/lib/components/dynamic/dynamic.js +4 -1
  27. package/lib/components/dynamic/new-ui.css +206 -0
  28. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
  29. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
  30. package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
  31. package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
  32. package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
  33. package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
  34. package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
  35. package/lib/components/dynamic/quick-operation/img/task.png +0 -0
  36. package/lib/components/dynamic/util.js +1 -1
  37. package/lib/components/file-list/components/single-file/index.css +2 -2
  38. package/lib/components/file-list/components/single-file/index.js +1 -1
  39. package/lib/components/form/form-fields/radios/index.css +5 -0
  40. package/lib/components/form/form-fields/radios/index.js +34 -5
  41. package/lib/components/help-card/image/canceled.svg +13 -0
  42. package/lib/components/help-card/image/helpzx.svg +8 -0
  43. package/lib/components/help-card/image/kefu.svg +18 -0
  44. package/lib/components/help-card/image/kefu1.svg +8 -0
  45. package/lib/components/help-card/image/okr-shequ.svg +14 -0
  46. package/lib/components/help-card/image/question.svg +20 -0
  47. package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
  48. package/lib/components/help-card/index.css +219 -0
  49. package/lib/components/help-card/index.js +286 -0
  50. package/lib/components/help-card/request-api.js +34 -0
  51. package/lib/components/img-viewer/index.css +4 -0
  52. package/lib/components/img-viewer/index.js +2 -1
  53. package/lib/components/menus/components/drag-resize/index.css +4 -4
  54. package/lib/components/menus/components/drag-resize/index.js +35 -30
  55. package/lib/components/menus/components/flip-menu-card/index.css +7 -2
  56. package/lib/components/menus/components/flip-menu-card/index.js +17 -15
  57. package/lib/components/menus/components/menu-card/index.js +1 -6
  58. package/lib/components/menus/components/menu-close-btn/index.css +2 -1
  59. package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
  60. package/lib/components/menus/components/menu-tree/index.js +4 -3
  61. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +50 -0
  62. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
  63. package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +3 -1
  64. package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +8 -4
  65. package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +48 -0
  66. package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +65 -0
  67. package/lib/components/menus/components/menu-tree/tree-node/index.css +72 -0
  68. package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
  69. package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/loading-node.js} +7 -14
  70. package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +24 -0
  71. package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +7 -3
  72. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -0
  73. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +9 -42
  74. package/lib/components/menus/export-modules/appraisal-menus/datas.js +45 -18
  75. package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
  76. package/lib/components/menus/export-modules/okr-menus/datas.js +102 -2
  77. package/lib/components/menus/export-modules/okr-menus/index.css +0 -3
  78. package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
  79. package/lib/components/menus/export-modules/subordinate-menus/index.js +3 -2
  80. package/lib/components/menus/request-apis.js +22 -5
  81. package/lib/components/nav-top/components/menu/index.js +7 -5
  82. package/lib/components/nav-top/components/user-message/components/inform/index.css +28 -6
  83. package/lib/components/nav-top/components/user-message/components/inform/index.js +184 -22
  84. package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
  85. package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
  86. package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
  87. package/lib/components/nav-top/components/user-message/components/remind/index.css +25 -8
  88. package/lib/components/nav-top/components/user-message/components/remind/index.js +74 -21
  89. package/lib/components/nav-top/components/user-message/components/reply/index.css +27 -6
  90. package/lib/components/nav-top/components/user-message/components/reply/index.js +129 -24
  91. package/lib/components/nav-top/components/user-message/components/tab-title/index.js +4 -8
  92. package/lib/components/nav-top/components/user-message/components/todos/index.css +25 -12
  93. package/lib/components/nav-top/components/user-message/components/todos/index.js +147 -23
  94. package/lib/components/nav-top/components/user-message/constant.js +11 -1
  95. package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
  96. package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
  97. package/lib/components/nav-top/components/user-message/index.css +37 -0
  98. package/lib/components/nav-top/components/user-message/index.js +86 -72
  99. package/lib/components/nav-top/components/user-message/msg/index.js +17 -24
  100. package/lib/components/nav-top/components/user-message/utils.js +14 -0
  101. package/lib/components/nav-top/components/user-own-menu/index.js +3 -4
  102. package/lib/components/nav-top/components/user-own-menu/utils.js +77 -0
  103. package/lib/components/nav-top/constant.js +1 -1
  104. package/lib/components/nav-top/index.js +12 -12
  105. package/lib/components/nav-top/request.apis.js +52 -0
  106. package/lib/components/nav-top/utils.js +10 -70
  107. package/lib/components/okr-filter-drawer/filter-button.js +1 -0
  108. package/lib/components/okr-filter-drawer/filter-form.js +163 -0
  109. package/lib/components/okr-filter-drawer/index.css +45 -0
  110. package/lib/components/okr-filter-drawer/index.js +42 -0
  111. package/lib/components/pagination/index.css +6 -12
  112. package/lib/components/photo-card/components/card/index.css +78 -105
  113. package/lib/components/photo-card/components/card/index.js +133 -40
  114. package/lib/components/photo-card/data.js +5 -5
  115. package/lib/components/photo-card/images/assistant.svg +40 -0
  116. package/lib/components/photo-card/images/back-manager.svg +40 -0
  117. package/lib/components/photo-card/images/boss.svg +38 -0
  118. package/lib/components/photo-card/images/depart-leader.svg +40 -0
  119. package/lib/components/photo-card/images/super-manager.svg +40 -0
  120. package/lib/components/photo-card/index.css +12 -12
  121. package/lib/components/photo-card/index.js +17 -13
  122. package/lib/components/point-demo/drop-down-box/index.css +98 -0
  123. package/lib/components/point-demo/drop-down-box/index.js +159 -0
  124. package/lib/components/point-demo/image/demo-bcg.png +0 -0
  125. package/lib/components/point-demo/image/down.svg +14 -0
  126. package/lib/components/point-demo/image/icon-canceled.svg +7 -0
  127. package/lib/components/point-demo/image/logo.svg +64 -0
  128. package/lib/components/point-demo/index.css +348 -0
  129. package/lib/components/point-demo/index.js +657 -0
  130. package/lib/components/point-demo/input/index.css +74 -0
  131. package/lib/components/point-demo/input/index.js +176 -0
  132. package/lib/components/point-demo/point-demo.js +93 -0
  133. package/lib/components/point-demo/popup/index.css +7 -0
  134. package/lib/components/point-demo/popup/index.js +113 -0
  135. package/lib/components/point-demo/popup/placement.js +44 -0
  136. package/lib/components/point-demo/popup/rc-trigger.css +127 -0
  137. package/lib/components/tree/index.js +0 -2
  138. package/lib/components/update-modal/img/background.png +0 -0
  139. package/lib/components/update-modal/img/rocket.png +0 -0
  140. package/lib/components/update-modal/index.css +80 -0
  141. package/lib/components/update-modal/index.js +83 -0
  142. package/lib/components/update-modal/request-api.js +17 -0
  143. package/lib/hooks/useLocalStorage.js +37 -0
  144. package/lib/index.js +22 -2
  145. package/lib/pages/aha2021/index.css +16 -1
  146. package/lib/pages/aha2021/index.js +15 -5
  147. package/lib/pages/new-okr-list/context.js +14 -0
  148. package/lib/{components/button/export-button/index.js → pages/new-okr-list/header/create-okr.js} +24 -44
  149. package/lib/pages/new-okr-list/header/depart-title.js +19 -0
  150. package/lib/pages/new-okr-list/header/filter.js +58 -0
  151. package/lib/pages/new-okr-list/header/index.css +31 -0
  152. package/lib/pages/new-okr-list/header/index.js +94 -0
  153. package/lib/pages/new-okr-list/header/user-title.js +19 -0
  154. package/lib/pages/new-okr-list/index.css +10 -0
  155. package/lib/pages/new-okr-list/index.js +127 -0
  156. package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
  157. package/lib/{components/button/admin-button/drop-down-arrow.js → pages/new-okr-list/keyword-search/index.js} +54 -47
  158. package/lib/pages/new-okr-list/list/index.css +0 -0
  159. package/lib/pages/new-okr-list/list/index.js +48 -0
  160. package/lib/pages/new-okr-list/precls.js +8 -0
  161. package/lib/pages/new-okr-list/request-api.js +57 -0
  162. package/lib/pages/new-okr-list/theme.css +3 -0
  163. package/lib/pages/okr-map/hooks/useStorage.js +1 -1
  164. package/lib/pages/okr-map/utils.js +11 -7
  165. package/lib/pages/personal-info/index.js +5 -3
  166. package/lib/utils/bs-global.js +16 -1
  167. package/package.json +2 -1
  168. package/lib/components/button/admin-button/default.js +0 -35
  169. package/lib/components/button/admin-button/index.css +0 -86
  170. package/lib/components/button/admin-button/index.js +0 -40
  171. package/lib/components/button/admin-button/secondary.js +0 -35
  172. package/lib/components/button/export-button/index.css +0 -51
  173. package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
  174. package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
  175. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  176. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  177. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  178. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  179. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  180. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  181. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  182. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  183. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  184. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  185. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  186. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  187. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  188. package/lib/components/nav-top/mock.js +0 -36
@@ -1,80 +1,72 @@
1
- .okrtitauser-card {
2
- position: relative;
1
+ .titaui-photo-card {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: column;
5
+ box-sizing: border-box;
3
6
  width: 278px;
4
7
  height: 359px;
5
- text-align: center;
8
+ padding: 0 24px;
6
9
  background: #ffffff;
7
10
  box-shadow: 0px 4px 24px 0px rgba(127, 145, 180, 0.15);
8
11
  border-radius: 24px;
9
- overflow: hidden;
10
12
  }
11
13
 
12
- .okrtitauser-card__header {
13
- position: relative;
14
- width: 278px;
14
+ .titaui-photo-card__header {
15
+ display: flex;
16
+ align-items: center;
17
+ flex-direction: column;
15
18
  height: 190px;
19
+ overflow: hidden;
16
20
  background: linear-gradient(180deg, rgba(20, 28, 40, 0) 0%, #141c28 100%);
17
- background-size: 278px 190px;
18
21
  border-radius: 24px 24px 0 0;
19
- overflow: hidden;
20
- text-align: center;
21
22
  }
22
23
 
23
- .okrtitauser-card__header-mask {
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- width: 278px;
28
- height: 190px;
29
- background-size: 278px 190px;
30
- border-radius: 24px 24px 0 0;
24
+ .titaui-photo-card__header::after {
31
25
  content: "";
32
- filter: blur(6px);
33
- }
34
-
35
- .okrtitauser-card__header-mask ::before {
36
- position: absolute;
37
- border-radius: 24px 24px 0 0;
38
- top: 0;
39
- left: 0;
40
- background: #141c28;
26
+ width: 278px;
27
+ height: 26px;
28
+ background-color: #fff;
29
+ border-radius: 50% / 100% 100% 0 0;
30
+ margin-top: 4px;
41
31
  }
42
32
 
43
- .okrtitauser-card__header-imgbox {
44
- position: absolute;
45
- border-radius: 35px;
33
+ .titaui-photo-card__header-img {
46
34
  width: 68px;
47
35
  height: 68px;
48
- top: 28px;
49
- left: 105px;
36
+ margin-top: 26px;
37
+ border-radius: 35px;
50
38
  border: 2px solid #fff;
51
39
  }
52
40
 
53
- .okrtitauser-card__header-imgbox-img {
54
- width: 100%;
55
- height: 100%;
56
- border-radius: 35px;
41
+ .titaui-photo-card__header-img .titaui-pc-avator-container img {
42
+ width: 68px !important;
43
+ height: 68px !important;
44
+ }
45
+
46
+ .titaui-photo-card__header-img .titaui-pc-avator-container .titaui-pc-avatar--text {
47
+ width: 68px !important;
48
+ height: 68px !important;
49
+ font-size: 22px !important;
57
50
  }
58
51
 
59
- .okrtitauser-card__header-name {
60
- display: inline-block;
61
- position: absolute;
62
- top: 110px;
63
- left: 109px;
52
+ .titaui-photo-card__header-name {
64
53
  height: 28px;
54
+ margin-top: 14px;
65
55
  font-size: 20px;
66
56
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
67
57
  font-weight: 500;
68
58
  color: #ffffff;
69
59
  line-height: 28px;
60
+ cursor: pointer;
70
61
  }
71
62
 
72
- .okrtitauser-card__header-depart {
73
- display: block;
74
- position: absolute;
75
- top: 140px;
76
- left: 72px;
63
+ .titaui-photo-card__header-name-tooltip {
64
+ z-index: 2001;
65
+ }
66
+
67
+ .titaui-photo-card__header-depart {
77
68
  height: 22px;
69
+ margin-top: 2px;
78
70
  font-size: 14px;
79
71
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
80
72
  font-weight: 400;
@@ -82,39 +74,24 @@
82
74
  line-height: 22px;
83
75
  }
84
76
 
85
- .okrtitauser-card__header-circle {
86
- position: absolute;
87
- top: 173px;
88
- left: -12px;
89
- width: 300px;
90
- height: 26px;
91
- background-color: #fff;
92
- border-radius: 50% / 100% 100% 0 0;
93
- overflow: hidden;
94
- }
95
-
96
- .okrtitauser-card__role {
97
- position: absolute;
98
- left: 94px;
99
- top: 194px;
100
- width: 89px;
101
- height: 20px;
102
- background-image: url(../../images/user-role.svg);
77
+ .titaui-photo-card__data {
78
+ width: 230px;
79
+ height: 45px;
80
+ margin-top: 20px;
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: space-between;
103
84
  }
104
85
 
105
- .okrtitauser-card__attention {
106
- position: absolute;
107
- left: 24px;
108
- top: 234px;
86
+ .titaui-photo-card__data-attention {
87
+ display: flex;
88
+ align-items: center;
89
+ flex-direction: column;
109
90
  width: 110px;
110
91
  height: 45px;
111
- text-align: center;
112
92
  }
113
93
 
114
- .okrtitauser-card__attention-count {
115
- margin-left: 44px;
116
- width: 22px;
117
- height: 26px;
94
+ .titaui-photo-card__data-attention-count {
118
95
  font-size: 18px;
119
96
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
120
97
  font-weight: 500;
@@ -122,10 +99,7 @@
122
99
  line-height: 26px;
123
100
  }
124
101
 
125
- .okrtitauser-card__attention-title {
126
- width: 36px;
127
- height: 18px;
128
- margin-left: 37px;
102
+ .titaui-photo-card__data-attention-title {
129
103
  font-size: 12px;
130
104
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
131
105
  font-weight: 400;
@@ -133,19 +107,15 @@
133
107
  line-height: 18px;
134
108
  }
135
109
 
136
- .okrtitauser-card__visit {
137
- position: absolute;
138
- right: 24px;
139
- top: 234px;
110
+ .titaui-photo-card__data-visit {
111
+ display: flex;
112
+ align-items: center;
113
+ flex-direction: column;
140
114
  width: 110px;
141
115
  height: 45px;
142
- text-align: center;
143
116
  }
144
117
 
145
- .okrtitauser-card__visit-count {
146
- margin-left: 45px;
147
- width: 19px;
148
- height: 26px;
118
+ .titaui-photo-card__data-visit-count {
149
119
  font-size: 18px;
150
120
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
151
121
  font-weight: 500;
@@ -153,10 +123,7 @@
153
123
  line-height: 26px;
154
124
  }
155
125
 
156
- .okrtitauser-card__visit-title {
157
- width: 36px;
158
- height: 18px;
159
- margin-left: 37px;
126
+ .titaui-photo-card__data-visit-title {
160
127
  font-size: 12px;
161
128
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
162
129
  font-weight: 400;
@@ -164,30 +131,36 @@
164
131
  line-height: 18px;
165
132
  }
166
133
 
167
- .okrtitauser-card__attention-btn {
168
- position: absolute;
169
- top: 299px;
170
- right: 24px;
134
+ .titaui-photo-card__attention-btn {
135
+ display: flex;
136
+ align-items: center;
137
+ justify-content: center;
171
138
  width: 230px;
172
139
  height: 36px;
140
+ margin-top: 20px;
173
141
  background: #f0f4fa;
174
142
  border-radius: 20px;
175
143
  cursor: pointer;
176
144
  }
177
145
 
178
- .okrtitauser-card__attention-btn-img {
179
- width: 16px;
180
- height: 16px;
181
- background-image: url(../../images/user-add.svg);
182
- margin: 10px 125px 10px 89px;
146
+ .titaui-photo-card__attention-btn:hover {
147
+ background: rgba(240, 94, 94, 0.1);
148
+ }
149
+
150
+ .titaui-photo-card__attention-btn-img--hide {
151
+ display: none;
152
+ }
153
+
154
+ .titaui-photo-card__attention-btn-img--show {
155
+ display: block;
156
+ font-size: 14px;
157
+ font-family: PingFangSC-Regular, PingFang SC;
158
+ font-weight: 400;
159
+ color: #6f7886;
160
+ line-height: 20px;
183
161
  }
184
162
 
185
- .okrtitauser-card__attention-btn-title {
186
- position: absolute;
187
- top: 8px;
188
- right: 95px;
189
- width: 28px;
190
- height: 20px;
163
+ .titaui-photo-card__attention-btn-title {
191
164
  font-size: 14px;
192
165
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
193
166
  font-weight: 400;
@@ -11,7 +11,19 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _data = require("../../data");
14
+ var _default2 = _interopRequireDefault(require("../../../../components/avatar/default"));
15
+
16
+ var _tooltipText = _interopRequireDefault(require("../../../tooltip/tooltip-text"));
17
+
18
+ var _request = require("../../../../utils/request");
19
+
20
+ var _userAdd = _interopRequireDefault(require("../../images/user-add.svg"));
21
+
22
+ var _assistant = _interopRequireDefault(require("../../images/assistant.svg"));
23
+
24
+ var _boss = _interopRequireDefault(require("../../images/boss.svg"));
25
+
26
+ var _superManager = _interopRequireDefault(require("../../images/super-manager.svg"));
15
27
 
16
28
  require("./index.css");
17
29
 
@@ -21,6 +33,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
33
 
22
34
  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; }
23
35
 
36
+ 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; }
37
+
24
38
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
39
 
26
40
  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."); }
@@ -33,23 +47,96 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
33
47
 
34
48
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
49
 
36
- var preCls = "okrtitauser-card";
50
+ var preCls = "titaui-photo-card";
37
51
 
38
- var Card = function Card() {
39
- //背景图片
40
- var backGroundstyle = {
41
- backgroundImage: "url(".concat(_data.data.photo, ")")
42
- }; //获得关注量初始数据
52
+ var Card = function Card(props) {
53
+ var userInfo = props.userInfo;
43
54
 
44
- var _useState = (0, _react.useState)(_data.data.attention_count),
55
+ var _useState = (0, _react.useState)({}),
45
56
  _useState2 = _slicedToArray(_useState, 2),
46
- count = _useState2[0],
47
- changeCount = _useState2[1]; //处理关注量的值+1的回调
48
-
57
+ backGroundstyle = _useState2[0],
58
+ setBackGroundstyle = _useState2[1];
59
+
60
+ var _useState3 = (0, _react.useState)(false),
61
+ _useState4 = _slicedToArray(_useState3, 2),
62
+ isAttention = _useState4[0],
63
+ setIsAttention = _useState4[1];
64
+
65
+ var _useState5 = (0, _react.useState)(true),
66
+ _useState6 = _slicedToArray(_useState5, 2),
67
+ isClickable = _useState6[0],
68
+ setIsClickable = _useState6[1];
69
+
70
+ var _useState7 = (0, _react.useState)(0),
71
+ _useState8 = _slicedToArray(_useState7, 2),
72
+ attentionData = _useState8[0],
73
+ setAttentionData = _useState8[1];
74
+
75
+ var _useState9 = (0, _react.useState)(0),
76
+ _useState10 = _slicedToArray(_useState9, 2),
77
+ visitData = _useState10[0],
78
+ setVisitData = _useState10[1];
79
+
80
+ var _useState11 = (0, _react.useState)(""),
81
+ _useState12 = _slicedToArray(_useState11, 2),
82
+ role = _useState12[0],
83
+ setRole = _useState12[1];
84
+
85
+ (0, _react.useEffect)(function () {
86
+ (0, _request.rget)("v1")("follow/getFollowerList?toUserId=".concat(userInfo.Id)).then(function (res) {
87
+ setAttentionData(res.Data.total);
88
+ });
89
+ (0, _request.rget)("v1")("okr/okrCyclePageVisitor?toUserId=".concat(userInfo.Id)).then(function (res) {
90
+ setVisitData(res.Data.total);
91
+ });
92
+
93
+ if (userInfo.UserAvatar.HasAvatar) {
94
+ setBackGroundstyle({
95
+ backgroundImage: "url(".concat(userInfo.Avatar, ")"),
96
+ backgroundSize: "278px 190px",
97
+ backdropFilter: "blur(4px)"
98
+ });
99
+ } else {
100
+ setBackGroundstyle({
101
+ backgroundColor: userInfo.UserAvatar.Color
102
+ });
103
+ } // if (new OAuth().isPrincipalUser()) {
104
+ // setRole(DepartLeader);
105
+ // }
106
+
107
+
108
+ for (var item in userInfo) {
109
+ switch (item) {
110
+ case "IsBoss":
111
+ if (userInfo["IsBoss"]) {
112
+ setRole(_boss["default"]);
113
+ }
114
+
115
+ break;
116
+
117
+ case "Role":
118
+ if (userInfo["Role"] === 2) {
119
+ setRole(_superManager["default"]);
120
+ }
121
+
122
+ if (userInfo["Role"] === 4) {
123
+ setRole(_assistant["default"]);
124
+ }
125
+
126
+ break;
127
+ }
128
+ }
129
+ }, []); //处理关注量的值+1的回调
49
130
 
50
131
  var handleAttentionCount = function handleAttentionCount(count) {
51
- count = count + 1;
52
- changeCount(count);
132
+ setIsClickable(false);
133
+
134
+ if (isClickable) {
135
+ setIsAttention(true); // rpost("v1")(`follow/addFollower?followerId=${userInfo.Id}`, userInfo);
136
+ } // rget("v1")(`follow/getFollowerList?toUserId=${userInfo.Id}`).then((res) => {
137
+ // setAttentionData(res.Data.total);
138
+ // });
139
+
53
140
  };
54
141
 
55
142
  return (
@@ -61,43 +148,49 @@ var Card = function Card() {
61
148
  className: (0, _classnames["default"])("".concat(preCls, "__header")),
62
149
  style: backGroundstyle
63
150
  }, /*#__PURE__*/_react["default"].createElement("div", {
64
- className: (0, _classnames["default"])("".concat(preCls, "__header-mask")),
65
- style: backGroundstyle
66
- }), /*#__PURE__*/_react["default"].createElement("div", {
67
- className: (0, _classnames["default"])("".concat(preCls, "__header-imgbox"))
68
- }, /*#__PURE__*/_react["default"].createElement("img", {
69
- src: _data.data.photo,
70
- alt: "",
71
- className: (0, _classnames["default"])("".concat(preCls, "__header-imgbox-img"))
151
+ className: (0, _classnames["default"])("".concat(preCls, "__header-img"))
152
+ }, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
153
+ userId: userInfo.Id,
154
+ name: userInfo.Name,
155
+ color: userInfo.UserAvatar.Color,
156
+ src: userInfo.Avatar
72
157
  })), /*#__PURE__*/_react["default"].createElement("span", {
73
158
  className: (0, _classnames["default"])("".concat(preCls, "__header-name"))
74
- }, _data.data.username), /*#__PURE__*/_react["default"].createElement("span", {
159
+ }, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
160
+ overlayClassName: "".concat(preCls, "__header-name-tooltip"),
161
+ text: userInfo.Name,
162
+ maxWidth: 228,
163
+ mouseEnterDelay: 0.8
164
+ })), /*#__PURE__*/_react["default"].createElement("span", {
75
165
  className: (0, _classnames["default"])("".concat(preCls, "__header-depart"))
76
- }, _data.data.department), /*#__PURE__*/_react["default"].createElement("div", {
77
- className: (0, _classnames["default"])("".concat(preCls, "__header-circle"))
78
- })), /*#__PURE__*/_react["default"].createElement("div", {
79
- className: (0, _classnames["default"])("".concat(preCls, "__role"))
166
+ }, userInfo.Department)), /*#__PURE__*/_react["default"].createElement("img", {
167
+ src: role
80
168
  }), /*#__PURE__*/_react["default"].createElement("div", {
81
- className: (0, _classnames["default"])("".concat(preCls, "__attention"))
169
+ className: (0, _classnames["default"])("".concat(preCls, "__data"))
82
170
  }, /*#__PURE__*/_react["default"].createElement("div", {
83
- className: (0, _classnames["default"])("".concat(preCls, "__attention-count"))
84
- }, count), /*#__PURE__*/_react["default"].createElement("div", {
85
- className: (0, _classnames["default"])("".concat(preCls, "__attention-title"))
171
+ className: (0, _classnames["default"])("".concat(preCls, "__data-attention"))
172
+ }, /*#__PURE__*/_react["default"].createElement("span", {
173
+ className: (0, _classnames["default"])("".concat(preCls, "__data-attention-count"))
174
+ }, attentionData >= 10000 ? "1w" : attentionData), /*#__PURE__*/_react["default"].createElement("span", {
175
+ className: (0, _classnames["default"])("".concat(preCls, "__data-attention-title"))
86
176
  }, "\u5173\u6CE8\u91CF")), /*#__PURE__*/_react["default"].createElement("div", {
87
- className: (0, _classnames["default"])("".concat(preCls, "__visit"))
88
- }, /*#__PURE__*/_react["default"].createElement("div", {
89
- className: (0, _classnames["default"])("".concat(preCls, "__visit-count"))
90
- }, _data.data.visit_count), /*#__PURE__*/_react["default"].createElement("div", {
91
- className: (0, _classnames["default"])("".concat(preCls, "__visit-title"))
92
- }, "\u8BBF\u95EE\u91CF")), /*#__PURE__*/_react["default"].createElement("div", {
177
+ className: (0, _classnames["default"])("".concat(preCls, "__data-visit"))
178
+ }, /*#__PURE__*/_react["default"].createElement("span", {
179
+ className: (0, _classnames["default"])("".concat(preCls, "__data-visit-count"))
180
+ }, visitData >= 10000 ? "1w" : visitData), /*#__PURE__*/_react["default"].createElement("span", {
181
+ className: (0, _classnames["default"])("".concat(preCls, "__data-visit-title"))
182
+ }, "\u8BBF\u95EE\u91CF"))), /*#__PURE__*/_react["default"].createElement("div", {
93
183
  className: (0, _classnames["default"])("".concat(preCls, "__attention-btn")),
94
184
  onClick: function onClick() {
95
- return handleAttentionCount(count);
185
+ return handleAttentionCount(attentionData);
96
186
  }
97
- }, /*#__PURE__*/_react["default"].createElement("div", {
98
- className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img"))
187
+ }, /*#__PURE__*/_react["default"].createElement("img", {
188
+ src: _userAdd["default"],
189
+ className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--hide"), isAttention))
99
190
  }), /*#__PURE__*/_react["default"].createElement("div", {
100
- className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-title"))
191
+ className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img--hide"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--show"), isAttention))
192
+ }, "\u5DF2\u5173\u6CE8"), /*#__PURE__*/_react["default"].createElement("div", {
193
+ className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-title"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--hide"), isAttention))
101
194
  }, "\u5173\u6CE8")))
102
195
  );
103
196
  };
@@ -10,10 +10,10 @@ var _userPhoto = _interopRequireDefault(require("./images/user-photo.png"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
12
  var data = {
13
- "username": "尔康康",
14
- "department": "研发部-产品设计部门",
15
- "attention_count": 66,
16
- "visit_count": 12,
17
- "photo": _userPhoto["default"]
13
+ username: "尔康康",
14
+ department: "研发部-产品设计部门",
15
+ attention_count: 88,
16
+ visit_count: 100000,
17
+ photo: _userPhoto["default"]
18
18
  };
19
19
  exports.data = data;
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="52px" height="20px" viewBox="0 0 52 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>助理</title>
4
+ <defs>
5
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#9EC2FF" offset="0%"></stop>
7
+ <stop stop-color="#76A9FF" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="-2.48949813e-15%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#2879FF" offset="0%"></stop>
11
+ <stop stop-color="#0E69FE" offset="100%"></stop>
12
+ </linearGradient>
13
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="41.2046279%" id="linearGradient-3">
14
+ <stop stop-color="#1B71FF" offset="0%"></stop>
15
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
16
+ </linearGradient>
17
+ </defs>
18
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3280.000000)" fill-rule="nonzero">
20
+ <g id="角色" transform="translate(1356.000000, 3208.000000)">
21
+ <g id="助理" transform="translate(0.000000, 72.000000)">
22
+ <rect id="矩形" fill="#2879FF" x="3" y="1" width="49" height="18" rx="9"></rect>
23
+ <g id="编组-25">
24
+ <polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
25
+ <polygon id="多边形" fill="url(#linearGradient-2)" points="8.93333333 1.8 16.1502117 5.89090909 16.1502117 14.0727273 8.93333333 18.1636364 1.71645497 14.0727273 1.71645497 5.89090909"></polygon>
26
+ <g id="编组-29" transform="translate(5.000000, 5.000000)">
27
+ <path d="M3.88814818,9.78562699 C3.68141594,9.77439872 3.29833383,9.75788656 2.91657268,9.73212759 C2.56255197,9.70835008 2.20853126,9.67928868 1.85583152,9.6442829 C1.35452234,9.5960674 0.85651559,9.52209292 0.364453219,9.41377315 C0.352564463,9.4111312 0.341336194,9.40584731 0.329447439,9.40386585 C0.178196053,9.3774464 0.106863521,9.27837343 0.0711972551,9.13636886 C-0.00145624941,8.84641533 -0.0133450047,8.35424963 0.0124139651,8.05835172 C0.0262841796,7.89851401 0.0460987717,7.73933679 0.067894823,7.57949908 C0.107524007,7.29416895 0.266040744,7.09206011 0.507118282,6.9421297 C0.772633816,6.77766858 1.06655027,6.68982389 1.36178769,6.60528163 C1.58503209,6.54121445 1.81422088,6.49431991 2.02095312,6.3833582 C2.23429023,6.26777308 2.43904101,6.1402992 2.58698997,5.94215328 C2.67351369,5.82590767 2.96544868,5.2466611 2.91657268,5.09937263 C2.88949274,5.01615134 5.00418303,4.911134 4.97380066,5.09937263 C4.90180764,5.54321949 5.37556357,6.07755299 5.77449736,6.28494572 C6.02746365,6.41638252 6.30024453,6.49167797 6.57170444,6.57357828 C6.8312756,6.65085519 7.09216773,6.72416918 7.33456624,6.84768014 C7.47194741,6.9176917 7.60206324,7.0002525 7.70906203,7.11385616 C7.84710369,7.25916317 7.91381282,7.43815498 7.93957179,7.6316775 C7.96599124,7.82387904 7.99108973,8.01674107 7.99769459,8.21026359 C8.0069414,8.46058794 7.99108973,8.90784056 7.8999426,9.14561567 C7.86757877,9.23081841 7.80879548,9.28828073 7.72557419,9.323947 C7.53271216,9.4065078 7.32928235,9.44943941 7.12519205,9.4890686 C6.64964184,9.58021572 6.16946822,9.64031998 5.68731315,9.69117744 C5.14769576,9.74731878 4.60609691,9.77638018 3.88814818,9.78562699 Z M3.99184455,6.66142297 C3.92183299,6.66142297 3.85182143,6.660102 3.78180987,6.66274395 C3.76463723,6.66274395 3.74019923,6.66802784 3.73029193,6.67925611 C3.67216913,6.75521204 3.61404633,6.83116798 3.56318887,6.91306829 C3.5473372,6.93882726 3.54073234,6.9857218 3.55328158,7.01148077 C3.6252746,7.15876924 3.70519345,7.30077381 3.7804889,7.44674131 C3.79237766,7.46853736 3.80228495,7.49825925 3.79700106,7.52137627 C3.73557583,7.82255807 3.66160135,8.12109793 3.60942292,8.4236007 C3.54535574,8.79611503 3.54139282,8.94350683 3.72500804,9.19845458 C3.78973571,9.25855884 3.848519,9.31866311 3.91324667,9.37084153 C3.96146218,9.40981023 4.01694303,9.40518682 4.07044243,9.37480445 C4.17612026,9.31536067 4.26396495,9.23544182 4.33595797,9.14033178 C4.39474126,9.06305487 4.45154309,8.98247553 4.42842606,8.87283478 C4.3537911,8.52343747 4.28311905,7.97446995 4.20650263,7.62507264 C4.18999047,7.55043767 4.16357102,7.48042611 4.24547133,7.42692672 C4.25207619,7.42230331 4.25603911,7.4130565 4.26000203,7.40579115 C4.32208775,7.29416895 4.38615493,7.18386772 4.44295676,7.07026406 C4.45880844,7.03723974 4.46277136,6.98968472 4.45352455,6.95401845 C4.42116071,6.83645187 4.33595797,6.74992815 4.2467923,6.67661416 C4.21244701,6.64821325 4.14045399,6.66406492 4.08497313,6.66208346 C4.05459076,6.660102 4.02288741,6.66142297 3.99184455,6.66142297 Z" id="形状" fill="url(#linearGradient-3)"></path>
28
+ <path d="M4,5.16666667 C5.23711784,5.16666667 6.24,3.62199775 6.24,2.33333333 C6.24,1.04466891 5.23711784,1.77635684e-15 4,1.77635684e-15 C2.76288216,1.77635684e-15 1.76,1.04466891 1.76,2.33333333 C1.76,3.62199775 2.76288216,5.16666667 4,5.16666667 Z" id="路径" fill="#FFFFFF"></path>
29
+ </g>
30
+ </g>
31
+ <g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
32
+ <text id="助理">
33
+ <tspan x="0" y="13">助理</tspan>
34
+ </text>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="88px" height="20px" viewBox="0 0 88 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>后台管理员</title>
4
+ <defs>
5
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#9EC2FF" offset="0%"></stop>
7
+ <stop stop-color="#76A9FF" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="-2.48949813e-15%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#2879FF" offset="0%"></stop>
11
+ <stop stop-color="#0E69FE" offset="100%"></stop>
12
+ </linearGradient>
13
+ <radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="36.4793396%" id="radialGradient-3">
14
+ <stop stop-color="#2879FF" offset="0%"></stop>
15
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
16
+ </radialGradient>
17
+ </defs>
18
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3316.000000)" fill-rule="nonzero">
20
+ <g id="角色" transform="translate(1356.000000, 3208.000000)">
21
+ <g id="后台管理员" transform="translate(0.000000, 108.000000)">
22
+ <rect id="矩形" fill="#2879FF" x="3" y="1" width="85" height="18" rx="9"></rect>
23
+ <g id="编组-25">
24
+ <polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
25
+ <polygon id="多边形" fill="url(#linearGradient-2)" points="9 1.81818182 16.2168784 5.90909091 16.2168784 14.0909091 9 18.1818182 1.78312164 14.0909091 1.78312164 5.90909091"></polygon>
26
+ <g id="设置" transform="translate(4.500000, 5.500000)">
27
+ <path d="M8.26875,4.5 C8.26875,3.99375 8.55,3.54375 9,3.375 C8.775,2.5875 8.325,1.85625 7.7625,1.29375 C7.36875,1.575 6.80625,1.63125 6.35625,1.40625 C5.90625,1.125 5.68125,0.675 5.7375,0.16875 C5.34375,0.05625 4.89375,0 4.5,0 C4.05,0 3.65625,0.05625 3.2625,0.16875 C3.31875,0.61875 3.09375,1.125 2.64375,1.40625 C2.19375,1.6875 1.63125,1.63125 1.2375,1.29375 C0.675,1.85625 0.225,2.5875 0,3.375 C0.45,3.54375 0.73125,3.99375 0.73125,4.5 C0.73125,5.00625 0.45,5.45625 0,5.625 C0.225,6.4125 0.675,7.14375 1.2375,7.70625 C1.63125,7.425 2.19375,7.36875 2.64375,7.59375 C3.09375,7.875 3.31875,8.325 3.2625,8.83125 C3.65625,8.94375 4.10625,9 4.5,9 C4.95,9 5.34375,8.94375 5.7375,8.83125 C5.68125,8.38125 5.90625,7.875 6.35625,7.59375 C6.80625,7.3125 7.36875,7.36875 7.7625,7.70625 C8.325,7.14375 8.775,6.4125 9,5.625 C8.55,5.45625 8.26875,5.00625 8.26875,4.5 L8.26875,4.5 Z M4.5,6.35625 C3.43125,6.35625 2.5875,5.5125 2.5875,4.5 C2.5875,3.4875 3.43125,2.64375 4.5,2.64375 C5.56875,2.64375 6.4125,3.4875 6.4125,4.5 C6.4125,5.5125 5.56875,6.35625 4.5,6.35625 Z" id="形状" fill="url(#radialGradient-3)"></path>
28
+ <path d="M4.5,5.625 C5.12132034,5.625 5.625,5.12132034 5.625,4.5 C5.625,3.87867966 5.12132034,3.375 4.5,3.375 C3.87867966,3.375 3.375,3.87867966 3.375,4.5 C3.375,5.12132034 3.87867966,5.625 4.5,5.625 Z" id="路径" fill="#FFFFFF"></path>
29
+ </g>
30
+ </g>
31
+ <g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
32
+ <text id="后台管理员">
33
+ <tspan x="0" y="13">后台管理员</tspan>
34
+ </text>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="56px" height="20px" viewBox="0 0 56 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Boss</title>
4
+ <defs>
5
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#FFEEC7" offset="0%"></stop>
7
+ <stop stop-color="#FFD896" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#FFCA3D" offset="0%"></stop>
11
+ <stop stop-color="#E2A916" offset="100%"></stop>
12
+ </linearGradient>
13
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="41.2046279%" id="linearGradient-3">
14
+ <stop stop-color="#F0B929" offset="0%"></stop>
15
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
16
+ </linearGradient>
17
+ </defs>
18
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3208.000000)" fill-rule="nonzero">
20
+ <g id="Boss" transform="translate(1356.000000, 3208.000000)">
21
+ <rect id="矩形" fill="#F2B20F" x="3" y="1" width="53" height="18" rx="9"></rect>
22
+ <g id="编组-25">
23
+ <polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
24
+ <polygon id="多边形" fill="url(#linearGradient-2)" points="9 1.81818182 16.2168784 5.90909091 16.2168784 14.0909091 9 18.1818182 1.78312164 14.0909091 1.78312164 5.90909091"></polygon>
25
+ <g id="编组-29" transform="translate(5.000000, 5.005988)">
26
+ <path d="M3.88814818,9.78562699 C3.68141594,9.77439872 3.29833383,9.75788656 2.91657268,9.73212759 C2.56255197,9.70835008 2.20853126,9.67928868 1.85583152,9.6442829 C1.35452234,9.5960674 0.85651559,9.52209292 0.364453219,9.41377315 C0.352564463,9.4111312 0.341336194,9.40584731 0.329447439,9.40386585 C0.178196053,9.3774464 0.106863521,9.27837343 0.0711972551,9.13636886 C-0.00145624941,8.84641533 -0.0133450047,8.35424963 0.0124139651,8.05835172 C0.0262841796,7.89851401 0.0460987717,7.73933679 0.067894823,7.57949908 C0.107524007,7.29416895 0.266040744,7.09206011 0.507118282,6.9421297 C0.772633816,6.77766858 1.06655027,6.68982389 1.36178769,6.60528163 C1.58503209,6.54121445 1.81422088,6.49431991 2.02095312,6.3833582 C2.23429023,6.26777308 2.43904101,6.1402992 2.58698997,5.94215328 C2.67351369,5.82590767 2.96544868,5.2466611 2.91657268,5.09937263 C2.88949274,5.01615134 5.00418303,4.911134 4.97380066,5.09937263 C4.90180764,5.54321949 5.37556357,6.07755299 5.77449736,6.28494572 C6.02746365,6.41638252 6.30024453,6.49167797 6.57170444,6.57357828 C6.8312756,6.65085519 7.09216773,6.72416918 7.33456624,6.84768014 C7.47194741,6.9176917 7.60206324,7.0002525 7.70906203,7.11385616 C7.84710369,7.25916317 7.91381282,7.43815498 7.93957179,7.6316775 C7.96599124,7.82387904 7.99108973,8.01674107 7.99769459,8.21026359 C8.0069414,8.46058794 7.99108973,8.90784056 7.8999426,9.14561567 C7.86757877,9.23081841 7.80879548,9.28828073 7.72557419,9.323947 C7.53271216,9.4065078 7.32928235,9.44943941 7.12519205,9.4890686 C6.64964184,9.58021572 6.16946822,9.64031998 5.68731315,9.69117744 C5.14769576,9.74731878 4.60609691,9.77638018 3.88814818,9.78562699 Z M3.99184455,6.66142297 C3.92183299,6.66142297 3.85182143,6.660102 3.78180987,6.66274395 C3.76463723,6.66274395 3.74019923,6.66802784 3.73029193,6.67925611 C3.67216913,6.75521204 3.61404633,6.83116798 3.56318887,6.91306829 C3.5473372,6.93882726 3.54073234,6.9857218 3.55328158,7.01148077 C3.6252746,7.15876924 3.70519345,7.30077381 3.7804889,7.44674131 C3.79237766,7.46853736 3.80228495,7.49825925 3.79700106,7.52137627 C3.73557583,7.82255807 3.66160135,8.12109793 3.60942292,8.4236007 C3.54535574,8.79611503 3.54139282,8.94350683 3.72500804,9.19845458 C3.78973571,9.25855884 3.848519,9.31866311 3.91324667,9.37084153 C3.96146218,9.40981023 4.01694303,9.40518682 4.07044243,9.37480445 C4.17612026,9.31536067 4.26396495,9.23544182 4.33595797,9.14033178 C4.39474126,9.06305487 4.45154309,8.98247553 4.42842606,8.87283478 C4.3537911,8.52343747 4.28311905,7.97446995 4.20650263,7.62507264 C4.18999047,7.55043767 4.16357102,7.48042611 4.24547133,7.42692672 C4.25207619,7.42230331 4.25603911,7.4130565 4.26000203,7.40579115 C4.32208775,7.29416895 4.38615493,7.18386772 4.44295676,7.07026406 C4.45880844,7.03723974 4.46277136,6.98968472 4.45352455,6.95401845 C4.42116071,6.83645187 4.33595797,6.74992815 4.2467923,6.67661416 C4.21244701,6.64821325 4.14045399,6.66406492 4.08497313,6.66208346 C4.05459076,6.660102 4.02288741,6.66142297 3.99184455,6.66142297 Z" id="形状" fill="url(#linearGradient-3)"></path>
27
+ <path d="M4,5.16666667 C5.23711784,5.16666667 6.24,3.62199775 6.24,2.33333333 C6.24,1.04466891 5.23711784,1.77635684e-15 4,1.77635684e-15 C2.76288216,1.77635684e-15 1.76,1.04466891 1.76,2.33333333 C1.76,3.62199775 2.76288216,5.16666667 4,5.16666667 Z" id="路径" fill="#FFFFFF"></path>
28
+ </g>
29
+ </g>
30
+ <g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
31
+ <text id="Boss">
32
+ <tspan x="0" y="13">Boss</tspan>
33
+ </text>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>