eli-video-interview 1.2.42-alpha.2 → 1.2.42-alpha.4
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/esm/components/AiHeaderTitle/index.js +1 -1
- package/esm/components/Charts/const.js +5 -5
- package/esm/modules/ai-report/interface.d.ts +4 -0
- package/esm/modules/ai-report-v2/Root.js +2 -1
- package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +2 -1
- package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +1 -1
- package/esm/modules/ai-report-v2/components/Candidate/Candidate.js +7 -2
- package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +3 -1
- package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +8 -3
- package/esm/modules/ai-report-v2/components/VideoQuestion/Abilities.js +1 -1
- package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +5 -5
- package/esm/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.js +1 -1
- package/esm/modules/ai-report-v2/components/styled.d.ts +1 -1
- package/esm/modules/ai-report-v2/components/styled.js +9 -3
- package/esm/modules/ai-report-v2/interface.d.ts +4 -0
- package/lib/components/AiHeaderTitle/index.js +1 -1
- package/lib/components/Charts/const.js +5 -5
- package/lib/modules/ai-report/interface.d.ts +4 -0
- package/lib/modules/ai-report-v2/Root.js +2 -1
- package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +2 -1
- package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +1 -1
- package/lib/modules/ai-report-v2/components/Candidate/Candidate.js +6 -1
- package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +3 -1
- package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +10 -5
- package/lib/modules/ai-report-v2/components/VideoQuestion/Abilities.js +1 -1
- package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +4 -4
- package/lib/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.js +1 -1
- package/lib/modules/ai-report-v2/components/styled.d.ts +1 -1
- package/lib/modules/ai-report-v2/components/styled.js +9 -3
- package/lib/modules/ai-report-v2/interface.d.ts +4 -0
- package/package.json +1 -1
|
@@ -21,6 +21,6 @@ var AiHeaderTitle = function (_a) {
|
|
|
21
21
|
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
22
22
|
backgroundSize: 'contain',
|
|
23
23
|
width: 24 + (56 / 4) * name.length + 84,
|
|
24
|
-
} }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6" }, { children: name }))] })));
|
|
24
|
+
} }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
25
25
|
};
|
|
26
26
|
export default AiHeaderTitle;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export var levelMapping = {
|
|
2
2
|
3: {
|
|
3
3
|
text: '优秀',
|
|
4
|
-
itemColor: '
|
|
5
|
-
color: 'rgb(
|
|
4
|
+
itemColor: '#00D99D',
|
|
5
|
+
color: 'rgb(255, 153, 3)',
|
|
6
6
|
},
|
|
7
7
|
2: {
|
|
8
8
|
text: '适中',
|
|
9
9
|
itemColor: 'rgb(166, 234, 193)',
|
|
10
|
-
color: 'rgba(0,
|
|
10
|
+
color: 'rgba(0, 217, 157)',
|
|
11
11
|
},
|
|
12
12
|
1: {
|
|
13
13
|
text: '欠佳',
|
|
14
|
-
itemColor: '
|
|
15
|
-
color: 'rgb(
|
|
14
|
+
itemColor: '#00D99D',
|
|
15
|
+
color: 'rgb(98, 156, 255)',
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -44,6 +44,9 @@ export interface AnalysisResult {
|
|
|
44
44
|
}
|
|
45
45
|
export interface Answer {
|
|
46
46
|
videoUrl: string;
|
|
47
|
+
media: {
|
|
48
|
+
durationTime: number;
|
|
49
|
+
};
|
|
47
50
|
analysisResult: AnalysisResult;
|
|
48
51
|
}
|
|
49
52
|
export interface Ability {
|
|
@@ -58,6 +61,7 @@ export interface Ability {
|
|
|
58
61
|
}
|
|
59
62
|
export interface ScoreInfo {
|
|
60
63
|
weight: number | string;
|
|
64
|
+
workplaceName: string;
|
|
61
65
|
workplaceEvaluation: string;
|
|
62
66
|
originScore: number;
|
|
63
67
|
finalScore: number;
|
|
@@ -27,6 +27,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
var _a = useAiReportStore(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
29
29
|
// const { collection = [], workplaces = [], model = 'standard', hasProVersion = false, isSimulated = false } = reportResult || {};
|
|
30
|
+
// ![FAILED, IN_CALCULATION].includes(status)
|
|
30
31
|
var _b = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
31
32
|
manual: true,
|
|
32
33
|
onSuccess: function (_a) {
|
|
@@ -73,7 +74,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
73
74
|
backgroundSize: 'contain',
|
|
74
75
|
backgroundRepeat: 'no-repeat',
|
|
75
76
|
backgroundPosition: 'center top',
|
|
76
|
-
} }, { children: [_jsx(NotFinish, {}), _jsx(ReportHeader, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), _jsx(FormReport, { fetchFormReuslt: fetchFormReuslt }), _jsx(Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: _jsx(VideoQuestion, {}) }))] })));
|
|
77
|
+
} }, { children: [_jsx(NotFinish, {}), _jsx(ReportHeader, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status }), _jsx(FormReport, { fetchFormReuslt: fetchFormReuslt }), _jsx(Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: _jsx(VideoQuestion, {}) }))] })));
|
|
77
78
|
}
|
|
78
79
|
}, [status, operableButtons, reminderSent, onSendReminderClick, customScore, handleRefreshSuccess, fetchCandidateInfo, fetchFormReuslt]);
|
|
79
80
|
return (_jsx(Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '618px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
@@ -174,6 +174,7 @@ var draw = function (layout, dimensions, pathRef, ctx) {
|
|
|
174
174
|
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
|
|
175
175
|
drawTop(layout, ctx);
|
|
176
176
|
dimensions.forEach(function (v, i) {
|
|
177
|
+
var _a;
|
|
177
178
|
var config = getLevel(v.score);
|
|
178
179
|
// 绘制圆角矩形
|
|
179
180
|
var borderRadius = 12;
|
|
@@ -187,7 +188,7 @@ var draw = function (layout, dimensions, pathRef, ctx) {
|
|
|
187
188
|
drawScore(layout, ctx, config, {
|
|
188
189
|
x: layout.leftLableWidth,
|
|
189
190
|
y: y,
|
|
190
|
-
width: MAX_WIDTH * (v.score / 100),
|
|
191
|
+
width: MAX_WIDTH * ((((_a = v.score) !== null && _a !== void 0 ? _a : v.score < 4) ? 4 : v.score) / 100),
|
|
191
192
|
height: MAX_HEIGHT,
|
|
192
193
|
}, v.score);
|
|
193
194
|
});
|
|
@@ -24,6 +24,6 @@ var Index = function () {
|
|
|
24
24
|
}); });
|
|
25
25
|
if (!showAiDimension)
|
|
26
26
|
return null;
|
|
27
|
-
return (_jsx(Box, __assign({ id: "report-evaluate", px: 2,
|
|
27
|
+
return (_jsx(Box, __assign({ id: "report-evaluate", px: 2, width: 1 }, { children: _jsx(Box, __assign({ component: Paper, elevation: 0, bgcolor: "transparent", mb: 2, pb: 2 }, { children: _jsxs(Stack, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Box, __assign({ mt: 2, flex: 1 }, { children: _jsx(Graph, { items: items }) })), _jsx(Report, {})] })), (reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation) && (_jsx(Evaluate, { token: "", canEdit: canEditAiDimension, evaluations: reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }))] }) })) })));
|
|
28
28
|
};
|
|
29
29
|
export default Index;
|
|
@@ -27,11 +27,16 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
27
27
|
};
|
|
28
28
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
29
|
import { DinTypography, ReportAvatar, ReportTag } from '../styled';
|
|
30
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
31
|
+
import { getSecondToTime } from "../../../../utils/utils";
|
|
30
32
|
import { Message, Typography } from 'fbm-ui';
|
|
31
33
|
import { Stack } from 'fbm-ui/lib/mui';
|
|
32
|
-
import { memo, useEffect, useState } from 'react';
|
|
34
|
+
import { memo, useEffect, useMemo, useState } from 'react';
|
|
33
35
|
var Form = function (_a) {
|
|
34
36
|
var fetchCandidateInfo = _a.fetchCandidateInfo;
|
|
37
|
+
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
38
|
+
var steps = (reportResult || {}).steps;
|
|
39
|
+
var duration = useMemo(function () { return getSecondToTime((steps === null || steps === void 0 ? void 0 : steps.reduce(function (acc, cur) { return acc + cur.answer.media.durationTime; }, 0)) || 0); }, [steps]);
|
|
35
40
|
var _b = __read(useState({ name: '', mobile: '', processName: '', positionName: '', avatar: '', tags: [] }), 2), data = _b[0], setData = _b[1];
|
|
36
41
|
useEffect(function () {
|
|
37
42
|
if (fetchCandidateInfo) {
|
|
@@ -39,6 +44,6 @@ var Form = function (_a) {
|
|
|
39
44
|
}
|
|
40
45
|
}, [fetchCandidateInfo]);
|
|
41
46
|
var name = data.name, mobile = data.mobile, positionName = data.positionName, avatar = data.avatar, tags = data.tags;
|
|
42
|
-
return (_jsxs(Stack, __assign({ direction: "row" }, { children: [_jsx(ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), _jsxs(Stack, __assign({ spacing: 1 }, { children: [_jsx(DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), _jsxs(Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), _jsx(Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return (_jsx(ReportTag, { children: tag }, tag.token)); }) })),
|
|
47
|
+
return (_jsxs(Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [_jsx(ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), _jsxs(Stack, __assign({ spacing: 1 }, { children: [_jsx(DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), _jsxs(Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), _jsx(Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return (_jsx(ReportTag, { children: tag.name }, tag.token)); }) })), _jsxs(Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
|
|
43
48
|
};
|
|
44
49
|
export default memo(Form);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CandidateInfo } from '../Candidate/Interface';
|
|
3
3
|
export interface ReportHeaderProps {
|
|
4
|
+
status: number;
|
|
4
5
|
customScore?: number;
|
|
5
6
|
onRefreshSuccess: () => void;
|
|
6
7
|
fetchCandidateInfo: () => Promise<CandidateInfo>;
|
|
7
8
|
}
|
|
8
|
-
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo }: {
|
|
9
|
+
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status }: {
|
|
9
10
|
customScore: any;
|
|
10
11
|
onRefreshSuccess: any;
|
|
11
12
|
fetchCandidateInfo: any;
|
|
13
|
+
status: any;
|
|
12
14
|
}) => JSX.Element;
|
|
13
15
|
export default ReportHeader;
|
|
@@ -29,6 +29,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
29
29
|
import AIEvaluate from '../AIEvaluate';
|
|
30
30
|
import { CandidateReport, PodiumReport } from '../Candidate';
|
|
31
31
|
import { ReportBadge, ReportLabel } from '../styled';
|
|
32
|
+
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
32
33
|
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
33
34
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
34
35
|
import { formatScore } from "../../../../utils/utils";
|
|
@@ -39,7 +40,7 @@ import { Box, Button, IconButton, Message, Popover, Typography } from 'fbm-ui';
|
|
|
39
40
|
import { Stack } from 'fbm-ui/lib/mui';
|
|
40
41
|
import { useEffect, useMemo, useState } from 'react';
|
|
41
42
|
var ReportHeader = function (_a) {
|
|
42
|
-
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo;
|
|
43
|
+
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status;
|
|
43
44
|
var _b = __read(useState(false), 2), openRefresh = _b[0], setOpenRefresh = _b[1];
|
|
44
45
|
var _c = useAiReportStore(function (store) { return [
|
|
45
46
|
store.token,
|
|
@@ -73,10 +74,14 @@ var ReportHeader = function (_a) {
|
|
|
73
74
|
if (!loading)
|
|
74
75
|
setOpenRefresh(false);
|
|
75
76
|
}, [loading, customScore, score]);
|
|
76
|
-
return (_jsxs(Stack, { children: [model === 'pro' && _jsx(ReportBadge, {}), _jsx(ReportLabel, { level:
|
|
77
|
+
return (_jsxs(Stack, __assign({ position: "relative" }, { children: [model === 'pro' && _jsx(ReportBadge, {}), _jsx(ReportLabel, { level: status === INTERVIEW_STATUS.COMPLETED ? level : 'calculation' }), _jsxs(Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between", sx: {
|
|
78
|
+
width: 'calc(100% - 180px)',
|
|
79
|
+
position: 'absolute',
|
|
80
|
+
top: 0,
|
|
81
|
+
} }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", pl: 3, py: 3 }, { children: [_jsxs(Typography, __assign({ variant: "caption", sx: {
|
|
77
82
|
color: 'rgba(74, 74, 74, 0.86)',
|
|
78
83
|
} }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(IconButton, __assign({ size: "small", onClick: function () { return setOpenRefresh(true); } }, { children: _jsx(RefreshIcon, { sx: {
|
|
79
84
|
color: '#009908',
|
|
80
|
-
} }) })) })))] })), _jsx(Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'DIN Alternate-Bold', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ endIcon: _jsx(ShareIcon, {}), variant: "outlined", onClick: onExportReportClick, sx: { borderRadius: 18 } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Stack, { children: [fetchCandidateInfo && _jsx(CandidateReport, { fetchCandidateInfo: fetchCandidateInfo }), !fetchCandidateInfo && _jsx(PodiumReport, { score: formatScore(feScore || 0) })] }), _jsx(Stack, __assign({ width: 1, direction: "row" }, { children: _jsx(AIEvaluate, {}) }))] }));
|
|
85
|
+
} }) })) })))] })), _jsx(Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'DIN Alternate-Bold', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ endIcon: _jsx(ShareIcon, {}), variant: "outlined", onClick: onExportReportClick, sx: { borderRadius: 18 } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Stack, { children: [fetchCandidateInfo && _jsx(CandidateReport, { fetchCandidateInfo: fetchCandidateInfo }), !fetchCandidateInfo && _jsx(PodiumReport, { score: formatScore(feScore || 0) })] }), _jsx(Stack, __assign({ width: 1, direction: "row" }, { children: _jsx(AIEvaluate, {}) }))] })));
|
|
81
86
|
};
|
|
82
87
|
export default ReportHeader;
|
|
@@ -36,7 +36,7 @@ var Abilities = function (_a) {
|
|
|
36
36
|
return (_jsxs(Box, __assign({ mt: 1 }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary", mb: 1 }, { children: "\u5206\u503C\u8BA1\u7B97\u89C4\u5219\uFF1A\u7EFC\u5408\u8BC4\u5206=AI\u8BC4\u5206*\u5355\u9898\u6743\u91CD" })), _jsx(Box, __assign({ mt: 3 }, { children: steps &&
|
|
37
37
|
steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
|
|
38
38
|
var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
|
|
39
|
-
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: name })), _jsx(ScoreSlider, { width:
|
|
39
|
+
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: name })), _jsx(ScoreSlider, { width: 604, disabledScore: disabledScore, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "".concat(disabledScore ? 'off' : 'auto'), onChangeCommitted: function (score) { return handleChangeCommitted(score, index, 'ability'); } })] }, name));
|
|
40
40
|
}) }))] })));
|
|
41
41
|
};
|
|
42
42
|
export default Abilities;
|
|
@@ -41,12 +41,12 @@ import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
|
41
41
|
import { formatScore, highlighKeywords } from "../../../../utils/utils";
|
|
42
42
|
import { Box, Button, Typography } from 'fbm-ui';
|
|
43
43
|
import { theme } from 'fbm-ui/lib/components/ThemeProvider';
|
|
44
|
-
import { Stack } from 'fbm-ui/lib/mui';
|
|
44
|
+
import { Paper, Stack } from 'fbm-ui/lib/mui';
|
|
45
45
|
import update from 'immutability-helper';
|
|
46
46
|
import { useCallback, useMemo, useState } from 'react';
|
|
47
47
|
var STEP_NO_ANSWER = INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
48
48
|
var QuestionItem = function (props) {
|
|
49
|
-
var token = props.token, reviewImgs = props.reviewImgs, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities, workplaceEvaluation = _c.workplaceEvaluation;
|
|
49
|
+
var token = props.token, reviewImgs = props.reviewImgs, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities, workplaceEvaluation = _c.workplaceEvaluation, workplaceName = _c.workplaceName;
|
|
50
50
|
var _d = __read(useState(false), 2), showAbilities = _d[0], setShowAbilities = _d[1];
|
|
51
51
|
var _e = useAiReportStore(function (store) { return [store.reportResult, store.stepToken, store.operableButtons, store.showAbilitiesDetails]; }), reportResult = _e.reportResult, stepToken = _e.stepToken, operableButtons = _e.operableButtons, showAbilitiesDetails = _e.showAbilitiesDetails, updateState = _e.updateState, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, onStepChange = _e.onStepChange;
|
|
52
52
|
var steps = (reportResult || {}).steps;
|
|
@@ -110,8 +110,8 @@ var QuestionItem = function (props) {
|
|
|
110
110
|
mt: 2,
|
|
111
111
|
}, onClick: handleClickItem }, { children: [_jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", spacing: 4 }, { children: [_jsxs(Stack, __assign({ flex: 1 }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5 }, { children: [_jsx(Typography, __assign({ variant: "body2", sx: { backgroundColor: theme.palette.primary.main, color: '#fff', px: 0.5, borderRadius: '4px 4px 4px 4px', lineHeight: 1 } }, { children: index + 1 })), _jsx(Typography, __assign({ variant: "body2", color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: desc }))] })), _jsxs(QuestionDesc, { children: [_jsx(BodyImages, { reviewImgs: reviewImgs }), _jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [isSingleChoice && _jsx(SingleChoice, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), _jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), followupQuestions === null || followupQuestions === void 0 ? void 0 : followupQuestions.map(function (v) {
|
|
112
112
|
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ mt: 1, fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: "\u8FFD\u95EE\uFF1A".concat(v === null || v === void 0 ? void 0 : v.desc) })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), _jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: v === null || v === void 0 ? void 0 : v.answer }))] })] }));
|
|
113
|
-
})] })), _jsx(Video, { src: videoUrl, controls: true })] })), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500, noWrap: true }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index, disabledScore: isSingleChoice }), abilities.map(function (v) { return (_createElement(Workplaces, __assign({}, v, { key: v.token }))); }), workplaceEvaluation && (_jsxs(
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
})] })), _jsx(Video, { src: videoUrl, controls: true })] })), _jsxs(Stack, __assign({ mt: 3, spacing: 1, component: Paper, variant: "outlined", sx: { border: '1px solid #9BCC9B', background: '#F7FFF7' }, p: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5, mb: 1 }, { children: [_jsx(Typography, __assign({ sx: { color: '#4CAF50' }, variant: "body2", fontWeight: "medium" }, { children: "\u8003\u6838\u70B9\uFF1A" })), _jsx(Typography, __assign({ variant: "body2" }, { children: workplaceName }))] })), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500, noWrap: true }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index, disabledScore: isSingleChoice }), abilities.map(function (v) { return (_createElement(Workplaces, __assign({}, v, { key: v.token }))); }), workplaceEvaluation && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#4caf50' } }, { children: "AI\u8BC4\u4EF7" })), _jsx(Typography, { variant: "caption", sx: {
|
|
114
|
+
color: '#424242',
|
|
115
|
+
}, dangerouslySetInnerHTML: { __html: workplaceEvaluation } })] }))] }))] }), token));
|
|
116
116
|
};
|
|
117
117
|
export default QuestionItem;
|
|
@@ -32,7 +32,7 @@ import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
|
32
32
|
import { Tooltip, Typography } from 'fbm-ui';
|
|
33
33
|
import { useCallback, useEffect, useState } from 'react';
|
|
34
34
|
var ScoreSlider = function (props) {
|
|
35
|
-
var _a = props.width, width = _a === void 0 ?
|
|
35
|
+
var _a = props.width, width = _a === void 0 ? 504 : _a, originScore = props.originScore, finalScore = props.finalScore, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'on' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.isShowScoreRank, isShowScoreRank = _d === void 0 ? false : _d, onChangeCommitted = props.onChangeCommitted, _e = props.disabledScore, sliderDisabledScore = _e === void 0 ? false : _e;
|
|
36
36
|
var aiScore = originScore.toFixed(0);
|
|
37
37
|
var _f = __read(useState(0), 2), score = _f[0], setScore = _f[1];
|
|
38
38
|
var disabledScore = useAiReportStore(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
|
|
@@ -6,7 +6,7 @@ export declare const ReportBadge: import("@emotion/styled").StyledComponent<impo
|
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
7
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
8
|
interface ReportLabelProps {
|
|
9
|
-
level?: 'low' | 'middle' | 'high';
|
|
9
|
+
level?: 'low' | 'middle' | 'high' | 'calculation';
|
|
10
10
|
}
|
|
11
11
|
export declare const ReportLabel: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
12
12
|
children?: import("react").ReactNode;
|
|
@@ -28,6 +28,7 @@ var LabelImage = {
|
|
|
28
28
|
low: '//webcdn.fbmms.cn/assets/ieud/S3Zpk0MrG7xS7GNhhPR91',
|
|
29
29
|
middle: '//webcdn.fbmms.cn/assets/QSes/sdMFEHcqx5fYijnEU2d-q',
|
|
30
30
|
high: '//webcdn.fbmms.cn/assets/sXb7/jADl-WOO_6B27l56HKlBM',
|
|
31
|
+
calculation: '//webcdn.fbmms.cn/assets/9bjO/UaJ2R4JousNJezEJdY00s',
|
|
31
32
|
};
|
|
32
33
|
export var ReportLabel = styled(Box)(function (_a) {
|
|
33
34
|
var _b = _a.level, level = _b === void 0 ? 'low' : _b;
|
|
@@ -103,9 +104,14 @@ export var Podium = styled(Box)({
|
|
|
103
104
|
backgroundSize: 'cover',
|
|
104
105
|
color: '#119E45',
|
|
105
106
|
});
|
|
106
|
-
export var Video = styled('video')({
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
export var Video = styled('video')(function (_a) {
|
|
108
|
+
var theme = _a.theme;
|
|
109
|
+
return ({
|
|
110
|
+
width: 166,
|
|
111
|
+
height: 296,
|
|
112
|
+
borderRadius: 8,
|
|
113
|
+
boxShadow: theme.shadows[6],
|
|
114
|
+
});
|
|
109
115
|
});
|
|
110
116
|
export var BeatProgressBar = styled(Box)({
|
|
111
117
|
width: 169,
|
|
@@ -46,6 +46,9 @@ export interface AnalysisResult {
|
|
|
46
46
|
}
|
|
47
47
|
export interface Answer {
|
|
48
48
|
videoUrl: string;
|
|
49
|
+
media: {
|
|
50
|
+
durationTime: number;
|
|
51
|
+
};
|
|
49
52
|
analysisResult: AnalysisResult;
|
|
50
53
|
}
|
|
51
54
|
export interface Ability {
|
|
@@ -61,6 +64,7 @@ export interface Ability {
|
|
|
61
64
|
export interface ScoreInfo {
|
|
62
65
|
weight: number | string;
|
|
63
66
|
workplaceEvaluation: string;
|
|
67
|
+
workplaceName: string;
|
|
64
68
|
originScore: number;
|
|
65
69
|
finalScore: number;
|
|
66
70
|
score: number;
|
|
@@ -26,6 +26,6 @@ var AiHeaderTitle = function (_a) {
|
|
|
26
26
|
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
27
27
|
backgroundSize: 'contain',
|
|
28
28
|
width: 24 + (56 / 4) * name.length + 84,
|
|
29
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.default, { name: "AI" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6" }, { children: name }))] })));
|
|
29
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.default, { name: "AI" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
30
30
|
};
|
|
31
31
|
exports.default = AiHeaderTitle;
|
|
@@ -4,17 +4,17 @@ exports.levelMapping = void 0;
|
|
|
4
4
|
exports.levelMapping = {
|
|
5
5
|
3: {
|
|
6
6
|
text: '优秀',
|
|
7
|
-
itemColor: '
|
|
8
|
-
color: 'rgb(
|
|
7
|
+
itemColor: '#00D99D',
|
|
8
|
+
color: 'rgb(255, 153, 3)',
|
|
9
9
|
},
|
|
10
10
|
2: {
|
|
11
11
|
text: '适中',
|
|
12
12
|
itemColor: 'rgb(166, 234, 193)',
|
|
13
|
-
color: 'rgba(0,
|
|
13
|
+
color: 'rgba(0, 217, 157)',
|
|
14
14
|
},
|
|
15
15
|
1: {
|
|
16
16
|
text: '欠佳',
|
|
17
|
-
itemColor: '
|
|
18
|
-
color: 'rgb(
|
|
17
|
+
itemColor: '#00D99D',
|
|
18
|
+
color: 'rgb(98, 156, 255)',
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -44,6 +44,9 @@ export interface AnalysisResult {
|
|
|
44
44
|
}
|
|
45
45
|
export interface Answer {
|
|
46
46
|
videoUrl: string;
|
|
47
|
+
media: {
|
|
48
|
+
durationTime: number;
|
|
49
|
+
};
|
|
47
50
|
analysisResult: AnalysisResult;
|
|
48
51
|
}
|
|
49
52
|
export interface Ability {
|
|
@@ -58,6 +61,7 @@ export interface Ability {
|
|
|
58
61
|
}
|
|
59
62
|
export interface ScoreInfo {
|
|
60
63
|
weight: number | string;
|
|
64
|
+
workplaceName: string;
|
|
61
65
|
workplaceEvaluation: string;
|
|
62
66
|
originScore: number;
|
|
63
67
|
finalScore: number;
|
|
@@ -32,6 +32,7 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
var _a = (0, global_store_1.useAiReportStore)(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
34
34
|
// const { collection = [], workplaces = [], model = 'standard', hasProVersion = false, isSimulated = false } = reportResult || {};
|
|
35
|
+
// ![FAILED, IN_CALCULATION].includes(status)
|
|
35
36
|
var _b = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewResult)([token]); }, {
|
|
36
37
|
manual: true,
|
|
37
38
|
onSuccess: function (_a) {
|
|
@@ -78,7 +79,7 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
78
79
|
backgroundSize: 'contain',
|
|
79
80
|
backgroundRepeat: 'no-repeat',
|
|
80
81
|
backgroundPosition: 'center top',
|
|
81
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (0, jsx_runtime_1.jsx)(ReportHeader_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormReuslt: fetchFormReuslt }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {}) }))] })));
|
|
82
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (0, jsx_runtime_1.jsx)(ReportHeader_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status }), (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormReuslt: fetchFormReuslt }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {}) }))] })));
|
|
82
83
|
}
|
|
83
84
|
}, [status, operableButtons, reminderSent, onSendReminderClick, customScore, handleRefreshSuccess, fetchCandidateInfo, fetchFormReuslt]);
|
|
84
85
|
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '618px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
@@ -176,6 +176,7 @@ var draw = function (layout, dimensions, pathRef, ctx) {
|
|
|
176
176
|
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
|
|
177
177
|
drawTop(layout, ctx);
|
|
178
178
|
dimensions.forEach(function (v, i) {
|
|
179
|
+
var _a;
|
|
179
180
|
var config = getLevel(v.score);
|
|
180
181
|
// 绘制圆角矩形
|
|
181
182
|
var borderRadius = 12;
|
|
@@ -189,7 +190,7 @@ var draw = function (layout, dimensions, pathRef, ctx) {
|
|
|
189
190
|
drawScore(layout, ctx, config, {
|
|
190
191
|
x: layout.leftLableWidth,
|
|
191
192
|
y: y,
|
|
192
|
-
width: MAX_WIDTH * (v.score / 100),
|
|
193
|
+
width: MAX_WIDTH * ((((_a = v.score) !== null && _a !== void 0 ? _a : v.score < 4) ? 4 : v.score) / 100),
|
|
193
194
|
height: MAX_HEIGHT,
|
|
194
195
|
}, v.score);
|
|
195
196
|
});
|
|
@@ -29,6 +29,6 @@ var Index = function () {
|
|
|
29
29
|
}); });
|
|
30
30
|
if (!showAiDimension)
|
|
31
31
|
return null;
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ id: "report-evaluate", px: 2,
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ id: "report-evaluate", px: 2, width: 1 }, { children: (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ component: mui_1.Paper, elevation: 0, bgcolor: "transparent", mb: 2, pb: 2 }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2, flex: 1 }, { children: (0, jsx_runtime_1.jsx)(Graph_1.default, { items: items }) })), (0, jsx_runtime_1.jsx)(Report_1.default, {})] })), (reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation) && ((0, jsx_runtime_1.jsx)(Evaluate_1.default, { token: "", canEdit: canEditAiDimension, evaluations: reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }))] }) })) })));
|
|
33
33
|
};
|
|
34
34
|
exports.default = Index;
|
|
@@ -29,11 +29,16 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var styled_1 = require("../styled");
|
|
32
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
33
|
+
var utils_1 = require("../../../../utils/utils");
|
|
32
34
|
var fbm_ui_1 = require("fbm-ui");
|
|
33
35
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
34
36
|
var react_1 = require("react");
|
|
35
37
|
var Form = function (_a) {
|
|
36
38
|
var fetchCandidateInfo = _a.fetchCandidateInfo;
|
|
39
|
+
var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }).reportResult;
|
|
40
|
+
var steps = (reportResult || {}).steps;
|
|
41
|
+
var duration = (0, react_1.useMemo)(function () { return (0, utils_1.getSecondToTime)((steps === null || steps === void 0 ? void 0 : steps.reduce(function (acc, cur) { return acc + cur.answer.media.durationTime; }, 0)) || 0); }, [steps]);
|
|
37
42
|
var _b = __read((0, react_1.useState)({ name: '', mobile: '', processName: '', positionName: '', avatar: '', tags: [] }), 2), data = _b[0], setData = _b[1];
|
|
38
43
|
(0, react_1.useEffect)(function () {
|
|
39
44
|
if (fetchCandidateInfo) {
|
|
@@ -41,6 +46,6 @@ var Form = function (_a) {
|
|
|
41
46
|
}
|
|
42
47
|
}, [fetchCandidateInfo]);
|
|
43
48
|
var name = data.name, mobile = data.mobile, positionName = data.positionName, avatar = data.avatar, tags = data.tags;
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return ((0, jsx_runtime_1.jsx)(styled_1.ReportTag, { children: tag }, tag.token)); }) })), (0, jsx_runtime_1.
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return ((0, jsx_runtime_1.jsx)(styled_1.ReportTag, { children: tag.name }, tag.token)); }) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
|
|
45
50
|
};
|
|
46
51
|
exports.default = (0, react_1.memo)(Form);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CandidateInfo } from '../Candidate/Interface';
|
|
3
3
|
export interface ReportHeaderProps {
|
|
4
|
+
status: number;
|
|
4
5
|
customScore?: number;
|
|
5
6
|
onRefreshSuccess: () => void;
|
|
6
7
|
fetchCandidateInfo: () => Promise<CandidateInfo>;
|
|
7
8
|
}
|
|
8
|
-
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo }: {
|
|
9
|
+
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status }: {
|
|
9
10
|
customScore: any;
|
|
10
11
|
onRefreshSuccess: any;
|
|
11
12
|
fetchCandidateInfo: any;
|
|
13
|
+
status: any;
|
|
12
14
|
}) => JSX.Element;
|
|
13
15
|
export default ReportHeader;
|
|
@@ -34,7 +34,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
34
34
|
var AIEvaluate_1 = __importDefault(require("../AIEvaluate"));
|
|
35
35
|
var Candidate_1 = require("../Candidate");
|
|
36
36
|
var styled_1 = require("../styled");
|
|
37
|
-
var ai_report_1 = require("../../../../
|
|
37
|
+
var ai_report_1 = require("../../../../enum/ai-report");
|
|
38
|
+
var ai_report_2 = require("../../../../services/ai-report");
|
|
38
39
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
39
40
|
var utils_1 = require("../../../../utils/utils");
|
|
40
41
|
var ahooks_1 = require("ahooks");
|
|
@@ -44,7 +45,7 @@ var fbm_ui_1 = require("fbm-ui");
|
|
|
44
45
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
45
46
|
var react_1 = require("react");
|
|
46
47
|
var ReportHeader = function (_a) {
|
|
47
|
-
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo;
|
|
48
|
+
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status;
|
|
48
49
|
var _b = __read((0, react_1.useState)(false), 2), openRefresh = _b[0], setOpenRefresh = _b[1];
|
|
49
50
|
var _c = (0, global_store_1.useAiReportStore)(function (store) { return [
|
|
50
51
|
store.token,
|
|
@@ -53,7 +54,7 @@ var ReportHeader = function (_a) {
|
|
|
53
54
|
]; }), token = _c.token, reportResult = _c.reportResult, operableButtons = _c.operableButtons, onExportReportClick = _c.onExportReportClick;
|
|
54
55
|
var _d = reportResult || {}, score = _d.score, createTime = _d.createTime, model = _d.model;
|
|
55
56
|
var _e = __read((0, react_1.useState)(score || 0), 2), feScore = _e[0], setScore = _e[1];
|
|
56
|
-
var _f = (0, ahooks_1.useRequest)(function () { return (0,
|
|
57
|
+
var _f = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewRefresh)(token); }, {
|
|
57
58
|
manual: true,
|
|
58
59
|
onSuccess: function () {
|
|
59
60
|
onRefreshSuccess();
|
|
@@ -78,10 +79,14 @@ var ReportHeader = function (_a) {
|
|
|
78
79
|
if (!loading)
|
|
79
80
|
setOpenRefresh(false);
|
|
80
81
|
}, [loading, customScore, score]);
|
|
81
|
-
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [model === 'pro' && (0, jsx_runtime_1.jsx)(styled_1.ReportBadge, {}), (0, jsx_runtime_1.jsx)(styled_1.ReportLabel, { level:
|
|
82
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ position: "relative" }, { children: [model === 'pro' && (0, jsx_runtime_1.jsx)(styled_1.ReportBadge, {}), (0, jsx_runtime_1.jsx)(styled_1.ReportLabel, { level: status === ai_report_1.INTERVIEW_STATUS.COMPLETED ? level : 'calculation' }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between", sx: {
|
|
83
|
+
width: 'calc(100% - 180px)',
|
|
84
|
+
position: 'absolute',
|
|
85
|
+
top: 0,
|
|
86
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", pl: 3, py: 3 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", sx: {
|
|
82
87
|
color: 'rgba(74, 74, 74, 0.86)',
|
|
83
88
|
} }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", (0, dayjs_1.default)(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ size: "small", onClick: function () { return setOpenRefresh(true); } }, { children: (0, jsx_runtime_1.jsx)(fbm_icons_1.RefreshIcon, { sx: {
|
|
84
89
|
color: '#009908',
|
|
85
|
-
} }) })) })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'DIN Alternate-Bold', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ endIcon: (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, {}), variant: "outlined", onClick: onExportReportClick, sx: { borderRadius: 18 } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [fetchCandidateInfo && (0, jsx_runtime_1.jsx)(Candidate_1.CandidateReport, { fetchCandidateInfo: fetchCandidateInfo }), !fetchCandidateInfo && (0, jsx_runtime_1.jsx)(Candidate_1.PodiumReport, { score: (0, utils_1.formatScore)(feScore || 0) })] }), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ width: 1, direction: "row" }, { children: (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}) }))] }));
|
|
90
|
+
} }) })) })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'DIN Alternate-Bold', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ endIcon: (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, {}), variant: "outlined", onClick: onExportReportClick, sx: { borderRadius: 18 } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [fetchCandidateInfo && (0, jsx_runtime_1.jsx)(Candidate_1.CandidateReport, { fetchCandidateInfo: fetchCandidateInfo }), !fetchCandidateInfo && (0, jsx_runtime_1.jsx)(Candidate_1.PodiumReport, { score: (0, utils_1.formatScore)(feScore || 0) })] }), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ width: 1, direction: "row" }, { children: (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}) }))] })));
|
|
86
91
|
};
|
|
87
92
|
exports.default = ReportHeader;
|
|
@@ -41,7 +41,7 @@ var Abilities = function (_a) {
|
|
|
41
41
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 1 }, { children: "\u5206\u503C\u8BA1\u7B97\u89C4\u5219\uFF1A\u7EFC\u5408\u8BC4\u5206=AI\u8BC4\u5206*\u5355\u9898\u6743\u91CD" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps &&
|
|
42
42
|
steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
|
|
43
43
|
var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: name })), (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width:
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: name })), (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: 604, disabledScore: disabledScore, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "".concat(disabledScore ? 'off' : 'auto'), onChangeCommitted: function (score) { return handleChangeCommitted(score, index, 'ability'); } })] }, name));
|
|
45
45
|
}) }))] })));
|
|
46
46
|
};
|
|
47
47
|
exports.default = Abilities;
|
|
@@ -51,7 +51,7 @@ var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
|
51
51
|
var react_2 = require("react");
|
|
52
52
|
var STEP_NO_ANSWER = ai_report_1.INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = ai_report_1.INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
53
53
|
var QuestionItem = function (props) {
|
|
54
|
-
var token = props.token, reviewImgs = props.reviewImgs, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities, workplaceEvaluation = _c.workplaceEvaluation;
|
|
54
|
+
var token = props.token, reviewImgs = props.reviewImgs, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities, workplaceEvaluation = _c.workplaceEvaluation, workplaceName = _c.workplaceName;
|
|
55
55
|
var _d = __read((0, react_2.useState)(false), 2), showAbilities = _d[0], setShowAbilities = _d[1];
|
|
56
56
|
var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.stepToken, store.operableButtons, store.showAbilitiesDetails]; }), reportResult = _e.reportResult, stepToken = _e.stepToken, operableButtons = _e.operableButtons, showAbilitiesDetails = _e.showAbilitiesDetails, updateState = _e.updateState, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, onStepChange = _e.onStepChange;
|
|
57
57
|
var steps = (reportResult || {}).steps;
|
|
@@ -115,8 +115,8 @@ var QuestionItem = function (props) {
|
|
|
115
115
|
mt: 2,
|
|
116
116
|
}, onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", spacing: 4 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ flex: 1 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { backgroundColor: ThemeProvider_1.theme.palette.primary.main, color: '#fff', px: 0.5, borderRadius: '4px 4px 4px 4px', lineHeight: 1 } }, { children: index + 1 })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: desc }))] })), (0, jsx_runtime_1.jsxs)(styled_2.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(BodyImages_1.default, { reviewImgs: reviewImgs }), (0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isSingleChoice && (0, jsx_runtime_1.jsx)(SingleChoice_1.default, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), followupQuestions === null || followupQuestions === void 0 ? void 0 : followupQuestions.map(function (v) {
|
|
117
117
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: "\u8FFD\u95EE\uFF1A".concat(v === null || v === void 0 ? void 0 : v.desc) })), (0, jsx_runtime_1.jsxs)(styled_2.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: v === null || v === void 0 ? void 0 : v.answer }))] })] }));
|
|
118
|
-
})] })), (0, jsx_runtime_1.jsx)(styled_1.Video, { src: videoUrl, controls: true })] })), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500, noWrap: true }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index, disabledScore: isSingleChoice }), abilities.map(function (v) { return ((0, react_1.createElement)(Workplaces_1.default, __assign({}, v, { key: v.token }))); }), workplaceEvaluation && ((0, jsx_runtime_1.jsxs)(
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
})] })), (0, jsx_runtime_1.jsx)(styled_1.Video, { src: videoUrl, controls: true })] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ mt: 3, spacing: 1, component: mui_1.Paper, variant: "outlined", sx: { border: '1px solid #9BCC9B', background: '#F7FFF7' }, p: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5, mb: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: { color: '#4CAF50' }, variant: "body2", fontWeight: "medium" }, { children: "\u8003\u6838\u70B9\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: workplaceName }))] })), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500, noWrap: true }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index, disabledScore: isSingleChoice }), abilities.map(function (v) { return ((0, react_1.createElement)(Workplaces_1.default, __assign({}, v, { key: v.token }))); }), workplaceEvaluation && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#4caf50' } }, { children: "AI\u8BC4\u4EF7" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", sx: {
|
|
119
|
+
color: '#424242',
|
|
120
|
+
}, dangerouslySetInnerHTML: { __html: workplaceEvaluation } })] }))] }))] }), token));
|
|
121
121
|
};
|
|
122
122
|
exports.default = QuestionItem;
|
|
@@ -34,7 +34,7 @@ var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
|
34
34
|
var fbm_ui_1 = require("fbm-ui");
|
|
35
35
|
var react_1 = require("react");
|
|
36
36
|
var ScoreSlider = function (props) {
|
|
37
|
-
var _a = props.width, width = _a === void 0 ?
|
|
37
|
+
var _a = props.width, width = _a === void 0 ? 504 : _a, originScore = props.originScore, finalScore = props.finalScore, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'on' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.isShowScoreRank, isShowScoreRank = _d === void 0 ? false : _d, onChangeCommitted = props.onChangeCommitted, _e = props.disabledScore, sliderDisabledScore = _e === void 0 ? false : _e;
|
|
38
38
|
var aiScore = originScore.toFixed(0);
|
|
39
39
|
var _f = __read((0, react_1.useState)(0), 2), score = _f[0], setScore = _f[1];
|
|
40
40
|
var disabledScore = (0, global_store_1.useAiReportStore)(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
|
|
@@ -6,7 +6,7 @@ export declare const ReportBadge: import("@emotion/styled").StyledComponent<impo
|
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
7
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
8
|
interface ReportLabelProps {
|
|
9
|
-
level?: 'low' | 'middle' | 'high';
|
|
9
|
+
level?: 'low' | 'middle' | 'high' | 'calculation';
|
|
10
10
|
}
|
|
11
11
|
export declare const ReportLabel: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
12
12
|
children?: import("react").ReactNode;
|
|
@@ -31,6 +31,7 @@ var LabelImage = {
|
|
|
31
31
|
low: '//webcdn.fbmms.cn/assets/ieud/S3Zpk0MrG7xS7GNhhPR91',
|
|
32
32
|
middle: '//webcdn.fbmms.cn/assets/QSes/sdMFEHcqx5fYijnEU2d-q',
|
|
33
33
|
high: '//webcdn.fbmms.cn/assets/sXb7/jADl-WOO_6B27l56HKlBM',
|
|
34
|
+
calculation: '//webcdn.fbmms.cn/assets/9bjO/UaJ2R4JousNJezEJdY00s',
|
|
34
35
|
};
|
|
35
36
|
exports.ReportLabel = (0, fbm_ui_1.styled)(fbm_ui_1.Box)(function (_a) {
|
|
36
37
|
var _b = _a.level, level = _b === void 0 ? 'low' : _b;
|
|
@@ -106,9 +107,14 @@ exports.Podium = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
|
106
107
|
backgroundSize: 'cover',
|
|
107
108
|
color: '#119E45',
|
|
108
109
|
});
|
|
109
|
-
exports.Video = (0, fbm_ui_1.styled)('video')({
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
exports.Video = (0, fbm_ui_1.styled)('video')(function (_a) {
|
|
111
|
+
var theme = _a.theme;
|
|
112
|
+
return ({
|
|
113
|
+
width: 166,
|
|
114
|
+
height: 296,
|
|
115
|
+
borderRadius: 8,
|
|
116
|
+
boxShadow: theme.shadows[6],
|
|
117
|
+
});
|
|
112
118
|
});
|
|
113
119
|
exports.BeatProgressBar = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
114
120
|
width: 169,
|
|
@@ -46,6 +46,9 @@ export interface AnalysisResult {
|
|
|
46
46
|
}
|
|
47
47
|
export interface Answer {
|
|
48
48
|
videoUrl: string;
|
|
49
|
+
media: {
|
|
50
|
+
durationTime: number;
|
|
51
|
+
};
|
|
49
52
|
analysisResult: AnalysisResult;
|
|
50
53
|
}
|
|
51
54
|
export interface Ability {
|
|
@@ -61,6 +64,7 @@ export interface Ability {
|
|
|
61
64
|
export interface ScoreInfo {
|
|
62
65
|
weight: number | string;
|
|
63
66
|
workplaceEvaluation: string;
|
|
67
|
+
workplaceName: string;
|
|
64
68
|
originScore: number;
|
|
65
69
|
finalScore: number;
|
|
66
70
|
score: number;
|