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.
Files changed (108) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/esm/assets/icons/AI.svg +1 -0
  3. package/esm/components/AiHeaderTitle/index.d.ts +4 -0
  4. package/esm/components/AiHeaderTitle/index.js +19 -0
  5. package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
  6. package/esm/components/AiHeaderTitle/interface.js +1 -0
  7. package/esm/components/Charts/Chart.d.ts +1 -1
  8. package/esm/components/Charts/Chart.js +8 -8
  9. package/esm/components/Charts/ReportPie.js +1 -1
  10. package/esm/modules/ai-ability/interface.d.ts +1 -0
  11. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
  12. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
  13. package/esm/modules/ai-question/components/AiAnalysis/index.js +9 -17
  14. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
  15. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +7 -0
  16. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
  17. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +27 -26
  18. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
  19. package/esm/modules/ai-question/components/QuestionModel/index.js +6 -6
  20. package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
  21. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
  22. package/esm/modules/ai-question/components/QuestionUpdate/index.js +60 -11
  23. package/esm/modules/ai-question/interface.d.ts +2 -0
  24. package/esm/modules/ai-report/Root.js +7 -5
  25. package/esm/modules/ai-report/components/AIEvaluate/index.js +10 -9
  26. package/esm/modules/ai-report/components/ScoreReport/Bar.js +3 -3
  27. package/esm/modules/ai-report/components/ScoreReport/Report.js +13 -5
  28. package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
  29. package/esm/modules/ai-report/components/Suggestion/Suggestion.js +29 -0
  30. package/esm/modules/ai-report/components/Suggestion/index.d.ts +2 -0
  31. package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
  32. package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
  33. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
  34. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
  35. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
  36. package/esm/modules/ai-report/components/VideoQuestion/index.js +4 -3
  37. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  38. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
  39. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
  40. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
  41. package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
  42. package/esm/modules/ai-report/components/WorkPlaces/index.js +67 -0
  43. package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
  44. package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
  45. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
  46. package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
  47. package/esm/modules/ai-report/interface.d.ts +38 -0
  48. package/esm/services/ai-ability.d.ts +1 -0
  49. package/esm/services/ai-report.d.ts +5 -0
  50. package/esm/services/ai-report.js +4 -0
  51. package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
  52. package/esm/store/ai-ability/question-ability-store.js +10 -0
  53. package/esm/store/ai-question/ai-analysis-store.d.ts +5 -1
  54. package/esm/store/ai-question/ai-analysis-store.js +36 -11
  55. package/lib/assets/icons/AI.svg +1 -0
  56. package/lib/components/AiHeaderTitle/index.d.ts +4 -0
  57. package/lib/components/AiHeaderTitle/index.js +24 -0
  58. package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
  59. package/lib/components/AiHeaderTitle/interface.js +2 -0
  60. package/lib/components/Charts/Chart.d.ts +1 -1
  61. package/lib/components/Charts/Chart.js +8 -8
  62. package/lib/components/Charts/ReportPie.js +1 -1
  63. package/lib/modules/ai-ability/interface.d.ts +1 -0
  64. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
  65. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
  66. package/lib/modules/ai-question/components/AiAnalysis/index.js +8 -16
  67. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
  68. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +8 -1
  69. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
  70. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +27 -26
  71. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
  72. package/lib/modules/ai-question/components/QuestionModel/index.js +6 -6
  73. package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
  74. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
  75. package/lib/modules/ai-question/components/QuestionUpdate/index.js +60 -11
  76. package/lib/modules/ai-question/interface.d.ts +2 -0
  77. package/lib/modules/ai-report/Root.js +7 -5
  78. package/lib/modules/ai-report/components/AIEvaluate/index.js +9 -8
  79. package/lib/modules/ai-report/components/ScoreReport/Bar.js +3 -3
  80. package/lib/modules/ai-report/components/ScoreReport/Report.js +13 -5
  81. package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
  82. package/lib/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
  83. package/lib/modules/ai-report/components/Suggestion/index.d.ts +2 -0
  84. package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
  85. package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
  86. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
  87. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
  88. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
  89. package/lib/modules/ai-report/components/VideoQuestion/index.js +4 -3
  90. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  91. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
  92. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
  93. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
  94. package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
  95. package/lib/modules/ai-report/components/WorkPlaces/index.js +72 -0
  96. package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
  97. package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
  98. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
  99. package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
  100. package/lib/modules/ai-report/interface.d.ts +38 -0
  101. package/lib/services/ai-ability.d.ts +1 -0
  102. package/lib/services/ai-report.d.ts +5 -0
  103. package/lib/services/ai-report.js +6 -1
  104. package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
  105. package/lib/store/ai-ability/question-ability-store.js +13 -0
  106. package/lib/store/ai-question/ai-analysis-store.d.ts +5 -1
  107. package/lib/store/ai-question/ai-analysis-store.js +36 -11
  108. 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 react_1 = require("react");
19
- var fbm_ui_1 = require("fbm-ui");
20
- var mui_1 = require("fbm-ui/lib/mui");
21
- var ahooks_1 = require("ahooks");
18
+ var const_1 = require("./const");
19
+ var utils_1 = require("./utils");
22
20
  var ScrollDialogContent_1 = __importDefault(require("../../../../components/ScrollDialogContent"));
