eli-video-interview 1.2.29 → 1.2.30
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/modules/ai-ability/components/AbilityFormItem/index.js +1 -0
- package/esm/modules/ai-ability/components/AddAbility/index.js +1 -2
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +1 -1
- package/esm/modules/ai-question/interface.d.ts +1 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +4 -2
- package/esm/modules/ai-report/components/WorkPlaces/index.js +3 -1
- package/esm/services/ai-ability.js +14 -1
- package/lib/modules/ai-ability/components/AbilityFormItem/index.js +1 -0
- package/lib/modules/ai-ability/components/AddAbility/index.js +1 -2
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +1 -1
- package/lib/modules/ai-question/interface.d.ts +1 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +4 -2
- package/lib/modules/ai-report/components/WorkPlaces/index.js +3 -1
- package/lib/services/ai-ability.js +14 -1
- package/package.json +1 -1
|
@@ -66,6 +66,7 @@ var AbilityFormItem = function (_a) {
|
|
|
66
66
|
},
|
|
67
67
|
onError: function (err) {
|
|
68
68
|
console.log(err);
|
|
69
|
+
nameTextField.setError("".concat(title, "\u751F\u6210\u8D85\u65F6"));
|
|
69
70
|
},
|
|
70
71
|
}), PostAiDefine = _h.run, loading = _h.loading;
|
|
71
72
|
var handleChange = useCallback(function (e) {
|
|
@@ -106,13 +106,12 @@ var AddAbility = function (props) {
|
|
|
106
106
|
var index = workPlaceItems.findIndex(function (ele) { return ele.type === v.type; });
|
|
107
107
|
workPlaceItems.splice(index, 1, v);
|
|
108
108
|
var list = workPlaceItems;
|
|
109
|
-
console.log(v, list);
|
|
109
|
+
// console.log(v, list);
|
|
110
110
|
setWorkPlaceItems(list);
|
|
111
111
|
}, [workPlaceItems]);
|
|
112
112
|
var handleOk = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
113
|
var error, avocadoConfig;
|
|
114
114
|
return __generator(this, function (_a) {
|
|
115
|
-
console.log(workPlaceItems);
|
|
116
115
|
error = workPlaceItems.some(function (v) { return v.items.length === 0; });
|
|
117
116
|
if (!error) {
|
|
118
117
|
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
@@ -19,7 +19,7 @@ import update from 'immutability-helper';
|
|
|
19
19
|
import { useCallback } from 'react';
|
|
20
20
|
var AnalysisItem = function (props) {
|
|
21
21
|
var _a;
|
|
22
|
-
var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace;
|
|
22
|
+
var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace, workplaceType = props.workplaceType;
|
|
23
23
|
var _c = useAiAnalysisStore(function (store) { return [store.aiAbilities]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities;
|
|
24
24
|
var desc = props.desc || props.name;
|
|
25
25
|
var NotUsedAilibity = ['英文能力', '游戏测评'];
|
|
@@ -39,6 +39,6 @@ var AnalysisItem = function (props) {
|
|
|
39
39
|
var value = _a.target.value;
|
|
40
40
|
updateAiAbilitiesWeight(value, index);
|
|
41
41
|
}, [updateAiAbilitiesWeight, index]);
|
|
42
|
-
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsxs(_Fragment, { children: [abilityType === 2 && isWorkplace &&
|
|
42
|
+
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsxs(_Fragment, { children: [abilityType === 2 && isWorkplace && workplaceType === 3 && _jsx(Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), _jsx(Tooltip, __assign({ title: "".concat(desc), placement: "right" }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && (_jsx(Select, { sx: { width: 150, ml: 1 }, options: willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && (_jsx(Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && _jsx(MainPoints, { extra: extra, index: index })] }));
|
|
43
43
|
};
|
|
44
44
|
export default AnalysisItem;
|
|
@@ -72,7 +72,7 @@ var AiAssessmentCriteria = function (props) {
|
|
|
72
72
|
useEffect(function () {
|
|
73
73
|
aiAbilities.forEach(function (item) {
|
|
74
74
|
var _a;
|
|
75
|
-
return setCheckAbilities((_a = {}, _a[item.type] = item, _a));
|
|
75
|
+
return setCheckAbilities((_a = {}, _a[item.type] = item.workplaceType ? undefined : item, _a));
|
|
76
76
|
});
|
|
77
77
|
}, [aiAbilities, setCheckAbilities]);
|
|
78
78
|
return (_jsx(Dialog, __assign({ open: open, title: "\u9009\u62E9 AI \u8003\u6838\u6807\u51C6", size: "sm", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: loading ? (_jsx(Box, __assign({ height: 400 }, { children: _jsx(Loading, { size: 40 }) }))) : (groupData.map(function (_a) {
|
|
@@ -13,7 +13,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import { BulbFilledIcon, CopyIcon, LayerIcon, styled, Typography } from 'fbm-ui';
|
|
14
14
|
import { Box, Stack } from 'fbm-ui/lib/mui';
|
|
15
15
|
var TagTitle = styled(Box)(function () { return ({
|
|
16
|
-
|
|
16
|
+
boxSizing: 'border-box',
|
|
17
|
+
padding: '0 16px',
|
|
18
|
+
minWidth: 100,
|
|
17
19
|
height: 32,
|
|
18
20
|
display: 'inline-block',
|
|
19
21
|
textAlign: 'center',
|
|
@@ -24,6 +26,6 @@ var TagTitle = styled(Box)(function () { return ({
|
|
|
24
26
|
}); });
|
|
25
27
|
var Suggestion = function (_a) {
|
|
26
28
|
var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
|
|
27
|
-
return (_jsxs(Stack, { children: [_jsx(TagTitle, { children: _jsx(Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }), _jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), _jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
|
|
29
|
+
return (_jsxs(Stack, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(TagTitle, { children: _jsx(Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }) })), _jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), _jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
|
|
28
30
|
};
|
|
29
31
|
export default Suggestion;
|
|
@@ -18,8 +18,10 @@ import { blue, orange, purple } from '@mui/material/colors';
|
|
|
18
18
|
import { Chip, InfoOutlineIcon, styled, Tooltip, Typography } from 'fbm-ui';
|
|
19
19
|
import { Box, Collapse, Paper, Stack } from 'fbm-ui/lib/mui';
|
|
20
20
|
var TagTitle = styled(Box)(function (bgcolor) { return ({
|
|
21
|
+
boxSizing: 'border-box',
|
|
21
22
|
position: 'relative',
|
|
22
|
-
|
|
23
|
+
padding: '0 16px',
|
|
24
|
+
minWidth: 100,
|
|
23
25
|
height: 32,
|
|
24
26
|
display: 'inline-block',
|
|
25
27
|
textAlign: 'center',
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { POST } from "../utils/request";
|
|
2
13
|
// 考察能力列表
|
|
3
14
|
export var PostQuestionCollectionList = function () { return POST({ url: '/standard/b/questionCollection/list' }); };
|
|
4
15
|
// 删除考察能力
|
|
5
16
|
export var PostQuestionCollectionDelete = function (token) { return POST({ url: 'standard/b/questionCollection/delete', data: { token: token } }); };
|
|
6
|
-
export var PostQuestionCollectionUpsert = function (data) {
|
|
17
|
+
export var PostQuestionCollectionUpsert = function (data) {
|
|
18
|
+
return POST({ url: '/standard/b/questionCollection/upsert', data: __assign(__assign({}, data), { version: 2 }) });
|
|
19
|
+
};
|
|
7
20
|
// GPT 生成内容
|
|
8
21
|
export var GetAiDefine = function (data) { return POST({ url: '/standard/b/questionCollection/intelligenceQuery', data: data }); };
|
|
9
22
|
// 获取考察能力详情
|
|
@@ -68,6 +68,7 @@ var AbilityFormItem = function (_a) {
|
|
|
68
68
|
},
|
|
69
69
|
onError: function (err) {
|
|
70
70
|
console.log(err);
|
|
71
|
+
nameTextField.setError("".concat(title, "\u751F\u6210\u8D85\u65F6"));
|
|
71
72
|
},
|
|
72
73
|
}), PostAiDefine = _h.run, loading = _h.loading;
|
|
73
74
|
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
@@ -111,13 +111,12 @@ var AddAbility = function (props) {
|
|
|
111
111
|
var index = workPlaceItems.findIndex(function (ele) { return ele.type === v.type; });
|
|
112
112
|
workPlaceItems.splice(index, 1, v);
|
|
113
113
|
var list = workPlaceItems;
|
|
114
|
-
console.log(v, list);
|
|
114
|
+
// console.log(v, list);
|
|
115
115
|
setWorkPlaceItems(list);
|
|
116
116
|
}, [workPlaceItems]);
|
|
117
117
|
var handleOk = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
118
|
var error, avocadoConfig;
|
|
119
119
|
return __generator(this, function (_a) {
|
|
120
|
-
console.log(workPlaceItems);
|
|
121
120
|
error = workPlaceItems.some(function (v) { return v.items.length === 0; });
|
|
122
121
|
if (!error) {
|
|
123
122
|
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
@@ -24,7 +24,7 @@ var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
|
24
24
|
var react_1 = require("react");
|
|
25
25
|
var AnalysisItem = function (props) {
|
|
26
26
|
var _a;
|
|
27
|
-
var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace;
|
|
27
|
+
var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace, workplaceType = props.workplaceType;
|
|
28
28
|
var _c = (0, ai_analysis_store_1.useAiAnalysisStore)(function (store) { return [store.aiAbilities]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities;
|
|
29
29
|
var desc = props.desc || props.name;
|
|
30
30
|
var NotUsedAilibity = ['英文能力', '游戏测评'];
|
|
@@ -44,6 +44,6 @@ var AnalysisItem = function (props) {
|
|
|
44
44
|
var value = _a.target.value;
|
|
45
45
|
updateAiAbilitiesWeight(value, index);
|
|
46
46
|
}, [updateAiAbilitiesWeight, index]);
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(mui_1.ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.CloseIcon, {}) })) }, { children: [(0, jsx_runtime_1.jsx)(mui_1.ListItemText, { children: (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: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [abilityType === 2 && isWorkplace &&
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(mui_1.ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.CloseIcon, {}) })) }, { children: [(0, jsx_runtime_1.jsx)(mui_1.ListItemText, { children: (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: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [abilityType === 2 && isWorkplace && workplaceType === 3 && (0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: "".concat(desc), placement: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { sx: { width: 150, ml: 1 }, options: const_1.willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && (0, jsx_runtime_1.jsx)(MainPoints_1.default, { extra: extra, index: index })] }));
|
|
48
48
|
};
|
|
49
49
|
exports.default = AnalysisItem;
|
|
@@ -77,7 +77,7 @@ var AiAssessmentCriteria = function (props) {
|
|
|
77
77
|
(0, react_1.useEffect)(function () {
|
|
78
78
|
aiAbilities.forEach(function (item) {
|
|
79
79
|
var _a;
|
|
80
|
-
return setCheckAbilities((_a = {}, _a[item.type] = item, _a));
|
|
80
|
+
return setCheckAbilities((_a = {}, _a[item.type] = item.workplaceType ? undefined : item, _a));
|
|
81
81
|
});
|
|
82
82
|
}, [aiAbilities, setCheckAbilities]);
|
|
83
83
|
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u9009\u62E9 AI \u8003\u6838\u6807\u51C6", size: "sm", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: loading ? ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ height: 400 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Loading, { size: 40 }) }))) : (groupData.map(function (_a) {
|
|
@@ -15,7 +15,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
15
15
|
var fbm_ui_1 = require("fbm-ui");
|
|
16
16
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
17
17
|
var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function () { return ({
|
|
18
|
-
|
|
18
|
+
boxSizing: 'border-box',
|
|
19
|
+
padding: '0 16px',
|
|
20
|
+
minWidth: 100,
|
|
19
21
|
height: 32,
|
|
20
22
|
display: 'inline-block',
|
|
21
23
|
textAlign: 'center',
|
|
@@ -26,6 +28,6 @@ var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function () { return ({
|
|
|
26
28
|
}); });
|
|
27
29
|
var Suggestion = function (_a) {
|
|
28
30
|
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)); })] }))] }))] }));
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { 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
32
|
};
|
|
31
33
|
exports.default = Suggestion;
|
|
@@ -23,8 +23,10 @@ var colors_1 = require("@mui/material/colors");
|
|
|
23
23
|
var fbm_ui_1 = require("fbm-ui");
|
|
24
24
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
25
25
|
var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function (bgcolor) { return ({
|
|
26
|
+
boxSizing: 'border-box',
|
|
26
27
|
position: 'relative',
|
|
27
|
-
|
|
28
|
+
padding: '0 16px',
|
|
29
|
+
minWidth: 100,
|
|
28
30
|
height: 32,
|
|
29
31
|
display: 'inline-block',
|
|
30
32
|
textAlign: 'center',
|
|
@@ -1,4 +1,15 @@
|
|
|
1
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
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.GetAbilityDetail = exports.GetAiDefine = exports.PostQuestionCollectionUpsert = exports.PostQuestionCollectionDelete = exports.PostQuestionCollectionList = void 0;
|
|
4
15
|
var request_1 = require("../utils/request");
|
|
@@ -8,7 +19,9 @@ exports.PostQuestionCollectionList = PostQuestionCollectionList;
|
|
|
8
19
|
// 删除考察能力
|
|
9
20
|
var PostQuestionCollectionDelete = function (token) { return (0, request_1.POST)({ url: 'standard/b/questionCollection/delete', data: { token: token } }); };
|
|
10
21
|
exports.PostQuestionCollectionDelete = PostQuestionCollectionDelete;
|
|
11
|
-
var PostQuestionCollectionUpsert = function (data) {
|
|
22
|
+
var PostQuestionCollectionUpsert = function (data) {
|
|
23
|
+
return (0, request_1.POST)({ url: '/standard/b/questionCollection/upsert', data: __assign(__assign({}, data), { version: 2 }) });
|
|
24
|
+
};
|
|
12
25
|
exports.PostQuestionCollectionUpsert = PostQuestionCollectionUpsert;
|
|
13
26
|
// GPT 生成内容
|
|
14
27
|
var GetAiDefine = function (data) { return (0, request_1.POST)({ url: '/standard/b/questionCollection/intelligenceQuery', data: data }); };
|