eli-video-interview 1.2.29 → 1.2.31

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.
@@ -142,6 +142,6 @@ var AiAbilityRoot = function () {
142
142
  },
143
143
  },
144
144
  ];
145
- return (_jsxs(AbilityRoot, { children: [_jsx(AddAbility, __assign({}, state, { open: AddAbilityOpen, onClose: handleClose, onSuccess: getList })), _jsx(UpdateAbility, __assign({}, state, { open: UpdateAbilityOpen, onClose: handleClose, onSuccess: getList })), _jsx(Header, { title: "\u8003\u5BDF\u80FD\u529B\u7BA1\u7406", renderAction: function () { return (_jsx(Button, __assign({ icon: _jsx(AddIcon, {}), onClick: handleAdd }, { children: "\u65B0\u589E\u80FD\u529B" }))); } }), _jsx(Box, __assign({ mt: 2, border: "1px solid rgba(0, 0, 0, 0.08)", borderRadius: 0.5, overflow: "hidden" }, { children: _jsx(Table, { emptyText: "\u6682\u65E0\u6570\u636E", loading: listLoading, data: data === null || data === void 0 ? void 0 : data.data.list, columns: columns }) }))] }));
145
+ return (_jsxs(AbilityRoot, { children: [AddAbilityOpen && _jsx(AddAbility, __assign({}, state, { open: AddAbilityOpen, onClose: handleClose, onSuccess: getList })), UpdateAbilityOpen && _jsx(UpdateAbility, __assign({}, state, { open: UpdateAbilityOpen, onClose: handleClose, onSuccess: getList })), _jsx(Header, { title: "\u8003\u5BDF\u80FD\u529B\u7BA1\u7406", renderAction: function () { return (_jsx(Button, __assign({ icon: _jsx(AddIcon, {}), onClick: handleAdd }, { children: "\u65B0\u589E\u80FD\u529B" }))); } }), _jsx(Box, __assign({ mt: 2, border: "1px solid rgba(0, 0, 0, 0.08)", borderRadius: 0.5, overflow: "hidden" }, { children: _jsx(Table, { emptyText: "\u6682\u65E0\u6570\u636E", loading: listLoading, data: data === null || data === void 0 ? void 0 : data.data.list, columns: columns }) }))] }));
146
146
  };
147
147
  export default AiAbilityRoot;