23
21
  var ai_question_1 = require("../../../../enum/ai-question");
24
22
  var ai_question_2 = require("../../../../services/ai-question");
25
23
  var ai_analysis_store_1 = require("../../../../store/ai-question/ai-analysis-store");
26
- var const_1 = require("./const");
27
- var utils_1 = require("./utils");
24
+ var ahooks_1 = require("ahooks");
25
+ var fbm_ui_1 = require("fbm-ui");
26
+ var mui_1 = require("fbm-ui/lib/mui");
27
+ var react_1 = require("react");
28
28
  var MANDARIN = ai_question_1.LANGUAGE_TYPE.MANDARIN, CANTONESE = ai_question_1.LANGUAGE_TYPE.CANTONESE;
29
29
  var AiAssessmentCriteria = function (props) {
30
30
  var open = props.open, onClose = props.onClose;
@@ -62,14 +62,15 @@ var AiAssessmentCriteria = function (props) {
62
62
  setCheckAbilities((_a = {}, _a[key] = undefined, _a));
63
63
  }
64
64
  });
65
+ console.log(language);
65
66
  setLanguage(language);
66
67
  setCheckedChinese([MANDARIN, CANTONESE].includes(language));
67
68
  setRelatedAbilities(item === null || item === void 0 ? void 0 : item.relatedAbilities);
68
69
  };
69
70
  var handleOk = (0, react_1.useCallback)(function () {
70
- updateAiAbilities(Object.values(checkAbilities)
71
- .filter(function (item) { return item; })
72
- .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); }));
71
+ var CurAiAbilities = Object.values(checkAbilities).filter(function (item) { return item; });
72
+ console.log(CurAiAbilities, 'CurAiAbilities');
73
+ updateAiAbilities(Object.values(checkAbilities).filter(function (item) { return item; }));
73
74
  updateState({ language: const_1.SERVER_LANGUAGE_TYPE[language], aiSwitch: 1 });
74
75
  onClose();
75
76
  }, [checkAbilities, language, onClose, updateAiAbilities, updateState]);
