|
@@ -778,7 +778,7 @@
|
|
|
class="competency-tag"
|
|
|
size="small"
|
|
|
>
|
|
|
- {{ tag.name }}
|
|
|
+ {{ getTagNames(tag) }}
|
|
|
</el-tag>
|
|
|
<span
|
|
|
v-if="(element.competency_tag_info ||element.competency_tags || []).length > 2"
|
|
@@ -2544,6 +2544,19 @@ const processStepOptions = [
|
|
|
/* { label: '代码测试', value: 'code_test' },
|
|
|
{ label: '打字测试', value: 'typing_test' } */
|
|
|
];
|
|
|
+
|
|
|
+/* 获取标签名称 */
|
|
|
+const getTagNames = (tags:any) => {
|
|
|
+ competencyTags.value.forEach((item:any) => {
|
|
|
+ if(tags.id == item.id){
|
|
|
+ tags.name = item.name;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return tags.name;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/* 选择问题 */
|
|
|
const QuestionSelectDialog = ref(false);
|
|
|
const handleQSizeChange = (size: number) => {
|
|
@@ -4015,7 +4028,26 @@ const editQuestion = (index: number) => {
|
|
|
GetQuestionDetail(chatQuestions.value[index].id).then((res:any)=>{
|
|
|
console.log(res);
|
|
|
if(res.code===2000){
|
|
|
- Object.assign(questionForm, res.data);
|
|
|
+ const data ={
|
|
|
+ id:res.data.id,
|
|
|
+ content:res.data.question,
|
|
|
+ question_form:res.data.question_form,
|
|
|
+ question_form_name:getQuestionFormName(res.data.question_form),
|
|
|
+ scoring_reference:res.data.scoring_reference,
|
|
|
+ competency_tag_info:res.data.competency_tag_info,
|
|
|
+ competency_tags:res.data.competency_tags,
|
|
|
+ options:res.data.options.map((item:any)=>{
|
|
|
+ return {
|
|
|
+ text:item.option_text,
|
|
|
+ is_correct:item.is_correct,
|
|
|
+ sort:item.sort
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ enable_follow_up:res.data.enable_follow_up,
|
|
|
+ maxAnswers:res.data.maxAnswers,
|
|
|
+ weight:res.data.weight,
|
|
|
+ }
|
|
|
+ Object.assign(questionForm, data);
|
|
|
}
|
|
|
})
|
|
|
}else{
|