@@ -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) {
@@ -46,7 +46,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
- import { InitialValues } from '../../const';
50
49
  import AbilityFormItem from '../AbilityFormItem';
51
50
  import { PostQuestionCollectionUpsert } from "../../../../services/ai-ability";
52
51
  import { useRequest } from 'ahooks';
@@ -57,6 +56,40 @@ var AddAbility = function (props) {
57
56
  var _c = useState(''), value = _c[0], setValue = _c[1];
58
57
  var _d = useState(1), step = _d[0], setStep = _d[1];
59
58
  var _e = useState(false), stepLoading = _e[0], setStepLoading = _e[1];
59
+ var InitialValues = {
60
+ workPlaceItems: [
61
+ {
62
+ name: '能力定义',
63
+ type: 1,
64
+ items: [],
65
+ maxTextLength: 100,
66
+ },
67
+ {
68
+ name: '优次表现-优秀表现',
69
+ type: 2,
70
+ items: [],
71
+ maxTextLength: 100,
72
+ },
73
+ {
74
+ name: '优次表现-较差表现',
75
+ type: 3,
76
+ items: [],
77
+ maxTextLength: 100,
78
+ },
79
+ {
80
+ name: '考察建议-面试题目',
81
+ type: 4,
82
+ items: [],
83
+ maxTextLength: 300,
84
+ },
85
+ {
86
+ name: '考察建议-评分关键点',
87
+ type: 5,
88
+ items: [],
89
+ maxTextLength: 300,
90
+ },
91
+ ],
92
+ };
60
93
  var _f = useState(InitialValues.workPlaceItems), workPlaceItems = _f[0], setWorkPlaceItems = _f[1];
61
94
  var _g = useRequest(PostQuestionCollectionUpsert, {
62
95
  manual: true,
@@ -106,13 +139,12 @@ var AddAbility = function (props) {
106
139
  var index = workPlaceItems.findIndex(function (ele) { return ele.type === v.type; });
107
140
  workPlaceItems.splice(index, 1, v);
108
141
  var list = workPlaceItems;
109
- console.log(v, list);
142
+ // console.log(v, list);
110
143
  setWorkPlaceItems(list);
111
144
  }, [workPlaceItems]);
112
145
  var handleOk = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
113
146
  var error, avocadoConfig;
114
147
  return __generator(this, function (_a) {
115
- console.log(workPlaceItems);
116
148
  error = workPlaceItems.some(function (v) { return v.items.length === 0; });
117
149
  if (!error) {
118
150
  avocadoConfig = window['AvocadoVideoInterviewConfig'];
@@ -138,6 +170,7 @@ var AddAbility = function (props) {
138
170
  setValue(name);
139
171
  }, [name]);
140
172
  useEffect(function () {
173
+ console.log(InitialValues.workPlaceItems);
141
174
  if (!open) {
142
175
  setValue('');
143
176
  setStep(1);
@@ -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 && type === 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 })] }));
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;
@@ -96,7 +96,7 @@ var QuestionForm = forwardRef(function (props, ref) {
96
96
  label: tag,
97
97
  value: tag,
98
98
  name: tag,
99
- type: type,
99
+ workplaceType: type,
100
100
  token: token,
101
101
  define: define,
102
102
  isWorkplace: isWorkplace,
@@ -130,6 +130,9 @@ var QuestionUpdate = function () {
130
130
  }
131
131
  return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
132
132
  }
133
+ if (item.type === 103) {
134
+ item.type = 3;
135
+ }
133
136
  return item;
134
137
  })
135
138
  .filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
@@ -211,6 +214,9 @@ var QuestionUpdate = function () {
211
214
  var CurWorkPlaceAiAbility = __assign(__assign(__assign({}, curSelectWorkPlace), CurWorkplace), { abilityType: 2, weight: 0, sort: 0 });
212
215
  inInit = workplaceTypeIndex === -1;
213
216
  CurWorkPlaceAiAbility.desc = CurWorkPlaceAiAbility.define ? CurWorkPlaceAiAbility.define : CurWorkPlaceAiAbility.name;
217
+ if (CurWorkPlaceAiAbility.type === 3 && CurWorkPlaceAiAbility.isWorkplace) {
218
+ CurWorkPlaceAiAbility.type = 103;
219
+ }
214
220
  // console.log('CurWorkPlaceAiAbility', CurWorkPlaceAiAbility);
215
221
  // 添加和修改
216
222
  if (workplaceTypeIndex > -1) {
@@ -20,6 +20,7 @@ export interface BaseAiAbilityParams {
20
20
  sort: number;
21
21
  weight: number | string;
22
22
  abilityType: number;
23
+ workplaceType?: number;
23
24
  isWorkplace?: boolean;
24
25
  }
25
26
  export interface MineExtra {
@@ -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
- width: 100,
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
- width: 100,
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) { return POST({ url: '/standard/b/questionCollection/upsert', data: 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
  // 获取考察能力详情
@@ -147,6 +147,6 @@ var AiAbilityRoot = function () {
147
147
  },
148
148
  },
149
149
  ];
150
- return ((0, jsx_runtime_1.jsxs)(styled_1.AbilityRoot, { children: [(0, jsx_runtime_1.jsx)(AddAbility_1.default, __assign({}, state, { open: AddAbilityOpen, onClose: handleClose, onSuccess: getList })), (0, jsx_runtime_1.jsx)(UpdateAbility_1.default, __assign({}, state, { open: UpdateAbilityOpen, onClose: handleClose, onSuccess: getList })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Header, { title: "\u8003\u5BDF\u80FD\u529B\u7BA1\u7406", renderAction: function () { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}), onClick: handleAdd }, { children: "\u65B0\u589E\u80FD\u529B" }))); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2, border: "1px solid rgba(0, 0, 0, 0.08)", borderRadius: 0.5, overflow: "hidden" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Table, { emptyText: "\u6682\u65E0\u6570\u636E", loading: listLoading, data: data === null || data === void 0 ? void 0 : data.data.list, columns: columns }) }))] }));
150
+ return ((0, jsx_runtime_1.jsxs)(styled_1.AbilityRoot, { children: [AddAbilityOpen && (0, jsx_runtime_1.jsx)(AddAbility_1.default, __assign({}, state, { open: AddAbilityOpen, onClose: handleClose, onSuccess: getList })), UpdateAbilityOpen && (0, jsx_runtime_1.jsx)(UpdateAbility_1.default, __assign({}, state, { open: UpdateAbilityOpen, onClose: handleClose, onSuccess: getList })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Header, { title: "\u8003\u5BDF\u80FD\u529B\u7BA1\u7406", renderAction: function () { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}), onClick: handleAdd }, { children: "\u65B0\u589E\u80FD\u529B" }))); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2, border: "1px solid rgba(0, 0, 0, 0.08)", borderRadius: 0.5, overflow: "hidden" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Table, { emptyText: "\u6682\u65E0\u6570\u636E", loading: listLoading, data: data === null || data === void 0 ? void 0 : data.data.list, columns: columns }) }))] }));
151
151
  };