@@ -84,23 +85,23 @@ var AiAssessmentCriteria = function (props) {
84
85
  return ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(list.filter(function (_a) {
85
86
  var type = _a.type;
86
87
  return relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type);
87
- }).length > 0 || type === ai_question_1.CATEGORY_TYPE.LANGUAGE) && ((0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsxs)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 14, color: 'rgba(0,0,0,0.86)' } }, { children: [name, type === ai_question_1.CATEGORY_TYPE.LANGUAGE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", sx: { ml: 1 } }, { children: "\u4EE5\u6240\u9009\u8BED\u8A00\u8BC6\u522B\u5019\u9009\u4EBA\u56DE\u7B54\u5185\u5BB9\u5E76\u8F6C\u6362\u6587\u5B57" })))] })) })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ sx: { mb: 1, ml: '4px' }, row: false, value: language, onChange: function (e) { return onLanguageChange(e, list); } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: "0", RadioProps: { checked: checkedChinese }, label: "\u4E2D\u6587" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ value: language, sx: { ml: 3 }, onChange: function (e) { return onLanguageChange(e, list); } }, { children: list
88
- .filter(function (_a) {
89
- var type = _a.type;
90
- return [MANDARIN, CANTONESE].includes(type);
91
- })
92
- .map(function (_a) {
93
- var name = _a.name, type = _a.type, token = _a.token;
94
- return checkedChinese && (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token);
95
- }) })), list
96
- .filter(function (_a) {
97
- var type = _a.type;
98
- return ![MANDARIN, CANTONESE].includes(type);
99
- })
100
- .map(function (_a) {
101
- var name = _a.name, type = _a.type, token = _a.token;
102
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token));
103
- })] }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: list.map(function (item) {
88
+ }).length > 0 || type === ai_question_1.CATEGORY_TYPE.LANGUAGE) && ((0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsxs)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 14, fontWeight: 400, color: 'rgba(0,0,0,0.86)' } }, { children: [type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ style: { fontSize: 16, fontWeight: 500 } }, { children: name }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { children: type === ai_question_1.CATEGORY_TYPE.EXPRESSION ? const_1.LANGUAGE_SHOW_NAME[language] + name : name })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", sx: { ml: 1 } }, { children: "\u4EE5\u6240\u9009\u8BED\u8A00\u8BC6\u522B\u5019\u9009\u4EBA\u56DE\u7B54\u5185\u5BB9\u5E76\u8F6C\u6362\u6587\u5B57" })))] })) })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ sx: { mb: 1, ml: '4px' }, row: false, value: language, onChange: function (e) { return onLanguageChange(e, list); } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: "0", RadioProps: { checked: checkedChinese }, label: "\u4E2D\u6587" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ value: language, sx: { ml: 3 }, onChange: function (e) { return onLanguageChange(e, list); } }, { children: list
89
+ .filter(function (_a) {
90
+ var type = _a.type;
91
+ return [MANDARIN, CANTONESE].includes(type);
92
+ })
93
+ .map(function (_a) {
94
+ var name = _a.name, type = _a.type, token = _a.token;
95
+ return checkedChinese && (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token);
96
+ }) })), list
97
+ .filter(function (_a) {
98
+ var type = _a.type;
99
+ return ![MANDARIN, CANTONESE].includes(type);
100
+ })
101
+ .map(function (_a) {
102
+ var name = _a.name, type = _a.type, token = _a.token;
103
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token));
104
+ })] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { mb: 1 } }), (0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsx)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 16, color: 'rgba(0,0,0,0.86)', fontWeight: 500, marginBottom: 16 } }, { children: "AI\u57FA\u7840\u80FD\u529B" })) })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: list.map(function (item) {
104
105
  var name = item.name, desc = item.desc, type = item.type, token = item.token;
105
106
  if (relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type)) {
106
107
  var isLanguageAbility = [14, 15].includes(type);
@@ -9,6 +9,12 @@ export interface AiAbilityItem extends BaseAiAbilityParams {
9
9
  groupName?: string;
10
10
  isNotCompute?: boolean;
11
11
  }
12
+ export interface WorkplaceItem {
13
+ token: string;
14
+ name: string;
15
+ weight: number | string;
16
+ isWorkplace?: boolean;
17
+ }
12
18
  export declare type GroupCategoryRet = Array<{
13
19
  name: string;
14
20
  type: number;
@@ -15,17 +15,17 @@ 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 react_1 = require("react");
19
- var ahooks_1 = require("ahooks");
20
- var ai_question_1 = require("../../../../services/ai-question");
21
- var global_store_1 = require("../../../../store/ai-question/global-store");
22
- var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
23
- var question_template_store_1 = require("../../../../store/ai-question/question-template-store");
24
18
  var const_1 = require("../QuestionUpdate/const");
25
19
  var Header_1 = __importDefault(require("./Header"));
26
20
  var List_1 = __importDefault(require("./List"));
27
21
  var Skeleton_1 = __importDefault(require("./Skeleton"));
28
22
  var styled_1 = require("./styled");
23
+ var ai_question_1 = require("../../../../services/ai-question");
24
+ var global_store_1 = require("../../../../store/ai-question/global-store");
25
+ var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
26
+ var question_template_store_1 = require("../../../../store/ai-question/question-template-store");
27
+ var ahooks_1 = require("ahooks");
28
+ var react_1 = require("react");
29
29
  var Question = function () {
30
30
  var isDefaultAdded = (0, react_1.useRef)(false);
31
31
  var _a = (0, global_store_1.useAiQuestionStore)(function (store) { return [store.token, store.name, store.templateList]; }), token = _a.token, name = _a.name, templateList = _a.templateList, onLoad = _a.onLoad;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
1
  import { QuestionFormProps } from './interface';
2
+ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<QuestionFormProps & React.RefAttributes<any>>>;
4
4
  export default _default;
@@ -51,16 +51,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
- var react_1 = require("react");
55
- var fbm_ui_1 = require("fbm-ui");
56
- var ahooks_1 = require("ahooks");
57
- var ai_question_1 = require("../../../../enum/ai-question");
58
- var ai_ability_1 = require("../../../../services/ai-ability");
59
54
  var AiAnalysis_1 = __importDefault(require("../AiAnalysis"));
60
55
  var const_1 = require("./const");
61
56
  var VideoVoice_1 = __importDefault(require("./VideoVoice"));
57
+ var question_ability_store_1 = require("../../../../store/ai-ability/question-ability-store");
58
+ var ai_question_1 = require("../../../../enum/ai-question");
59
+ var ai_ability_1 = require("../../../../services/ai-ability");
60
+ var ahooks_1 = require("ahooks");
61
+ var fbm_ui_1 = require("fbm-ui");
62
+ var react_1 = require("react");
62
63
  var QuestionForm = (0, react_1.forwardRef)(function (props, ref) {
63
64
  var aiShowType = props.aiShowType, initialValues = props.initialValues, values = props.values, preview = props.preview, onValuesChange = props.onValuesChange, onSubmit = props.onSubmit;
65
+ var _a = (0, question_ability_store_1.useQuestionCollectionListStore)(function (store) { return [store.questionCollectionList]; }), questionCollectionList = _a.questionCollectionList, updateQuestionCollectionList = _a.updateQuestionCollectionList;
64
66
  var data = (0, ahooks_1.useRequest)(ai_ability_1.PostQuestionCollectionList, { manual: preview }).data;
65
67
  var form = (0, fbm_ui_1.useForm)({
66
68
  initialValues: initialValues,
@@ -83,15 +85,22 @@ var QuestionForm = (0, react_1.forwardRef)(function (props, ref) {
83
85
  }); });
84
86
  (0, react_1.useEffect)(function () {
85
87
  values && form.setValues(values);
88
+ updateQuestionCollectionList((data === null || data === void 0 ? void 0 : data.data.list) || []);
86
89
  // eslint-disable-next-line react-hooks/exhaustive-deps
87
- }, [values]);
90
+ }, [values, data]);
88
91
  (0, react_1.useEffect)(function () {
89
- console.log(form.values);
92
+ // console.log(form.values);
90
93
  onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(form.values);
91
94
  }, [form.values, onValuesChange]);
92
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Form, __assign({}, form, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { required: true, disabled: preview, name: "name", label: "\u6807\u9898", placeholder: "\u6807\u9898\uFF08\u7528\u4E8E\u7CFB\u7EDF\u7BA1\u7406\uFF09", max: 15 }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex" }, { children: [!preview && aiShowType === ai_question_1.ADD_QUESTION_TYPE.FREE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, __assign({ sx: { flex: '1 0', mr: 1 }, required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: const_1.broadcastModeOptions }) }))), !preview && ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, __assign({ style: { flex: '1 0' }, disabled: preview, name: "category", label: "\u8003\u5BDF\u80FD\u529B" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Autocomplete, { placeholder: "\u8003\u5BDF\u80FD\u529B", options: data === null || data === void 0 ? void 0 : data.data.list.map(function (_a) {
93
- var tag = _a.tag;
94
- return ({ label: tag, value: tag });
95
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Form, __assign({}, form, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { required: true, disabled: preview, name: "name", label: "\u6807\u9898", placeholder: "\u6807\u9898\uFF08\u7528\u4E8E\u7CFB\u7EDF\u7BA1\u7406\uFF09", max: 15 }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex" }, { children: [!preview && aiShowType === ai_question_1.ADD_QUESTION_TYPE.FREE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, __assign({ sx: { flex: '1 0', mr: 1 }, required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: const_1.broadcastModeOptions }) }))), !preview && ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, __assign({ style: { flex: '1 0' }, disabled: preview, name: "category", label: "\u8003\u5BDF\u80FD\u529B" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Autocomplete, { placeholder: "\u8003\u5BDF\u80FD\u529B", options: questionCollectionList.map(function (_a) {
96
+ var tag = _a.tag, token = _a.token, isWorkplace = _a.isWorkplace;
97
+ return ({
98
+ label: tag,
99
+ value: tag,
100
+ name: tag,
101
+ token: token,
102
+ isWorkplace: isWorkplace,
103
+ });
95
104
  }) }) })))] })), form.values.broadcastType === 1 || preview ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { required: true, disabled: preview, name: "desc", label: "\u9762\u8BD5\u5185\u5BB9", max: 300, placeholder: "\u9762\u8BD5\u5185\u5BB9\uFF08\u7CFB\u7EDF\u5C06\u6839\u636E\u6B64\u5185\u5BB9\u5411\u5019\u9009\u4EBA\u8FDB\u884C\u8BED\u97F3\u64AD\u62A5\uFF09" })) : ((0, jsx_runtime_1.jsx)(VideoVoice_1.default, {})), aiShowType === ai_question_1.ADD_QUESTION_TYPE.LANGUAGE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { sx: { height: 'auto', mb: 2 }, required: true, name: "readText", label: "\u6717\u8BFB\u5185\u5BB9", max: 240, InputProps: {
96
105
  rows: 3,
97
106
  multiline: true,
@@ -62,26 +62,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
62
62
  };
63
63
  Object.defineProperty(exports, "__esModule", { value: true });
64
64
  var jsx_runtime_1 = require("react/jsx-runtime");
65
- var react_1 = require("react");
66
- var fbm_ui_1 = require("fbm-ui");
67
- var mui_1 = require("fbm-ui/lib/mui");
65
+ var const_1 = require("./const");
66
+ var Form_1 = __importDefault(require("./Form"));
67
+ var question_ability_store_1 = require("../../../../store/ai-ability/question-ability-store");
68
68
  var ScrollDialogContent_1 = __importDefault(require("../../../../components/ScrollDialogContent"));
69
69
  var ai_question_1 = require("../../../../enum/ai-question");
70
70
  var ai_analysis_store_1 = require("../../../../store/ai-question/ai-analysis-store");
71
71
  var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
72
72
  var question_update_store_1 = require("../../../../store/ai-question/question-update-store");
73
- var const_1 = require("./const");
74
- var Form_1 = __importDefault(require("./Form"));
73
+ var fbm_ui_1 = require("fbm-ui");
74
+ var mui_1 = require("fbm-ui/lib/mui");
75
+ var react_1 = require("react");
75
76
  var QuestionUpdate = function () {
76
77
  var _a;
77
78
  var formRef = (0, react_1.useRef)();
78
79
  var _b = (0, react_1.useState)(false), switchTypeOpen = _b[0], setSwitchTypeOpen = _b[1];
79
80
  var _c = (0, question_model_store_1.useQuestionModelStore)(), addModel = _c.addModel, editModel = _c.editModel;
80
81
  var _d = (0, question_update_store_1.useUpdateQuestionStore)(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
82
+ var questionCollectionList = (0, question_ability_store_1.useQuestionCollectionListStore)(function (store) { return [store.questionCollectionList]; }).questionCollectionList;
81
83
  var _e = (0, ai_analysis_store_1.useAiAnalysisStore)(function (store) { return [
82
84
  store.aiAbilities,
83
85
  store.analysisState,
84
- ]; }), aiAbilities = _e.aiAbilities, analysisState = _e.analysisState, setKeyPointAnalysisError = _e.setKeyPointAnalysisError, updateAiAbilities = _e.updateAiAbilities, updateState = _e.updateState;
86
+ store.workplaces,
87
+ ]; }), aiAbilities = _e.aiAbilities, workplaces = _e.workplaces, analysisState = _e.analysisState, setKeyPointAnalysisError = _e.setKeyPointAnalysisError, updateAiAbilities = _e.updateAiAbilities, updateState = _e.updateState;
85
88
  var open = questionState.open, item = questionState.item, aiShowType = questionState.aiShowType, token = questionState.token, index = questionState.index;
