@titaui/pc 1.9.21 → 1.9.22
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.
|
@@ -188,7 +188,7 @@ var Header = function Header(props) {
|
|
|
188
188
|
editable: editable,
|
|
189
189
|
okrId: okrInfo.workId,
|
|
190
190
|
score: okrInfo.evaluateValue,
|
|
191
|
-
isEvaluate: okrInfo.manualEvaluateValue
|
|
191
|
+
isEvaluate: okrInfo.manualEvaluateValue || !!okrInfo.evaluateValue
|
|
192
192
|
}))), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
193
193
|
okrInfo: okrInfo,
|
|
194
194
|
renderContent: renderContent
|
package/package.json
CHANGED
|
@@ -149,7 +149,7 @@ const Header = (props) => {
|
|
|
149
149
|
<OCycle editable={editable} okrId={okrInfo.workId} />
|
|
150
150
|
</span>
|
|
151
151
|
<span className={`${precls}__action-item`}>
|
|
152
|
-
{(showOkrEvalute || showOScore) && <Score editable={editable} okrId={okrInfo.workId} score={okrInfo.evaluateValue} isEvaluate={okrInfo.manualEvaluateValue} />}
|
|
152
|
+
{(showOkrEvalute || showOScore) && <Score editable={editable} okrId={okrInfo.workId} score={okrInfo.evaluateValue} isEvaluate={okrInfo.manualEvaluateValue||!!okrInfo.evaluateValue} />}
|
|
153
153
|
</span>
|
|
154
154
|
</span>
|
|
155
155
|
<OProgressUpdate okrInfo={okrInfo} renderContent={renderContent} />
|
|
@@ -25,7 +25,7 @@ const OScore = (props: IOScoreProps) => {
|
|
|
25
25
|
const [visible, setVisible] = useState(false);
|
|
26
26
|
const { refreshAll } = useContext(CommonContext);
|
|
27
27
|
const [formFiedlsValue, setFormFiedlsValue] = useState<FormFields>({
|
|
28
|
-
score: score,
|
|
28
|
+
score: score.toFixed(2),
|
|
29
29
|
describe: "",
|
|
30
30
|
});
|
|
31
31
|
const formContainerRef = useRef<any>();
|