152
152
  exports.default = AiAbilityRoot;
@@ -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) {
@@ -51,7 +51,6 @@ 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 const_1 = require("../../const");
55
54
  var AbilityFormItem_1 = __importDefault(require("../AbilityFormItem"));
56
55
  var ai_ability_1 = require("../../../../services/ai-ability");
57
56
  var ahooks_1 = require("ahooks");
@@ -62,7 +61,41 @@ var AddAbility = function (props) {
62
61
  var _c = (0, react_1.useState)(''), value = _c[0], setValue = _c[1];
63
62
  var _d = (0, react_1.useState)(1), step = _d[0], setStep = _d[1];
64
63
  var _e = (0, react_1.useState)(false), stepLoading = _e[0], setStepLoading = _e[1];
65
- var _f = (0, react_1.useState)(const_1.InitialValues.workPlaceItems), workPlaceItems = _f[0], setWorkPlaceItems = _f[1];
64
+ var InitialValues = {
65
+ workPlaceItems: [
66
+ {
67
+ name: '能力定义',
68
+ type: 1,
69
+ items: [],
70
+ maxTextLength: 100,
71
+ },
72
+ {
73
+ name: '优次表现-优秀表现',
74
+ type: 2,
75
+ items: [],
76
+ maxTextLength: 100,
77
+ },
78
+ {
79
+ name: '优次表现-较差表现',
80
+ type: 3,
81
+ items: [],
82
+ maxTextLength: 100,
83
+ },
84
+ {
85
+ name: '考察建议-面试题目',
86
+ type: 4,
87
+ items: [],
88
+ maxTextLength: 300,
89
+ },
90
+ {
91
+ name: '考察建议-评分关键点',
92
+ type: 5,
93
+ items: [],
94
+ maxTextLength: 300,
95
+ },
96
+ ],
97
+ };
98
+ var _f = (0, react_1.useState)(InitialValues.workPlaceItems), workPlaceItems = _f[0], setWorkPlaceItems = _f[1];
66
99
  var _g = (0, ahooks_1.useRequest)(ai_ability_1.PostQuestionCollectionUpsert, {
67
100
  manual: true,
68
101
  onSuccess: function () {
@@ -111,13 +144,12 @@ var AddAbility = function (props) {
111
144
  var index = workPlaceItems.findIndex(function (ele) { return ele.type === v.type; });
112
145
  workPlaceItems.splice(index, 1, v);
113
146
  var list = workPlaceItems;
114
- console.log(v, list);
147
+ // console.log(v, list);
115
148
  setWorkPlaceItems(list);
116
149
  }, [workPlaceItems]);
117
150
  var handleOk = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () {
118
151
  var error, avocadoConfig;
119
152
  return __generator(this, function (_a) {
120
- console.log(workPlaceItems);
121
153
  error = workPlaceItems.some(function (v) { return v.items.length === 0; });
122
154
  if (!error) {
123
155
  avocadoConfig = window['AvocadoVideoInterviewConfig'];
@@ -143,6 +175,7 @@ var AddAbility = function (props) {
143
175
  setValue(name);
144
176
  }, [name]);
145
177
  (0, react_1.useEffect)(function () {
178
+ console.log(InitialValues.workPlaceItems);
146
179
  if (!open) {
147
180
  setValue('');
148
181
  setStep(1);
@@ -150,6 +183,6 @@ var AddAbility = function (props) {
150
183
  }
151
184
  // eslint-disable-next-line react-hooks/exhaustive-deps
152
185
  }, [open]);
153
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: step === 1 ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.TextField, __assign({}, nameTextField))] }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: value })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), const_1.InitialValues.workPlaceItems.map(function (v) { return ((0, jsx_runtime_1.jsx)(AbilityFormItem_1.default, { name: value, title: v.name, type: v.type, items: v.items, mode: "edit", maxTextLength: v.type === 4 || v.type === 5 ? 300 : 100, canReplace: true, onChange: handleValue }, v.type)); })] }))) })));
186
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: step === 1 ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.TextField, __assign({}, nameTextField))] }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: value })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), InitialValues.workPlaceItems.map(function (v) { return ((0, jsx_runtime_1.jsx)(AbilityFormItem_1.default, { name: value, title: v.name, type: v.type, items: v.items, mode: "edit", maxTextLength: v.type === 4 || v.type === 5 ? 300 : 100, canReplace: true, onChange: handleValue }, v.type)); })] }))) })));
154
187
  };
