eli-video-interview 1.2.42-alpha.11 → 1.2.42-alpha.13
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/Charts/ReportPie.js +1 -1
- package/esm/components/Charts/const.js +3 -3
- package/esm/modules/ai-report-v2/Root.js +2 -2
- package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +1 -1
- package/esm/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
- package/esm/modules/ai-report-v2/components/Form/Form.js +19 -9
- package/esm/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
- package/esm/modules/ai-report-v2/components/Form/Nps.js +2 -0
- package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
- package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +20 -8
- package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +1 -1
- package/esm/modules/ai-report-v2/interface.d.ts +2 -1
- package/esm/modules/ai-report-v2/useAiReport.d.ts +1 -0
- package/lib/components/Charts/ReportPie.js +1 -1
- package/lib/components/Charts/const.js +3 -3
- package/lib/modules/ai-report-v2/Root.js +2 -2
- package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +1 -1
- package/lib/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
- package/lib/modules/ai-report-v2/components/Form/Form.js +19 -9
- package/lib/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
- package/lib/modules/ai-report-v2/components/Form/Nps.js +2 -0
- package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
- package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +20 -8
- package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +1 -1
- package/lib/modules/ai-report-v2/interface.d.ts +2 -1
- package/lib/modules/ai-report-v2/useAiReport.d.ts +1 -0
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ var ReportPie = function (props) {
|
|
|
125
125
|
formatter: function (_a) {
|
|
126
126
|
var _b;
|
|
127
127
|
var value = _a.value, dataIndex = _a.dataIndex;
|
|
128
|
-
return ((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight) || 0;
|
|
128
|
+
return "".concat(((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight.toFixed(2)) || 0, "%");
|
|
129
129
|
},
|
|
130
130
|
fontSize: 14,
|
|
131
131
|
},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export var levelMapping = {
|
|
2
2
|
3: {
|
|
3
3
|
text: '优秀',
|
|
4
|
-
itemColor: '
|
|
4
|
+
itemColor: 'rgba(255, 153,2)',
|
|
5
5
|
color: 'rgb(255, 153, 3)',
|
|
6
6
|
},
|
|
7
7
|
2: {
|
|
8
8
|
text: '适中',
|
|
9
|
-
itemColor: '
|
|
9
|
+
itemColor: 'rgba(0, 217,157)',
|
|
10
10
|
color: 'rgba(0, 217, 157)',
|
|
11
11
|
},
|
|
12
12
|
1: {
|
|
13
13
|
text: '欠佳',
|
|
14
|
-
itemColor: '
|
|
14
|
+
itemColor: 'rgba(99, 156,255)',
|
|
15
15
|
color: 'rgb(98, 156, 255)',
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ import { Box, Button, Paper, Typography } from 'fbm-ui';
|
|
|
22
22
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
23
23
|
var NO_ANSWER = INTERVIEW_STATUS.NO_ANSWER;
|
|
24
24
|
var AiReportRoot = forwardRef(function (props, ref) {
|
|
25
|
-
var token = props.token, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo;
|
|
25
|
+
var token = props.token, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, fetchReportUrl = props.fetchReportUrl;
|
|
26
26
|
var firstLoad = useRef(true);
|
|
27
27
|
var _a = useAiReportStore(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
28
28
|
var _b = (reportResult || {}).collection, collection = _b === void 0 ? [] : _b;
|
|
@@ -73,7 +73,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
73
73
|
backgroundRepeat: 'no-repeat',
|
|
74
74
|
backgroundPosition: 'center top',
|
|
75
75
|
paddingTop: (collection === null || collection === void 0 ? void 0 : collection.length) > 0 ? 0 : 3,
|
|
76
|
-
} }, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (_jsx(ReportHeader, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status })), _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: _jsx(VideoQuestion, {}) }))] })));
|
|
76
|
+
} }, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (_jsx(ReportHeader, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status, fetchReportUrl: fetchReportUrl })), _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(Paper, __assign({ variant: "outlined", sx: { zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: _jsx(VideoQuestion, {}) }))] })));
|
|
77
77
|
}
|
|
78
78
|
}, [
|
|
79
79
|
status,
|
|
@@ -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, 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
|
|
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: "\u7EFC\u5408\u8BC4\u4EF7", field: "evaluations", mode: "show" }))] }) })) })));
|
|
28
28
|
};
|
|
29
29
|
export default Index;
|
|
@@ -30,8 +30,8 @@ export var QUESTION_TYPE;
|
|
|
30
30
|
QUESTION_TYPE[QUESTION_TYPE["NPS"] = 9] = "NPS";
|
|
31
31
|
})(QUESTION_TYPE || (QUESTION_TYPE = {}));
|
|
32
32
|
var Image = function (answer) {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
return (_jsx(PhotoProvider, __assign({ maskOpacity: 0.5 }, { children: (_b = (_a = answer.formAnswer) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.map(function (url) { return (_jsx(PhotoView, __assign({ src: url }, { children: _jsx("img", { src: url, alt: url, width: 48, height: 32 }) }), url)); }) })));
|
|
33
|
+
var _a, _b, _c;
|
|
34
|
+
return (_jsx(PhotoProvider, __assign({ maskOpacity: 0.5 }, { children: (_c = (_b = (_a = answer.formAnswer) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.filter(function (v) { return v; })) === null || _c === void 0 ? void 0 : _c.map(function (url) { return (_jsx(PhotoView, __assign({ src: url }, { children: _jsx("img", { src: url, alt: url, width: 48, height: 32 }) }), url)); }) })));
|
|
35
35
|
};
|
|
36
36
|
var fillBlanks = function (answer) { var _a, _b; return _jsx(Typography, __assign({ variant: "body2" }, { children: (_b = (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer) === null || _b === void 0 ? void 0 : _b.join(',') })); };
|
|
37
37
|
var Choice = function (answer) {
|
|
@@ -47,7 +47,12 @@ var template = (_a = {},
|
|
|
47
47
|
_a[QUESTION_TYPE.RADIO] = Choice,
|
|
48
48
|
_a[QUESTION_TYPE.CHECKBOX] = Choice,
|
|
49
49
|
_a[QUESTION_TYPE.ESSAY_QUESTION] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
50
|
-
_a[QUESTION_TYPE.TIME] = function (answer) {
|
|
50
|
+
_a[QUESTION_TYPE.TIME] = function (answer) {
|
|
51
|
+
var _a, _b, _c;
|
|
52
|
+
return ((_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.dateTime) &&
|
|
53
|
+
!isNaN((_b = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _b === void 0 ? void 0 : _b.dateTime) &&
|
|
54
|
+
dayjs(Number((_c = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _c === void 0 ? void 0 : _c.dateTime) * 1000).format('YYYY年MM月DD日');
|
|
55
|
+
},
|
|
51
56
|
_a[QUESTION_TYPE.SCHOOL] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
52
57
|
_a[QUESTION_TYPE.FILL_BLANKS] = fillBlanks,
|
|
53
58
|
_a[QUESTION_TYPE.NPS] = Nps,
|
|
@@ -55,17 +60,22 @@ var template = (_a = {},
|
|
|
55
60
|
_a);
|
|
56
61
|
var Form = function (_a) {
|
|
57
62
|
var answers = _a.answers, _b = _a.customProcessName, customProcessName = _b === void 0 ? '资料收集' : _b;
|
|
58
|
-
return (_jsxs(Box, __assign({ component: Paper, m: 3, pt: 2 }, { children: [_jsxs(
|
|
63
|
+
return (_jsxs(Box, __assign({ component: Paper, m: 3, pt: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", sx: {
|
|
64
|
+
height: 40,
|
|
59
65
|
pl: 3,
|
|
60
|
-
pr:
|
|
61
|
-
display: 'inline-block',
|
|
66
|
+
pr: 4,
|
|
62
67
|
color: '#009D56',
|
|
63
68
|
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
64
69
|
backgroundSize: 'contain',
|
|
65
|
-
width: '
|
|
70
|
+
width: 'fit-content',
|
|
66
71
|
overflow: 'hidden',
|
|
67
72
|
mb: 2,
|
|
68
|
-
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
} }, { children: [_jsx(EditIcon, {}), _jsx(DinTypography, __assign({ variant: "h6", sx: {
|
|
75
|
+
color: '#009D56',
|
|
76
|
+
lineHeight: '24px',
|
|
77
|
+
width: 'auto',
|
|
78
|
+
} }, { children: customProcessName }))] })), _jsxs(Stack, __assign({ p: 3, pt: 0 }, { children: [_jsxs(Stack, __assign({ direction: "row", sx: {
|
|
69
79
|
background: '#E5FDE6',
|
|
70
80
|
color: '#009D56',
|
|
71
81
|
borderRadius: 20,
|
|
@@ -79,7 +89,7 @@ var Form = function (_a) {
|
|
|
79
89
|
return (_jsxs(_Fragment, { children: [_jsxs(Stack, __assign({ direction: "row", sx: {
|
|
80
90
|
py: 1,
|
|
81
91
|
px: 2,
|
|
82
|
-
} }, { children: [
|
|
92
|
+
} }, { children: [_jsx(Typography, __assign({ variant: "body2", sx: { width: 52 } }, { children: index + 1 })), _jsx(Typography, __assign({ variant: "body2", flex: 1, mr: 7 }, { children: answer.formTypeKey })), _jsx(Typography, __assign({ variant: "body2", flex: 1 }, { children: (_a = template[answer.formTypeId]) === null || _a === void 0 ? void 0 : _a.call(template, answer) }))] }), index), _jsx(Box, { sx: { background: '#fff', height: 2, mx: 1 } })] }));
|
|
83
93
|
}) }))] }))] })));
|
|
84
94
|
};
|
|
85
95
|
export default Form;
|
|
@@ -46,6 +46,8 @@ var Nps = function (_a) {
|
|
|
46
46
|
var fromScore = (from === null || from === void 0 ? void 0 : from.score) || 0;
|
|
47
47
|
var toScore = (to === null || to === void 0 ? void 0 : to.score) || 0;
|
|
48
48
|
var npsData = __spreadArray([], __read(Array.from(new Array(toScore + 1 - fromScore).keys())), false).map(function (i) { return i + fromScore; });
|
|
49
|
+
if (!answer)
|
|
50
|
+
return null;
|
|
49
51
|
return (_jsxs(Box, { children: [_jsx(Box, __assign({ display: "flex" }, { children: typeof answer === 'string' &&
|
|
50
52
|
npsData.map(function (value) {
|
|
51
53
|
var isSelect = value <= Number(answer);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CandidateInfo } from '../Candidate/Interface';
|
|
2
|
+
import { AiReportUrl, CandidateInfo } from '../Candidate/Interface';
|
|
3
3
|
export interface ReportHeaderProps {
|
|
4
4
|
status: number;
|
|
5
5
|
customScore?: number;
|
|
6
6
|
onRefreshSuccess: () => void;
|
|
7
7
|
fetchCandidateInfo: () => Promise<CandidateInfo>;
|
|
8
|
+
fetchReportUrl: () => Promise<AiReportUrl>;
|
|
8
9
|
}
|
|
9
|
-
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status }: {
|
|
10
|
+
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status, fetchReportUrl }: {
|
|
10
11
|
customScore: any;
|
|
11
12
|
onRefreshSuccess: any;
|
|
12
13
|
fetchCandidateInfo: any;
|
|
13
14
|
status: any;
|
|
15
|
+
fetchReportUrl: any;
|
|
14
16
|
}) => JSX.Element;
|
|
15
17
|
export default ReportHeader;
|
|
@@ -40,22 +40,23 @@ import { Box, Button, IconButton, Message, Popover, Typography } from 'fbm-ui';
|
|
|
40
40
|
import { Stack } from 'fbm-ui/lib/mui';
|
|
41
41
|
import { useEffect, useMemo, useState } from 'react';
|
|
42
42
|
var ReportHeader = function (_a) {
|
|
43
|
-
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status;
|
|
43
|
+
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status, fetchReportUrl = _a.fetchReportUrl;
|
|
44
44
|
var _b = __read(useState(false), 2), openRefresh = _b[0], setOpenRefresh = _b[1];
|
|
45
|
-
var _c =
|
|
45
|
+
var _c = __read(useState(null), 2), reportUrl = _c[0], setReportUrl = _c[1];
|
|
46
|
+
var _d = useAiReportStore(function (store) { return [
|
|
46
47
|
store.token,
|
|
47
48
|
store.reportResult,
|
|
48
49
|
store.operableButtons,
|
|
49
|
-
]; }), token =
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
50
|
+
]; }), token = _d.token, reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
|
|
51
|
+
var _e = reportResult || {}, score = _e.score, createTime = _e.createTime, model = _e.model;
|
|
52
|
+
var _f = __read(useState(score || 0), 2), feScore = _f[0], setScore = _f[1];
|
|
53
|
+
var _g = useRequest(function () { return PostAiInterviewRefresh(token); }, {
|
|
53
54
|
manual: true,
|
|
54
55
|
onSuccess: function () {
|
|
55
56
|
onRefreshSuccess();
|
|
56
57
|
Message.success('刷新成功');
|
|
57
58
|
},
|
|
58
|
-
}), run =
|
|
59
|
+
}), run = _g.run, loading = _g.loading;
|
|
59
60
|
var level = useMemo(function () {
|
|
60
61
|
if (feScore >= 80)
|
|
61
62
|
return 'high';
|
|
@@ -63,6 +64,16 @@ var ReportHeader = function (_a) {
|
|
|
63
64
|
return 'middle';
|
|
64
65
|
return 'low';
|
|
65
66
|
}, [feScore]);
|
|
67
|
+
useEffect(function () {
|
|
68
|
+
if (!fetchReportUrl)
|
|
69
|
+
return;
|
|
70
|
+
fetchReportUrl()
|
|
71
|
+
.then(function (_a) {
|
|
72
|
+
var url = _a.url;
|
|
73
|
+
setReportUrl(url);
|
|
74
|
+
})
|
|
75
|
+
.catch(function () { return Message.error('获取报告链接失败'); });
|
|
76
|
+
}, [fetchReportUrl]);
|
|
66
77
|
var content = (_jsxs(Box, __assign({ padding: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), _jsx(Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: _jsx(Button, __assign({ loading: loading, onClick: run }, { children: "\u5237\u65B0" })) }))] })));
|
|
67
78
|
useEffect(function () {
|
|
68
79
|
if (typeof customScore === 'number' && customScore > -1) {
|
|
@@ -78,10 +89,11 @@ var ReportHeader = function (_a) {
|
|
|
78
89
|
width: 'calc(100% - 180px)',
|
|
79
90
|
position: 'absolute',
|
|
80
91
|
top: 0,
|
|
92
|
+
zIndex: 2,
|
|
81
93
|
} }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", pl: 3, py: 3 }, { children: [_jsxs(Typography, __assign({ variant: "caption", sx: {
|
|
82
94
|
color: 'rgba(74, 74, 74, 0.86)',
|
|
83
95
|
} }, { 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: {
|
|
84
96
|
color: '#009908',
|
|
85
|
-
} }) })) })))] })), _jsx(Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'MiSans Medium', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export'))
|
|
97
|
+
} }) })) })))] })), _jsx(Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'MiSans Medium', 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" }))) : reportUrl ? (_jsx("a", __assign({ href: reportUrl, title: "\u67E5\u770B\u5728\u7EBF\u62A5\u544A" }, { children: _jsx(Button, __assign({ endIcon: _jsx(ShareIcon, {}), variant: "outlined", sx: { borderRadius: 18 } }, { children: "\u67E5\u770B\u5728\u7EBF\u62A5\u544A" })) }))) : (_jsx(Box, {}))] })), _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, {}) }))] })));
|
|
86
98
|
};
|
|
87
99
|
export default ReportHeader;
|
|
@@ -118,7 +118,7 @@ var QuestionItem = function (props) {
|
|
|
118
118
|
mt: 0.5,
|
|
119
119
|
} }, { 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) {
|
|
120
120
|
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 }))] })] }));
|
|
121
|
-
})] })), _jsx(Video, { src: videoUrl, controls: true })] })), isExistWeight && status !== STEP_COMPLETED && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center", pl: 2 }, { children: workplaceName && (_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 }))] }))) })), _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] })) }))] }))), isExistWeight && status === STEP_COMPLETED && (_jsxs(Stack, __assign({ mt: 3, spacing: 1, component: Paper, variant: "outlined", sx: { border: '1px solid #9BCC9B', background: '#F7FFF7' }, p: 2 }, { children: [workplaceName && (_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"] })),
|
|
121
|
+
})] })), _jsx(Video, { src: videoUrl, controls: true })] })), isExistWeight && status !== STEP_COMPLETED && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center", pl: 2 }, { children: workplaceName && (_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 }))] }))) })), _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, "\u5206"] })) }))] }))), isExistWeight && status === STEP_COMPLETED && (_jsxs(Stack, __assign({ mt: 3, spacing: 1, component: Paper, variant: "outlined", sx: { border: '1px solid #9BCC9B', background: '#F7FFF7' }, p: 2 }, { children: [workplaceName && (_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"] })), _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, "\u5206"] })) }))] }))), 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: {
|
|
122
122
|
color: '#424242',
|
|
123
123
|
}, dangerouslySetInnerHTML: { __html: workplaceEvaluation } })] }))] })))] }), token));
|
|
124
124
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CandidateInfo } from './components/Candidate/Interface';
|
|
1
|
+
import { AiReportUrl, CandidateInfo } from './components/Candidate/Interface';
|
|
2
2
|
import { FormReports } from './components/Form/interface';
|
|
3
3
|
import { ScoreRankInterval, ScoreRankIntervals } from './components/RankingRange/interface';
|
|
4
4
|
import { ADD_QUESTION_TYPE } from '@@/src/enum/ai-question';
|
|
@@ -208,6 +208,7 @@ export interface AiReportProps {
|
|
|
208
208
|
onScoreRankIntervalsSubmit?: (scoreRankIntervals?: ScoreRankIntervals[]) => Promise<any>;
|
|
209
209
|
fetchFormResult?: () => Promise<FormReports>;
|
|
210
210
|
fetchCandidateInfo?: () => Promise<CandidateInfo>;
|
|
211
|
+
fetchReportUrl?: () => Promise<AiReportUrl>;
|
|
211
212
|
}
|
|
212
213
|
export interface AiReportRef {
|
|
213
214
|
handleRefresh: () => void;
|
|
@@ -28,5 +28,6 @@ export declare const useAiReportV2: (props: AiReportProps) => {
|
|
|
28
28
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("./components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
29
29
|
fetchFormResult?: (() => Promise<import("./components/Form/interface").FormReports>) | undefined;
|
|
30
30
|
fetchCandidateInfo?: (() => Promise<import("./components/Candidate/Interface").CandidateInfo>) | undefined;
|
|
31
|
+
fetchReportUrl?: (() => Promise<import("./components/Candidate/Interface").AiReportUrl>) | undefined;
|
|
31
32
|
ref: import("react").MutableRefObject<AiReportRef | undefined>;
|
|
32
33
|
};
|
|
@@ -130,7 +130,7 @@ var ReportPie = function (props) {
|
|
|
130
130
|
formatter: function (_a) {
|
|
131
131
|
var _b;
|
|
132
132
|
var value = _a.value, dataIndex = _a.dataIndex;
|
|
133
|
-
return ((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight) || 0;
|
|
133
|
+
return "".concat(((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight.toFixed(2)) || 0, "%");
|
|
134
134
|
},
|
|
135
135
|
fontSize: 14,
|
|
136
136
|
},
|
|
@@ -4,17 +4,17 @@ exports.levelMapping = void 0;
|
|
|
4
4
|
exports.levelMapping = {
|
|
5
5
|
3: {
|
|
6
6
|
text: '优秀',
|
|
7
|
-
itemColor: '
|
|
7
|
+
itemColor: 'rgba(255, 153,2)',
|
|
8
8
|
color: 'rgb(255, 153, 3)',
|
|
9
9
|
},
|
|
10
10
|
2: {
|
|
11
11
|
text: '适中',
|
|
12
|
-
itemColor: '
|
|
12
|
+
itemColor: 'rgba(0, 217,157)',
|
|
13
13
|
color: 'rgba(0, 217, 157)',
|
|
14
14
|
},
|
|
15
15
|
1: {
|
|
16
16
|
text: '欠佳',
|
|
17
|
-
itemColor: '
|
|
17
|
+
itemColor: 'rgba(99, 156,255)',
|
|
18
18
|
color: 'rgb(98, 156, 255)',
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -27,7 +27,7 @@ var fbm_ui_1 = require("fbm-ui");
|
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var NO_ANSWER = ai_report_1.INTERVIEW_STATUS.NO_ANSWER;
|
|
29
29
|
var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
30
|
-
var token = props.token, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo;
|
|
30
|
+
var token = props.token, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, fetchReportUrl = props.fetchReportUrl;
|
|
31
31
|
var firstLoad = (0, react_1.useRef)(true);
|
|
32
32
|
var _a = (0, global_store_1.useAiReportStore)(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
33
33
|
var _b = (reportResult || {}).collection, collection = _b === void 0 ? [] : _b;
|
|
@@ -78,7 +78,7 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
78
78
|
backgroundRepeat: 'no-repeat',
|
|
79
79
|
backgroundPosition: 'center top',
|
|
80
80
|
paddingTop: (collection === null || collection === void 0 ? void 0 : collection.length) > 0 ? 0 : 3,
|
|
81
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && ((0, jsx_runtime_1.jsx)(ReportHeader_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status })), (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormResult: fetchFormResult }), (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, {}) }))] })));
|
|
81
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && ((0, jsx_runtime_1.jsx)(ReportHeader_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, status: status, fetchReportUrl: fetchReportUrl })), (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormResult: fetchFormResult }), (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
82
|
}
|
|
83
83
|
}, [
|
|
84
84
|
status,
|
|
@@ -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, 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
|
|
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: "\u7EFC\u5408\u8BC4\u4EF7", field: "evaluations", mode: "show" }))] }) })) })));
|
|
33
33
|
};
|
|
34
34
|
exports.default = Index;
|
|
@@ -36,8 +36,8 @@ var QUESTION_TYPE;
|
|
|
36
36
|
QUESTION_TYPE[QUESTION_TYPE["NPS"] = 9] = "NPS";
|
|
37
37
|
})(QUESTION_TYPE = exports.QUESTION_TYPE || (exports.QUESTION_TYPE = {}));
|
|
38
38
|
var Image = function (answer) {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoProvider, __assign({ maskOpacity: 0.5 }, { children: (_b = (_a = answer.formAnswer) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.map(function (url) { return ((0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoView, __assign({ src: url }, { children: (0, jsx_runtime_1.jsx)("img", { src: url, alt: url, width: 48, height: 32 }) }), url)); }) })));
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoProvider, __assign({ maskOpacity: 0.5 }, { children: (_c = (_b = (_a = answer.formAnswer) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.filter(function (v) { return v; })) === null || _c === void 0 ? void 0 : _c.map(function (url) { return ((0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoView, __assign({ src: url }, { children: (0, jsx_runtime_1.jsx)("img", { src: url, alt: url, width: 48, height: 32 }) }), url)); }) })));
|
|
41
41
|
};
|
|
42
42
|
var fillBlanks = function (answer) { var _a, _b; return (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: (_b = (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer) === null || _b === void 0 ? void 0 : _b.join(',') })); };
|
|
43
43
|
var Choice = function (answer) {
|
|
@@ -53,7 +53,12 @@ var template = (_a = {},
|
|
|
53
53
|
_a[QUESTION_TYPE.RADIO] = Choice,
|
|
54
54
|
_a[QUESTION_TYPE.CHECKBOX] = Choice,
|
|
55
55
|
_a[QUESTION_TYPE.ESSAY_QUESTION] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
56
|
-
_a[QUESTION_TYPE.TIME] = function (answer) {
|
|
56
|
+
_a[QUESTION_TYPE.TIME] = function (answer) {
|
|
57
|
+
var _a, _b, _c;
|
|
58
|
+
return ((_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.dateTime) &&
|
|
59
|
+
!isNaN((_b = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _b === void 0 ? void 0 : _b.dateTime) &&
|
|
60
|
+
(0, dayjs_1.default)(Number((_c = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _c === void 0 ? void 0 : _c.dateTime) * 1000).format('YYYY年MM月DD日');
|
|
61
|
+
},
|
|
57
62
|
_a[QUESTION_TYPE.SCHOOL] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
58
63
|
_a[QUESTION_TYPE.FILL_BLANKS] = fillBlanks,
|
|
59
64
|
_a[QUESTION_TYPE.NPS] = Nps_1.default,
|
|
@@ -61,17 +66,22 @@ var template = (_a = {},
|
|
|
61
66
|
_a);
|
|
62
67
|
var Form = function (_a) {
|
|
63
68
|
var answers = _a.answers, _b = _a.customProcessName, customProcessName = _b === void 0 ? '资料收集' : _b;
|
|
64
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ component: fbm_ui_1.Paper, m: 3, pt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ component: fbm_ui_1.Paper, m: 3, pt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", sx: {
|
|
70
|
+
height: 40,
|
|
65
71
|
pl: 3,
|
|
66
|
-
pr:
|
|
67
|
-
display: 'inline-block',
|
|
72
|
+
pr: 4,
|
|
68
73
|
color: '#009D56',
|
|
69
74
|
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
70
75
|
backgroundSize: 'contain',
|
|
71
|
-
width: '
|
|
76
|
+
width: 'fit-content',
|
|
72
77
|
overflow: 'hidden',
|
|
73
78
|
mb: 2,
|
|
74
|
-
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(fbm_icons_1.EditIcon, {}), (0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ variant: "h6", sx: {
|
|
81
|
+
color: '#009D56',
|
|
82
|
+
lineHeight: '24px',
|
|
83
|
+
width: 'auto',
|
|
84
|
+
} }, { children: customProcessName }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ p: 3, pt: 0 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", sx: {
|
|
75
85
|
background: '#E5FDE6',
|
|
76
86
|
color: '#009D56',
|
|
77
87
|
borderRadius: 20,
|
|
@@ -85,7 +95,7 @@ var Form = function (_a) {
|
|
|
85
95
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", sx: {
|
|
86
96
|
py: 1,
|
|
87
97
|
px: 2,
|
|
88
|
-
} }, { children: [(0, jsx_runtime_1.
|
|
98
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { width: 52 } }, { children: index + 1 })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", flex: 1, mr: 7 }, { children: answer.formTypeKey })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", flex: 1 }, { children: (_a = template[answer.formTypeId]) === null || _a === void 0 ? void 0 : _a.call(template, answer) }))] }), index), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { sx: { background: '#fff', height: 2, mx: 1 } })] }));
|
|
89
99
|
}) }))] }))] })));
|
|
90
100
|
};
|
|
91
101
|
exports.default = Form;
|
|
@@ -48,6 +48,8 @@ var Nps = function (_a) {
|
|
|
48
48
|
var fromScore = (from === null || from === void 0 ? void 0 : from.score) || 0;
|
|
49
49
|
var toScore = (to === null || to === void 0 ? void 0 : to.score) || 0;
|
|
50
50
|
var npsData = __spreadArray([], __read(Array.from(new Array(toScore + 1 - fromScore).keys())), false).map(function (i) { return i + fromScore; });
|
|
51
|
+
if (!answer)
|
|
52
|
+
return null;
|
|
51
53
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex" }, { children: typeof answer === 'string' &&
|
|
52
54
|
npsData.map(function (value) {
|
|
53
55
|
var isSelect = value <= Number(answer);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CandidateInfo } from '../Candidate/Interface';
|
|
2
|
+
import { AiReportUrl, CandidateInfo } from '../Candidate/Interface';
|
|
3
3
|
export interface ReportHeaderProps {
|
|
4
4
|
status: number;
|
|
5
5
|
customScore?: number;
|
|
6
6
|
onRefreshSuccess: () => void;
|
|
7
7
|
fetchCandidateInfo: () => Promise<CandidateInfo>;
|
|
8
|
+
fetchReportUrl: () => Promise<AiReportUrl>;
|
|
8
9
|
}
|
|
9
|
-
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status }: {
|
|
10
|
+
declare const ReportHeader: ({ customScore, onRefreshSuccess, fetchCandidateInfo, status, fetchReportUrl }: {
|
|
10
11
|
customScore: any;
|
|
11
12
|
onRefreshSuccess: any;
|
|
12
13
|
fetchCandidateInfo: any;
|
|
13
14
|
status: any;
|
|
15
|
+
fetchReportUrl: any;
|
|
14
16
|
}) => JSX.Element;
|
|
15
17
|
export default ReportHeader;
|
|
@@ -45,22 +45,23 @@ var fbm_ui_1 = require("fbm-ui");
|
|
|
45
45
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
46
46
|
var react_1 = require("react");
|
|
47
47
|
var ReportHeader = function (_a) {
|
|
48
|
-
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status;
|
|
48
|
+
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, status = _a.status, fetchReportUrl = _a.fetchReportUrl;
|
|
49
49
|
var _b = __read((0, react_1.useState)(false), 2), openRefresh = _b[0], setOpenRefresh = _b[1];
|
|
50
|
-
var _c = (0,
|
|
50
|
+
var _c = __read((0, react_1.useState)(null), 2), reportUrl = _c[0], setReportUrl = _c[1];
|
|
51
|
+
var _d = (0, global_store_1.useAiReportStore)(function (store) { return [
|
|
51
52
|
store.token,
|
|
52
53
|
store.reportResult,
|
|
53
54
|
store.operableButtons,
|
|
54
|
-
]; }), token =
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
55
|
+
]; }), token = _d.token, reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
|
|
56
|
+
var _e = reportResult || {}, score = _e.score, createTime = _e.createTime, model = _e.model;
|
|
57
|
+
var _f = __read((0, react_1.useState)(score || 0), 2), feScore = _f[0], setScore = _f[1];
|
|
58
|
+
var _g = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewRefresh)(token); }, {
|
|
58
59
|
manual: true,
|
|
59
60
|
onSuccess: function () {
|
|
60
61
|
onRefreshSuccess();
|
|
61
62
|
fbm_ui_1.Message.success('刷新成功');
|
|
62
63
|
},
|
|
63
|
-
}), run =
|
|
64
|
+
}), run = _g.run, loading = _g.loading;
|
|
64
65
|
var level = (0, react_1.useMemo)(function () {
|
|
65
66
|
if (feScore >= 80)
|
|
66
67
|
return 'high';
|
|
@@ -68,6 +69,16 @@ var ReportHeader = function (_a) {
|
|
|
68
69
|
return 'middle';
|
|
69
70
|
return 'low';
|
|
70
71
|
}, [feScore]);
|
|
72
|
+
(0, react_1.useEffect)(function () {
|
|
73
|
+
if (!fetchReportUrl)
|
|
74
|
+
return;
|
|
75
|
+
fetchReportUrl()
|
|
76
|
+
.then(function (_a) {
|
|
77
|
+
var url = _a.url;
|
|
78
|
+
setReportUrl(url);
|
|
79
|
+
})
|
|
80
|
+
.catch(function () { return fbm_ui_1.Message.error('获取报告链接失败'); });
|
|
81
|
+
}, [fetchReportUrl]);
|
|
71
82
|
var content = ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ padding: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ loading: loading, onClick: run }, { children: "\u5237\u65B0" })) }))] })));
|
|
72
83
|
(0, react_1.useEffect)(function () {
|
|
73
84
|
if (typeof customScore === 'number' && customScore > -1) {
|
|
@@ -83,10 +94,11 @@ var ReportHeader = function (_a) {
|
|
|
83
94
|
width: 'calc(100% - 180px)',
|
|
84
95
|
position: 'absolute',
|
|
85
96
|
top: 0,
|
|
97
|
+
zIndex: 2,
|
|
86
98
|
} }, { 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: {
|
|
87
99
|
color: 'rgba(74, 74, 74, 0.86)',
|
|
88
100
|
} }, { 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: {
|
|
89
101
|
color: '#009908',
|
|
90
|
-
} }) })) })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'MiSans Medium', alignSelf: 'center' } }, { children: "AI \u9762\u8BD5\u62A5\u544A" })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export'))
|
|
102
|
+
} }) })) })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h5", textAlign: "center", color: "#009D56", sx: { fontFamily: 'MiSans Medium', 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" }))) : reportUrl ? ((0, jsx_runtime_1.jsx)("a", __assign({ href: reportUrl, title: "\u67E5\u770B\u5728\u7EBF\u62A5\u544A" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ endIcon: (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, {}), variant: "outlined", sx: { borderRadius: 18 } }, { children: "\u67E5\u770B\u5728\u7EBF\u62A5\u544A" })) }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, {}))] })), (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, {}) }))] })));
|
|
91
103
|
};
|
|
92
104
|
exports.default = ReportHeader;
|
|
@@ -123,7 +123,7 @@ var QuestionItem = function (props) {
|
|
|
123
123
|
mt: 0.5,
|
|
124
124
|
} }, { 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) {
|
|
125
125
|
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 }))] })] }));
|
|
126
|
-
})] })), (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({ 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", pl: 2 }, { children: workplaceName && ((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 }))] }))) })), (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] })) }))] }))), isExistWeight && status === STEP_COMPLETED && ((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: [workplaceName && ((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"] })),
|
|
126
|
+
})] })), (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({ 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", pl: 2 }, { children: workplaceName && ((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 }))] }))) })), (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, "\u5206"] })) }))] }))), isExistWeight && status === STEP_COMPLETED && ((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: [workplaceName && ((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"] })), (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, "\u5206"] })) }))] }))), 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: {
|
|
127
127
|
color: '#424242',
|
|
128
128
|
}, dangerouslySetInnerHTML: { __html: workplaceEvaluation } })] }))] })))] }), token));
|
|
129
129
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CandidateInfo } from './components/Candidate/Interface';
|
|
1
|
+
import { AiReportUrl, CandidateInfo } from './components/Candidate/Interface';
|
|
2
2
|
import { FormReports } from './components/Form/interface';
|
|
3
3
|
import { ScoreRankInterval, ScoreRankIntervals } from './components/RankingRange/interface';
|
|
4
4
|
import { ADD_QUESTION_TYPE } from '@@/src/enum/ai-question';
|
|
@@ -208,6 +208,7 @@ export interface AiReportProps {
|
|
|
208
208
|
onScoreRankIntervalsSubmit?: (scoreRankIntervals?: ScoreRankIntervals[]) => Promise<any>;
|
|
209
209
|
fetchFormResult?: () => Promise<FormReports>;
|
|
210
210
|
fetchCandidateInfo?: () => Promise<CandidateInfo>;
|
|
211
|
+
fetchReportUrl?: () => Promise<AiReportUrl>;
|
|
211
212
|
}
|
|
212
213
|
export interface AiReportRef {
|
|
213
214
|
handleRefresh: () => void;
|
|
@@ -28,5 +28,6 @@ export declare const useAiReportV2: (props: AiReportProps) => {
|
|
|
28
28
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("./components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
29
29
|
fetchFormResult?: (() => Promise<import("./components/Form/interface").FormReports>) | undefined;
|
|
30
30
|
fetchCandidateInfo?: (() => Promise<import("./components/Candidate/Interface").CandidateInfo>) | undefined;
|
|
31
|
+
fetchReportUrl?: (() => Promise<import("./components/Candidate/Interface").AiReportUrl>) | undefined;
|
|
31
32
|
ref: import("react").MutableRefObject<AiReportRef | undefined>;
|
|
32
33
|
};
|