86
89
  var initialValues = {
87
90
  name: item === null || item === void 0 ? void 0 : item.name,
@@ -90,7 +93,7 @@ var QuestionUpdate = function () {
90
93
  readText: (_a = item === null || item === void 0 ? void 0 : item.extra) === null || _a === void 0 ? void 0 : _a.readText,
91
94
  prepareTime: item === null || item === void 0 ? void 0 : item.prepareTime,
92
95
  duration: item === null || item === void 0 ? void 0 : item.duration,
93
- category: (item === null || item === void 0 ? void 0 : item.category) ? { label: item === null || item === void 0 ? void 0 : item.category[0], value: item === null || item === void 0 ? void 0 : item.category[0] } : { label: '', value: '' },
96
+ category: (item === null || item === void 0 ? void 0 : item.category) ? { label: (item === null || item === void 0 ? void 0 : item.category[0]) || '', value: (item === null || item === void 0 ? void 0 : item.category[0]) || '' } : { label: '', value: '' },
94
97
  };
95
98
  var CustomHeader = function () {
96
99
  var content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_1.MenuItem, __assign({ sx: { backgroundColor: aiShowType === ai_question_1.ADD_QUESTION_TYPE.FREE ? 'rgba(76, 175, 80, 0.08)' : 'rgba(255, 255, 255, 1)' }, onClick: function () {
@@ -110,7 +113,9 @@ var QuestionUpdate = function () {
110
113
  return new Promise(function (resolve, reject) {
111
114
  var _a;
112
115
  var errorIndexes = [];
113
- var newAiAbilities = aiAbilities.map(function (item) {
116
+ // 职场能力中不参与AI分析的提交时,过滤掉
117
+ var newAiAbilities = aiAbilities
118
+ .map(function (item) {
114
119
  item.isNotCompute = true;
115
120
  if (item.type === 6) {
116
121
  var extra_1 = {};
@@ -131,7 +136,8 @@ var QuestionUpdate = function () {
131
136
  return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
132
137
  }
133
138
  return item;
134
- });
139
+ })
140
+ .filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
135
141
  var _b = values || { category: undefined }, _c = _b.readText, readText = _c === void 0 ? '' : _c, otherValues = __rest(_b, ["readText"]);
136
142
  resolve({
137
143
  errorIndexes: errorIndexes,
@@ -198,13 +204,56 @@ var QuestionUpdate = function () {
198
204
  }
199
205
  });
200
206
  }); }, [getModelParams, item === null || item === void 0 ? void 0 : item.videoBroadcast.videoUrl, token, editModel, index, addModel, updateQuestionState]);
207
+ var handleWorkplaceData = (0, react_1.useCallback)(function (curSelectWorkPlace) {
208
+ // console.log('curSelectWorkPlace', curSelectWorkPlace);
209
+ var curAiAbilities = item.aiAbilities;
210
+ // 是否是初始化
211
+ var inInit = true;
212
+ // 考察能力是否包含在AI能力
213
+ var workplaceTypeIndex = curAiAbilities.findIndex(function (v) { return v.abilityType === 2; });
214
+ var CurWorkplace = questionCollectionList.find(function (v) { return v.name === curSelectWorkPlace.label; }) || {};
215
+ var CurWorkPlaceAiAbility = __assign(__assign(__assign({}, curSelectWorkPlace), CurWorkplace), { abilityType: 2, weight: 0 });
216
+ inInit = workplaceTypeIndex === -1;
217
+ // 是否可修改
218
+ // CurWorkPlaceAiAbility.isNotCompute = !CurWorkPlaceAiAbility.isWorkplace;
219
+ CurWorkPlaceAiAbility.desc = CurWorkPlaceAiAbility.name;
220
+ console.log('CurWorkPlaceAiAbility', CurWorkPlaceAiAbility);
221
+ curAiAbilities.splice(0, 1, CurWorkPlaceAiAbility);
222
+ console.log('curAiAbilities', curAiAbilities);
223
+ updateAiAbilities(curAiAbilities, inInit);
224
+ }, [questionCollectionList, updateAiAbilities, item.aiAbilities]);
225
+ // const NotUsedAbility = ['英文能力', '游戏测评'];
226
+ var handleValuesChange = (0, react_1.useCallback)(function (value) {
227
+ console.log('form value category:', value.category);
228
+ // 考察能力未发生变化
229
+ var WorkplaceIndex = item.aiAbilities.findIndex(function (v) { var _a; return v.name === ((_a = value.category) === null || _a === void 0 ? void 0 : _a.label); });
230
+ if (WorkplaceIndex > -1) {
231
+ return;
232
+ }
233
+ // 考察能力更改
234
+ if (value.category && value.category.label) {
235
+ handleWorkplaceData(value.category);
236
+ }
237
+ else if (!value.category || !value.category.label) {
238
+ // 考察能力删除
239
+ console.log('考察能力删除');
240
+ }
241
+ }, [item.aiAbilities, handleWorkplaceData]);
201
242
  (0, react_1.useEffect)(function () {
202
243
  if (open) {
203
244
  updateState({ language: item.language, aiSwitch: item.aiSwitch });
204
245
  updateAiAbilities(item.aiAbilities, true);
205
246
  }
206
247
  // eslint-disable-next-line react-hooks/exhaustive-deps
207
- }, [open]);
208
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, header: CustomHeader, size: "sm", okText: "\u786E\u8BA4", onClose: handleClose, onOk: handleOk }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { mt: 1 } }, { children: (0, jsx_runtime_1.jsx)(Form_1.default, { ref: formRef, initialValues: initialValues, aiShowType: aiShowType, onSubmit: handleSubmit }) })) }) })));
248
+ }, [open, item.aiAbilities]);
249
+ (0, react_1.useEffect)(function () {
250
+ var _a;
251
+ // 删除考察能力时,考察能力选择框清空
252
+ var WorkplaceLength = workplaces.length;
253
+ if (WorkplaceLength === 0) {
254
+ (_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ category: { label: '', value: '' } });
255
+ }
256
+ }, [workplaces]);
257
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, header: CustomHeader, size: "sm", okText: "\u786E\u8BA4", onClose: handleClose, onOk: handleOk }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { mt: 1 } }, { children: (0, jsx_runtime_1.jsx)(Form_1.default, { ref: formRef, initialValues: initialValues, aiShowType: aiShowType, onSubmit: handleSubmit, onValuesChange: handleValuesChange }) })) }) })));
209
258
  };
