@titaui/pc 1.12.70 → 1.12.71-beta.1
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/dynamic/dynamic-item/components/summary-header/index.css +22 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +6 -10
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +5 -0
- package/lib/components/menus/export-modules/demo-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +4 -4
- package/package.json +1 -1
|
@@ -156,6 +156,28 @@
|
|
|
156
156
|
box-sizing: border-box;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
.titaui-dynamic-new-summary-header__edit {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transition: all 0.2s;
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
height: 28px;
|
|
166
|
+
background: rgba(40, 121, 255, 0.1);
|
|
167
|
+
border-radius: 18px;
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
color: #2879FF;
|
|
170
|
+
line-height: 18px;
|
|
171
|
+
padding: 5px 16px;
|
|
172
|
+
margin-right: 12px;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.titaui-dynamic-new-summary-header__edit-icon {
|
|
178
|
+
margin-right: 4px;
|
|
179
|
+
}
|
|
180
|
+
|
|
159
181
|
.titaui-dynamic-new-summary__operate .drawer-content-wrapper {
|
|
160
182
|
width: 372px !important;
|
|
161
183
|
}
|
|
@@ -355,7 +355,12 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
355
355
|
src: _evalute["default"],
|
|
356
356
|
className: "".concat(prefix, "__evalute-img"),
|
|
357
357
|
alt: "\u8BC4\u4EF7"
|
|
358
|
-
}), (0, _getLocale.getLocale)('Per_MyRe_button_Toevaluate')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
358
|
+
}), (0, _getLocale.getLocale)('Per_MyRe_button_Toevaluate')), showEdit && data.isEdit && /*#__PURE__*/_react["default"].createElement("div", {
|
|
359
|
+
className: "".concat(prefix, "__edit"),
|
|
360
|
+
onClick: handleClickEdit
|
|
361
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
362
|
+
className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__edit-icon"))
|
|
363
|
+
}), "\u7F16\u8F91"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
359
364
|
className: "".concat(prefix, "__more-operate")
|
|
360
365
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
361
366
|
popupPlacement: "bottomRight",
|
|
@@ -372,15 +377,6 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
372
377
|
onClick: handleShowDropSelector
|
|
373
378
|
})
|
|
374
379
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
375
|
-
condition: showEdit && data.isEdit
|
|
376
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
377
|
-
name: "edit",
|
|
378
|
-
onClick: handleClickEdit
|
|
379
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
380
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
381
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
382
|
-
className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__more-operate-selection-icon"))
|
|
383
|
-
}), (0, _getLocale.getLocale)('Mod_Editor')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
384
380
|
condition: showDelete && data.isEdit
|
|
385
381
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
386
382
|
name: "delete",
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
.titaui-dynamic-new-report-item:hover .titaui-dynamic-new-summary-header__edit {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
transition: all 0.2s;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
.titaui-dynamic-new-report-item .titaui-dynamic-title__content-text {
|
|
6
11
|
cursor: default;
|
|
7
12
|
}
|
|
@@ -105,7 +105,7 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
105
105
|
label: "公海资源",
|
|
106
106
|
key: "customer",
|
|
107
107
|
href: "#/demofree/customer/public",
|
|
108
|
-
isShow:
|
|
108
|
+
isShow: true,
|
|
109
109
|
children: [{
|
|
110
110
|
icon: "",
|
|
111
111
|
label: "全部客户",
|
|
@@ -100,7 +100,7 @@ var _default = function _default() {
|
|
|
100
100
|
var showCompanyAll = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager();
|
|
101
101
|
(0, _react.useEffect)(function () {
|
|
102
102
|
if (showCompanyAll) {
|
|
103
|
-
window.location.href = '#/summary/
|
|
103
|
+
window.location.href = '#/summary/depart?departmentName=公司全部&departmentId=0&modeType=date';
|
|
104
104
|
|
|
105
105
|
var allDepartmentText = window.getLocale && window.getLocale(_i18n.locale.menu_alldeparment) || _i18n.locale.menu_alldeparment;
|
|
106
106
|
|
|
@@ -140,11 +140,11 @@ var _default = function _default() {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
if (rawTreeData.length > 1) {
|
|
143
|
-
location.href = "#/summary/
|
|
143
|
+
location.href = "#/summary/depart?departmentName=".concat(res.Data.departments[0].name, "&departmentId=-1&modeType=date");
|
|
144
144
|
rawTreeData.unshift(rootNode);
|
|
145
145
|
setSelectedMenuKeys([-1]);
|
|
146
146
|
} else {
|
|
147
|
-
location.href = "#/summary/
|
|
147
|
+
location.href = "#/summary/depart?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id, "&modeType=date");
|
|
148
148
|
setSelectedMenuKeys([rawTreeData[0].id]);
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -193,7 +193,7 @@ var _default = function _default() {
|
|
|
193
193
|
if (nodeType == _index.USER_NODE) {
|
|
194
194
|
location.href = "#/summary/manage?toUserId=".concat(data.userId);
|
|
195
195
|
} else if (nodeType == _index.DEPART_NODE) {
|
|
196
|
-
location.href = "#/summary/
|
|
196
|
+
location.href = "#/summary/depart?departmentName=".concat(data.name, "&departmentId=").concat(data.id);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
setSelectedMenuKeys(selectedKyes);
|