eli-video-interview 1.7.0 → 1.9.0
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 +27 -10
- package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
- package/esm/modules/ai-question/Root.js +11 -5
- package/esm/modules/ai-question/components/GlobalDimensions/Dialog.d.ts +9 -0
- package/esm/modules/ai-question/components/GlobalDimensions/Dialog.js +154 -0
- package/esm/modules/ai-question/components/GlobalDimensions/index.d.ts +3 -0
- package/esm/modules/ai-question/components/GlobalDimensions/index.js +57 -0
- package/esm/modules/ai-question/components/QuestionModel/index.js +2 -1
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +12 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/esm/modules/ai-question/utils/weight.d.ts +17 -0
- package/esm/modules/ai-question/utils/weight.js +38 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
- package/esm/modules/ai-report/interface.d.ts +16 -0
- package/esm/modules/ai-report-v2/Root.js +2 -1
- package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +2 -0
- package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +57 -6
- package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +1 -0
- package/esm/modules/ai-report-v2/components/GlobalDimensions/index.d.ts +3 -0
- package/esm/modules/ai-report-v2/components/GlobalDimensions/index.js +84 -0
- package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +3 -2
- package/esm/modules/ai-report-v2/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +2 -2
- package/esm/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +2 -2
- package/esm/modules/ai-report-v2/components/styled.d.ts +3 -0
- package/esm/modules/ai-report-v2/components/styled.js +10 -0
- package/esm/modules/ai-report-v2/interface.d.ts +16 -0
- package/esm/modules/ai-report-v3/Root.js +2 -1
- package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +2 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.js +75 -48
- package/esm/modules/ai-report-v3/components/AIEvaluate/index.js +1 -0
- package/esm/modules/ai-report-v3/components/CheatRisk/CheatRisk.js +9 -4
- package/esm/modules/ai-report-v3/components/GlobalDimensions/index.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/GlobalDimensions/index.js +82 -0
- package/esm/modules/ai-report-v3/components/ModuleTitle.d.ts +1 -1
- package/esm/modules/ai-report-v3/components/ModuleTitle.js +3 -1
- package/esm/modules/ai-report-v3/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +2 -2
- package/esm/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +2 -2
- package/esm/modules/ai-report-v3/interface.d.ts +16 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/esm/store/ai-question/question-model-store.d.ts +4 -1
- package/esm/store/ai-question/question-model-store.js +41 -5
- package/lib/components/Charts/ReportPie.js +27 -10
- package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
- package/lib/modules/ai-question/Root.js +11 -5
- package/lib/modules/ai-question/components/GlobalDimensions/Dialog.d.ts +9 -0
- package/lib/modules/ai-question/components/GlobalDimensions/Dialog.js +156 -0
- package/lib/modules/ai-question/components/GlobalDimensions/index.d.ts +3 -0
- package/lib/modules/ai-question/components/GlobalDimensions/index.js +62 -0
- package/lib/modules/ai-question/components/QuestionModel/index.js +2 -1
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +12 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/lib/modules/ai-question/utils/weight.d.ts +17 -0
- package/lib/modules/ai-question/utils/weight.js +43 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
- package/lib/modules/ai-report/interface.d.ts +16 -0
- package/lib/modules/ai-report-v2/Root.js +2 -1
- package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +2 -0
- package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +57 -6
- package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +1 -0
- package/lib/modules/ai-report-v2/components/GlobalDimensions/index.d.ts +3 -0
- package/lib/modules/ai-report-v2/components/GlobalDimensions/index.js +89 -0
- package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +2 -1
- package/lib/modules/ai-report-v2/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +2 -2
- package/lib/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +2 -2
- package/lib/modules/ai-report-v2/components/styled.d.ts +3 -0
- package/lib/modules/ai-report-v2/components/styled.js +11 -1
- package/lib/modules/ai-report-v2/interface.d.ts +16 -0
- package/lib/modules/ai-report-v3/Root.js +2 -1
- package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +2 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.js +75 -48
- package/lib/modules/ai-report-v3/components/AIEvaluate/index.js +1 -0
- package/lib/modules/ai-report-v3/components/CheatRisk/CheatRisk.js +9 -4
- package/lib/modules/ai-report-v3/components/GlobalDimensions/index.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/GlobalDimensions/index.js +87 -0
- package/lib/modules/ai-report-v3/components/ModuleTitle.d.ts +1 -1
- package/lib/modules/ai-report-v3/components/ModuleTitle.js +3 -1
- package/lib/modules/ai-report-v3/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +2 -2
- package/lib/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +2 -2
- package/lib/modules/ai-report-v3/interface.d.ts +16 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/lib/store/ai-question/question-model-store.d.ts +4 -1
- package/lib/store/ai-question/question-model-store.js +41 -5
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
13
13
|
import { FormReport } from './components/Form';
|
|
14
14
|
import NotFinish from './components/NotFinish';
|
|
15
15
|
import ReportHeader from './components/ReportHeader/ReportHeader';
|
|
16
|
+
import { ReportSectionFrame } from './components/styled';
|
|
16
17
|
import VideoQuestion from './components/VideoQuestion';
|
|
17
18
|
import { INTERVIEW_STATUS } from "../../enum/ai-report";
|
|
18
19
|
import { PostAiInterviewResult } from "../../services/ai-report";
|
|
@@ -77,7 +78,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
77
78
|
backgroundRepeat: 'no-repeat',
|
|
78
79
|
backgroundPosition: 'center top',
|
|
79
80
|
paddingTop: (collection === null || collection === void 0 ? void 0 : collection.length) > 0 ? 0 : 3,
|
|
80
|
-
} }, { children: [(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(
|
|
81
|
+
} }, { children: [(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(ReportSectionFrame, { children: _jsx(VideoQuestion, { isExportPdf: isExportPdf }) })] }))] }));
|
|
81
82
|
}
|
|
82
83
|
}, [
|
|
83
84
|
loading,
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var __values = (this && this.__values) || function(o) {
|
|
2
13
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3
14
|
if (m) return m.call(o);
|
|
@@ -41,6 +52,8 @@ function setupCanvas(canvas) {
|
|
|
41
52
|
// Good: Array<number>;
|
|
42
53
|
// Best: Array<number>;
|
|
43
54
|
// }
|
|
55
|
+
var DIVIDER_TEXT = '以下为全局维度(不按题目评价)';
|
|
56
|
+
var DIVIDER_HEIGHT = 20;
|
|
44
57
|
var MAX_WIDTH = 315;
|
|
45
58
|
var MAX_HEIGHT = 24;
|
|
46
59
|
var levelOrder = ['Bad', 'Good', 'Best'];
|
|
@@ -188,20 +201,53 @@ var drawScore = function (layout, ctx, config, rect, score) {
|
|
|
188
201
|
var scoreWidth = measureTextWidth(ctx, "".concat(score));
|
|
189
202
|
ctx.fillText("".concat(score), layout.leftLableWidth + rect.width + (score < 10 ? 4 : -scoreWidth - 4), rect.y + 18);
|
|
190
203
|
};
|
|
204
|
+
// 全局维度(只绑试卷、不绑题目)用浅绿条 + 「全局」角标,与题目维度区分来源
|
|
205
|
+
var globalLevelConf = {
|
|
206
|
+
scoreGradient: ['#4EC953', '#D9FBE3'],
|
|
207
|
+
shadowColor: 'rgba(78, 201, 83, 0.35)',
|
|
208
|
+
textColor: '#33A853',
|
|
209
|
+
backgroundColor: 'rgba(78, 201, 83, 0.14)',
|
|
210
|
+
};
|
|
211
|
+
// 组间分隔线:左右两段细线,中间一行说明
|
|
212
|
+
var drawGroupDivider = function (layout, ctx, y) {
|
|
213
|
+
ctx.save();
|
|
214
|
+
ctx.font = '10px sans-serif';
|
|
215
|
+
ctx.textBaseline = 'middle';
|
|
216
|
+
var textWidth = ctx.measureText(DIVIDER_TEXT).width;
|
|
217
|
+
var centerX = layout.leftLableWidth + MAX_WIDTH / 2;
|
|
218
|
+
ctx.fillStyle = 'rgba(0, 0, 0, 0.4)';
|
|
219
|
+
ctx.textAlign = 'center';
|
|
220
|
+
ctx.fillText(DIVIDER_TEXT, centerX, y);
|
|
221
|
+
ctx.strokeStyle = 'rgba(0, 0, 0, 0.08)';
|
|
222
|
+
ctx.lineWidth = 1;
|
|
223
|
+
ctx.beginPath();
|
|
224
|
+
ctx.moveTo(0, y);
|
|
225
|
+
ctx.lineTo(centerX - textWidth / 2 - 8, y);
|
|
226
|
+
ctx.moveTo(centerX + textWidth / 2 + 8, y);
|
|
227
|
+
ctx.lineTo(layout.leftLableWidth + MAX_WIDTH, y);
|
|
228
|
+
ctx.stroke();
|
|
229
|
+
ctx.restore();
|
|
230
|
+
};
|
|
191
231
|
var draw = function (layout, dimensions, pathRef, ctx) {
|
|
192
232
|
ctx.font = '16px sans-serif';
|
|
193
233
|
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
|
|
194
234
|
dimensions.forEach(function (v, i) {
|
|
195
|
-
var config = getLevel(v.score);
|
|
235
|
+
var config = v.isGlobal ? __assign(__assign({}, getLevel(v.score)), globalLevelConf) : getLevel(v.score);
|
|
196
236
|
// 绘制圆角矩形
|
|
197
237
|
var borderRadius = 12;
|
|
198
238
|
var x = layout.leftLableWidth;
|
|
199
|
-
var
|
|
239
|
+
var extraOffset = layout.dividerIndex > 0 && i >= layout.dividerIndex ? layout.dividerHeight : 0;
|
|
240
|
+
var y = 50 + layout.itemSpacing * i + extraOffset;
|
|
200
241
|
// 设置背景颜色
|
|
201
242
|
ctx.fillStyle = config.backgroundColor;
|
|
202
243
|
drawRoundedRect(x, y, MAX_WIDTH, MAX_HEIGHT, borderRadius, true, false, ctx);
|
|
203
|
-
var endPointY =
|
|
244
|
+
var endPointY = y + 15; // 15 是文字相对条形的偏移;必须跟着 y(含分隔线偏移)
|
|
204
245
|
drawLable(v.name, 0, endPointY, ctx);
|
|
246
|
+
if (v.isGlobal && i === layout.dividerIndex) {
|
|
247
|
+
// 方案③:不逐条打标,用分隔线 + 一行说明区分来源
|
|
248
|
+
var dividerY = y - Math.round(layout.itemSpacing / 2 - MAX_HEIGHT / 2 + layout.dividerHeight / 2);
|
|
249
|
+
drawGroupDivider(layout, ctx, dividerY);
|
|
250
|
+
}
|
|
205
251
|
pathRef.push({ x: 0, y: y, width: layout.leftLableWidth, height: 22, tips: "".concat(v.name, ": ").concat(v.score) });
|
|
206
252
|
var score = v.score === 0 ? 0 : Math.max(v.score, 4);
|
|
207
253
|
drawScore(layout, ctx, config, {
|
|
@@ -251,11 +297,14 @@ var Graph = function (_a) {
|
|
|
251
297
|
var TOP_OFFSET = 50;
|
|
252
298
|
var BOTTOM_SPACING = 20; // 最后一个item与虚线之间的间距
|
|
253
299
|
var SCORE_AREA_HEIGHT = 40; // 分数区域的高度
|
|
300
|
+
// 题目维度与全局维度之间插一条分隔线(方案③)
|
|
301
|
+
var dividerIndex = useMemo(function () { return items.findIndex(function (item) { return item.isGlobal; }); }, [items]);
|
|
302
|
+
var dividerHeight = dividerIndex > 0 ? DIVIDER_HEIGHT : 0;
|
|
254
303
|
var height = useMemo(function () {
|
|
255
304
|
if (items.length === 0)
|
|
256
305
|
return 0;
|
|
257
|
-
return TOP_OFFSET + (items.length - 1) * ITEM_SPACING + MAX_HEIGHT + BOTTOM_SPACING + SCORE_AREA_HEIGHT;
|
|
258
|
-
}, [items]);
|
|
306
|
+
return TOP_OFFSET + (items.length - 1) * ITEM_SPACING + MAX_HEIGHT + BOTTOM_SPACING + SCORE_AREA_HEIGHT + dividerHeight;
|
|
307
|
+
}, [items, dividerHeight]);
|
|
259
308
|
useEffect(function () {
|
|
260
309
|
if (items.length === 0)
|
|
261
310
|
return;
|
|
@@ -285,11 +334,13 @@ var Graph = function (_a) {
|
|
|
285
334
|
topLableHeight: 40,
|
|
286
335
|
itemSpacing: ITEM_SPACING,
|
|
287
336
|
height: height,
|
|
337
|
+
dividerIndex: dividerIndex,
|
|
338
|
+
dividerHeight: dividerHeight,
|
|
288
339
|
};
|
|
289
340
|
pathRef.current = [];
|
|
290
341
|
draw(layout, items, pathRef.current, ctx);
|
|
291
342
|
}
|
|
292
|
-
}, [ctx, items, height, ITEM_SPACING]);
|
|
343
|
+
}, [ctx, items, height, ITEM_SPACING, dividerIndex, dividerHeight]);
|
|
293
344
|
// useEffect(() => {
|
|
294
345
|
// console.log(pathRef);
|
|
295
346
|
// }, [pathRef]);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { ReportSectionFrame } from '../styled';
|
|
30
|
+
import ScoreSlider from '../WorkPlaces/ScoreSlider';
|
|
31
|
+
import WorkPlace from '../WorkPlaces/WorkPlace';
|
|
32
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
33
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitleV2";
|
|
34
|
+
import { Chip, EditIcon, IconButton, Typography } from 'fbm-ui';
|
|
35
|
+
import { Box, Collapse, Stack } from 'fbm-ui/lib/mui';
|
|
36
|
+
import { memo, useCallback, useState } from 'react';
|
|
37
|
+
var BORDER = '1px solid rgba(0, 0, 0, 0.08)';
|
|
38
|
+
var TEXT_MUTED = 'rgba(0, 0, 0, 0.56)';
|
|
39
|
+
// 得分颜色与题目维度保持一致(优秀 / 适中 / 欠佳)
|
|
40
|
+
var SCORE_COLOR = {
|
|
41
|
+
1: '#4CAF50',
|
|
42
|
+
2: 'rgba(0, 0, 0, 0.86)',
|
|
43
|
+
3: '#FF6C6C',
|
|
44
|
+
};
|
|
45
|
+
var scoreLevelOf = function (score) { return (score >= 80 ? 1 : score >= 60 ? 2 : 3); };
|
|
46
|
+
var scoreTextOf = function (score) { return (score >= 80 ? '优秀' : score >= 60 ? '适中' : '欠佳'); };
|
|
47
|
+
var thStyle = {
|
|
48
|
+
textAlign: 'left',
|
|
49
|
+
padding: '10px 12px',
|
|
50
|
+
fontWeight: 500,
|
|
51
|
+
color: TEXT_MUTED,
|
|
52
|
+
whiteSpace: 'nowrap',
|
|
53
|
+
};
|
|
54
|
+
var tdStyle = {
|
|
55
|
+
padding: '12px',
|
|
56
|
+
verticalAlign: 'middle',
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 全局维度(只绑试卷、不绑题目):紧凑表格展示,行内展开可改分 / 改评价。
|
|
60
|
+
* 由宿主 `ReportSectionFrame`(与「视频题」同一套白框)承载,标题缎带挂在白框左上角。
|
|
61
|
+
* 没有配置全局维度时不渲染(老报告行为不变)。
|
|
62
|
+
*/
|
|
63
|
+
var Index = function () {
|
|
64
|
+
var _a = useAiReportStore(function (store) { return [
|
|
65
|
+
store.reportResult,
|
|
66
|
+
store.operableButtons,
|
|
67
|
+
]; }), reportResult = _a.reportResult, showAiDimension = _a.showAiDimension, canEditAiDimension = _a.canEditAiDimension, updateReportResult = _a.updateReportResult, onScoreChange = _a.onScoreChange;
|
|
68
|
+
var _b = reportResult || {}, _c = _b.orderToken, orderToken = _c === void 0 ? '' : _c, _d = _b.globalDimensions, globalDimensions = _d === void 0 ? [] : _d;
|
|
69
|
+
var _e = __read(useState(-1), 2), expandedIndex = _e[0], setExpandedIndex = _e[1];
|
|
70
|
+
var handleScoreChange = useCallback(function (index, score) {
|
|
71
|
+
var _a;
|
|
72
|
+
var list = ((reportResult === null || reportResult === void 0 ? void 0 : reportResult.globalDimensions) || []).map(function (item, i) {
|
|
73
|
+
return i === index ? __assign(__assign({}, item), { score: score, scoreText: scoreTextOf(score), scoreLevel: scoreLevelOf(score) }) : item;
|
|
74
|
+
});
|
|
75
|
+
// 先乐观更新当前展示,再交给宿主持久化(与题目维度同一套回调)
|
|
76
|
+
updateReportResult(__assign(__assign({}, reportResult), { globalDimensions: list }));
|
|
77
|
+
onScoreChange === null || onScoreChange === void 0 ? void 0 : onScoreChange({ flowStepToken: (_a = list[index]) === null || _a === void 0 ? void 0 : _a.token, type: 1, score: score });
|
|
78
|
+
}, [onScoreChange, reportResult, updateReportResult]);
|
|
79
|
+
if (!showAiDimension || globalDimensions.length === 0) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return (_jsx(ReportSectionFrame, __assign({ sx: { mt: 2, mb: 2 } }, { children: _jsxs(Box, __assign({ id: "report-global-dimension" }, { children: [_jsx(AiHeaderTitle, { name: "\u5168\u5C40\u7EF4\u5EA6" }), _jsx(Box, __assign({ mx: 1, mt: 2 }, { children: _jsx(Box, __assign({ sx: { border: BORDER, borderRadius: 2, overflow: 'hidden' } }, { children: _jsxs("table", __assign({ style: { width: '100%', borderCollapse: 'collapse', fontSize: 13, color: 'rgba(0, 0, 0, 0.86)' } }, { children: [_jsx("thead", { children: _jsxs("tr", __assign({ style: { background: 'rgba(0, 0, 0, 0.02)' } }, { children: [_jsx("th", __assign({ style: thStyle }, { children: "\u7EF4\u5EA6" })), _jsx("th", __assign({ style: thStyle }, { children: "\u6765\u6E90" })), _jsx("th", __assign({ style: thStyle }, { children: "\u6743\u91CD" })), _jsx("th", __assign({ style: thStyle }, { children: "\u5F97\u5206" })), _jsx("th", __assign({ style: thStyle }, { children: "\u4E00\u53E5\u8BDD\u8BC4\u4EF7" })), _jsx("th", __assign({ style: __assign(__assign({}, thStyle), { width: 56, textAlign: 'center' }) }, { children: "\u64CD\u4F5C" }))] })) }), globalDimensions.map(function (v, index) { return (_jsxs("tbody", { children: [_jsxs("tr", __assign({ style: { borderTop: BORDER } }, { children: [_jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { fontWeight: 500 }) }, { children: v.name })), _jsx("td", __assign({ style: tdStyle }, { children: _jsx(Chip, { color: "success", label: "\u5168\u5C40", size: "small" }) })), _jsxs("td", __assign({ style: __assign(__assign({}, tdStyle), { color: TEXT_MUTED }) }, { children: [v.weight, "%"] })), _jsxs("td", __assign({ style: tdStyle }, { children: [_jsx(Box, __assign({ component: "span", sx: { color: SCORE_COLOR[v.scoreLevel] || 'rgba(0, 0, 0, 0.86)', fontWeight: 600 } }, { children: v.score })), _jsx(Box, __assign({ component: "span", sx: { color: TEXT_MUTED, ml: 0.5, fontSize: 12 } }, { children: v.scoreText }))] })), _jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { color: 'rgba(0, 0, 0, 0.6)' }) }, { children: v.answer })), _jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { textAlign: 'center' }) }, { children: canEditAiDimension && (_jsx(IconButton, __assign({ size: "small", onClick: function () { return setExpandedIndex(expandedIndex === index ? -1 : index); } }, { children: _jsx(EditIcon, {}) }))) }))] })), _jsx("tr", { children: _jsx("td", __assign({ colSpan: 6, style: { padding: 0 } }, { children: _jsx(Collapse, __assign({ in: expandedIndex === index }, { children: _jsxs(Box, __assign({ sx: { px: 2, pt: 1.5, pb: 2, bgcolor: '#FAFBFA', borderTop: BORDER } }, { children: [_jsxs(Typography, __assign({ variant: "caption", color: "textSecondary", display: "block", mb: 1 }, { children: ["\u8BC4\u4EF7\u6807\u51C6\uFF1A", v.define || '—'] })), _jsx(ScoreSlider, { width: "100%", isShowLabel: true, score: v.score, scoreText: v.scoreText, scoreLevel: v.scoreLevel, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleScoreChange(index, score); } }), _jsx(Stack, __assign({ mt: 1.5 }, { children: _jsx(WorkPlace, { thirdOrderID: orderToken, token: v.token, canEdit: canEditAiDimension, answer: v.answer, mode: "show" }) }))] })) })) })) })] }, v.token || v.name)); })] })) })) }))] })) })));
|
|
83
|
+
};
|
|
84
|
+
export default memo(Index);
|
|
@@ -25,9 +25,10 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
25
25
|
}
|
|
26
26
|
return ar;
|
|
27
27
|
};
|
|
28
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
29
|
import AIEvaluate from '../AIEvaluate';
|
|
30
30
|
import { CandidateReport, PodiumReport } from '../Candidate';
|
|
31
|
+
import GlobalDimensions from '../GlobalDimensions';
|
|
31
32
|
import { DinTypography, ReportBadge, ReportLabel } from '../styled';
|
|
32
33
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
33
34
|
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
@@ -100,6 +101,6 @@ var ReportHeader = function (_a) {
|
|
|
100
101
|
position: 'relative',
|
|
101
102
|
width: 541,
|
|
102
103
|
height: 342,
|
|
103
|
-
} }))] }), status === INTERVIEW_STATUS.COMPLETED && (_jsx(Stack, __assign({ width: 1, direction: "row" }, { children: _jsx(AIEvaluate, {}) })))] })));
|
|
104
|
+
} }))] }), status === INTERVIEW_STATUS.COMPLETED && (_jsxs(_Fragment, { children: [_jsx(Stack, __assign({ width: 1, direction: "row" }, { children: _jsx(AIEvaluate, {}) })), _jsx(GlobalDimensions, {})] }))] })));
|
|
104
105
|
};
|
|
105
106
|
export default ReportHeader;
|
|
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
|
|
|
8
8
|
export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
10
|
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
11
|
-
color?: "inherit" | "disabled" | "action" | "
|
|
11
|
+
color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
|
|
12
12
|
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
13
13
|
htmlColor?: string | undefined;
|
|
14
14
|
shapeRendering?: string | undefined;
|
|
15
15
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "method" | "d" | "y" | "name" | "type" | "filter" | "fill" | "values" | "style" | "clipPath" | "mask" | "path" | "children" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "
|
|
20
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
color?: "
|
|
3
|
+
color?: "secondary" | "primary" | undefined;
|
|
4
4
|
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
56
56
|
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
57
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
58
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
-
}, "name" | "
|
|
59
|
+
}, "name" | "track" | "size" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "value" | "disabled" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
60
|
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
61
|
children?: import("react").ReactNode;
|
|
62
62
|
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
color?: "
|
|
3
|
+
color?: "secondary" | "primary" | undefined;
|
|
4
4
|
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComp
|
|
|
56
56
|
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
57
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
58
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
-
}, "name" | "
|
|
59
|
+
}, "name" | "track" | "size" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "value" | "disabled" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
60
|
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
61
|
children?: import("react").ReactNode;
|
|
62
62
|
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -39,4 +39,7 @@ export declare const ExportButton: import("@emotion/styled").StyledComponent<imp
|
|
|
39
39
|
export declare const BeatProgressBar: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
40
40
|
children?: import("react").ReactNode;
|
|
41
41
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
42
|
+
export declare const ReportSectionFrame: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
43
|
+
children?: import("react").ReactNode;
|
|
44
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
42
45
|
export {};
|
|
@@ -138,3 +138,13 @@ export var BeatProgressBar = styled(Box)({
|
|
|
138
138
|
transition: 'width 0.5s ease-in-out',
|
|
139
139
|
},
|
|
140
140
|
});
|
|
141
|
+
// 报告章节白框:章节标题(AiHeaderTitleV2 缎带)挂在左上角,与「视频题」保持同一套容器样式
|
|
142
|
+
export var ReportSectionFrame = styled(Box)({
|
|
143
|
+
zIndex: 1,
|
|
144
|
+
position: 'relative',
|
|
145
|
+
marginLeft: 16,
|
|
146
|
+
marginRight: 16,
|
|
147
|
+
borderRadius: 16,
|
|
148
|
+
border: '2px solid #FFFFFF',
|
|
149
|
+
paddingBottom: 8,
|
|
150
|
+
});
|
|
@@ -28,6 +28,8 @@ export interface Collection {
|
|
|
28
28
|
rank: number;
|
|
29
29
|
total: number;
|
|
30
30
|
avgScore: number;
|
|
31
|
+
/** 维度来源 1=题目维度 2=全局维度(老报告不返回该字段) */
|
|
32
|
+
source?: number;
|
|
31
33
|
}
|
|
32
34
|
export interface AnalysisResult {
|
|
33
35
|
text: string;
|
|
@@ -94,6 +96,18 @@ export interface WorkPlaceAbility {
|
|
|
94
96
|
scoreText: string;
|
|
95
97
|
token: string;
|
|
96
98
|
}
|
|
99
|
+
/** 全局维度(只绑试卷、不绑题目,按整场回答统一评价) */
|
|
100
|
+
export interface GlobalDimensionAbility {
|
|
101
|
+
token: string;
|
|
102
|
+
name: string;
|
|
103
|
+
define: string;
|
|
104
|
+
score: number;
|
|
105
|
+
scoreText: string;
|
|
106
|
+
scoreLevel: number;
|
|
107
|
+
weight: number;
|
|
108
|
+
source: number;
|
|
109
|
+
answer: string;
|
|
110
|
+
}
|
|
97
111
|
export interface WorkPlaceScoreInfo {
|
|
98
112
|
score: number;
|
|
99
113
|
scoreText: string;
|
|
@@ -145,6 +159,8 @@ export interface AiInterviewReportList {
|
|
|
145
159
|
faceAnalysis: FaceAnalysis;
|
|
146
160
|
evaluations: Array<any>;
|
|
147
161
|
workplaces: WorkPlaceAbility[];
|
|
162
|
+
/** 全局维度(只绑试卷、不绑题目);没有配置时后端不返回该字段 */
|
|
163
|
+
globalDimensions?: GlobalDimensionAbility[];
|
|
148
164
|
suggestion: Suggestion;
|
|
149
165
|
summaryText: SummaryText;
|
|
150
166
|
model: 'pro' | 'standard';
|
|
@@ -13,6 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
13
13
|
import AIEvaluate from './components/AIEvaluate';
|
|
14
14
|
import CheatRisk from './components/CheatRisk/CheatRisk';
|
|
15
15
|
import { FormReport } from './components/Form';
|
|
16
|
+
import GlobalDimensions from './components/GlobalDimensions';
|
|
16
17
|
import NotFinish from './components/NotFinish';
|
|
17
18
|
import V3Header from './components/V3Header/V3Header';
|
|
18
19
|
import VideoQuestion from './components/VideoQuestion';
|
|
@@ -83,7 +84,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
83
84
|
borderRadius: 2,
|
|
84
85
|
overflow: 'hidden',
|
|
85
86
|
pb: 3,
|
|
86
|
-
} }, { children: [_jsx(V3Header, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, passScore: passScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, onExportReportClick: onExportReportClick }), _jsxs(Box, __assign({ sx: { mx: 2, mt: 0.75 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && (_jsx(AIEvaluate, {})), fetchFormResult && _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(CheatRisk, {}), hasRisk && (_jsx(Box, __assign({ id: "report-risk-alert" }, { children: _jsx(NotFinish, {}) }))), _jsx(VideoQuestion, { isExportPdf: isExportPdf })] }))] })) })) })));
|
|
87
|
+
} }, { children: [_jsx(V3Header, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, passScore: passScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo, onExportReportClick: onExportReportClick }), _jsxs(Box, __assign({ sx: { mx: 2, mt: 0.75 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && (_jsx(AIEvaluate, {})), _jsx(GlobalDimensions, {}), fetchFormResult && _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(CheatRisk, {}), hasRisk && (_jsx(Box, __assign({ id: "report-risk-alert" }, { children: _jsx(NotFinish, {}) }))), _jsx(VideoQuestion, { isExportPdf: isExportPdf })] }))] })) })) })));
|
|
87
88
|
}, [
|
|
88
89
|
loading,
|
|
89
90
|
status,
|