210
259
  exports.default = QuestionUpdate;
@@ -19,6 +19,8 @@ export interface BaseAiAbilityParams {
19
19
  relatedAbilities: number[];
20
20
  sort: number;
21
21
  weight: number | string;
22
+ abilityType: number;
23
+ isWorkplace?: boolean;
22
24
  }
23
25
  export interface MineExtra {
24
26
  firstFrameUrl: string;
@@ -18,7 +18,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var AIEvaluate_1 = __importDefault(require("./components/AIEvaluate"));
19
19
  var NotFinish_1 = __importDefault(require("./components/NotFinish"));
20
20
  var ScoreReport_1 = __importDefault(require("./components/ScoreReport"));
21
+ var Suggestion_1 = __importDefault(require("./components/Suggestion"));
21
22
  var VideoQuestion_1 = __importDefault(require("./components/VideoQuestion"));
23
+ var WorkPlaces_1 = __importDefault(require("./components/WorkPlaces"));
22
24
  var ai_report_1 = require("../../enum/ai-report");
23
25
  var ai_report_2 = require("../../services/ai-report");
24
26
  var global_store_1 = require("../../store/ai-report/global-store");
@@ -30,8 +32,8 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
30
32
  var token = props.token, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick;
31
33
  var firstLoad = (0, react_1.useRef)(true);
32
34
  var _a = (0, global_store_1.useAiReportStore)(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
33
- var _b = (reportResult || {}).collection, collection = _b === void 0 ? [] : _b;
34
- var _c = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewResult)([token]); }, {
35
+ var _b = reportResult || {}, _c = _b.collection, collection = _c === void 0 ? [] : _c, _d = _b.suggestion, suggestion = _d === void 0 ? { abilitys: [] } : _d, _e = _b.workplaces, workplaces = _e === void 0 ? [] : _e;
36
+ var _f = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewResult)([token]); }, {
35
37
  manual: true,
36
38
  onSuccess: function (_a) {
37
39
  var list = _a.data.list;
@@ -49,7 +51,7 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
49
51
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(__assign({ pageStepIndexes: pageStepIndexes_1 }, result));
50
52
  }
51
53
  },