155
188
  exports.default = AddAbility;
@@ -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 && type === 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 })] }));
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;
@@ -101,7 +101,7 @@ var QuestionForm = (0, react_1.forwardRef)(function (props, ref) {
101
101
  label: tag,
102
102
  value: tag,
103
103
  name: tag,
104
- type: type,
104
+ workplaceType: type,
105
105
  token: token,
106
106
  define: define,
107
107
  isWorkplace: isWorkplace,
@@ -135,6 +135,9 @@ var QuestionUpdate = function () {
135
135
  }
136
136
  return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
137
137
  }
138
+ if (item.type === 103) {
139
+ item.type = 3;
140
+ }
138
141
  return item;
139
142
  })
140
143
  .filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
@@ -216,6 +219,9 @@ var QuestionUpdate = function () {
216
219
  var CurWorkPlaceAiAbility = __assign(__assign(__assign({}, curSelectWorkPlace), CurWorkplace), { abilityType: 2, weight: 0, sort: 0 });
217
220
  inInit = workplaceTypeIndex === -1;
218
221
  CurWorkPlaceAiAbility.desc = CurWorkPlaceAiAbility.define ? CurWorkPlaceAiAbility.define : CurWorkPlaceAiAbility.name;
222
+ if (CurWorkPlaceAiAbility.type === 3 && CurWorkPlaceAiAbility.isWorkplace) {
223
+ CurWorkPlaceAiAbility.type = 103;
224
+ }
219
225
  // console.log('CurWorkPlaceAiAbility', CurWorkPlaceAiAbility);
220
226
  // 添加和修改
221
227
  if (workplaceTypeIndex > -1) {
@@ -20,6 +20,7 @@ export interface BaseAiAbilityParams {
20
20
  sort: number;
21
21
  weight: number | string;
22
22
  abilityType: number;
23
+ workplaceType?: number;
23
24
  isWorkplace?: boolean;
24
25
  }
25
26
  export interface MineExtra {
@@ -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
- width: 100,
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
- width: 100,
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) { return (0, request_1.POST)({ url: '/standard/b/questionCollection/upsert', data: 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 }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",