@titaui/pc 1.12.51 → 1.12.52
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.
|
@@ -129,7 +129,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
129
129
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
130
|
className: "".concat(prefix, "__operate-desc")
|
|
131
131
|
}, reportTextMap[reportType]);
|
|
132
|
-
}, []);
|
|
132
|
+
}, [reportType]);
|
|
133
133
|
(0, _react.useEffect)(function () {
|
|
134
134
|
setCurrentEvalutes(evaluates);
|
|
135
135
|
}, [evaluates]);
|
|
@@ -96,7 +96,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
96
96
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
97
|
className: "".concat(prefix, "__operate-desc")
|
|
98
98
|
}, reportTextMap[reportType]);
|
|
99
|
-
}, []);
|
|
99
|
+
}, [reportType]);
|
|
100
100
|
(0, _react.useEffect)(function () {
|
|
101
101
|
(0, _tools.highLightWord)({
|
|
102
102
|
parentDom: contentRichTextRef.current,
|
|
@@ -124,8 +124,8 @@ var _default = function _default() {
|
|
|
124
124
|
});
|
|
125
125
|
} else {
|
|
126
126
|
(0, _requestApis.getMyDepartMent)().then(function (res) {
|
|
127
|
-
location.href = "#/summary/manage?departmentName=".concat(res.Data[0].name, "&departmentId=").concat(res.Data[0].id);
|
|
128
|
-
var rawTreeData = (0, _helper.translateDepartsToTreeNode)(res.Data);
|
|
127
|
+
location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id);
|
|
128
|
+
var rawTreeData = (0, _helper.translateDepartsToTreeNode)(res.Data.departments);
|
|
129
129
|
var rootNode = {
|
|
130
130
|
async: true,
|
|
131
131
|
data: {
|
|
@@ -166,7 +166,12 @@ var _default = function _default() {
|
|
|
166
166
|
nodes.forEach(function (it) {
|
|
167
167
|
return rawTreeData.push(it);
|
|
168
168
|
});
|
|
169
|
-
|
|
169
|
+
var deWeightData = {};
|
|
170
|
+
rawTreeData.forEach(function (item) {
|
|
171
|
+
deWeightData[item.id] = item;
|
|
172
|
+
});
|
|
173
|
+
var result = Object.values(deWeightData);
|
|
174
|
+
setRawTreeData(_toConsumableArray(result));
|
|
170
175
|
setTreeData((0, _utils.toTree)(rawTreeData));
|
|
171
176
|
resolve(true);
|
|
172
177
|
});
|