52
- }), data = _c.data, loading = _c.loading, postAiInterviewResult = _c.run;
54
+ }), data = _f.data, loading = _f.loading, postAiInterviewResult = _f.run;
53
55
  var status = (data === null || data === void 0 ? void 0 : data.data.list[0].status) || NO_ANSWER;
54
56
  var handleRefreshSuccess = (0, react_1.useCallback)(function () {
55
57
  postAiInterviewResult();
@@ -71,9 +73,9 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
71
73
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ style: { marginTop: '2px' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
72
74
  }
73
75
  else {
74
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(ScoreReport_1.default, { onRefreshSuccess: handleRefreshSuccess }), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {})] }));
76
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(ScoreReport_1.default, { onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && (0, jsx_runtime_1.jsx)(WorkPlaces_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}), (0, jsx_runtime_1.jsx)(Suggestion_1.default, {}), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {})] }));
75
77
  }
76
- }, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection]);
78
+ }, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection, workplaces, suggestion]);
77
79
  return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
78
80
  });
79
81
  AiReportRoot.displayName = 'AiReportRoot';
@@ -15,30 +15,31 @@ 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 utils_1 = require("../../utils");
18
19
  var Evaluate_1 = __importDefault(require("./Evaluate"));
19
20
  var Graph_1 = __importDefault(require("./Graph"));
20
21
  var global_store_1 = require("../../../../store/ai-report/global-store");
22
+ var AiHeaderTitle_1 = __importDefault(require("../../../../components/AiHeaderTitle"));
21
23
  var fbm_ui_1 = require("fbm-ui");
22
24
  var mui_1 = require("fbm-ui/lib/mui");
