eli-video-interview 1.2.23 → 1.2.26
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/CHANGELOG.md +30 -0
- package/esm/assets/icons/AI.svg +1 -0
- package/esm/components/AiHeaderTitle/index.d.ts +4 -0
- package/esm/components/AiHeaderTitle/index.js +19 -0
- package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
- package/esm/components/AiHeaderTitle/interface.js +1 -0
- package/esm/components/Charts/Chart.d.ts +1 -1
- package/esm/components/Charts/Chart.js +8 -8
- package/esm/components/Charts/ReportPie.js +1 -1
- package/esm/modules/ai-ability/interface.d.ts +1 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
- package/esm/modules/ai-question/components/AiAnalysis/index.js +9 -17
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +7 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +27 -26
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionModel/index.js +6 -6
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +60 -11
- package/esm/modules/ai-question/interface.d.ts +2 -0
- package/esm/modules/ai-report/Root.js +7 -5
- package/esm/modules/ai-report/components/AIEvaluate/index.js +10 -9
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +3 -3
- package/esm/modules/ai-report/components/ScoreReport/Report.js +13 -5
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +29 -0
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +2 -0
- package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
- package/esm/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.js +67 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
- package/esm/modules/ai-report/interface.d.ts +38 -0
- package/esm/services/ai-ability.d.ts +1 -0
- package/esm/services/ai-report.d.ts +5 -0
- package/esm/services/ai-report.js +4 -0
- package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
- package/esm/store/ai-ability/question-ability-store.js +10 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +5 -1
- package/esm/store/ai-question/ai-analysis-store.js +36 -11
- package/lib/assets/icons/AI.svg +1 -0
- package/lib/components/AiHeaderTitle/index.d.ts +4 -0
- package/lib/components/AiHeaderTitle/index.js +24 -0
- package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
- package/lib/components/AiHeaderTitle/interface.js +2 -0
- package/lib/components/Charts/Chart.d.ts +1 -1
- package/lib/components/Charts/Chart.js +8 -8
- package/lib/components/Charts/ReportPie.js +1 -1
- package/lib/modules/ai-ability/interface.d.ts +1 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
- package/lib/modules/ai-question/components/AiAnalysis/index.js +8 -16
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +8 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +27 -26
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionModel/index.js +6 -6
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +60 -11
- package/lib/modules/ai-question/interface.d.ts +2 -0
- package/lib/modules/ai-report/Root.js +7 -5
- package/lib/modules/ai-report/components/AIEvaluate/index.js +9 -8
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +3 -3
- package/lib/modules/ai-report/components/ScoreReport/Report.js +13 -5
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +2 -0
- package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
- package/lib/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.js +72 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
- package/lib/modules/ai-report/interface.d.ts +38 -0
- package/lib/services/ai-ability.d.ts +1 -0
- package/lib/services/ai-report.d.ts +5 -0
- package/lib/services/ai-report.js +6 -1
- package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
- package/lib/store/ai-ability/question-ability-store.js +13 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +5 -1
- package/lib/store/ai-question/ai-analysis-store.js +36 -11
- package/package.json +1 -7
|
@@ -15,16 +15,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
18
|
+
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
19
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
19
20
|
var fbm_ui_1 = require("fbm-ui");
|
|
20
21
|
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
21
|
-
var
|
|
22
|
-
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
22
|
+
var react_1 = require("react");
|
|
23
23
|
var Abilities = function (_a) {
|
|
24
24
|
var stepIndex = _a.stepIndex;
|
|
25
25
|
var _b = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _b.reportResult, updateReportResult = _b.updateReportResult, onScoreChange = _b.onScoreChange;
|
|
26
26
|
var steps = (reportResult || {}).steps;
|
|
27
|
-
var handleChangeCommitted = (0, react_1.useCallback)(function (score, index) {
|
|
27
|
+
var handleChangeCommitted = (0, react_1.useCallback)(function (score, index, type) {
|
|
28
28
|
var _a, _b;
|
|
29
29
|
var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[stepIndex] = { scoreInfo: { abilities: (_b = {}, _b[index] = { finalScore: { $set: score } }, _b) } }, _a));
|
|
30
30
|
updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
|
|
@@ -39,7 +39,7 @@ var Abilities = function (_a) {
|
|
|
39
39
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 1 }, { children: "\u5206\u503C\u8BA1\u7B97\u89C4\u5219\uFF1A\u7EFC\u5408\u8BC4\u5206=AI\u8BC4\u5206*\u5355\u9898\u6743\u91CD" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps &&
|
|
40
40
|
steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
|
|
41
41
|
var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: name })), (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: 400, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleChangeCommitted(score, index); } })] }, name));
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: name })), (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: 400, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleChangeCommitted(score, index, 'ability'); } })] }, name));
|
|
43
43
|
}) }))] })));
|
|
44
44
|
};
|
|
45
45
|
exports.default = Abilities;
|
|
@@ -15,19 +15,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var mui_1 = require("fbm-ui/lib/mui");
|
|
22
|
-
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
18
|
+
var Abilities_1 = __importDefault(require("./Abilities"));
|
|
19
|
+
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
20
|
+
var styled_1 = require("./styled");
|
|
23
21
|
var ai_question_1 = require("../../../../enum/ai-question");
|
|
24
22
|
var ai_report_1 = require("../../../../enum/ai-report");
|
|
25
23
|
var FormatQuote_1 = __importDefault(require("@mui/icons-material/FormatQuote"));
|
|
26
24
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
27
25
|
var utils_1 = require("../../../../utils/utils");
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
26
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
27
|
+
var ThemeProvider_1 = require("fbm-ui/lib/components/ThemeProvider");
|
|
28
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
29
|
+
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
30
|
+
var react_1 = require("react");
|
|
31
31
|
var STEP_NO_ANSWER = ai_report_1.INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = ai_report_1.INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
32
32
|
var QuestionItem = function (props) {
|
|
33
33
|
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
@@ -91,6 +91,6 @@ var QuestionItem = function (props) {
|
|
|
91
91
|
mt: 2,
|
|
92
92
|
cursor: videoUrl ? 'pointer' : 'inherit',
|
|
93
93
|
borderColor: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : '',
|
|
94
|
-
}, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", desc] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(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: [(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] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", 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 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index })] }), token));
|
|
94
|
+
}, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", desc] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(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: [(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] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { originScore: originScore, 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 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index })] }), token));
|
|
95
95
|
};
|
|
96
96
|
exports.default = QuestionItem;
|
|
@@ -15,12 +15,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
|
-
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
20
18
|
var QuestionItem_1 = __importDefault(require("./QuestionItem"));
|
|
19
|
+
var AiHeaderTitle_1 = __importDefault(require("../../../../components/AiHeaderTitle"));
|
|
20
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
21
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
21
22
|
var VideoQuestion = function () {
|
|
22
23
|
var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
|
|
23
24
|
var steps = (reportResult || {}).steps;
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ component: fbm_ui_1.Paper, pl: 2, pt: 2, pr: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u89C6\u9891\u9898" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return (0, jsx_runtime_1.jsx)(QuestionItem_1.default, __assign({ index: index }, item), item.token); })) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
|
|
25
26
|
};
|
|
26
27
|
exports.default = VideoQuestion;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var styled_1 = require("./styled");
|
|
16
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
17
|
+
var ScoreColorMap = {
|
|
18
|
+
1: '#4CAF50',
|
|
19
|
+
2: '#000000',
|
|
20
|
+
3: '#FF6C6C',
|
|
21
|
+
};
|
|
22
|
+
var ScoreSlider = function (props) {
|
|
23
|
+
var _a = props.width, width = _a === void 0 ? 320 : _a, score = props.score, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'off' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.scoreText, scoreText = _d === void 0 ? '' : _d, _e = props.scoreLevel, scoreLevel = _e === void 0 ? 2 : _e;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(styled_1.ScoreSliderRoot, __assign({ width: width }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: width, display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ flexShrink: 0, variant: "body2", fontWeight: "medium" }, { children: "\u5019\u9009\u4EBA\u8868\u73B0" })), isShowLabel && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: ScoreColorMap[scoreLevel], variant: "body2", fontWeight: "medium" }, { children: [score, "\u5206"] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: ScoreColorMap[scoreLevel], variant: "body2", fontWeight: "medium", ml: 1 }, { children: scoreText }))] })))] })), (0, jsx_runtime_1.jsx)(styled_1.WorkplaceStyledSlider, { valueLabelDisplay: valueLabelDisplay, value: score })] })));
|
|
25
|
+
};
|
|
26
|
+
exports.default = ScoreSlider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Mode = 'edit' | 'show';
|
|
3
|
+
interface WorkplaceProps {
|
|
4
|
+
token: string;
|
|
5
|
+
answer: string;
|
|
6
|
+
bgcolor?: string;
|
|
7
|
+
mode?: Mode;
|
|
8
|
+
canEdit?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Evaluate: React.FC<WorkplaceProps>;
|
|
11
|
+
export default Evaluate;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var ai_report_1 = require("../../../../services/ai-report");
|
|
16
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
17
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
18
|
+
var react_1 = require("react");
|
|
19
|
+
var Evaluate = function (_a) {
|
|
20
|
+
var answer = _a.answer, token = _a.token, bgcolor = _a.bgcolor, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'true' : _c;
|
|
21
|
+
var _d = (0, react_1.useState)(answer), content = _d[0], setContent = _d[1];
|
|
22
|
+
var _e = (0, react_1.useState)('show'), internalMode = _e[0], setInternalMode = _e[1];
|
|
23
|
+
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
24
|
+
var value = e.target.value;
|
|
25
|
+
setContent(value);
|
|
26
|
+
}, []);
|
|
27
|
+
var handleModeChange = (0, react_1.useCallback)(function () {
|
|
28
|
+
setInternalMode(internalMode === 'show' ? 'edit' : 'show');
|
|
29
|
+
}, [internalMode]);
|
|
30
|
+
var handleSubmit = (0, react_1.useCallback)(function () {
|
|
31
|
+
(0, fbm_ui_1.confirm)({
|
|
32
|
+
header: null,
|
|
33
|
+
content: '确认将评价内容修改吗?该动作无法被撤销。',
|
|
34
|
+
okText: '修改',
|
|
35
|
+
okProps: {
|
|
36
|
+
color: 'error',
|
|
37
|
+
variant: 'contained',
|
|
38
|
+
},
|
|
39
|
+
onOk: function (_a) {
|
|
40
|
+
var onClose = _a.onClose;
|
|
41
|
+
var data = {
|
|
42
|
+
token: token,
|
|
43
|
+
answer: content,
|
|
44
|
+
};
|
|
45
|
+
(0, ai_report_1.PostAiInterviewWorkplace)(data).then(handleModeChange).then(onClose).catch(console.log);
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}, [token, content, handleModeChange]);
|
|
49
|
+
(0, react_1.useEffect)(function () {
|
|
50
|
+
setInternalMode(mode);
|
|
51
|
+
}, [mode]);
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "flex-end" }, { children: canEdit && ((0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ onClick: handleModeChange }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.EditIcon, {}) }))) })), internalMode === 'edit' && ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ width: 1, pr: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { sx: { height: 'auto', pr: 0 }, multiline: true, rows: 3.5, required: true, name: "name", placeholder: "", value: content, onChange: handleChange }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ boxSizing: "border-box", mr: 2, mt: 1, spacing: 1, direction: "row", width: 1, justifyContent: "flex-end" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "medium", variant: "text", color: "secondary", onClick: function () {
|
|
53
|
+
handleModeChange();
|
|
54
|
+
setContent(answer);
|
|
55
|
+
} }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "medium", onClick: handleSubmit }, { children: "\u4FDD\u5B58" }))] }))] }))), internalMode === 'show' && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ style: { padding: 8, borderRadius: 4, overflow: 'hidden', background: bgcolor } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { whiteSpace: 'pre-wrap', color: 'RGBA(0, 0, 0, 0.56)' } }, { children: content })) })))] }));
|
|
56
|
+
};
|
|
57
|
+
exports.default = Evaluate;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
19
|
+
var WorkPlace_1 = __importDefault(require("./WorkPlace"));
|
|
20
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
21
|
+
var AiHeaderTitle_1 = __importDefault(require("../../../../components/AiHeaderTitle"));
|
|
22
|
+
var colors_1 = require("@mui/material/colors");
|
|
23
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
24
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
25
|
+
var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function (bgcolor) { return ({
|
|
26
|
+
position: 'relative',
|
|
27
|
+
width: 100,
|
|
28
|
+
height: 32,
|
|
29
|
+
display: 'inline-block',
|
|
30
|
+
textAlign: 'center',
|
|
31
|
+
backgroundColor: bgcolor[200],
|
|
32
|
+
margin: '8px 0 16px',
|
|
33
|
+
'&:before': {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
content: '""',
|
|
36
|
+
right: '-16px',
|
|
37
|
+
top: 0,
|
|
38
|
+
width: 0,
|
|
39
|
+
height: 0,
|
|
40
|
+
borderStyle: 'solid',
|
|
41
|
+
borderColor: 'transparent',
|
|
42
|
+
borderTop: 'solid #fff',
|
|
43
|
+
borderWidth: '16px',
|
|
44
|
+
},
|
|
45
|
+
'&:after': {
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
content: '""',
|
|
48
|
+
right: '-16px',
|
|
49
|
+
top: 0,
|
|
50
|
+
width: 0,
|
|
51
|
+
height: 0,
|
|
52
|
+
borderStyle: 'solid',
|
|
53
|
+
borderColor: 'transparent',
|
|
54
|
+
borderBottom: 'solid #fff',
|
|
55
|
+
borderWidth: '16px',
|
|
56
|
+
},
|
|
57
|
+
}); });
|
|
58
|
+
var ColorIndexMap = {
|
|
59
|
+
0: colors_1.blue,
|
|
60
|
+
1: colors_1.orange,
|
|
61
|
+
2: colors_1.purple,
|
|
62
|
+
};
|
|
63
|
+
var Index = function () {
|
|
64
|
+
var _a;
|
|
65
|
+
var _b = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _b.reportResult, showAiDimension = _b.showAiDimension, canEditAiDimension = _b.canEditAiDimension;
|
|
66
|
+
if (!showAiDimension)
|
|
67
|
+
return null;
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, variant: "outlined", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u804C\u573A\u80FD\u529B\u8868\u73B0" }) })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaces) === null || _a === void 0 ? void 0 : _a.map(function (v, idx) {
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, variant: "outlined", elevation: 0, mb: 2, pb: 2, pr: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", justifyContent: "space-between", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(TagTitle, __assign({ bgcolor: ColorIndexMap[idx % 3][200] }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px', color: '#fff' } }, { children: v.dimensionName })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u9AD8\u5206\u8868\u73B0\uFF1A", v.abilityExpression.good, (0, jsx_runtime_1.jsx)("br", {}), "\u4F4E\u5206\u8868\u73B0\uFF1A", v.abilityExpression.bad] }) }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { lineHeight: '32px' }, mr: 1 }, { children: "\u4F18\u6B21\u8868\u73B0" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } })] })) }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", ml: 2, style: { background: '#F5F5F5', borderRadius: 4, padding: 8 } }, { children: v.define })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ pl: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: "100%", isShowLabel: true, score: v.score, scoreText: v.scoreText, scoreLevel: v.scoreLevel }) })), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2 }, { children: (0, jsx_runtime_1.jsx)(WorkPlace_1.default, { token: v.token, canEdit: canEditAiDimension, answer: v.answer, mode: "show", bgcolor: ColorIndexMap[idx % 3][50] }) }))] }))] }), v.token));
|
|
70
|
+
}) }))] })));
|
|
71
|
+
};
|
|
72
|
+
exports.default = Index;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WorkPlaceScoreInfo } from '../../interface';
|
|
2
|
+
export interface ScoreSliderProps extends Pick<WorkPlaceScoreInfo, 'score' | 'scoreText' | 'scoreLevel'> {
|
|
3
|
+
width?: any;
|
|
4
|
+
valueLabelDisplay?: 'on' | 'off' | 'auto';
|
|
5
|
+
isShowLabel?: boolean;
|
|
6
|
+
onChangeCommitted?: (score: number) => void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
color?: "secondary" | "primary" | undefined;
|
|
4
|
+
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
|
+
colorPrimary?: string | undefined;
|
|
6
|
+
colorSecondary?: string | undefined;
|
|
7
|
+
sizeSmall?: string | undefined;
|
|
8
|
+
thumbColorPrimary?: string | undefined;
|
|
9
|
+
thumbColorSecondary?: string | undefined;
|
|
10
|
+
thumbSizeSmall?: string | undefined;
|
|
11
|
+
}) | undefined;
|
|
12
|
+
size?: "small" | "medium" | undefined;
|
|
13
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
'aria-label'?: string | undefined;
|
|
16
|
+
'aria-labelledby'?: string | undefined;
|
|
17
|
+
'aria-valuetext'?: string | undefined;
|
|
18
|
+
classes?: Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> | undefined;
|
|
19
|
+
components?: {
|
|
20
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
21
|
+
Track?: import("react").ElementType<any> | undefined;
|
|
22
|
+
Rail?: import("react").ElementType<any> | undefined;
|
|
23
|
+
Thumb?: import("react").ElementType<any> | undefined;
|
|
24
|
+
Mark?: import("react").ElementType<any> | undefined;
|
|
25
|
+
MarkLabel?: import("react").ElementType<any> | undefined;
|
|
26
|
+
ValueLabel?: import("react").ElementType<any> | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
componentsProps?: {
|
|
29
|
+
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
30
|
+
track?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
31
|
+
rail?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
32
|
+
thumb?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
33
|
+
mark?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
34
|
+
markLabel?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
35
|
+
valueLabel?: (import("fbm-ui/lib/mui").ValueLabelUnstyledProps & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
defaultValue?: number | number[] | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
disableSwap?: boolean | undefined;
|
|
40
|
+
getAriaLabel?: ((index: number) => string) | undefined;
|
|
41
|
+
getAriaValueText?: ((value: number, index: number) => string) | undefined;
|
|
42
|
+
isRtl?: boolean | undefined;
|
|
43
|
+
marks?: boolean | import("fbm-ui/lib/mui").Mark[] | undefined;
|
|
44
|
+
max?: number | undefined;
|
|
45
|
+
min?: number | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
onChange?: ((event: Event, value: number | number[], activeThumb: number) => void) | undefined;
|
|
48
|
+
onChangeCommitted?: ((event: Event | import("react").SyntheticEvent<Element, Event>, value: number | number[]) => void) | undefined;
|
|
49
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
50
|
+
scale?: ((value: number) => number) | undefined;
|
|
51
|
+
step?: number | null | undefined;
|
|
52
|
+
tabIndex?: number | undefined;
|
|
53
|
+
track?: false | "normal" | "inverted" | undefined;
|
|
54
|
+
value?: number | number[] | undefined;
|
|
55
|
+
valueLabelDisplay?: "on" | "off" | "auto" | undefined;
|
|
56
|
+
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
+
}, "track" | "name" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "max" | "min" | "orientation" | "size" | "step" | "value" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
|
+
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
|
+
children?: import("react").ReactNode;
|
|
62
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScoreSliderRoot = exports.WorkplaceStyledSlider = void 0;
|
|
4
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
5
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
6
|
+
exports.WorkplaceStyledSlider = (0, fbm_ui_1.styled)(mui_1.Slider)(function () { return ({
|
|
7
|
+
color: 'transparent',
|
|
8
|
+
height: 8,
|
|
9
|
+
'& .MuiSlider-rail': {
|
|
10
|
+
// backgroundColor: '#ECEFF1',
|
|
11
|
+
opacity: 1,
|
|
12
|
+
background: 'linear-gradient(90deg, RGB(229, 115, 115), RGB(255, 183, 77) 50%, RGB(0, 217, 157))',
|
|
13
|
+
},
|
|
14
|
+
'& .MuiSlider-track': {
|
|
15
|
+
border: 'none',
|
|
16
|
+
background: 'transparent',
|
|
17
|
+
},
|
|
18
|
+
'& .MuiSlider-thumb': {
|
|
19
|
+
height: 16,
|
|
20
|
+
width: 16,
|
|
21
|
+
backgroundColor: '#fff',
|
|
22
|
+
zIndex: 2,
|
|
23
|
+
boxShadow: '0 4px 8px RGBA(0, 0, 0, 0.16)',
|
|
24
|
+
},
|
|
25
|
+
}); });
|
|
26
|
+
exports.ScoreSliderRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
27
|
+
display: 'flex',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
flexDirection: 'column',
|
|
30
|
+
});
|
|
@@ -51,6 +51,7 @@ export interface ScoreInfo {
|
|
|
51
51
|
finalScore: number;
|
|
52
52
|
score: number;
|
|
53
53
|
abilities: Ability[];
|
|
54
|
+
workplaces: Ability[];
|
|
54
55
|
}
|
|
55
56
|
export interface AiEvaluation {
|
|
56
57
|
assessmentPoint: string[];
|
|
@@ -58,6 +59,36 @@ export interface AiEvaluation {
|
|
|
58
59
|
increasePoint: any[];
|
|
59
60
|
decreasePoint: any[];
|
|
60
61
|
}
|
|
62
|
+
export interface AbilityExpression {
|
|
63
|
+
bad: string;
|
|
64
|
+
good: string;
|
|
65
|
+
}
|
|
66
|
+
export interface WorkPlaceAbility {
|
|
67
|
+
abilityExpression: AbilityExpression;
|
|
68
|
+
answer: string;
|
|
69
|
+
define: string;
|
|
70
|
+
dimensionName: string;
|
|
71
|
+
dimensionType: number;
|
|
72
|
+
score: number;
|
|
73
|
+
scoreLevel: number;
|
|
74
|
+
scoreText: string;
|
|
75
|
+
token: string;
|
|
76
|
+
}
|
|
77
|
+
export interface WorkPlaceScoreInfo {
|
|
78
|
+
score: number;
|
|
79
|
+
scoreText: string;
|
|
80
|
+
scoreLevel: number;
|
|
81
|
+
}
|
|
82
|
+
export interface SuggestionAbility {
|
|
83
|
+
abilityName: string;
|
|
84
|
+
interviewQuestion: Array<string>;
|
|
85
|
+
keyPoints: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
export interface Suggestion {
|
|
88
|
+
text: string;
|
|
89
|
+
show: boolean;
|
|
90
|
+
abilitys: SuggestionAbility[];
|
|
91
|
+
}
|
|
61
92
|
export interface AiInterviewReportStep {
|
|
62
93
|
token: string;
|
|
63
94
|
status: number;
|
|
@@ -70,6 +101,10 @@ export interface FaceAnalysis {
|
|
|
70
101
|
age: number;
|
|
71
102
|
beauty: number;
|
|
72
103
|
}
|
|
104
|
+
export interface SummaryText {
|
|
105
|
+
sprintf: string;
|
|
106
|
+
variables: Array<string>;
|
|
107
|
+
}
|
|
73
108
|
export interface AiInterviewReportList {
|
|
74
109
|
orderToken: string;
|
|
75
110
|
aiModel: AiModel;
|
|
@@ -77,6 +112,9 @@ export interface AiInterviewReportList {
|
|
|
77
112
|
faceUrl: string;
|
|
78
113
|
faceAnalysis: FaceAnalysis;
|
|
79
114
|
evaluations: Array<any>;
|
|
115
|
+
workplaces: WorkPlaceAbility[];
|
|
116
|
+
suggestion: Suggestion;
|
|
117
|
+
summaryText: SummaryText;
|
|
80
118
|
score: number;
|
|
81
119
|
status: number;
|
|
82
120
|
completedStatus: number;
|
|
@@ -6,4 +6,9 @@ interface PostAiInterviewEvaluationData {
|
|
|
6
6
|
manualSuggestions?: Array<string>;
|
|
7
7
|
}
|
|
8
8
|
export declare const PostAiInterviewEvaluation: <R>(data: PostAiInterviewEvaluationData) => import("axios").AxiosPromise<R>;
|
|
9
|
+
interface PostAiInterviewWorkplaceData {
|
|
10
|
+
token: string;
|
|
11
|
+
answer?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const PostAiInterviewWorkplace: <R>(data: PostAiInterviewWorkplaceData) => import("axios").AxiosPromise<R>;
|
|
9
14
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostAiInterviewEvaluation = exports.PostAiInterviewRefresh = exports.PostAiInterviewResult = void 0;
|
|
3
|
+
exports.PostAiInterviewWorkplace = exports.PostAiInterviewEvaluation = exports.PostAiInterviewRefresh = exports.PostAiInterviewResult = void 0;
|
|
4
4
|
var request_1 = require("../utils/request");
|
|
5
5
|
// 查询面试结果
|
|
6
6
|
var PostAiInterviewResult = function (orderTokens) { return (0, request_1.POST)({ url: "/standard/b/aiInterview/result", data: { orderTokens: orderTokens } }); };
|
|
@@ -13,3 +13,8 @@ var PostAiInterviewEvaluation = function (data) {
|
|
|
13
13
|
return (0, request_1.POST)({ url: "/standard/b/aiInterview/aiEvaluation/modify", data: data });
|
|
14
14
|
};
|
|
15
15
|
exports.PostAiInterviewEvaluation = PostAiInterviewEvaluation;
|
|
16
|
+
// 更新职场能力回答
|
|
17
|
+
var PostAiInterviewWorkplace = function (data) {
|
|
18
|
+
return (0, request_1.POST)({ url: "/standard/b/aiInterview/workplace/answer/modify", data: data });
|
|
19
|
+
};
|
|
20
|
+
exports.PostAiInterviewWorkplace = PostAiInterviewWorkplace;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { QuestionCollectionList } from '@/modules/ai-ability/interface';
|
|
3
|
+
export declare const useQuestionCollectionListStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
+
questionCollectionList: QuestionCollectionList[];
|
|
5
|
+
updateQuestionCollectionList: import("react").Dispatch<import("react").SetStateAction<QuestionCollectionList[]>>;
|
|
6
|
+
}> | undefined) => {
|
|
7
|
+
questionCollectionList: QuestionCollectionList[];
|
|
8
|
+
updateQuestionCollectionList: import("react").Dispatch<import("react").SetStateAction<QuestionCollectionList[]>>;
|
|
9
|
+
}, getQuestionCollectionListStore: () => {
|
|
10
|
+
questionCollectionList: QuestionCollectionList[];
|
|
11
|
+
updateQuestionCollectionList: import("react").Dispatch<import("react").SetStateAction<QuestionCollectionList[]>>;
|
|
12
|
+
} | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getQuestionCollectionListStore = exports.useQuestionCollectionListStore = void 0;
|
|
5
|
+
var hox_1 = require("hox");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
exports.useQuestionCollectionListStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
8
|
+
var _a = (0, react_1.useState)([]), questionCollectionList = _a[0], updateQuestionCollectionList = _a[1];
|
|
9
|
+
return {
|
|
10
|
+
questionCollectionList: questionCollectionList,
|
|
11
|
+
updateQuestionCollectionList: updateQuestionCollectionList,
|
|
12
|
+
};
|
|
13
|
+
}), _a[0]), exports.getQuestionCollectionListStore = _a[1];
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AiAbilityItem } from '@/modules/ai-question/components/AiAssessmentCriteria/interface';
|
|
2
|
+
import { AiAbilityItem, WorkplaceItem } from '@/modules/ai-question/components/AiAssessmentCriteria/interface';
|
|
3
3
|
import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
4
4
|
interface AnalysisStateParams extends Pick<QuestionParams, 'aiSwitch' | 'language'> {
|
|
5
5
|
}
|
|
6
6
|
export declare const useAiAnalysisStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
7
7
|
aiAbilities: AiAbilityItem[];
|
|
8
|
+
workplaces: WorkplaceItem[];
|
|
8
9
|
analysisState: AnalysisStateParams;
|
|
9
10
|
keyPointAnalysisError: number[];
|
|
10
11
|
updateState: (params: Partial<AnalysisStateParams>) => void;
|
|
11
12
|
updateAiAbilities: (data: AiAbilityItem[], inInit?: any) => void;
|
|
12
13
|
updateAiAbilitiesWeight: (value: string, index: number) => void;
|
|
13
14
|
removeAiAbilities: (index: number) => void;
|
|
15
|
+
updateWorkplaces: (data: WorkplaceItem[]) => void;
|
|
14
16
|
setKeyPointAnalysisError: import("react").Dispatch<import("react").SetStateAction<number[]>>;
|
|
15
17
|
}> | undefined) => {
|
|
16
18
|
aiAbilities: AiAbilityItem[];
|
|
19
|
+
workplaces: WorkplaceItem[];
|
|
17
20
|
analysisState: AnalysisStateParams;
|
|
18
21
|
keyPointAnalysisError: number[];
|
|
19
22
|
updateState: (params: Partial<AnalysisStateParams>) => void;
|
|
20
23
|
updateAiAbilities: (data: AiAbilityItem[], inInit?: any) => void;
|
|
21
24
|
updateAiAbilitiesWeight: (value: string, index: number) => void;
|
|
22
25
|
removeAiAbilities: (index: number) => void;
|
|
26
|
+
updateWorkplaces: (data: WorkplaceItem[]) => void;
|
|
23
27
|
setKeyPointAnalysisError: import("react").Dispatch<import("react").SetStateAction<number[]>>;
|
|
24
28
|
}, AiAnalysisStoreProvider: import("react").FC<{
|
|
25
29
|
children?: import("react").ReactNode;
|