eli-video-interview 1.2.40-alpha.8 → 1.2.41-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/Charts/ReportPie.js +21 -6
- package/esm/components/SvgIcon/index.js +17 -1
- package/esm/components/react-photo-view/PhotoBox.js +32 -7
- package/esm/components/react-photo-view/PhotoPage.js +18 -2
- package/esm/components/react-photo-view/PhotoProvider.js +17 -1
- package/esm/components/react-photo-view/PhotoSlider.js +19 -3
- package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +18 -2
- package/esm/components/react-photo-view/hooks/useAnimationPosition.js +18 -2
- package/esm/components/react-photo-view/hooks/useAnimationVisible.js +19 -3
- package/esm/components/react-photo-view/hooks/useContinuousTap.js +28 -3
- package/esm/components/react-photo-view/hooks/useMethods.js +17 -1
- package/esm/components/react-photo-view/hooks/useScrollPosition.js +21 -5
- package/esm/components/react-photo-view/hooks/useTargetScale.js +17 -1
- package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +18 -2
- package/esm/components/react-photo-view/utils/getSuitableImageSize.js +17 -1
- package/esm/modules/ai-ability/Root.js +21 -5
- package/esm/modules/ai-ability/components/AbilityFormItem/index.js +18 -2
- package/esm/modules/ai-ability/components/AddAbility/index.js +19 -3
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +21 -5
- package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +17 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +17 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +17 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +17 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +23 -7
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +17 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +19 -3
- package/esm/modules/ai-question/components/BootVideo/index.js +22 -6
- package/esm/modules/ai-question/components/QuestionModel/Interactive.js +17 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +37 -3
- package/esm/modules/ai-question/components/QuestionPreview/index.js +18 -2
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +18 -2
- package/esm/modules/ai-question/components/QuestionUpdate/Chioce.js +17 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +23 -6
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +17 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Score.js +69 -0
- package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +18 -2
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +20 -4
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +18 -2
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +18 -2
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +1 -0
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +18 -2
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +18 -2
- package/esm/modules/ai-report/components/AIEvaluate/index.js +17 -1
- package/esm/modules/ai-report/components/MenuAnchor/index.js +18 -2
- package/esm/modules/ai-report/components/RankingRange/Item.js +17 -1
- package/esm/modules/ai-report/components/RankingRange/index.js +18 -2
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +18 -2
- package/esm/modules/ai-report/components/ScoreReport/Score.js +19 -3
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +3 -1
- package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +18 -2
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +25 -5
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +17 -1
- package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +18 -2
- package/esm/modules/ai-report/interface.d.ts +1 -0
- package/esm/modules/ai-template/Root.js +18 -2
- package/esm/modules/ai-template/components/QuestionList/Item.js +17 -1
- package/esm/modules/ai-template/components/TemplateList/index.js +17 -1
- package/esm/modules/ai-template/components/TemplateMenu/index.js +19 -3
- package/esm/store/ai-ability/question-ability-store.js +19 -3
- package/esm/store/ai-ability-select/question-ability-store.js +20 -4
- package/esm/store/ai-question/ai-analysis-store.js +22 -6
- package/esm/store/ai-question/boot-video-store.js +20 -4
- package/esm/store/ai-question/global-store.js +20 -4
- package/esm/store/ai-question/interview-room-store.js +20 -4
- package/esm/store/ai-question/question-model-store.js +19 -3
- package/esm/store/ai-question/question-preview-store.js +20 -4
- package/esm/store/ai-question/question-template-store.js +19 -3
- package/esm/store/ai-question/question-update-store.js +20 -4
- package/esm/store/ai-report/global-store.js +21 -5
- package/esm/store/ai-template/global-store.js +20 -4
- package/esm/store/enterprise/enterprise-store.js +20 -4
- package/lib/components/Charts/ReportPie.js +21 -6
- package/lib/components/SvgIcon/index.js +17 -1
- package/lib/components/react-photo-view/PhotoBox.js +32 -7
- package/lib/components/react-photo-view/PhotoPage.js +18 -2
- package/lib/components/react-photo-view/PhotoProvider.js +17 -1
- package/lib/components/react-photo-view/PhotoSlider.js +19 -3
- package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +18 -2
- package/lib/components/react-photo-view/hooks/useAnimationPosition.js +18 -2
- package/lib/components/react-photo-view/hooks/useAnimationVisible.js +19 -3
- package/lib/components/react-photo-view/hooks/useContinuousTap.js +28 -3
- package/lib/components/react-photo-view/hooks/useMethods.js +17 -1
- package/lib/components/react-photo-view/hooks/useScrollPosition.js +21 -5
- package/lib/components/react-photo-view/hooks/useTargetScale.js +17 -1
- package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +18 -2
- package/lib/components/react-photo-view/utils/getSuitableImageSize.js +17 -1
- package/lib/modules/ai-ability/Root.js +21 -5
- package/lib/modules/ai-ability/components/AbilityFormItem/index.js +18 -2
- package/lib/modules/ai-ability/components/AddAbility/index.js +19 -3
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +21 -5
- package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +17 -1
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +17 -1
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +17 -1
- package/lib/modules/ai-question/components/AiAnalysis/index.js +17 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +23 -7
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +17 -1
- package/lib/modules/ai-question/components/BaseAccordion/index.js +19 -3
- package/lib/modules/ai-question/components/BootVideo/index.js +22 -6
- package/lib/modules/ai-question/components/QuestionModel/Interactive.js +17 -1
- package/lib/modules/ai-question/components/QuestionModel/Item.js +36 -2
- package/lib/modules/ai-question/components/QuestionPreview/index.js +18 -2
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +18 -2
- package/lib/modules/ai-question/components/QuestionUpdate/Chioce.js +17 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +23 -6
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +17 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Score.js +73 -0
- package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +18 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +20 -4
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +18 -2
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +18 -2
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +1 -0
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +18 -2
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +18 -2
- package/lib/modules/ai-report/components/AIEvaluate/index.js +17 -1
- package/lib/modules/ai-report/components/MenuAnchor/index.js +18 -2
- package/lib/modules/ai-report/components/RankingRange/Item.js +17 -1
- package/lib/modules/ai-report/components/RankingRange/index.js +18 -2
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +18 -2
- package/lib/modules/ai-report/components/ScoreReport/Score.js +19 -3
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +3 -1
- package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +18 -2
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +25 -5
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +17 -1
- package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +18 -2
- package/lib/modules/ai-report/interface.d.ts +1 -0
- package/lib/modules/ai-template/Root.js +18 -2
- package/lib/modules/ai-template/components/QuestionList/Item.js +17 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +17 -1
- package/lib/modules/ai-template/components/TemplateMenu/index.js +19 -3
- package/lib/store/ai-ability/question-ability-store.js +19 -3
- package/lib/store/ai-ability-select/question-ability-store.js +20 -4
- package/lib/store/ai-question/ai-analysis-store.js +22 -6
- package/lib/store/ai-question/boot-video-store.js +20 -4
- package/lib/store/ai-question/global-store.js +20 -4
- package/lib/store/ai-question/interview-room-store.js +20 -4
- package/lib/store/ai-question/question-model-store.js +19 -3
- package/lib/store/ai-question/question-preview-store.js +20 -4
- package/lib/store/ai-question/question-template-store.js +19 -3
- package/lib/store/ai-question/question-update-store.js +20 -4
- package/lib/store/ai-report/global-store.js +21 -5
- package/lib/store/ai-template/global-store.js +20 -4
- package/lib/store/enterprise/enterprise-store.js +20 -4
- package/package.json +1 -1
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
29
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
30
|
if (ar || !(i in from)) {
|
|
@@ -89,7 +105,7 @@ var Choice = function (_a) {
|
|
|
89
105
|
if (VERIFICATION_SCORE(value) || Number(value) > MAX_SCORE_VALUE || Number(value) < 1) {
|
|
90
106
|
return;
|
|
91
107
|
}
|
|
92
|
-
onChange('options', __spreadArray([], ((item === null || item === void 0 ? void 0 : item.options) || []).map(function (v, index) { return (i === index ? __assign(__assign({}, v), { score: Number(value) }) : v); }),
|
|
108
|
+
onChange('options', __spreadArray([], __read(((item === null || item === void 0 ? void 0 : item.options) || []).map(function (v, index) { return (i === index ? __assign(__assign({}, v), { score: Number(value) }) : v); })), false), index);
|
|
93
109
|
} }, { children: _jsx(ScoreInput, { size: "small", placeholder: "\u5206\u503C", endAdornment: _jsx(Typography, __assign({ variant: "caption" }, { children: "\u5206" })) }) }))] }, v.key || uniqueId()));
|
|
94
110
|
});
|
|
95
111
|
} })) })), _jsx(ChoiceItem, { children: _jsx(Button, __assign({ icon: _jsx(AddIcon, {}), variant: "outlined", color: "inherit", size: "small", onClick: handleOptionAdd, sx: { ml: -2 } }, { children: "\u6DFB\u52A0\u9009\u9879" })) })] })));
|
|
@@ -45,6 +45,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
49
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
50
|
+
if (!m) return o;
|
|
51
|
+
var i = m.call(o), r, ar = [], e;
|
|
52
|
+
try {
|
|
53
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
54
|
+
}
|
|
55
|
+
catch (error) { e = { error: error }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
59
|
+
}
|
|
60
|
+
finally { if (e) throw e.error; }
|
|
61
|
+
}
|
|
62
|
+
return ar;
|
|
63
|
+
};
|
|
48
64
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
49
65
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
50
66
|
if (ar || !(i in from)) {
|
|
@@ -99,12 +115,13 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
99
115
|
onCategoryChange === null || onCategoryChange === void 0 ? void 0 : onCategoryChange(value);
|
|
100
116
|
};
|
|
101
117
|
var handleMinResponseDurationChange = function (e) {
|
|
118
|
+
var _a;
|
|
102
119
|
var minResponseDurationValue = e.target.value;
|
|
103
120
|
if (minResponseDurationValue && minResponseDurationValue.indexOf('-') > -1) {
|
|
104
121
|
minResponseDurationValue = minResponseDurationValue.replaceAll('-', '');
|
|
105
122
|
}
|
|
106
123
|
if (minResponseDurationValue && minResponseDurationValue.indexOf('.') > -1) {
|
|
107
|
-
|
|
124
|
+
_a = __read(minResponseDurationValue.split('.'), 1), minResponseDurationValue = _a[0];
|
|
108
125
|
}
|
|
109
126
|
if (/^[1-9]\d*$/.test(minResponseDurationValue)) {
|
|
110
127
|
minResponseDurationValue = Number(minResponseDurationValue);
|
|
@@ -149,7 +166,7 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
149
166
|
multiline: true,
|
|
150
167
|
sx: { padding: 0 },
|
|
151
168
|
}, sx: { flexGrow: 1, height: 120 } }), form.values.questions.length > 1 && (_jsx(Box, __assign({ height: 84, pt: 1 }, { children: _jsx(IconButton, __assign({ size: "small", onClick: function () {
|
|
152
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], form.values.questions.filter(function (_, i) { return i !== index; }),
|
|
169
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(form.values.questions.filter(function (_, i) { return i !== index; })), false) }));
|
|
153
170
|
} }, { children: _jsx(CloseIcon, {}) })) })))] }), index)); });
|
|
154
171
|
} })) : (_jsx(VideoVoice, {}))), !preview && aiShowType === ADD_QUESTION_TYPE.SINGLECHIOCE && (
|
|
155
172
|
// @ts-ignore
|
|
@@ -158,7 +175,7 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
158
175
|
return (_a = form.values.questions) === null || _a === void 0 ? void 0 : _a.map(function (v, index) {
|
|
159
176
|
var _a, _b;
|
|
160
177
|
return (_jsxs(Stack, __assign({ px: 2, pb: 2, pt: 0.5, mb: 2, boxSizing: "border-box", component: Paper, variant: "outlined", width: "100%", justifyContent: "space-between", spacing: 1 }, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "flex-end" }, { children: ((_b = (_a = form === null || form === void 0 ? void 0 : form.values) === null || _a === void 0 ? void 0 : _a.questions) === null || _b === void 0 ? void 0 : _b.length) > 1 && (_jsx(IconButton, __assign({ size: "small", sx: { mr: -1 }, onClick: function () {
|
|
161
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], form.values.questions.filter(function (_, i) { return i !== index; }),
|
|
178
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(form.values.questions.filter(function (_, i) { return i !== index; })), false) }));
|
|
162
179
|
} }, { children: _jsx(DeleteIcon, {}) }))) })), _jsx(FormItem, { required: true, name: "questions.".concat(index, ".content"), 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", InputProps: {
|
|
163
180
|
// rows: 3,
|
|
164
181
|
maxRows: 3,
|
|
@@ -170,13 +187,13 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
170
187
|
height: 'auto',
|
|
171
188
|
} }), _jsx(Chioce, { index: index, item: v, onChange: function (_, options, i) {
|
|
172
189
|
form.values.questions[index].options = options;
|
|
173
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], form.values.questions,
|
|
190
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(form.values.questions), false) }));
|
|
174
191
|
} })] }), index));
|
|
175
192
|
});
|
|
176
193
|
} }) })), !preview && aiShowType !== ADD_QUESTION_TYPE.LANGUAGE && (_jsx(RandomQuestion, { aiShowType: aiShowType, category: aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.find(function (v) { var _a; return v.name === ((_a = form.values.category) === null || _a === void 0 ? void 0 : _a.value); }), broadcastType: form.values.broadcastType, onAddCustonQuestion: function () {
|
|
177
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray(__spreadArray([], form.values.questions,
|
|
194
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray(__spreadArray([], __read(form.values.questions), false), [{ content: '', videoUrl: '' }], false) }));
|
|
178
195
|
}, onAddRandomQuestion: function (qs) {
|
|
179
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray(__spreadArray([], form.values.questions,
|
|
196
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray(__spreadArray([], __read(form.values.questions), false), __read(qs.map(function (v) { return ({ content: v, videoUrl: '' }); })), false) }));
|
|
180
197
|
} })), aiShowType === ADD_QUESTION_TYPE.LANGUAGE && (_jsx(FormItem, { sx: { height: 'auto', mb: 2 }, required: true, name: "readText", label: "\u6717\u8BFB\u5185\u5BB9", max: 240, InputProps: {
|
|
181
198
|
rows: 3,
|
|
182
199
|
multiline: true,
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
29
|
import SelectQuestion from './SelectQuestion';
|
|
14
30
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
@@ -21,7 +37,7 @@ var RandomQuestion = function (_a) {
|
|
|
21
37
|
var _b, _c;
|
|
22
38
|
var broadcastType = _a.broadcastType, onAddCustonQuestion = _a.onAddCustonQuestion, onAddRandomQuestion = _a.onAddRandomQuestion, category = _a.category, aiShowType = _a.aiShowType;
|
|
23
39
|
var _d = useUpdateQuestionStore(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
|
|
24
|
-
var _e = useState(false), open = _e[0], setOpen = _e[1];
|
|
40
|
+
var _e = __read(useState(false), 2), open = _e[0], setOpen = _e[1];
|
|
25
41
|
var item = questionState.item;
|
|
26
42
|
var actions = [
|
|
27
43
|
{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* 验证0-9的整数
|
|
4
|
+
*/
|
|
5
|
+
export declare const IS_INTEGER_REG: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* 可输入最大分值
|
|
8
|
+
*/
|
|
9
|
+
export declare const MAX_SCORE_VALUE = 100;
|
|
10
|
+
export declare const VERIFICATION_SCORE: (value: string) => boolean;
|
|
11
|
+
declare const Score: ({ label, ...props }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
label: any;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export default Score;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
24
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25
|
+
if (!m) return o;
|
|
26
|
+
var i = m.call(o), r, ar = [], e;
|
|
27
|
+
try {
|
|
28
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
29
|
+
}
|
|
30
|
+
catch (error) { e = { error: error }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e) throw e.error; }
|
|
36
|
+
}
|
|
37
|
+
return ar;
|
|
38
|
+
};
|
|
39
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
40
|
+
import { ScoreInput } from './styled';
|
|
41
|
+
import { Typography } from 'fbm-ui';
|
|
42
|
+
import { useField } from 'formik';
|
|
43
|
+
/**
|
|
44
|
+
* 验证0-9的整数
|
|
45
|
+
*/
|
|
46
|
+
export var IS_INTEGER_REG = /^[0-9]\d*$/;
|
|
47
|
+
/**
|
|
48
|
+
* 可输入最大分值
|
|
49
|
+
*/
|
|
50
|
+
export var MAX_SCORE_VALUE = 100;
|
|
51
|
+
// rules={[({ value }) => VERIFICATION_SCORE(value as string)]}
|
|
52
|
+
// sx={{ height: 'auto', widht: 84 }}
|
|
53
|
+
// onChange={e => {
|
|
54
|
+
// const value = e.target.value;
|
|
55
|
+
// if (VERIFICATION_SCORE(value) || Number(value) > MAX_SCORE_VALUE || Number(value) < 1) {
|
|
56
|
+
// console.log('>>>>>>');
|
|
57
|
+
// return;
|
|
58
|
+
// }
|
|
59
|
+
// // onChange('options', [...(item?.options || []).map((v, index) => (i === index ? { ...v, score: Number(value) } : v))], index);
|
|
60
|
+
// }}
|
|
61
|
+
export var VERIFICATION_SCORE = function (value) { return (value ? !IS_INTEGER_REG.test(value) || Number(value) > MAX_SCORE_VALUE : false); };
|
|
62
|
+
var Score = function (_a) {
|
|
63
|
+
var label = _a.label, props = __rest(_a, ["label"]);
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
var _b = __read(useField(props), 3), field = _b[0], meta = _b[1], helpers = _b[2];
|
|
66
|
+
console.log(field, meta, helpers);
|
|
67
|
+
return (_jsx(_Fragment, { children: _jsx(ScoreInput, __assign({}, field, props, { size: "small", placeholder: "\u5206\u503C", endAdornment: _jsx(Typography, __assign({ variant: "caption" }, { children: "\u5206" })) })) }));
|
|
68
|
+
};
|
|
69
|
+
export default Score;
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
29
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
30
|
if (ar || !(i in from)) {
|
|
@@ -27,10 +43,10 @@ var formatQuestion = function (questions) { return questions === null || questio
|
|
|
27
43
|
var SelectQuestion = function (_a) {
|
|
28
44
|
var token = _a.token, open = _a.open, onClose = _a.onClose, onOk = _a.onOk;
|
|
29
45
|
var aiEvaluationData = useQuestionTemplateStore(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
|
|
30
|
-
var _b = useState([]), questions = _b[0], setQuestions = _b[1];
|
|
46
|
+
var _b = __read(useState([]), 2), questions = _b[0], setQuestions = _b[1];
|
|
31
47
|
var handleChange = function (q, checked) {
|
|
32
48
|
if (checked) {
|
|
33
|
-
setQuestions(__spreadArray(__spreadArray([], questions,
|
|
49
|
+
setQuestions(__spreadArray(__spreadArray([], __read(questions), false), [q], false));
|
|
34
50
|
}
|
|
35
51
|
else {
|
|
36
52
|
setQuestions(questions.filter(function (v) { return v.token !== q.token; }));
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
29
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
30
|
if (ar || !(i in from)) {
|
|
@@ -32,18 +48,18 @@ var VideoVoice = function () {
|
|
|
32
48
|
borderRadius: 2,
|
|
33
49
|
border: '1px dashed rgba(0,0,0, 0.08)',
|
|
34
50
|
} }, { children: [q.videoUrl && (_jsx(VideoVoicePreview, { onDel: function () {
|
|
35
|
-
var questons = __spreadArray([], form.values.questions,
|
|
51
|
+
var questons = __spreadArray([], __read(form.values.questions), false);
|
|
36
52
|
questons[index] = __assign(__assign({}, questons[index]), { videoUrl: '' });
|
|
37
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], questons,
|
|
53
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(questons), false) }));
|
|
38
54
|
}, videoUrl: q.videoUrl })), _jsx(VideoVoiceUploader, { index: index, questions: form.values.questions, setQuestions: function (qs) {
|
|
39
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], qs,
|
|
55
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(qs), false) }));
|
|
40
56
|
} })] })), _jsxs(Stack, __assign({ flexGrow: 1, direction: "row", justifyContent: "space-between", spacing: 1 }, { children: [_jsx(FormItem, { required: true, name: "questions.".concat(index, ".content"), 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", InputProps: {
|
|
41
57
|
rows: 3,
|
|
42
58
|
multiline: true,
|
|
43
59
|
placeholder: '面试内容(系统将根据此内容向候选人进行语音播报)',
|
|
44
60
|
sx: { padding: 0 },
|
|
45
61
|
}, sx: { flexGrow: 1 } }), form.values.questions.length > 1 && (_jsx(Box, __assign({ height: 84, pt: 1 }, { children: _jsx(IconButton, __assign({ size: "small", onClick: function () {
|
|
46
|
-
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], form.values.questions.filter(function (_, i) { return i !== index; }),
|
|
62
|
+
form.setValues(__assign(__assign({}, form.values), { questions: __spreadArray([], __read(form.values.questions.filter(function (_, i) { return i !== index; })), false) }));
|
|
47
63
|
} }, { children: _jsx(CloseIcon, {}) })) })))] }))] }), index)); });
|
|
48
64
|
} }));
|
|
49
65
|
};
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
29
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
30
|
if (ar || !(i in from)) {
|
|
@@ -30,9 +46,9 @@ var VideoVoiceUploader = function (_a) {
|
|
|
30
46
|
manual: true,
|
|
31
47
|
onSuccess: function (_a) {
|
|
32
48
|
var data = _a.data;
|
|
33
|
-
var firstData =
|
|
49
|
+
var _b = __read(data, 1), firstData = _b[0];
|
|
34
50
|
questions[index] = __assign(__assign({}, questions[index]), { videoUrl: firstData.url });
|
|
35
|
-
setQuestions(__spreadArray([], questions,
|
|
51
|
+
setQuestions(__spreadArray([], __read(questions), false));
|
|
36
52
|
},
|
|
37
53
|
}), loading = _b.loading, postCommonUpload = _b.run;
|
|
38
54
|
var uploadProps = {
|
|
@@ -56,6 +56,22 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
56
56
|
}
|
|
57
57
|
return t;
|
|
58
58
|
};
|
|
59
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
60
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
61
|
+
if (!m) return o;
|
|
62
|
+
var i = m.call(o), r, ar = [], e;
|
|
63
|
+
try {
|
|
64
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
65
|
+
}
|
|
66
|
+
catch (error) { e = { error: error }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
70
|
+
}
|
|
71
|
+
finally { if (e) throw e.error; }
|
|
72
|
+
}
|
|
73
|
+
return ar;
|
|
74
|
+
};
|
|
59
75
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
60
76
|
import { defaultQuestionParams } from './const';
|
|
61
77
|
import Form from './Form';
|
|
@@ -72,7 +88,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
72
88
|
var QuestionUpdate = function () {
|
|
73
89
|
var _a;
|
|
74
90
|
var formRef = useRef();
|
|
75
|
-
var _b = useState(false), switchTypeOpen = _b[0], setSwitchTypeOpen = _b[1];
|
|
91
|
+
var _b = __read(useState(false), 2), switchTypeOpen = _b[0], setSwitchTypeOpen = _b[1];
|
|
76
92
|
var _c = useQuestionModelStore(), addModel = _c.addModel, editModel = _c.editModel;
|
|
77
93
|
var _d = useUpdateQuestionStore(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
|
|
78
94
|
var questionCollectionList = useQuestionCollectionListStore(function (store) { return [store.questionCollectionList]; }).questionCollectionList;
|
|
@@ -198,7 +214,7 @@ var QuestionUpdate = function () {
|
|
|
198
214
|
setTimeout(function () {
|
|
199
215
|
var _a;
|
|
200
216
|
if (Object.keys(((_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.errors()) || {}).length > 0) {
|
|
201
|
-
Message.error('
|
|
217
|
+
Message.error('确认失败,请检查内容是否有误或为空。');
|
|
202
218
|
}
|
|
203
219
|
}, 200);
|
|
204
220
|
return [2 /*return*/];
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
29
|
import { PostAiInterviewEvaluation } from "../../../../services/ai-report";
|
|
14
30
|
import { Button, EditIcon, IconButton, Typography, confirm, FormItem } from 'fbm-ui';
|
|
@@ -16,8 +32,8 @@ import { Box, Stack } from 'fbm-ui/lib/mui';
|
|
|
16
32
|
import { useCallback, useEffect, useState } from 'react';
|
|
17
33
|
var Evaluate = function (_a) {
|
|
18
34
|
var title = _a.title, evaluations = _a.evaluations, token = _a.token, field = _a.field, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'true' : _c;
|
|
19
|
-
var _d = useState(evaluations === null || evaluations === void 0 ? void 0 : evaluations.join('\n')), content = _d[0], setContent = _d[1];
|
|
20
|
-
var _e = useState('show'), internalMode = _e[0], setInternalMode = _e[1];
|
|
35
|
+
var _d = __read(useState(evaluations === null || evaluations === void 0 ? void 0 : evaluations.join('\n')), 2), content = _d[0], setContent = _d[1];
|
|
36
|
+
var _e = __read(useState('show'), 2), internalMode = _e[0], setInternalMode = _e[1];
|
|
21
37
|
var handleChange = useCallback(function (e) {
|
|
22
38
|
var value = e.target.value;
|
|
23
39
|
setContent(value);
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
2
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3
|
+
if (!m) return o;
|
|
4
|
+
var i = m.call(o), r, ar = [], e;
|
|
5
|
+
try {
|
|
6
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
7
|
+
}
|
|
8
|
+
catch (error) { e = { error: error }; }
|
|
9
|
+
finally {
|
|
10
|
+
try {
|
|
11
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
12
|
+
}
|
|
13
|
+
finally { if (e) throw e.error; }
|
|
14
|
+
}
|
|
15
|
+
return ar;
|
|
16
|
+
};
|
|
1
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
18
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
19
|
function setupCanvas(canvas) {
|
|
@@ -164,7 +180,7 @@ var draw = function (layout, color, dimensions, pathRef, ctx) {
|
|
|
164
180
|
var endPointY = 65 + layout.itemSpacing * i;
|
|
165
181
|
drawLable(v.name, 10, endPointY, ctx);
|
|
166
182
|
drawLine(layout.leftLableWidth, endPointX, endPointY, ctx);
|
|
167
|
-
var _a = getPointColor(level.level), fill = _a[0], stroke = _a[1];
|
|
183
|
+
var _a = __read(getPointColor(level.level), 2), fill = _a[0], stroke = _a[1];
|
|
168
184
|
drawPoint(fill, stroke, endPointX, endPointY, ctx);
|
|
169
185
|
pathRef.push({ x: endPointX, y: endPointY, tips: "".concat(v === null || v === void 0 ? void 0 : v.name, "\u5F97\u5206:").concat(v === null || v === void 0 ? void 0 : v.score.toFixed(2), "\u5206") });
|
|
170
186
|
});
|
|
@@ -173,7 +189,7 @@ var Graph = function (_a) {
|
|
|
173
189
|
var _b = _a.items, items = _b === void 0 ? [] : _b;
|
|
174
190
|
var ref = useRef(null);
|
|
175
191
|
var pathRef = useRef([]);
|
|
176
|
-
var _c = useState(), ctx = _c[0], setCtx = _c[1];
|
|
192
|
+
var _c = __read(useState(), 2), ctx = _c[0], setCtx = _c[1];
|
|
177
193
|
useEffect(function () {
|
|
178
194
|
var currentCtx = setupCanvas(ref.current);
|
|
179
195
|
setCtx(currentCtx);
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
29
|
import { rankPercent } from '../../utils';
|
|
14
30
|
import Evaluate from './Evaluate';
|
|
@@ -24,7 +40,7 @@ var Index = function () {
|
|
|
24
40
|
store.reportResult,
|
|
25
41
|
store.operableButtons,
|
|
26
42
|
]; }), reportResult = _c.reportResult, showAiDimension = _c.showAiDimension, canEditAiDimension = _c.canEditAiDimension, customInterviewDimRankMap = _c.customInterviewDimRankMap;
|
|
27
|
-
var
|
|
43
|
+
var _d = __read(useState(true), 1), expand = _d[0];
|
|
28
44
|
// const handleExpandChange = useCallback(() => {
|
|
29
45
|
// setExpand(!expand);
|
|
30
46
|
// }, [expand]);
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
29
|
import { REPORT_MODULE_MAP } from "../../../../constants/ai-report";
|
|
14
30
|
import { PostAiInterviewResult } from "../../../../services/ai-report";
|
|
@@ -18,12 +34,12 @@ import { Box, MenuIcon } from 'fbm-ui';
|
|
|
18
34
|
import { List, ListItem, ListItemButton, ListItemText, Popover } from 'fbm-ui/lib/mui';
|
|
19
35
|
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
20
36
|
var MenuAnchor = forwardRef(function (props) {
|
|
21
|
-
var _a = useState(null), anchorEl = _a[0], setAnchorEl = _a[1];
|
|
37
|
+
var _a = __read(useState(null), 2), anchorEl = _a[0], setAnchorEl = _a[1];
|
|
22
38
|
var open = Boolean(anchorEl);
|
|
23
39
|
// 接口请求
|
|
24
40
|
var token = props.token, showAiDimension = props.showAiDimension;
|
|
25
41
|
var firstLoad = useRef(true);
|
|
26
|
-
var _b = useState([]), list = _b[0], setList = _b[1];
|
|
42
|
+
var _b = __read(useState([]), 2), list = _b[0], setList = _b[1];
|
|
27
43
|
var _c = useAiReportStore(), reportResult = _c.reportResult, updateState = _c.updateState, updateReportResult = _c.updateReportResult;
|
|
28
44
|
var postAiInterviewResult = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
29
45
|
manual: true,
|
|
@@ -9,13 +9,29 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
29
|
import { memo, useCallback, useEffect, useState } from 'react';
|
|
14
30
|
import { Box, CloseIcon, IconButton, Typography } from 'fbm-ui';
|
|
15
31
|
import { RangeInput, RangeTypography } from './styled';
|
|
16
32
|
var RankingRangeItem = function (props) {
|
|
17
33
|
var item = props.item, disabled = props.disabled, index = props.index, onChange = props.onChange, onDelete = props.onDelete;
|
|
18
|
-
var _a = useState('0'), endRankProportion = _a[0], setEndRankProportion = _a[1];
|
|
34
|
+
var _a = __read(useState('0'), 2), endRankProportion = _a[0], setEndRankProportion = _a[1];
|
|
19
35
|
useEffect(function () {
|
|
20
36
|
setEndRankProportion(item.scoreRankIntervals.endRankProportion.toString());
|
|
21
37
|
}, [item]);
|
|
@@ -45,6 +45,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
49
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
50
|
+
if (!m) return o;
|
|
51
|
+
var i = m.call(o), r, ar = [], e;
|
|
52
|
+
try {
|
|
53
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
54
|
+
}
|
|
55
|
+
catch (error) { e = { error: error }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
59
|
+
}
|
|
60
|
+
finally { if (e) throw e.error; }
|
|
61
|
+
}
|
|
62
|
+
return ar;
|
|
63
|
+
};
|
|
48
64
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
65
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
50
66
|
import { AddIcon, Box, Button, Dialog, Message, Typography } from 'fbm-ui';
|
|
@@ -55,8 +71,8 @@ import RankingRangeItem from './Item';
|
|
|
55
71
|
var RankingRange = function (_a) {
|
|
56
72
|
var open = _a.open, onClose = _a.onClose;
|
|
57
73
|
var isCall = useRef(false);
|
|
58
|
-
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
|
59
|
-
var _c = useImmer([]), interval = _c[0], updateInterval = _c[1];
|
|
74
|
+
var _b = __read(useState(false), 2), loading = _b[0], setLoading = _b[1];
|
|
75
|
+
var _c = __read(useImmer([]), 2), interval = _c[0], updateInterval = _c[1];
|
|
60
76
|
var _d = useAiReportStore(function (store) { return [store.scoreRankIntervals]; }), scoreRankIntervals = _d.scoreRankIntervals, onScoreRankIntervalsChange = _d.onScoreRankIntervalsChange, onScoreRankIntervalsSubmit = _d.onScoreRankIntervalsSubmit;
|
|
61
77
|
var formatScoreRankIntervals = useCallback(function (scoreRankIntervals) {
|
|
62
78
|
isCall.current = false;
|
|
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
12
28
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
29
|
import { rankPercent } from '../../utils';
|
|
14
30
|
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
@@ -16,8 +32,8 @@ import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
|
16
32
|
import { Box, Typography } from 'fbm-ui';
|
|
17
33
|
import { useEffect, useState } from 'react';
|
|
18
34
|
var Bar = function () {
|
|
19
|
-
var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
|
|
20
|
-
var _b = useState(''), text = _b[0], setText = _b[1];
|
|
35
|
+
var _a = __read(useState(1), 2), currentRank = _a[0], setCurrentRank = _a[1];
|
|
36
|
+
var _b = __read(useState(''), 2), text = _b[0], setText = _b[1];
|
|
21
37
|
var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
|
|
22
38
|
var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
|
|
23
39
|
useEffect(function () {
|