23
25
  var react_1 = require("react");
24
- var utils_1 = require("../../utils");
25
26
  var Index = function () {
26
- var _a;
27
- var _b = (0, global_store_1.useAiReportStore)(function (store) { return [
27
+ var _a, _b;
28
+ var _c = (0, global_store_1.useAiReportStore)(function (store) { return [
28
29
  store.reportResult,
29
30
  store.operableButtons,
30
- ]; }), reportResult = _b.reportResult, showAiDimension = _b.showAiDimension, canEditAiDimension = _b.canEditAiDimension, customInterviewDimRankMap = _b.customInterviewDimRankMap;
31
- var _c = (0, react_1.useState)(true), expand = _c[0], setExpand = _c[1];
31
+ ]; }), reportResult = _c.reportResult, showAiDimension = _c.showAiDimension, canEditAiDimension = _c.canEditAiDimension, customInterviewDimRankMap = _c.customInterviewDimRankMap;
32
+ var _d = (0, react_1.useState)(true), expand = _d[0], setExpand = _d[1];
32
33
  var handleExpandChange = (0, react_1.useCallback)(function () {
33
34
  setExpand(!expand);
34
35
  }, [expand]);
35
- if (!showAiDimension)
36
+ if (!showAiDimension || ((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _a === void 0 ? void 0 : _a.length) === 0)
36
37
  return null;
37
- 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.jsxs)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: "AI\u7EF4\u5EA6\u8868\u73B0" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", (0, jsx_runtime_1.jsx)("br", {}), "AI\u7EF4\u5EA6\u8868\u73B0\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Collapse, __assign({ in: expand }, { children: [(_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _a === void 0 ? void 0 : _a.map(function (v) {
38
+ 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.jsxs)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "AI\u57FA\u7840\u80FD\u529B" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", (0, jsx_runtime_1.jsx)("br", {}), "AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Collapse, __assign({ in: expand }, { children: [(_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _b === void 0 ? void 0 : _b.map(function (v) {
38
39
  var _a;
39
40
  var c = customInterviewDimRankMap === null || customInterviewDimRankMap === void 0 ? void 0 : customInterviewDimRankMap[v.evaluationToken];
40
41
  var rank = (0, utils_1.rankPercent)((c === null || c === void 0 ? void 0 : c.rank) || (v === null || v === void 0 ? void 0 : v.rank), (c === null || c === void 0 ? void 0 : c.total) || (v === null || v === void 0 ? void 0 : v.total));
41
42
  return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, elevation: 0, bgcolor: "#f9f9f9", mb: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2, pt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: v.evaluationDimensionName })), !isNaN(rank) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u51FB\u8D25\u4E86", (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", display: "inline", color: "#4caf50" }, { children: [rank.toFixed(2), "%"] })), "\u7684\u5019\u9009\u4EBA"] })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, mb: 2, variant: "body2", fontWeight: "medium", color: "#4caf50" }, { children: v.impressions.join('、') }))] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { borderColor: 'rgba(0,0,0,0.08)' } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2 }, { children: [((_a = v.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(Graph_1.default, { items: v.items }) }))), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(Evaluate_1.default, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.evaluations, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }), (0, jsx_runtime_1.jsx)(Evaluate_1.default, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.suggestions, title: "\u63D0\u9AD8\u5EFA\u8BAE", field: "suggestions", mode: "show" })] }))] }))] }), v.evaluationToken));
42
- }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, mt: 4 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\u7EF4\u5EA6\u8868\u73B0\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }))] }))] })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", justifyContent: "flex-end", alignItems: "center", mt: 1, mb: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Link, { href: "#", onClick: handleExpandChange, text: expand ? '收起' : '查看详情' }) }))] })));
43
+ }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, mt: 4 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }))] }))] })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", justifyContent: "flex-end", alignItems: "center", mt: 1, mb: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Link, { href: "#", onClick: handleExpandChange, text: expand ? '收起' : '查看详情' }) }))] })));
43
44
  };
44
45
  exports.default = Index;
@@ -12,11 +12,11 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
- var utils_1 = require("../../utils");
15
+ var react_1 = require("react");
16
+ var fbm_ui_1 = require("fbm-ui");
16
17
  var ai_report_1 = require("../../../../constants/ai-report");
17
18
  var global_store_1 = require("../../../../store/ai-report/global-store");
18
- var fbm_ui_1 = require("fbm-ui");
19
- var react_1 = require("react");
19
+ var utils_1 = require("../../utils");
20
20
  var Bar = function () {
21
21
  var _a = (0, react_1.useState)(1), currentRank = _a[0], setCurrentRank = _a[1];
22
22
  var _b = (0, react_1.useState)(''), text = _b[0], setText = _b[1];
@@ -15,18 +15,26 @@ 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 react_1 = require("react");
19
- var fbm_ui_1 = require("fbm-ui");
18
+ var AiHeaderTitle_1 = __importDefault(require("../../../../components/AiHeaderTitle"));
20
19
  var ReportPie_1 = __importDefault(require("../../../../components/Charts/ReportPie"));
21
20
  // import ScoreLegend from './ScoreLegend';
22
21
  var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
23
22
  var global_store_1 = require("../../../../store/ai-report/global-store");
23
+ var fbm_ui_1 = require("fbm-ui");
24
+ var react_1 = require("react");
24
25
  var Report = function () {
25
26
  var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }).reportResult;
26
- var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
27
+ var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b, _c = _a.summaryText, summaryText = _c === void 0 ? { sprintf: '', variables: [] } : _c;
27
28
  var title = (0, react_1.useMemo)(function () {
28
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u4F18\u79C0 \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u5728\u524D30%" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u9002\u4E2D \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u572830%~70%" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u6B20\u4F73 \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u5728\u540E30%" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u4EBA\u6570\u5C0F\u4E8E5\u4EBA\u65F6\uFF0C\u8BC4\u4EF7\u4E0D\u751F\u6548" }))] }));
29
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u804C\u573A\u80FD\u529B\u4EE5\u53CA\u82F1\u6587\u8868\u8FBE\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E80\u65F6\u4E3A\u4F18\u79C0\uFF1B" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E60\u5C0F\u4E8E80\u65F6\u4E3A\u9002\u4E2D\uFF1B" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5C0F\u4E8E60\u65F6\u4E3A\u6B20\u4F73\uFF1B" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u5176\u4ED6AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\u4E3A\uFF1A\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u4EE5\u5168\u56FD\u6570\u636E\u7684\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2AAI\u57FA\u7840\u80FD\u529B\u7684\u6700\u7EC8\u5F97\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002" }))] }));
29
30
  }, []);
30
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pl: 2, pt: 2, pr: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: "\u804C\u573A\u80FD\u529B\u8868\u73B0" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: title }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.86)' } }) })) }))] }))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ height: 300, sx: { position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)(ReportPie_1.default, { id: orderToken || '', source: collection }), (0, jsx_runtime_1.jsx)(ScoreBigBall_1.default, { score: score || 0, status: status })] }))] })));
31
+ var showSummaryText = (0, react_1.useMemo)(function () {
32
+ var _a = summaryText.sprintf, sprintf = _a === void 0 ? '' : _a, _b = summaryText.variables, variables = _b === void 0 ? [] : _b;
33
+ var textList = (sprintf === null || sprintf === void 0 ? void 0 : sprintf.split('%s')) || [];
34
+ return textList.map(function (text, index) {
35
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ style: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.56)' } }, { children: text })), (0, jsx_runtime_1.jsx)("span", __assign({ style: { fontSize: 14, color: '#4CAF50' } }, { children: variables[index] || '' }))] }));
36
+ });
37
+ }, [summaryText]);
38
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pl: 2, pt: 2, pr: 2 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u7EFC\u5408\u8868\u73B0" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: title }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.86)' } }) })) }))] }))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ height: 300, sx: { position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)(ReportPie_1.default, { id: orderToken || '', source: collection }), (0, jsx_runtime_1.jsx)(ScoreBigBall_1.default, { score: score || 0, status: status })] })), showSummaryText.length > 0 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "block", width: 498, style: { backgroundColor: '#FAFAFA', padding: 8, margin: '0 auto 16px' } }, { children: showSummaryText })))] })));
31
39
  };
32
40
  exports.default = Report;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SuggestionAbility } from '../../interface';
3
+ declare const Suggestion: React.FC<SuggestionAbility>;
4
+ export default Suggestion;
@@ -0,0 +1,31 @@
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 fbm_ui_1 = require("fbm-ui");
16
+ var mui_1 = require("fbm-ui/lib/mui");
17
+ var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function () { return ({
18
+ width: 100,
19
+ height: 32,
20
+ display: 'inline-block',
21
+ textAlign: 'center',
22
+ color: 'RGBA(0, 0, 0, 0.86)',
23
+ borderLeft: '4px solid #4CAF50',
24
+ backgroundColor: '#E8F5E9',
25
+ margin: '24px 0 16px',
26
+ }); });
27
+ var Suggestion = function (_a) {
28
+ var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
29
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(TagTitle, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }), (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
30
+ };
31
+ exports.default = Suggestion;
@@ -0,0 +1,2 @@
1
+ declare const Index: () => JSX.Element | null;
2
+ export default Index;
@@ -0,0 +1,32 @@
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 Suggestion_1 = __importDefault(require("./Suggestion"));
19
+ var global_store_1 = require("../../../../store/ai-report/global-store");
20
+ var AiHeaderTitle_1 = __importDefault(require("../../../../components/AiHeaderTitle"));
21
+ var fbm_ui_1 = require("fbm-ui");
22
+ var mui_1 = require("fbm-ui/lib/mui");
23
+ var Index = function () {
24
+ var _a, _b, _c, _d;
25
+ var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _e.reportResult, showAiDimension = _e.showAiDimension;
26
+ if (!showAiDimension || !((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _a === void 0 ? void 0 : _a.show))
27
+ return null;
28
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, variant: "outlined", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
29
+ return (0, jsx_runtime_1.jsx)(Suggestion_1.default, { abilityName: v.abilityName, interviewQuestion: v.interviewQuestion, keyPoints: v.keyPoints }, v.abilityName);
30
+ }) }))] })));
31
+ };
32
+ exports.default = Index;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { AbilitiesProps } from './interface';
2
+ import { FC } from 'react';
3
3
  declare const Abilities: FC<AbilitiesProps>;
4
4
  export default Abilities;